penguins
1.0.0
|
Definition at line 31 of file bot_thread.hh.
Public Member Functions | |
BotThread (BotTurnController *controller) | |
virtual | ~BotThread () |
void | cancel () |
![]() | |
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) |
Data Fields | |
std::shared_ptr< BotThreadShared > | shared { new BotThreadShared() } |
Protected Member Functions | |
virtual void | OnExit () override |
bool | SetName (const wxString &WXUNUSED(name)) |
![]() | |
virtual ExitCode | Entry ()=0 |
void | Exit (ExitCode exitcode=0) |
bool | SetName (const wxString &name) |
Protected Attributes | |
BotTurnController * | controller |
std::unique_ptr< Game, decltype(&game_free)> | game { nullptr, game_free } |
std::shared_ptr< BotParameters > | bot_params { nullptr } |
std::unique_ptr< BotState, decltype(&bot_state_free)> | bot_state { nullptr, bot_state_free } |
BetterRng | rng |
volatile bool * | cancelled_ptr = nullptr |
Additional Inherited Members | |
![]() | |
typedef void * | ExitCode |
![]() | |
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 wxThread * | This () |
static void | Yield () |
![]() | |
static bool | SetNameForCurrent (const wxString &name) |
std::shared_ptr<BotThreadShared> BotThread::shared { new BotThreadShared() } |
Definition at line 37 of file bot_thread.hh.
Referenced by BotPlacementThread::Entry(), BotMovementThread::Entry(), OnExit(), and BotTurnController::stop_bot_thread().
|
protected |
Definition at line 49 of file bot_thread.hh.
Referenced by BotPlacementThread::Entry(), BotMovementThread::Entry(), and OnExit().
Definition at line 50 of file bot_thread.hh.
Referenced by BotThread().
|
protected |
Definition at line 51 of file bot_thread.hh.
Referenced by BotThread().
|
protected |
Definition at line 52 of file bot_thread.hh.
Referenced by BotThread(), BotPlacementThread::Entry(), and BotMovementThread::Entry().
|
protected |
Definition at line 53 of file bot_thread.hh.
|
protected |
Definition at line 54 of file bot_thread.hh.
Referenced by BotThread(), cancel(), and ~BotThread().
BotThread::BotThread | ( | BotTurnController * | controller | ) |
Definition at line 25 of file bot_thread.cc.
|
virtual |
Definition at line 32 of file bot_thread.cc.
void BotThread::cancel | ( | ) |
Definition at line 36 of file bot_thread.cc.
Referenced by BotTurnController::stop_bot_thread().
|
overrideprotectedvirtual |
Definition at line 40 of file bot_thread.cc.
|
inlineprotected |
Definition at line 44 of file bot_thread.hh.
Referenced by BotPlacementThread::Entry(), and BotMovementThread::Entry().