GameState#
GameState is the main object returned by DoomGame: getState method.
The declarations of all the enums can be found in the include/ViZDoomTypes.h header file.
GameState#
(C++ type / Python type name)
unsigned int / intnumberunsigned int / intticstd::vector<float> / numpy.double[]gameVariables / game_variablesImageBufferPtr / numpy.uint8[]screenBuffer / screen_bufferImageBufferPtr / numpy.uint8[]depthBuffer / depth_bufferImageBufferPtr / numpy.uint8[]labelsBuffer / labels_bufferImageBufferPtr / numpy.uint8[]automapBuffer / automap_bufferAudioBufferPtr / numpy.int16[]audioBuffer / audio_bufferstd::vector<Label> / listlabels
number - number of the state in the episode. tic - ingame time, 1 tic is 1/35 of second in the game world. Added in 1.1.1.
See also:
Types used only in C++#
Buffer (std::vector<uint8_t>)ImageBufferPtr (std::shared_ptr<Buffer>)GameStatePtr (std::shared_ptr<GameState>)
Structures#
Label#
(C++ type / Python type name)
unsigned int / intobjectId / object_idstd::string / strobjectName / object_nameuint8_t / intvalueunsigned int / intxunsigned int / intyunsigned int / intwidthunsigned int / intheightdouble / floatobjectPositionX / object_position_xdouble / floatobjectPositionY / object_position_ydouble / floatobjectPositionZ / object_position_zdouble / floatobjectAngle / object_angledouble / floatobjectPitch / object_pitchdouble / floatobjectRoll / object_rolldouble / floatobjectVelocityX / object_velocity_xdouble / floatobjectVelocityY / object_velocity_ydouble / floatobjectVelocityZ / object_velocity_z
Description of the object in the labels buffer.
objectId / object_id - unique object ID, if both Labels and Objects information is enabled, this will be the same as id in corresponding Object.
objectName / object_name - ingame object name, many different objects can have the same name (e.g. Medikit, Clip, Zombie).
value - value that represents this particular object in labelsBuffer.
x, y, width, height - describes bounding box of this particular object in labelsBuffer. Added in 1.1.5.
See also:
Object#
(C++ type / Python type name)
unsigned int / intidstd::string / strnamedouble / floatpositionX / position_xdouble / floatpositionY / position_ydouble / floatpositionZ / position_zdouble / floatangledouble / floatpitchdouble / floatrolldouble / floatvelocityX / velocity_xdouble / floatvelocityY / velocity_ydouble / floatvelocityZ / velocity_z
Description of the object present in the game world.
id - unique object ID.
name - ingame object name, many different objects can have the same name (e.g. Medikit, Clip, Zombie).
Added in 1.1.8.
See also:
Line#
(C++ type / Python type name)
double / floatx1double / floaty1double / floatx2double / floaty2bool / boolisBlocking / is_blocking
Description of the line that is part of a sector definition.
x1, y1 - position of the line’s first vertex.
x2, y2 - position of the line’s second vertex.
isBlocking / is_blocking - is true, if line is a wall that can’t be passed.
Added in 1.1.8.
See also:
Sector#
(C++ type / Python type name)
double / floatfloorHeight / floor_heightdouble / floatceilingHeight / ceiling_heightstd::vector<Label> / listlines
Description of the sector, part of the map with the same floor and ceiling height.
floorHeight / floor_height - height of the sector’s floor.
ceilingHeight / ceiling_height - height of the sector’s ceiling.
lines - contains list of line segments, that forms sector.
Added in 1.1.8.
See also:
ServerState#
(C++ type / Python type name)
unsigned int / intticunsigned int / intplayerCount / player_countbool[] / listplayersInGame / players_in_gameint[] / listplayersFrags / players_fragsstd::string[] / listplayersNames / players_namesbool[] / listplayersAfk / players_afkunsigned int[] / list**playersLastActionTic / players_last_action_tic **unsigned int[] / list**playersLastKillTic / players_last_kill_tic **
ServerState is the main object returned by DoomGame: getServerState method, and it purpose is to get more information about the state of the multi-player game.
Added in 1.1.6.
See also: