Symphony Of Empires
|
#include <game_state.hpp>
Public Member Functions | |
GameState (const std::vector< std::string > &pkg_paths) | |
~GameState ()=default | |
void | play_nation () |
void | update_on_tick () |
void | world_thread () |
void | music_enqueue () |
void | load_world_thread () |
void | handle_resize () override |
void | handle_mouse_btn (const Eng3D::Event::MouseButton &) override |
void | handle_mouse_motion (const Eng3D::Event::MouseMotion &) override |
void | handle_mouse_wheel (const Eng3D::Event::MouseWheel &) override |
void | handle_key (const Eng3D::Event::Key &) override |
std::shared_ptr< Eng3D::Texture > | get_nation_flag (const Nation &nation) |
GameState (const std::vector< std::string > &pkg_paths) | |
~GameState ()=default | |
GameState (const std::vector< std::string > &pkg_paths) | |
~GameState ()=default | |
void | handle_key (const Eng3D::Event::Key &e) override |
GameState (const std::vector< std::string > &pkg_paths) | |
~GameState ()=default | |
void | handle_key (const Eng3D::Event::Key &e) override |
Public Member Functions inherited from Eng3D::State | |
State (const std::vector< std::string > &pkg_paths) | |
~State () | |
void | init_window (void) |
void | clear () const |
void | reload_shaders () |
void | swap () |
void | do_event () |
void | set_multisamples (int samples) const |
void | do_run (std::function< bool(void)> cond, std::function< void(void)> event, std::function< void(void)> render) |
Perform the main game loop. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Eng3D::State | |
static State & | get_instance () |
Static Public Attributes inherited from Eng3D::State | |
constexpr static auto | JOYSTICK_DEAD_ZONE = 3000 |
Value to ignore x/y axis motion taps (useful ignoring stray joystick input) More... | |
Definition at line 127 of file game_state.hpp.
|
inline |
Definition at line 129 of file game_state.hpp.
|
default |
|
inline |
Definition at line 36 of file archive.cpp.
|
default |
|
inline |
Definition at line 37 of file pyscript.cpp.
|
default |
|
inline |
Definition at line 36 of file triangle.cpp.
|
default |
std::shared_ptr< Eng3D::Texture > GameState::get_nation_flag | ( | const Nation & | nation | ) |
Definition at line 84 of file game_state.cpp.
|
overridevirtual |
Reimplemented from Eng3D::State.
Definition at line 244 of file game_state.cpp.
|
inlineoverridevirtual |
Reimplemented from Eng3D::State.
Definition at line 47 of file pyscript.cpp.
|
inlineoverridevirtual |
Reimplemented from Eng3D::State.
Definition at line 46 of file triangle.cpp.
|
overridevirtual |
Reimplemented from Eng3D::State.
Definition at line 184 of file game_state.cpp.
|
overridevirtual |
Reimplemented from Eng3D::State.
Definition at line 222 of file game_state.cpp.
|
overridevirtual |
Reimplemented from Eng3D::State.
Definition at line 234 of file game_state.cpp.
|
overridevirtual |
Reimplemented from Eng3D::State.
Definition at line 180 of file game_state.cpp.
void GameState::load_world_thread | ( | ) |
Definition at line 168 of file game_state.cpp.
void GameState::music_enqueue | ( | ) |
Definition at line 152 of file game_state.cpp.
void GameState::play_nation | ( | ) |
Definition at line 65 of file game_state.cpp.
void GameState::update_on_tick | ( | ) |
Definition at line 114 of file game_state.cpp.
void GameState::world_thread | ( | ) |
Definition at line 125 of file game_state.cpp.
std::unique_ptr<Client> GameState::client |
Definition at line 143 of file game_state.hpp.
ClientState GameState::client_state |
Definition at line 161 of file game_state.hpp.
Nation* GameState::curr_nation = nullptr |
Definition at line 158 of file game_state.hpp.
MapMode GameState::current_mode = MapMode::NO_MAP |
Definition at line 162 of file game_state.hpp.
std::vector<Eng3D::StringRef> GameState::decision_autodo |
Definition at line 190 of file game_state.hpp.
bool GameState::editor = false |
Definition at line 186 of file game_state.hpp.
UI::Widget* GameState::event_tray_grp = nullptr |
Definition at line 169 of file game_state.hpp.
bool GameState::host_mode = false |
Definition at line 185 of file game_state.hpp.
bool GameState::in_game = false |
Definition at line 183 of file game_state.hpp.
Input GameState::input |
Definition at line 160 of file game_state.hpp.
std::string GameState::ip_address = "127.0.0.1" |
Definition at line 182 of file game_state.hpp.
float GameState::load_progress = 0.f |
Definition at line 148 of file game_state.hpp.
std::atomic<bool> GameState::loaded_map |
Definition at line 147 of file game_state.hpp.
std::atomic<bool> GameState::loaded_world |
Definition at line 146 of file game_state.hpp.
UI::Widget* GameState::lower_left_panel = nullptr |
Definition at line 180 of file game_state.hpp.
std::unique_ptr<Map> GameState::map |
Definition at line 159 of file game_state.hpp.
UI::Widget* GameState::minimap = nullptr |
Definition at line 167 of file game_state.hpp.
bool GameState::motion_blur = true |
Definition at line 184 of file game_state.hpp.
std::atomic<int> GameState::ms_delay_speed |
Definition at line 152 of file game_state.hpp.
std::vector<std::shared_ptr<Eng3D::Texture> > GameState::nation_flags |
Definition at line 172 of file game_state.hpp.
std::atomic<bool> GameState::paused |
Definition at line 151 of file game_state.hpp.
std::vector<UnitTypeId> GameState::production_queue |
Definition at line 177 of file game_state.hpp.
Eng3D::Profiler GameState::profiler |
Definition at line 45 of file pyscript.cpp.
Eng3D::Interface::ProfilerView* GameState::profiler_view = nullptr |
Definition at line 44 of file pyscript.cpp.
Eng3D::Interface::ProfilerView * GameState::profiler_view = nullptr |
Definition at line 168 of file game_state.hpp.
std::atomic<bool> GameState::quit |
Definition at line 153 of file game_state.hpp.
std::mutex GameState::render_lock |
Definition at line 176 of file game_state.hpp.
UI::Widget* GameState::right_side_panel = nullptr |
Definition at line 179 of file game_state.hpp.
bool GameState::sea_paint = false |
Definition at line 187 of file game_state.hpp.
Interface::LobbySelectView* GameState::select_nation = nullptr |
Definition at line 164 of file game_state.hpp.
std::unique_ptr<Server> GameState::server |
Definition at line 144 of file game_state.hpp.
bool GameState::singleplayer = true |
Definition at line 188 of file game_state.hpp.
UI::Widget* GameState::time_win = nullptr |
Definition at line 166 of file game_state.hpp.
UI::Widget* GameState::top_win = nullptr |
Definition at line 165 of file game_state.hpp.
UI::Widget* GameState::unit_menu = nullptr |
Definition at line 170 of file game_state.hpp.
std::atomic<bool> GameState::update_tick |
Definition at line 150 of file game_state.hpp.
World* GameState::world = nullptr |
Definition at line 156 of file game_state.hpp.