#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 ¤t) 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 |
static bool rcsc::SeeState::synch_see_mode | ( | ) | [inline, static] |
static method. get the status of synch_see
Timing rcsc::SeeState::lastTiming | ( | ) | const [inline] |
get last see timing
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 |
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 |
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
bool rcsc::SeeState::isSynchedSeeCountNormalMode | ( | ) | const |
check if current status is synchronization chance
=== NOTE === This method depends on rcssserver's configuration
bool rcsc::SeeState::isSynchedSeeCountSynchMode | ( | ) | const |
check if current status is synchronization chance
=== 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 |
int rcsc::SeeState::cyclesTillNextSee | ( | ) | const |
get 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 |