All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
osl::game_playing::CsaTime Class Reference

#include <csaTime.h>

Collaboration diagram for osl::game_playing::CsaTime:
Collaboration graph
[legend]

Public Member Functions

 CsaTime (long timeleft)
 
 CsaTime (long myTimeLeft, long opTimeLeft)
 
long makeOpMove ()
 
long makeMyMove ()
 
long getMyLeft () const
 
long getOpLeft () const
 
const std::string getStart () const
 

Static Public Member Functions

static const std::string curruntTime ()
 

Private Attributes

MilliSeconds start
 
MilliSeconds opmove
 
MilliSeconds mymove
 
long mytimeleft
 
long optimeleft
 

Detailed Description

Definition at line 11 of file csaTime.h.

Constructor & Destructor Documentation

osl::game_playing::CsaTime::CsaTime ( long  timeleft)
inlineexplicit

Definition at line 16 of file csaTime.h.

References mymove, opmove, and start.

osl::game_playing::CsaTime::CsaTime ( long  myTimeLeft,
long  opTimeLeft 
)
inline

Definition at line 21 of file csaTime.h.

References mymove, opmove, and start.

Member Function Documentation

const std::string osl::game_playing::CsaTime::curruntTime ( )
static

Definition at line 20 of file csaTime.cc.

References result.

long osl::game_playing::CsaTime::getMyLeft ( ) const
inline

Definition at line 40 of file csaTime.h.

References mytimeleft.

long osl::game_playing::CsaTime::getOpLeft ( ) const
inline

Definition at line 41 of file csaTime.h.

References optimeleft.

const std::string osl::game_playing::CsaTime::getStart ( ) const

Definition at line 7 of file csaTime.cc.

References result, and start.

long osl::game_playing::CsaTime::makeMyMove ( )
inline

Definition at line 33 of file csaTime.h.

References mymove, mytimeleft, and opmove.

long osl::game_playing::CsaTime::makeOpMove ( )
inline

Definition at line 26 of file csaTime.h.

References mymove, opmove, and optimeleft.

Member Data Documentation

MilliSeconds osl::game_playing::CsaTime::mymove
private

Definition at line 13 of file csaTime.h.

Referenced by CsaTime(), makeMyMove(), and makeOpMove().

long osl::game_playing::CsaTime::mytimeleft
private

Definition at line 14 of file csaTime.h.

Referenced by getMyLeft(), and makeMyMove().

MilliSeconds osl::game_playing::CsaTime::opmove
private

Definition at line 13 of file csaTime.h.

Referenced by CsaTime(), makeMyMove(), and makeOpMove().

long osl::game_playing::CsaTime::optimeleft
private

Definition at line 14 of file csaTime.h.

Referenced by getOpLeft(), and makeOpMove().

MilliSeconds osl::game_playing::CsaTime::start
private

Definition at line 13 of file csaTime.h.

Referenced by CsaTime(), and getStart().


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