Exemplo n.º 1
0
        public override void activate()
        {
            if ( !m_active ) {
                if ( m_trap == Trap.BOULDER ) {
                    death = new DeathTouch( m_world, TestWorld.boulder_texture, m_spawn, obj_radius, "Boulder", TNames.boulder, 0.1f );
                    death.m_pit_num = -1;

                }
                else if ( m_trap == Trap.FLAME ) {
                    death = new MovingDeath( m_world, TestWorld.flame_texture, new Vector2( 97, 100 ), new Vector2( 53, 8 ), new Vector2( 0, -250 ), 0.4f, texturename: TNames.flame );
                }

                m_world.add_queued_object( death );
                m_active = true;
            }
        }
 public void addPit( DeathTouch pit )
 {
     if ( pit.m_pit_num >= 0 )
         pit_list[pit.m_pit_num].Add( pit );
 }