penguins
1.0.0
|
Definition at line 15 of file controllers.hh.
Public Member Functions | |
GameController (GamePanel *panel) | |
virtual | ~GameController () |
void | update_game_state_and_indirectly_delete_this () |
virtual void | on_activated () |
virtual void | configure_bot_turn_ui () |
virtual void | configure_log_viewer_ui () |
virtual void | on_deactivated (GameController *next_controller) |
virtual void | update_tile_attributes () |
virtual void | paint_overlay (wxDC &dc) |
virtual void | update_status_bar () |
virtual void | on_mouse_enter_leave (wxMouseEvent &event) |
virtual void | on_mouse_down (wxMouseEvent &event) |
virtual void | on_mouse_move (wxMouseEvent &event) |
virtual void | on_mouse_up (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 | |
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 |
GamePanel* GameController::panel |
Definition at line 34 of file controllers.hh.
Referenced by configure_bot_turn_ui(), BotTurnController::configure_bot_turn_ui(), configure_log_viewer_ui(), LogEntryViewerController::configure_log_viewer_ui(), on_activated(), GameEndedController::on_activated(), BotTurnController::on_bot_thread_done_work(), update_game_state_and_indirectly_delete_this(), update_status_bar(), PlayerPlacementController::update_status_bar(), PlayerMovementController::update_status_bar(), BotTurnController::update_status_bar(), GameEndedController::update_status_bar(), and LogEntryViewerController::update_status_bar().
CanvasPanel* GameController::canvas |
Definition at line 35 of file controllers.hh.
Referenced by on_activated(), PlayerMovementController::on_mouse_down(), on_mouse_enter_leave(), PlayerPlacementController::on_mouse_move(), PlayerMovementController::on_mouse_move(), PlayerPlacementController::on_mouse_up(), PlayerMovementController::on_mouse_up(), PlayerTurnController::paint_overlay(), PlayerMovementController::paint_overlay(), LogEntryViewerController::paint_overlay(), PlayerPlacementController::update_status_bar(), PlayerMovementController::update_status_bar(), PlayerPlacementController::update_tile_attributes(), and PlayerMovementController::update_tile_attributes().
Game* GameController::game |
Definition at line 36 of file controllers.hh.
Referenced by BotThread::BotThread(), BotPlacementThread::Entry(), BotMovementThread::Entry(), LogEntryViewerController::on_activated(), PlayerMovementController::on_mouse_move(), PlayerPlacementController::on_mouse_up(), PlayerMovementController::on_mouse_up(), PlayerTurnController::paint_overlay(), PlayerMovementController::paint_overlay(), LogEntryViewerController::paint_overlay(), PlayerPlacementController::update_status_bar(), PlayerMovementController::update_status_bar(), update_tile_attributes(), PlayerPlacementController::update_tile_attributes(), PlayerMovementController::update_tile_attributes(), and BotTurnController::update_tile_attributes().
std::shared_ptr<BotParameters>& GameController::bot_params |
Definition at line 37 of file controllers.hh.
GameController::GameController | ( | GamePanel * | panel | ) |
Definition at line 19 of file controllers.cc.
|
inlinevirtual |
Definition at line 18 of file controllers.hh.
void GameController::update_game_state_and_indirectly_delete_this | ( | ) |
Definition at line 22 of file controllers.cc.
Referenced by BotTurnController::on_bot_thread_done_work(), PlayerPlacementController::on_mouse_up(), and PlayerMovementController::on_mouse_up().
|
virtual |
Reimplemented in LogEntryViewerController, GameEndedController, and BotTurnController.
Definition at line 26 of file controllers.cc.
Referenced by BotTurnController::on_activated(), GameEndedController::on_activated(), LogEntryViewerController::on_activated(), and GamePanel::set_controller().
|
virtual |
Reimplemented in BotTurnController.
Definition at line 34 of file controllers.cc.
Referenced by on_activated().
|
virtual |
Reimplemented in LogEntryViewerController.
Definition at line 38 of file controllers.cc.
Referenced by on_activated().
|
virtual |
Reimplemented in BotTurnController.
Definition at line 42 of file controllers.cc.
Referenced by GamePanel::set_controller().
|
virtual |
Reimplemented in BotTurnController, PlayerMovementController, and PlayerPlacementController.
Definition at line 162 of file controllers.cc.
Referenced by CanvasPanel::on_paint().
|
virtual |
Reimplemented in LogEntryViewerController, PlayerMovementController, and PlayerTurnController.
Definition at line 43 of file controllers.cc.
Referenced by CanvasPanel::on_paint().
|
virtual |
Reimplemented in LogEntryViewerController, GameEndedController, BotTurnController, PlayerMovementController, and PlayerPlacementController.
Definition at line 48 of file controllers.cc.
Referenced by on_activated(), and on_mouse_enter_leave().
|
virtual |
Definition at line 52 of file controllers.cc.
Referenced by CanvasPanel::on_any_mouse_event().
|
virtual |
Reimplemented in PlayerMovementController.
Definition at line 44 of file controllers.cc.
Referenced by CanvasPanel::on_any_mouse_event().
|
virtual |
Reimplemented in PlayerMovementController, and PlayerPlacementController.
Definition at line 45 of file controllers.cc.
Referenced by CanvasPanel::on_any_mouse_event().
|
virtual |
Reimplemented in BotTurnController, PlayerMovementController, and PlayerPlacementController.
Definition at line 46 of file controllers.cc.
Referenced by CanvasPanel::on_any_mouse_event().