Exemplo n.º 1
0
 private void BasicInitialization()
 {
     name        = GenerateName(isMale);
     age         = 0;
     spriteIndex = "dorf_idle";
     Amount++;
     localView     = new LocalView(this, (int)intelligence);
     StatusUpdate += Game.UpdateStatus;
 }
Exemplo n.º 2
0
        public Predator(int gridX, int gridY) : base(gridX, gridY)
        {
            if (Game.GridPointOccupied(gridX, gridY, false, this))
            {
                Destroy();
                return;
            }

            Strength      = Game.R.Next(1, 3);
            localView     = new LocalView(this, 30);
            spriteIndex   = "pred_emerge";
            speed         = 0.1;
            Health        = 3;
            StatusUpdate += Game.UpdateStatus;
        }