Пример #1
0
 public DyingAction(MapCoordinates c1)
 {
     Character = c1;
 }
Пример #2
0
 public AttackAction(MapCoordinates c, MapCoordinates a, TypesOfAttacks t)
 {
     Character = c;
     Attack    = a;
     Type      = t;
 }
Пример #3
0
 public DamageAction(MapCoordinates m, int s)
 {
     Mc = m; Strength = s;
 }
Пример #4
0
 public TwoMoveAction(MapCoordinates c1, MapCoordinates c2, MapCoordinates m1, MapCoordinates m2)
 {
     Char1 = c1;
     Char2 = c2;
     Move1 = m1;
     Move2 = m2;
 }
Пример #5
0
 public CollisionWithAllyAction(MapCoordinates c1, MapCoordinates c2)
 {
     Char1 = c1;
     Char2 = c2;
 }
Пример #6
0
 public MoveAction(MapCoordinates c, MapCoordinates mc, string charName)
 {
     Character     = c;
     Move          = mc;
     CharacterName = charName;
 }
Пример #7
0
 //set square to emptysquare
 public void DiedAt(MapCoordinates mc)
 {
     _gameMap[mc.X][mc.Y] = new EmptySquare();
 }
Пример #8
0
 public GameSquare GetAt(MapCoordinates mc)
 {
     return(_gameMap[mc.X][mc.Y]);
 }
Пример #9
0
 public bool Equals(MapCoordinates mc)
 {
     return(mc.X == X && mc.Y == Y);
 }
Пример #10
0
 public int Distance(MapCoordinates mc)
 {
     return(Math.Abs(mc.X - X) + Math.Abs(mc.Y - Y));
 }