All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Attributes
osl::game_playing::CsaTime Class Reference

#include <csaTime.h>

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

List of all members.

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) [inline, explicit]

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.

Definition at line 33 of file csaTime.h.

References mymove, mytimeleft, and opmove.

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().

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().

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines