상속: GrandLarceny.NonMovingObject
예제 #1
0
 public override void loadContent()
 {
     base.loadContent();
     if (m_pairedVentilationId != 0 && m_pairedVentilation == null)
     {
         m_pairedVentilation = (VentilationDrum)Game.getInstance().getState().getObjectById(m_pairedVentilationId);
     }
     m_backImg = new ImageManager("Images//Tile//Ventilation//Straight//aventil_short_tile_w_floor");
     m_collisionShape = new CollisionRectangle(30, 30, 42, 12, m_position);
     if (s_unlockSound == null)
     {
         s_unlockSound = new Sound("Game//ledgegrab");
     }
 }
예제 #2
0
 public static void createVentrance(Vector2 a_position, string a_asset)
 {
     VentilationDrum t_outsideVentrance = new VentilationDrum(m_state.getTileCoordinates(a_position), a_asset, 0.699f);
     VentilationDrum t_insideVentrance = new VentilationDrum(m_state.getTileCoordinates(a_position), a_asset, 0.699f);
     t_outsideVentrance.setPairedVentilation(t_insideVentrance);
     t_insideVentrance.setPairedVentilation(t_outsideVentrance);
     m_state.addObject(t_outsideVentrance, 0);
     m_state.addObject(t_insideVentrance, 1);
 }
예제 #3
0
 public void setPairedVentilation(VentilationDrum a_ventilation)
 {
     m_pairedVentilation = a_ventilation;
     if (a_ventilation != null)
         m_pairedVentilationId = a_ventilation.getId();
     else
         m_pairedVentilationId = 0;
 }