Esempio n. 1
0
 //CONSTRUCTOR
 public GameManager(ContentManager content)
 {
     _Player = new Player(content);
     _AI = new AI(content);
     _TWM = new TileWorldManager(content);
     _Timer = new Timer(content);
 }
Esempio n. 2
0
 public void shootAI(Player player, AI Ai)
 {
     this.player = player;
     this.enemy = Ai;
     shoot = true;
     currentPosition = new Vector2(player.getPosition().X, player.getPosition().Y);
     destinationPosition = new Vector2(Ai.getPosition().X+2, Ai.getPosition().Y);
 }
Esempio n. 3
0
 public void Attack(AI enemy)
 {
     _MA.shootAI(this, enemy);
 }