|
Ant Farm - Robert Glen Martin School for the Talented and Gifted Dallas I.S.D. |
|||||||
PREV NEXT | FRAMES NO FRAMES |
Cake
sits around and waits for a
WorkerAnt
to get food from it.Cake
actor.
Cookie
sits around and waits for a
WorkerAnt
to get food from it.Cookie
actor.
Food
is the top level abstract class for different
types of food.Food
actor.
Food
object
QueenAnt
.
ant
.
ant
to get/give food and to
get/give food and queen locations.
ant
.
ant
.
WorkerAnt
actors to polymorphically get food from the Food
objects
(Cake
and Cookie
) and give food to
QueenAnt
objects.QueenAnt
sits around and waits for a
WorkerAnt
to bring it food.QueenAnt
actor.
QueenAnt
object
fLoc
food location from a
Food
object.
qLoc
queen location from a
QueenAnt
object.
fQty
amount of food from the
calling Food
.
WorkerAnt
is a critter who's mission is
to take food from Cake and Cookie
objects and to
deliver it to a QueenAnt
object.WorkerAnt
critter.
|
© 2007 Robert Glen Martin. All rights reserved. |
|||||||
PREV NEXT | FRAMES NO FRAMES |