src/supertux/globals.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  tinygettext

Typedefs

typedef SDL_Surface SDL_Surface

Variables

int SCREEN_WIDTH
 The width of the display (this is a logical value, not the physical value, since aspect_ration and projection_area might shrink or scale things).
int SCREEN_HEIGHT
 The width of the display (this is a logical value, not the physical value, since aspect_ration and projection_area might shrink or scale things).
JoystickKeyboardControllerg_jk_controller
SDL_Surfaceg_screen
ScreenManagerg_screen_manager
TextureManagertexture_manager
SoundManagersound_manager
Configg_config
tinygettext::DictionaryManager * dictionary_manager
float game_time
float real_time
TileManagertile_manager
TileSetcurrent_tileset
 this is only set while loading a map
SpriteManagersprite_manager
float g_game_speed


Typedef Documentation

typedef struct SDL_Surface SDL_Surface

Definition at line 20 of file globals.hpp.


Variable Documentation

TileSet* current_tileset

this is only set while loading a map

Definition at line 39 of file globals.cpp.

Referenced by Level::load(), worldmap::WorldMap::load(), and TileMap::TileMap().

tinygettext::DictionaryManager* dictionary_manager

Definition at line 22 of file globals.cpp.

Referenced by _(), Main::init_tinygettext(), LanguageMenu::LanguageMenu(), LanguageMenu::menu_action(), and scripting::translate().

Config* g_config

Definition at line 33 of file globals.cpp.

Referenced by GLRenderer::apply_config(), scripting::debug_show_fps(), ScreenManager::draw(), GLRenderer::GLRenderer(), Main::init_audio(), Main::init_config(), Main::init_rand(), Main::init_tinygettext(), Main::init_video(), KeyboardMenu::KeyboardMenu(), LanguageMenu::menu_action(), OptionsMenu::menu_action(), ProfileMenu::menu_action(), VideoSystem::new_lightmap(), VideoSystem::new_renderer(), VideoSystem::new_surface_data(), VideoSystem::new_texture(), OptionsMenu::OptionsMenu(), Main::parse_commandline(), lisp::Parser::Parser(), scripting::play_demo(), ScreenManager::process_events(), GameSession::record_demo(), GLRenderer::resize(), GameSession::restart_level(), Main::run(), SDLRenderer::SDLRenderer(), Console::show(), TitleScreen::start_game(), and KeyboardMenu::update().

float g_game_speed

Definition at line 43 of file globals.cpp.

Referenced by ScreenManager::run(), and scripting::set_game_speed().

JoystickKeyboardController* g_jk_controller

Definition at line 21 of file globals.cpp.

Referenced by MenuStorage::get_joystick_options_menu(), MenuStorage::get_key_options_menu(), Config::load(), Player::Player(), GameSession::process_events(), ScreenManager::process_events(), GameSession::restart_level(), Main::run(), Config::save(), MenuManager::set_current(), Menu::update(), GameSession::update(), LevelIntro::update(), TextScroller::update(), worldmap::WorldMap::update(), and worldmap::Tux::updateInputDirection().

SDL_Surface* g_screen

Definition at line 20 of file globals.cpp.

Referenced by MouseCursor::draw(), ButtonGroup::event(), Menu::event(), and Main::init_video().

ScreenManager* g_screen_manager

Definition at line 27 of file globals.cpp.

Referenced by scripting::abort_screenfade(), worldmap::WorldMap::change(), ContribWorldMenu::check_menu(), MainMenu::check_menu(), scripting::display_text_file(), TextScroller::draw(), scripting::exit_screen(), scripting::fadeout_screen(), GameSession::finish(), GameSession::GameSession(), scripting::load_level(), scripting::load_worldmap(), GameSession::process_menu(), scripting::quit(), GameSession::restart_level(), Main::run(), World::run(), GameSession::setup(), scripting::shrink_screen(), GameSession::start_sequence(), EndSequenceFireworks::starting(), EndSequenceWalkLeft::starting(), EndSequenceWalkRight::starting(), GameSession::toggle_pause(), GameSession::update(), LevelIntro::update(), TextScroller::update(), TitleScreen::update(), worldmap::WorldMap::update(), Main::wait_for_event(), and scripting::wait_for_screenswitch().

float game_time

Definition at line 35 of file globals.cpp.

Referenced by Timer::check(), GhostTree::draw(), Yeti::draw(), LevelTime::draw(), Player::draw(), Tile::draw(), Timer::get_timegone(), Timer::get_timeleft(), ScreenManager::run(), Sprite::Sprite(), Timer::start(), Player::update(), Sprite::update(), ScreenManager::update_gamelogic(), Camera::update_scroll_normal(), and scripting::wait().

float real_time

Definition at line 36 of file globals.cpp.

Referenced by PlayerStatus::add_coins(), Menu::draw_item(), MenuItem::get_input_with_symbol(), MenuManager::pop_current(), MenuManager::push_current(), ScreenManager::run(), MenuManager::set_current(), StreamSoundSource::set_fading(), StreamSoundSource::update(), and Menu::update().

