Ejemplo n.º 1
0
 public Room(TheGame game)
     : base(game)
 {
     _bullet = new Bullet(Game, this);
     _hero = new Hero(Game, this, _bullet);
     _hero.OnChestHappened += OnHeroChestHappened;
     _hero.OnLifeFired += OnHeroLifeFired;
     _hero.OnRoomFinished += OnHeroRoomFinished;
     _biomass = new Biomass(Game, this);
     _wall = new Wall(Game, this);
     _devil1 = new Devil(Game, this, _hero, DevilNumberEnum.First);
     _devil2 = new Devil(Game, this, _hero, DevilNumberEnum.Second);
     _devil1.OnLifeFired += OnHeroLifeFired;
     _devil2.OnLifeFired += OnHeroLifeFired;
     _hero.OnReportPostion += OnCheckCollision;
     Reset();
 }
Ejemplo n.º 2
0
 public Hero(TheGame game, Room room, Bullet bullet)
     : base(game, room, 1)
 {
     _bullet = bullet;
 }