You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
480 B
25 lines
480 B
#include "gui.hpp"
|
|
|
|
int main() {
|
|
gui::FSM main;
|
|
main.event(gui::Event::STARTED);
|
|
|
|
while(main.active()) {
|
|
main.render();
|
|
|
|
// ZED: need to sort out how to deal with this in the FSM
|
|
if(main.in_state(gui::State::IDLE)
|
|
|| main.in_state(gui::State::MAPPING)
|
|
|| main.in_state(gui::State::IN_COMBAT))
|
|
{
|
|
main.keyboard();
|
|
} else{
|
|
main.event(gui::Event::TICK);
|
|
}
|
|
|
|
main.handle_world_events();
|
|
main.mouse();
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|