penguins
1.0.0
|
Definition at line 66 of file controllers.hh.
Public Member Functions | |
BotTurnController (GamePanel *panel) | |
virtual | ~BotTurnController () |
virtual void | configure_bot_turn_ui () override |
virtual void | on_activated () override |
virtual void | on_deactivated (GameController *next_controller) override |
virtual void | update_tile_attributes () override |
virtual void | update_status_bar () override |
virtual void | on_mouse_up (wxMouseEvent &event) override |
virtual BotThread * | create_bot_thread ()=0 |
void | on_bot_thread_done_work (bool cancelled) |
void | start_bot_thread () |
void | stop_bot_thread () |
void | unregister_bot_thread (BotThread *thread) |
![]() | |
GameController (GamePanel *panel) | |
virtual | ~GameController () |
void | update_game_state_and_indirectly_delete_this () |
virtual void | configure_log_viewer_ui () |
virtual void | paint_overlay (wxDC &dc) |
virtual void | on_mouse_enter_leave (wxMouseEvent &event) |
virtual void | on_mouse_down (wxMouseEvent &event) |
virtual void | on_mouse_move (wxMouseEvent &event) |
![]() | |
virtual void | QueueEvent (wxEvent *event) |
virtual void | AddPendingEvent (const wxEvent &event) |
void | CallAfter (void(T::*method)(T1,...), T1 x1,...) |
void | CallAfter (const T &functor) |
virtual bool | ProcessEvent (wxEvent &event) |
bool | ProcessEventLocally (wxEvent &event) |
bool | SafelyProcessEvent (wxEvent &event) |
void | ProcessPendingEvents () |
void | DeletePendingEvents () |
void | Connect (int id, int lastId, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
void | Connect (int id, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
void | Connect (wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
bool | Disconnect (wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
bool | Disconnect (int id=wxID_ANY, wxEventType eventType=wxEVT_NULL, wxObjectEventFunction function=NULL, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
bool | Disconnect (int id, int lastId, wxEventType eventType, wxObjectEventFunction function=NULL, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
void | Bind (const EventTag &eventType, Functor functor, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL) |
void | Bind (const EventTag &eventType, void(Class::*method)(EventArg &), EventHandler *handler, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL) |
bool | Unbind (const EventTag &eventType, Functor functor, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL) |
bool | Unbind (const EventTag &eventType, void(Class::*method)(EventArg &), EventHandler *handler, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL) |
void * | GetClientData () const |
wxClientData * | GetClientObject () const |
void | SetClientData (void *data) |
void | SetClientObject (wxClientData *data) |
bool | GetEvtHandlerEnabled () const |
wxEvtHandler * | GetNextHandler () const |
wxEvtHandler * | GetPreviousHandler () const |
void | SetEvtHandlerEnabled (bool enabled) |
virtual void | SetNextHandler (wxEvtHandler *handler) |
virtual void | SetPreviousHandler (wxEvtHandler *handler) |
void | Unlink () |
bool | IsUnlinked () const |
wxEvtHandler () | |
virtual | ~wxEvtHandler () |
virtual void | QueueEvent (wxEvent *event) |
virtual void | AddPendingEvent (const wxEvent &event) |
void | CallAfter (void(T::*method)(T1,...), T1 x1,...) |
void | CallAfter (const T &functor) |
virtual bool | ProcessEvent (wxEvent &event) |
bool | ProcessEventLocally (wxEvent &event) |
bool | SafelyProcessEvent (wxEvent &event) |
void | ProcessPendingEvents () |
void | DeletePendingEvents () |
void | Connect (int id, int lastId, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
void | Connect (int id, wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
void | Connect (wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
bool | Disconnect (wxEventType eventType, wxObjectEventFunction function, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
bool | Disconnect (int id=wxID_ANY, wxEventType eventType=wxEVT_NULL, wxObjectEventFunction function=NULL, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
bool | Disconnect (int id, int lastId, wxEventType eventType, wxObjectEventFunction function=NULL, wxObject *userData=NULL, wxEvtHandler *eventSink=NULL) |
void | Bind (const EventTag &eventType, Functor functor, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL) |
void | Bind (const EventTag &eventType, void(Class::*method)(EventArg &), EventHandler *handler, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL) |
bool | Unbind (const EventTag &eventType, Functor functor, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL) |
bool | Unbind (const EventTag &eventType, void(Class::*method)(EventArg &), EventHandler *handler, int id=wxID_ANY, int lastId=wxID_ANY, wxObject *userData=NULL) |
void * | GetClientData () const |
wxClientData * | GetClientObject () const |
void | SetClientData (void *data) |
void | SetClientObject (wxClientData *data) |
bool | GetEvtHandlerEnabled () const |
wxEvtHandler * | GetNextHandler () const |
wxEvtHandler * | GetPreviousHandler () const |
void | SetEvtHandlerEnabled (bool enabled) |
virtual void | SetNextHandler (wxEvtHandler *handler) |
virtual void | SetPreviousHandler (wxEvtHandler *handler) |
void | Unlink () |
bool | IsUnlinked () const |
![]() | |
wxObject () | |
wxObject (const wxObject &other) | |
virtual | ~wxObject () |
virtual wxClassInfo * | GetClassInfo () const |
wxObjectRefData * | GetRefData () const |
bool | IsKindOf (const wxClassInfo *info) const |
bool | IsSameAs (const wxObject &obj) const |
void | Ref (const wxObject &clone) |
void | SetRefData (wxObjectRefData *data) |
void | UnRef () |
void | UnShare () |
void | operator delete (void *buf) |
void * | operator new (size_t size, const wxString &filename=NULL, int lineNum=0) |
Data Fields | |
bool | executing_bot_turn = false |
wxCriticalSection | bot_thread_cs |
BotThread * | bot_thread = nullptr |
![]() | |
GamePanel * | panel |
CanvasPanel * | canvas |
Game * | game |
std::shared_ptr< BotParameters > & | bot_params |
Additional Inherited Members | |
![]() | |
static void | AddFilter (wxEventFilter *filter) |
static void | RemoveFilter (wxEventFilter *filter) |
static void | AddFilter (wxEventFilter *filter) |
static void | RemoveFilter (wxEventFilter *filter) |
![]() | |
virtual bool | TryBefore (wxEvent &event) |
virtual bool | TryAfter (wxEvent &event) |
![]() | |
void | AllocExclusive () |
virtual wxObjectRefData * | CreateRefData () const |
virtual wxObjectRefData * | CloneRefData (const wxObjectRefData *data) const |
![]() | |
wxObjectRefData * | m_refData |
bool BotTurnController::executing_bot_turn = false |
Definition at line 83 of file controllers.hh.
Referenced by on_bot_thread_done_work(), on_mouse_up(), start_bot_thread(), and stop_bot_thread().
wxCriticalSection BotTurnController::bot_thread_cs |
Definition at line 84 of file controllers.hh.
Referenced by start_bot_thread(), stop_bot_thread(), and unregister_bot_thread().
BotThread* BotTurnController::bot_thread = nullptr |
Definition at line 85 of file controllers.hh.
Referenced by start_bot_thread(), stop_bot_thread(), and unregister_bot_thread().
|
inline |
Definition at line 68 of file controllers.hh.
|
virtual |
Definition at line 89 of file controllers.cc.
|
overridevirtual |
Reimplemented from GameController.
Definition at line 68 of file controllers.cc.
|
overridevirtual |
Reimplemented from GameController.
Definition at line 80 of file controllers.cc.
Referenced by on_mouse_up().
|
overridevirtual |
Reimplemented from GameController.
Definition at line 85 of file controllers.cc.
|
overridevirtual |
Reimplemented from GameController.
Definition at line 217 of file controllers.cc.
|
overridevirtual |
Reimplemented from GameController.
Definition at line 338 of file controllers.cc.
|
overridevirtual |
Reimplemented from GameController.
Definition at line 422 of file controllers.cc.
|
pure virtual |
Implemented in BotMovementController, and BotPlacementController.
Referenced by start_bot_thread().
void BotTurnController::on_bot_thread_done_work | ( | bool | cancelled | ) |
Definition at line 93 of file controllers.cc.
Referenced by BotPlacementThread::Entry(), and BotMovementThread::Entry().
void BotTurnController::start_bot_thread | ( | ) |
Definition at line 102 of file controllers.cc.
Referenced by on_activated().
void BotTurnController::stop_bot_thread | ( | ) |
Definition at line 115 of file controllers.cc.
Referenced by on_deactivated(), and ~BotTurnController().
void BotTurnController::unregister_bot_thread | ( | BotThread * | thread | ) |
Definition at line 134 of file controllers.cc.
Referenced by BotThread::OnExit().