クラス rcsc::SeeState

see timing manager for see synchronization [詳細]

#include <see_state.h>

すべてのメンバ一覧

Public 型

enum  SynchType {
  SYNCH_NO, SYNCH_EVERY, SYNCH_NARROW, SYNCH_NORMAL,
  SYNCH_WIDE, SYNCH_SYNC
}
 see synchronization type [詳細]
enum  Timing {
  TIME_0_00 = 0, TIME_37_5 = 375, TIME_75_0 = 750, TIME_12_5 = 125,
  TIME_50_0 = 500, TIME_87_5 = 875, TIME_22_5 = 225, TIME_62_5 = 625,
  TIME_SYNC = 999, TIME_NOSYNCH = 1000
}
 see arrival timing type Id [詳細]

Public メソッド

 SeeState ()
 init member variables
void setSynchSeeMode ()
 set a synchronous see timer mode.
Timing lastTiming () const
 get last see timing
void updateBySenseBody (const GameTime &sense_time, const ViewWidth &vw, const ViewQuality &vq)
 update time & view mode
void updateBySee (const GameTime &see_time, const ViewWidth &vw, const ViewQuality &vq)
 update see counter
void setNewCycle (const GameTime &new_time)
 update game time
void setLastSeeTiming (const Timing last_timing)
 set new timing
bool isSynch () const
 check if see synchronization is keeped or not
bool isSynchedSeeCountNormalMode () const
 check if current status is synchronization chance
bool isSynchedSeeCountSynchMode () const
 check if current status is synchronization chance
bool canChangeViewTo (const ViewWidth &next_width, const GameTime &current) const
 check if player can change view width to 'next_width' with see synchronization
int cyclesTillNextSee () const
 get cycles to get next see info
void setViewMode (const ViewWidth &new_width, const ViewQuality &new_quality)
 set new view mode, and update estimated next see arrival timing and estimated cycles till next see

Static Public メソッド

static bool synch_see_mode ()
 static method. get the status of synch_see


説明

see timing manager for see synchronization


列挙型

enum rcsc::SeeState::SynchType

see synchronization type

列挙型の値:
SYNCH_EVERY  no sync.
SYNCH_NARROW  Normal - Narrow - Narrow
SYNCH_NORMAL  only Narrow
SYNCH_WIDE  only Normal
SYNCH_SYNC  only Wide rcssserver sync view mode

enum rcsc::SeeState::Timing

see arrival timing type Id

列挙型の値:
TIME_37_5  synch0 0ms from sense_body
TIME_87_5  synch1 50ms from sense_body
TIME_62_5  synch2 about 30ms from sense_body


関数

static bool rcsc::SeeState::synch_see_mode (  )  [inline, static]

static method. get the status of synch_see

戻り値:
the status of synch_see

Timing rcsc::SeeState::lastTiming (  )  const [inline]

get last see timing

戻り値:
timing type Id

void rcsc::SeeState::updateBySenseBody ( const GameTime sense_time,
const ViewWidth vw,
const ViewQuality vq 
)

update time & view mode

引数:
sense_time game time when sense_body message arrived
vw view width contained by sense_body message
vq view quality contained by sense_body message
This methos is called when see arrived.

void rcsc::SeeState::updateBySee ( const GameTime see_time,
const ViewWidth vw,
const ViewQuality vq 
)

update see counter

引数:
see_time game time when see message arrived
vw view width that received see message
vq view quality that received see message
This methos is called when see arrived.

void rcsc::SeeState::setNewCycle ( const GameTime new_time  ) 

update game time

This method is called when sense_body arrived or new time is detected. All counters are rotated.

void rcsc::SeeState::setLastSeeTiming ( const Timing  last_timing  ) 

set new timing

This method is called only when synchronization is detected

bool rcsc::SeeState::isSynch (  )  const

check if see synchronization is keeped or not

戻り値:
true if keeped synchronization

bool rcsc::SeeState::isSynchedSeeCountNormalMode (  )  const

check if current status is synchronization chance

戻り値:
true if synchronization chance
This method is used for normal server mode. assumed that this method is used while (narrow low) mode This method must be called just after (see) message arrival.

=== NOTE === This method depends on rcssserver's configuration

bool rcsc::SeeState::isSynchedSeeCountSynchMode (  )  const

check if current status is synchronization chance

戻り値:
true if synchronization chance
This method is used for server synch_mode assume that this method is used while (narrow low) mode

=== NOTE === This method depends on rcssserver's configuration

bool rcsc::SeeState::canChangeViewTo ( const ViewWidth next_width,
const GameTime current 
) const

check if player can change view width to 'next_width' with see synchronization

引数:
next_width required new view width
current current game time
戻り値:
true if player can change to next_width

int rcsc::SeeState::cyclesTillNextSee (  )  const

get cycles to get next see info

戻り値:
cycles to get next see info

void rcsc::SeeState::setViewMode ( const ViewWidth new_width,
const ViewQuality new_quality 
)

set new view mode, and update estimated next see arrival timing and estimated cycles till next see

引数:
new_width new view width
new_quality new view quality
This method MUST be called just after change_view command sent and only when current cycle see message is received


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:27 2008に生成されました。  doxygen 1.5.0