예제 #1
0
 void DrowEntites(Entiti entities)
 {
     if (entities.IAmOnTheMap(entities))
     {
         /* рисует на карте существо */
     }
 }
예제 #2
0
 public bool EatHim(Entiti player, Entiti bonus)
 {
     if (player.X == bonus.X && player.Y == player.Y)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #3
0
 public bool IAmOnTheMap(Entiti entities)
 {
     if (entities.X > 0 && entities.Y > 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
예제 #4
0
 public void Moving(Entiti entities)
 {
     bool start = IAmOnTheMap(entities);
     //  и какая -то логика в зависимости от действий игрока
 }
예제 #5
0
 public void Moving(Entiti entities)
 {
     throw new NotImplementedException();
 }
예제 #6
0
 public bool EatHim(Entiti entities, Entiti entities2)
 {
     throw new NotImplementedException();
 }