penguins  1.0.0
PlayerMovementController Class Reference
Inheritance diagram for PlayerMovementController:
[legend]

Detailed Description

Definition at line 55 of file controllers.hh.

Public Member Functions

 PlayerMovementController (GamePanel *panel)
 
virtual void update_tile_attributes () override
 
virtual void paint_overlay (wxDC &dc) override
 
virtual void update_status_bar () override
 
virtual void on_mouse_down (wxMouseEvent &event) override
 
virtual void on_mouse_move (wxMouseEvent &event) override
 
virtual void on_mouse_up (wxMouseEvent &event) override
 
- Public Member Functions inherited from PlayerTurnController
 PlayerTurnController (GamePanel *panel)
 
- Public Member Functions inherited from GameController
 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 on_mouse_enter_leave (wxMouseEvent &event)
 
- Public Member Functions inherited from 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
 
wxClientDataGetClientObject () const
 
void SetClientData (void *data)
 
void SetClientObject (wxClientData *data)
 
bool GetEvtHandlerEnabled () const
 
wxEvtHandlerGetNextHandler () const
 
wxEvtHandlerGetPreviousHandler () 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
 
wxClientDataGetClientObject () const
 
void SetClientData (void *data)
 
void SetClientObject (wxClientData *data)
 
bool GetEvtHandlerEnabled () const
 
wxEvtHandlerGetNextHandler () const
 
wxEvtHandlerGetPreviousHandler () const
 
void SetEvtHandlerEnabled (bool enabled)
 
virtual void SetNextHandler (wxEvtHandler *handler)
 
virtual void SetPreviousHandler (wxEvtHandler *handler)
 
void Unlink ()
 
bool IsUnlinked () const
 
- Public Member Functions inherited from wxObject
 wxObject ()
 
 wxObject (const wxObject &other)
 
virtual ~wxObject ()
 
virtual wxClassInfoGetClassInfo () const
 
wxObjectRefDataGetRefData () 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)
 

Additional Inherited Members

- Static Public Member Functions inherited from wxEvtHandler
static void AddFilter (wxEventFilter *filter)
 
static void RemoveFilter (wxEventFilter *filter)
 
static void AddFilter (wxEventFilter *filter)
 
static void RemoveFilter (wxEventFilter *filter)
 
- Data Fields inherited from GameController
GamePanelpanel
 
CanvasPanelcanvas
 
Gamegame
 
std::shared_ptr< BotParameters > & bot_params
 
- Protected Member Functions inherited from wxEvtHandler
virtual bool TryBefore (wxEvent &event)
 
virtual bool TryAfter (wxEvent &event)
 
- Protected Member Functions inherited from wxObject
void AllocExclusive ()
 
virtual wxObjectRefDataCreateRefData () const
 
virtual wxObjectRefDataCloneRefData (const wxObjectRefData *data) const
 
- Protected Attributes inherited from wxObject
wxObjectRefDatam_refData
 

Constructor & Destructor Documentation

◆ PlayerMovementController()

PlayerMovementController::PlayerMovementController ( GamePanel panel)
inline

Definition at line 57 of file controllers.hh.

Member Function Documentation

◆ update_tile_attributes()

void PlayerMovementController::update_tile_attributes ( )
overridevirtual

Reimplemented from GameController.

Definition at line 181 of file controllers.cc.

◆ paint_overlay()

void PlayerMovementController::paint_overlay ( wxDC dc)
overridevirtual

Reimplemented from PlayerTurnController.

Definition at line 230 of file controllers.cc.

◆ update_status_bar()

void PlayerMovementController::update_status_bar ( )
overridevirtual

Reimplemented from GameController.

Definition at line 297 of file controllers.cc.

Referenced by on_mouse_down(), on_mouse_move(), and on_mouse_up().

◆ on_mouse_down()

void PlayerMovementController::on_mouse_down ( wxMouseEvent event)
overridevirtual

Reimplemented from GameController.

Definition at line 355 of file controllers.cc.

◆ on_mouse_move()

void PlayerMovementController::on_mouse_move ( wxMouseEvent event)
overridevirtual

Reimplemented from GameController.

Definition at line 368 of file controllers.cc.

◆ on_mouse_up()

void PlayerMovementController::on_mouse_up ( wxMouseEvent event)
overridevirtual

Reimplemented from GameController.

Definition at line 395 of file controllers.cc.


The documentation for this class was generated from the following files: