Exemplo n.º 1
0
 public Fish(int width, int height, PointF pos)
 {
     maxShiftX = width;
     maxShiftY = height;
     direction = Direction.Left;
     type = (FishType)Tools.random.Next(0, 4);
     position = pos;
     destination = position;
     widthSize = Tools.FishSize(type).X;
     heightSize = Tools.FishSize(type).Y;
     maximumHealth = 200.0f;
     health = maximumHealth;
     strategy = new InitialStrategy(this);
 }
Exemplo n.º 2
0
 public override void Move(int width, int height)
 {
     strategy = strategy.Next();
     strategy.Move();
 }