Example #1
0
 public void ChangeHomeTown(Creater creater)
 {
     if (creater.GetColor().Equals(this.Color))
     {
         this.Hometown   = creater;
         this.patrolDist = creater.Range;
     }
 }
Example #2
0
        public Animal(Point3D position, Creater hometown) : base(position)
        {
            posit  = new Point2D(this.position, Dimention.Z);
            vector = Vector3D.Xp;

            hp     = new EnergyBar(200);
            ep     = new EnergyBar(100);
            hungry = new EnergyBar(200);
            Power  = 20;
            Armor  = 0;

            Color = hometown.GetColor();
            ChangeHomeTown(hometown);
        }