Re: Question about Sample Kill file


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by heather on April 21, 2001 at 22:56:29:

In Reply to: Question about Sample Kill file posted by Bucky on April 21, 2001 at 22:01:18:

: From what I see, on command 45, the following happens (in order).
: 1) Rose gains one unit of energy (since Rose was created before Bambi) bringing the total to 27 units of energy
: 2) Bambi moves, and loses 2 units of energy (one for existing, one for moving) Bambi now has 23 units of energy
: 3) Bambi then munches Rose, gaining Rose's 27 units


Before Bambi eats Rose, Munch eats 2 of Rose's energy because Munch was created before Bambi.
: so... Bambi should now have 27+23, so 50 units of energy.

: No more ticks are executed before status is called, and Bambi only has 48 units of energy, according to the sample. Am I missing something here? My eat functions seem to work properly for the rest of the file.

: any help would be appreciated..




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]