#include <replayer.h>
Inherits RefCounted.
|
| | ~Replayer () |
| |
| Frame * | getFrame (size_t i) |
| |
| void | push (Frame *f) |
| |
| void | setKeyFrame (int32_t x) |
| |
| uint32_t | getKeyFrame () |
| |
| size_t | size () const |
| |
| int32_t | mapHeight () const |
| |
| int32_t | mapWidth () const |
| |
| void | setNumUnits () |
| |
| int32_t | getNumUnits (const int32_t &key) const |
| |
| void | setMapFromState (torchcraft::State const *state) |
| |
| void | setMap (int32_t h, int32_t w, std::vector< uint8_t > const &walkability, std::vector< uint8_t > const &ground_height, std::vector< uint8_t > const &buildability, std::vector< int > const &start_loc_x, std::vector< int > const &start_loc_y) |
| |
| void | setMap (int32_t h, int32_t w, uint8_t const *const walkability, uint8_t const *const ground_height, uint8_t const *const buildability, std::vector< int > const &start_loc_x, std::vector< int > const &start_loc_y) |
| |
| void | setRawMap (uint32_t h, uint32_t w, uint8_t const *d) |
| |
| const std::vector< uint8_t > & | getRawMap () |
| |
| std::pair< int32_t, int32_t > | getMap (std::vector< uint8_t > &walkability, std::vector< uint8_t > &ground_height, std::vector< uint8_t > &buildability, std::vector< int > &start_loc_x, std::vector< int > &start_loc_y) const |
| |
| void | load (const std::string &path) |
| |
| void | save (const std::string &path, bool compressed=false) |
| |
| | RefCounted () |
| |
| virtual | ~RefCounted () |
| |
| void | incref () |
| |
| void | decref () |
| |
| torchcraft::replayer::Replayer::~Replayer |
( |
| ) |
|
|
inline |
| Frame* torchcraft::replayer::Replayer::getFrame |
( |
size_t |
i | ) |
|
|
inline |
| uint32_t torchcraft::replayer::Replayer::getKeyFrame |
( |
| ) |
|
|
inline |
| std::pair<int32_t, int32_t> torchcraft::replayer::Replayer::getMap |
( |
std::vector< uint8_t > & |
walkability, |
|
|
std::vector< uint8_t > & |
ground_height, |
|
|
std::vector< uint8_t > & |
buildability, |
|
|
std::vector< int > & |
start_loc_x, |
|
|
std::vector< int > & |
start_loc_y |
|
) |
| const |
| int32_t torchcraft::replayer::Replayer::getNumUnits |
( |
const int32_t & |
key | ) |
const |
|
inline |
| const std::vector<uint8_t>& torchcraft::replayer::Replayer::getRawMap |
( |
| ) |
|
|
inline |
| void torchcraft::replayer::Replayer::load |
( |
const std::string & |
path | ) |
|
| int32_t torchcraft::replayer::Replayer::mapHeight |
( |
| ) |
const |
|
inline |
| int32_t torchcraft::replayer::Replayer::mapWidth |
( |
| ) |
const |
|
inline |
| void torchcraft::replayer::Replayer::push |
( |
Frame * |
f | ) |
|
|
inline |
| void torchcraft::replayer::Replayer::save |
( |
const std::string & |
path, |
|
|
bool |
compressed = false |
|
) |
| |
| void torchcraft::replayer::Replayer::setKeyFrame |
( |
int32_t |
x | ) |
|
|
inline |
| void torchcraft::replayer::Replayer::setMap |
( |
int32_t |
h, |
|
|
int32_t |
w, |
|
|
std::vector< uint8_t > const & |
walkability, |
|
|
std::vector< uint8_t > const & |
ground_height, |
|
|
std::vector< uint8_t > const & |
buildability, |
|
|
std::vector< int > const & |
start_loc_x, |
|
|
std::vector< int > const & |
start_loc_y |
|
) |
| |
| void torchcraft::replayer::Replayer::setMap |
( |
int32_t |
h, |
|
|
int32_t |
w, |
|
|
uint8_t const *const |
walkability, |
|
|
uint8_t const *const |
ground_height, |
|
|
uint8_t const *const |
buildability, |
|
|
std::vector< int > const & |
start_loc_x, |
|
|
std::vector< int > const & |
start_loc_y |
|
) |
| |
| void torchcraft::replayer::Replayer::setMapFromState |
( |
torchcraft::State const * |
state | ) |
|
| void torchcraft::replayer::Replayer::setNumUnits |
( |
| ) |
|
|
inline |
| void torchcraft::replayer::Replayer::setRawMap |
( |
uint32_t |
h, |
|
|
uint32_t |
w, |
|
|
uint8_t const * |
d |
|
) |
| |
|
inline |
| size_t torchcraft::replayer::Replayer::size |
( |
| ) |
const |
|
inline |
| std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const Replayer & |
o |
|
) |
| |
|
friend |
| std::istream& operator>> |
( |
std::istream & |
in, |
|
|
Replayer & |
o |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: