//Constructor
 public EnemyLogic(TMXLevel m_TMXLevel, Player a_player)
 {
     this.m_level            = m_TMXLevel;
     this.m_player           = a_player;
     this.m_enemies          = new List <Enemy>();
     this.m_enemyProjectiles = new List <Projectile>();
     LoadEnemies();
 }
 //Constructor
 public GameModel(List <Map> a_TMXMaps)
 {
     this.m_TMXLevel        = new TMXLevel(a_TMXMaps);
     this.m_currentMap      = m_TMXLevel.CurrentMap;
     this.m_player          = new Player(m_TMXLevel.PlayerObject);
     this.m_playerLogistics = new PlayerLogic(m_TMXLevel, m_player);
     this.m_enemyLogistics  = new EnemyLogic(m_TMXLevel, m_player);
 }
Exemplo n.º 3
0
 //Constructor
 public PlayerLogic(TMXLevel a_TMXLevel, Player a_player)
 {
     this.m_player = a_player;
     this.m_level  = a_TMXLevel;
 }