int SCREEN_HEIGHT

The width of the display (this is a logical value, not the physical value, since aspect_ration and projection_area might shrink or scale things).

Definition at line 25 of file globals.cpp.

Referenced by GLRenderer::apply_config(), worldmap::WorldMap::clamp_camera_position(), GLLightmap::do_draw(), GLRenderer::do_take_screenshot(), Button::draw(), Menu::draw(), MouseCursor::draw(), Background::draw(), DisplayEffect::draw(), FloatingImage::draw(), TextObject::draw(), Thunderstorm::draw(), TileMap::draw(), FadeOut::draw(), InfoBox::draw(), LevelIntro::draw(), ShrinkFade::draw(), TextScroller::draw(), TitleScreen::draw(), Climbable::draw(), SecretAreaTrigger::draw(), worldmap::WorldMap::draw(), Statistics::draw_endseq_panel(), SDLLightmap::draw_filled_rect(), SDLRenderer::draw_filled_rect(), GLLightmap::draw_gradient(), GLRenderer::draw_gradient(), Background::draw_image(), GLRenderer::draw_inverse_ellipse(), GameSession::draw_pause(), worldmap::WorldMap::draw_status(), DrawingContext::draw_surface(), GLLightmap::end_draw(), ButtonGroup::event(), Menu::event(), Sector::get_active_region(), worldmap::WorldMap::get_camera_pos_for_tux(), Camera::get_center(), DrawingContext::get_cliprect(), DrawingContext::get_light(), GLLightmap::get_light(), SDLLightmap::get_light(), GhostParticleSystem::GhostParticleSystem(), GLLightmap::GLLightmap(), Main::init_video(), Camera::keep_in_bounds(), MainMenu::MainMenu(), Menu::Menu(), ParticleSystem::ParticleSystem(), ParticleSystem_Interactive::ParticleSystem_Interactive(), MenuManager::recalc_pos(), Camera::reset(), ShrinkFade::ShrinkFade(), SnowParticleSystem::SnowParticleSystem(), GLLightmap::start_draw(), Statistics::Statistics(), Menu::update(), Bullet::update(), CometParticleSystem::update(), FallingCoin::update(), Fireworks::update(), GhostParticleSystem::update(), MagicBlock::update(), Particles::update(), RainParticleSystem::update(), SpriteParticle::update(), and Camera::update_scroll_normal().

int SCREEN_WIDTH

The width of the display (this is a logical value, not the physical value, since aspect_ration and projection_area might shrink or scale things).

Definition at line 24 of file globals.cpp.

Referenced by GLRenderer::apply_config(), worldmap::WorldMap::clamp_camera_position(), CometParticleSystem::CometParticleSystem(), GLLightmap::do_draw(), GLRenderer::do_take_screenshot(), MouseCursor::draw(), Background::draw(), DisplayEffect::draw(), FloatingImage::draw(), LevelTime::draw(), TextObject::draw(), Thunderstorm::draw(), TileMap::draw(), Console::draw(), FadeOut::draw(), InfoBox::draw(), LevelIntro::draw(), PlayerStatus::draw(), ShrinkFade::draw(), TextScroller::draw(), worldmap::WorldMap::draw(), DrawingContext::draw_center_text(), Statistics::draw_endseq_panel(), SDLLightmap::draw_filled_rect(), SDLRenderer::draw_filled_rect(), ScreenManager::draw_fps(), GLLightmap::draw_gradient(), GLRenderer::draw_gradient(), Background::draw_image(), GLRenderer::draw_inverse_ellipse(), GameSession::draw_pause(), worldmap::WorldMap::draw_status(), DrawingContext::draw_surface(), GLLightmap::end_draw(), ButtonGroup::event(), Menu::event(), Sector::get_active_region(), worldmap::WorldMap::get_camera_pos_for_tux(), Camera::get_center(), DrawingContext::get_cliprect(), DrawingContext::get_light(), GLLightmap::get_light(), SDLLightmap::get_light(), GhostParticleSystem::GhostParticleSystem(), GLLightmap::GLLightmap(), scripting::gotoend(), Main::init_video(), Camera::keep_in_bounds(), MainMenu::MainMenu(), Menu::Menu(), ParticleSystem::ParticleSystem(), ParticleSystem_Interactive::ParticleSystem_Interactive(), RainParticleSystem::RainParticleSystem(), MenuManager::recalc_pos(), Camera::reset(), ShrinkFade::ShrinkFade(), SnowParticleSystem::SnowParticleSystem(), GLLightmap::start_draw(), Statistics::Statistics(), TextScroller::TextScroller(), Bullet::update(), Fireworks::update(), MagicBlock::update(), Particles::update(), SpriteParticle::update(), and Camera::update_scroll_normal().

SoundManager* sound_manager

Definition at line 31 of file globals.cpp.

