Esempio n. 1
0
 public Pheromon(Point loc, MotherNature.PheromonTypes pherotype, Colony col)
 {
     location     = loc;
     pheromontype = pherotype;
     colony       = col;
     birthday     = col.World().universaltime.Elapsed;
 }
Esempio n. 2
0
 public Ant(Point location, Point speed, Colony colony)
 {
     Location    = location;
     Speed       = speed;
     MyColony    = colony;
     id          = ++lastid;
     fullname    = colony.GetType().Name + this.GetType().Name + id;
     certificate = colony.World().GetBirthCertificate(fullname);
     energy      = MotherNature.MAX_ENERGY;
 }