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

Detailed Description

Definition at line 65 of file bot_thread.hh.

Public Member Functions

 BotMovementThread (BotTurnController *controller)
 
- Public Member Functions inherited from BotThread
 BotThread (BotTurnController *controller)
 
virtual ~BotThread ()
 
void cancel ()
 
- Public Member Functions inherited from wxThread
 wxThread (wxThreadKind kind=wxTHREAD_DETACHED)
 
virtual ~wxThread ()
 
wxThreadError Create (unsigned int stackSize=0)
 
wxThreadError Delete (ExitCode *rc=NULL, wxThreadWait waitMode=wxTHREAD_WAIT_DEFAULT)
 
wxThreadIdType GetId () const
 
WXHANDLE MSWGetHandle () const
 
wxThreadKind GetKind () const
 
unsigned int GetPriority () const
 
bool IsAlive () const
 
bool IsDetached () const
 
bool IsPaused () const
 
bool IsRunning () const
 
wxThreadError Kill ()
 
wxThreadError Pause ()
 
wxThreadError Resume ()
 
wxThreadError Run ()
 
void SetPriority (unsigned int priority)
 
virtual bool TestDestroy ()
 
ExitCode Wait (wxThreadWait flags=wxTHREAD_WAIT_DEFAULT)
 

Protected Member Functions

virtual ExitCode Entry () override
 
- Protected Member Functions inherited from BotThread
virtual void OnExit () override
 
bool SetName (const wxString &WXUNUSED(name))
 
- Protected Member Functions inherited from wxThread
void Exit (ExitCode exitcode=0)
 
bool SetName (const wxString &name)
 

Additional Inherited Members

- Public Types inherited from wxThread
typedef void * ExitCode
 
- Static Public Member Functions inherited from wxThread
static int GetCPUCount ()
 
static wxThreadIdType GetCurrentId ()
 
static wxThreadIdType GetMainId ()
 
static bool IsMain ()
 
static bool SetConcurrency (size_t level)
 
static void Sleep (unsigned long milliseconds)
 
static wxThreadThis ()
 
static void Yield ()
 
- Data Fields inherited from BotThread
std::shared_ptr< BotThreadSharedshared { new BotThreadShared() }
 
- Static Protected Member Functions inherited from wxThread
static bool SetNameForCurrent (const wxString &name)
 
- Protected Attributes inherited from BotThread
BotTurnControllercontroller
 
std::unique_ptr< Game, decltype(&game_free)> game { nullptr, game_free }
 
std::shared_ptr< BotParametersbot_params { nullptr }
 
std::unique_ptr< BotState, decltype(&bot_state_free)> bot_state { nullptr, bot_state_free }
 
BetterRng rng
 
volatile bool * cancelled_ptr = nullptr
 

Constructor & Destructor Documentation

◆ BotMovementThread()

BotMovementThread::BotMovementThread ( BotTurnController controller)
inline

Definition at line 67 of file bot_thread.hh.

Member Function Documentation

◆ Entry()

wxThread::ExitCode BotMovementThread::Entry ( )
overrideprotectedvirtual

Implements wxThread.

Definition at line 63 of file bot_thread.cc.


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