Referenced by Dart::activate(), Flame::activate(), TreeWillOWisp::activate(), WillOWisp::activate(), GhostTree::active_update(), Yeti::active_update(), Sector::add_bullet(), PlayerStatus::add_coins(), AmbientSound::AmbientSound(), BadGuy::BadGuy(), Block::Block(), Bomb::Bomb(), ContribWorldMenu::check_menu(), MainMenu::check_menu(), Coin::Coin(), Firefly::collision(), Flower::collision(), GrowUp::collision(), Lantern::collision(), PowerUp::collision(), PushButton::collision(), Trampoline::collision(), Dart::collision_badguy(), MoleRock::collision_badguy(), Dart::collision_player(), MoleRock::collision_player(), WillOWisp::collision_player(), Dart::collision_solid(), MoleRock::collision_solid(), MrIceBlock::collision_solid(), Snail::collision_solid(), Rock::collision_solid(), Dispenser::collision_squished(), Mole::collision_squished(), MrTree::collision_squished(), Snail::collision_squished(), Stumpy::collision_squished(), Player::collision_tile(), Dart::Dart(), DartTrap::DartTrap(), Dispenser::Dispenser(), Player::do_backflip(), Player::do_jump(), Door::Door(), Door::event(), Switch::event(), Explosion::explode(), Explosion::Explosion(), DartTrap::fire(), Firefly::Firefly(), Fireworks::Fireworks(), Flame::Flame(), Thunderstorm::flash(), Flower::Flower(), GhostTree::GhostTree(), GrowUp::GrowUp(), Player::handle_horizontal_input(), Haywire::Haywire(), InvisibleBlock::hit(), Main::init_audio(), InvisibleBlock::InvisibleBlock(), Totem::jump_on(), KamikazeSnowball::KamikazeSnowball(), Player::kill(), KamikazeSnowball::kill_collision(), BadGuy::kill_fall(), Mole::kill_fall(), BadGuy::kill_squished(), Lantern::Lantern(), Player::make_invincible(), OptionsMenu::menu_action(), Mole::Mole(), MoleRock::MoleRock(), MrBomb::MrBomb(), MrIceBlock::MrIceBlock(), MrTree::MrTree(), OptionsMenu::OptionsMenu(), scripting::play_music(), Sector::play_music(), scripting::play_sound(), Player::Player(), PlayerStatus::PlayerStatus(), PowerUp::PowerUp(), PushButton::PushButton(), Main::quit_audio(), GameSession::restart_level(), Rock::Rock(), ScreenManager::run(), Sector::Sector(), MrIceBlock::set_state(), SkullyHop::set_state(), Toad::set_state(), TextScroller::setup(), worldmap::WorldMap::setup(), ShortFuse::ShortFuse(), SkullyHop::SkullyHop(), Snail::Snail(), AmbientSound::start_playing(), GameSession::start_sequence(), StreamSoundSource::StreamSoundSource(), Stumpy::Stumpy(), Switch::Switch(), Yeti::take_hit(), Mole::throw_rock(), Thunderstorm::thunder(), Thunderstorm::Thunderstorm(), Toad::Toad(), Totem::Totem(), Trampoline::Trampoline(), TreeWillOWisp::TreeWillOWisp(), Brick::try_break(), BonusBlock::try_open(), Fireworks::update(), GameSession::update(), worldmap::WorldMap::update(), Main::wait_for_event(), WillOWisp::WillOWisp(), worldmap::WorldMap::WorldMap(), Yeti::Yeti(), and StreamSoundSource::~StreamSoundSource().

SpriteManager* sprite_manager

Definition at line 41 of file globals.cpp.

Referenced by BouncyCoin::BouncyCoin(), Bullet::Bullet(), Door::Door(), FallingCoin::FallingCoin(), Firefly::Firefly(), Flower::Flower(), GhostTree::GhostTree(), Haywire::Haywire(), Lantern::Lantern(), LevelIntro::LevelIntro(), worldmap::LevelTile::LevelTile(), Light::Light(), Resources::load_shared(), MovingSprite::MovingSprite(), MrBomb::MrBomb(), Player::Player(), RainSplash::RainSplash(), Root::Root(), ShortFuse::ShortFuse(), SmokeCloud::SmokeCloud(), worldmap::SpecialTile::SpecialTile(), Spotlight::Spotlight(), worldmap::SpriteChange::SpriteChange(), SpriteParticle::SpriteParticle(), Switch::Switch(), worldmap::Teleporter::Teleporter(), Trampoline::Trampoline(), worldmap::Tux::Tux(), and Resources::unload_shared().

TextureManager* texture_manager

Definition at line 29 of file globals.cpp.

Referenced by GLLightmap::GLLightmap(), GLRenderer::GLRenderer(), Main::run(), SDLRenderer::SDLRenderer(), and Texture::~Texture().

TileManager* tile_manager

Definition at line 38 of file globals.cpp.

Referenced by Level::load(), worldmap::WorldMap::load(), and Resources::load_shared().


Generated on Mon Jun 9 03:38:26 2014 for SuperTux by  doxygen 1.5.1