#include <kick_table.h>
Public 型 | |
enum | { MAX_DEPTH = 2, ANGLE_DIVS_LOW = 8, ANGLE_DIVS_HIGH = 12 } |
Public メソッド | |
KickTable () | |
constructor | |
void | update (const WorldModel &world) |
generate kick point vector | |
const KickPointPtrCont * | getKickPoints (const int depth) const |
When player updates his world model, he also update his kick status. First, all possible subtargets are created. Second, all subtargets are sorted by opponet players' minimal reach cycle. This value is used as the criteria of kick action chain.
void rcsc::KickTable::update | ( | const WorldModel & | world | ) |
generate kick point vector
self_pos | self global coordinates as the base point | |
self_body | self body angle to calculate the kick rate |
sort kick points by interfere cycles
const KickPointPtrCont* rcsc::KickTable::getKickPoints | ( | const int | depth | ) | const [inline] |
accessor to the data container. NOTE: no throw for excepton. check the range before this method called.
depth | kick state depth. this must be within [0, MAX_DEPT-1] |