Пример #1
0
 public Ant(Game game, Logic MyLogic, String Colour, int X, int Y, int Dir, int id)
     : base(game)
 {
     state = 0;
     restingNum = 0;
     carryingFood = false;
     isAlive = true;
     resting = false;
     colour = Colour;
     x = X;
     y = Y;
     dir = Dir;
     ID = id;
     myLogic = MyLogic;
     myTile = myLogic.getTile(x, y);
     if(colour.Equals("red"))
     {
         myLogic.loadTile(x, y, myLogic.texAntsOnHillRed[0], myLogic.spriteBatch, false, true, false, 0, true, "red");
     }
     else if (colour.Equals("black"))
     {
         myLogic.loadTile(x, y, myLogic.texAntsOnHillBlack[0], myLogic.spriteBatch, false, true, false, 0, true, "black");
     }
 }