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

Detailed Description

Definition at line 88 of file controllers.hh.

Public Member Functions

 BotPlacementController (GamePanel *panel)
 
virtual BotThreadcreate_bot_thread () override
 
- Public Member Functions inherited from BotTurnController
 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
 
void on_bot_thread_done_work (bool cancelled)
 
void start_bot_thread ()
 
void stop_bot_thread ()
 
void unregister_bot_thread (BotThread *thread)
 
- Public Member Functions inherited from GameController
 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)
 
- 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 BotTurnController
bool executing_bot_turn = false
 
wxCriticalSection bot_thread_cs
 
BotThreadbot_thread = nullptr
 
- 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

◆ BotPlacementController()

BotPlacementController::BotPlacementController ( GamePanel panel)
inline

Definition at line 90 of file controllers.hh.

Member Function Documentation

◆ create_bot_thread()

BotThread * BotPlacementController::create_bot_thread ( )
overridevirtual

Implements BotTurnController.

Definition at line 72 of file controllers.cc.


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