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

#include <frame.h>

Public Member Functions

flatbuffers::Offset< fbs::FrameDiff > addToFlatBufferBuilder (flatbuffers::FlatBufferBuilder &builder) const
 
void readFromFlatBufferTable (const fbs::FrameDiff &fbsFrameDiff)
 

Public Attributes

std::vector< int32_t > pids
 
std::vector< std::vector< detail::UnitDiff > > units
 
std::unordered_map< int32_t, std::vector< Action > > actions
 
std::unordered_map< int32_t, Resourcesresources
 
std::vector< Bulletbullets
 
std::unordered_map< uint32_t, uint32_t > creep_map
 
int reward
 
int is_terminal
 

Member Function Documentation

flatbuffers::Offset<fbs::FrameDiff> torchcraft::replayer::FrameDiff::addToFlatBufferBuilder ( flatbuffers::FlatBufferBuilder &  builder) const
void torchcraft::replayer::FrameDiff::readFromFlatBufferTable ( const fbs::FrameDiff &  fbsFrameDiff)

Member Data Documentation

std::unordered_map<int32_t, std::vector<Action> > torchcraft::replayer::FrameDiff::actions
std::vector<Bullet> torchcraft::replayer::FrameDiff::bullets
std::unordered_map<uint32_t, uint32_t> torchcraft::replayer::FrameDiff::creep_map
int torchcraft::replayer::FrameDiff::is_terminal
std::vector<int32_t> torchcraft::replayer::FrameDiff::pids
std::unordered_map<int32_t, Resources> torchcraft::replayer::FrameDiff::resources
int torchcraft::replayer::FrameDiff::reward
std::vector<std::vector<detail::UnitDiff> > torchcraft::replayer::FrameDiff::units

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