Ejemplo n.º 1
0
        public void Eat(KindsOfMonster kind, Player player)
        {
            switch ((int)kind)
            {
            case 0:
                player.Lives -= 1;
                break;

            case 1:
                player.Lives -= 1;
                break;

            case 2:
                player.CurrentSpeed -= 2;
                break;
            }
        }
Ejemplo n.º 2
0
 public Monster(Point p, int max, int cur, KindsOfMonster kind) : base(p, max, cur)
 {
     MonsterKind = kind;
 }