TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Public Attributes | List of all members
torchcraft::replayer::Frame Class Reference

#include <frame.h>

Inherits RefCounted.

Public Member Functions

 Frame ()
 
 Frame (Frame &&o)
 
 Frame (const Frame &o)
 
 Frame (const Frame *o)
 
Frameoperator= (Frame other) noexcept
 
void swap (Frame &a, Frame &b)
 
void clear ()
 
void filter (int32_t x, int32_t y, Frame &o) const
 
void combine (const Frame &next_frame)
 
bool getCreepAt (uint32_t x, uint32_t y)
 
flatbuffers::Offset< fbs::Frame > addToFlatBufferBuilder (flatbuffers::FlatBufferBuilder &builder) const
 
void readFromFlatBufferTable (const fbs::Frame &table)
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void incref ()
 
void decref ()
 

Public Attributes

std::unordered_map< int32_t, std::vector< Unit > > units
 
std::unordered_map< int32_t, std::vector< Action > > actions
 
std::unordered_map< int32_t, Resourcesresources
 
std::vector< Bulletbullets
 
std::vector< uint8_t > creep_map
 
uint32_t width
 
uint32_t height
 
int reward
 
int is_terminal
 

Constructor & Destructor Documentation

torchcraft::replayer::Frame::Frame ( )
torchcraft::replayer::Frame::Frame ( Frame &&  o)
torchcraft::replayer::Frame::Frame ( const Frame o)
torchcraft::replayer::Frame::Frame ( const Frame o)

Member Function Documentation

flatbuffers::Offset<fbs::Frame> torchcraft::replayer::Frame::addToFlatBufferBuilder ( flatbuffers::FlatBufferBuilder &  builder) const
void torchcraft::replayer::Frame::clear ( )
void torchcraft::replayer::Frame::combine ( const Frame next_frame)
void torchcraft::replayer::Frame::filter ( int32_t  x,
int32_t  y,
Frame o 
) const
bool torchcraft::replayer::Frame::getCreepAt ( uint32_t  x,
uint32_t  y 
)
Frame& torchcraft::replayer::Frame::operator= ( Frame  other)
noexcept
void torchcraft::replayer::Frame::readFromFlatBufferTable ( const fbs::Frame &  table)
void torchcraft::replayer::Frame::swap ( Frame a,
Frame b 
)

Member Data Documentation

std::unordered_map<int32_t, std::vector<Action> > torchcraft::replayer::Frame::actions
std::vector<Bullet> torchcraft::replayer::Frame::bullets
std::vector<uint8_t> torchcraft::replayer::Frame::creep_map
uint32_t torchcraft::replayer::Frame::height
int torchcraft::replayer::Frame::is_terminal
std::unordered_map<int32_t, Resources> torchcraft::replayer::Frame::resources
int torchcraft::replayer::Frame::reward
std::unordered_map<int32_t, std::vector<Unit> > torchcraft::replayer::Frame::units
uint32_t torchcraft::replayer::Frame::width

The documentation for this class was generated from the following file: