levelz-cpp 0.2.0
Loading...
Searching...
No Matches
LevelZ::Level3D Struct Reference

#include <level.hpp>

Inheritance diagram for LevelZ::Level3D:
LevelZ::Level

Public Member Functions

 Level3D ()
 
 Level3D (const std::unordered_map< std::string, std::string > &headers)
 
 Level3D (const std::unordered_map< std::string, std::string > &headers, const std::vector< LevelObject > &blocks)
 
 Level3D (const Level &level)
 
- Public Member Functions inherited from LevelZ::Level
std::unordered_map< std::string, std::string > headers () const
 
std::vector< LevelObjectblocks () const
 
bool operator== (const Level &other) const
 
bool operator!= (const Level &other) const
 

Public Attributes

Coordinate3D spawn = Coordinate3D(0, 0, 0)
 

Additional Inherited Members

- Protected Member Functions inherited from LevelZ::Level
- Protected Attributes inherited from LevelZ::Level
std::unordered_map< std::string, std::string > _headers = {}
 
std::vector< LevelZ::LevelObject_blocks = {}
 

Detailed Description

Represents a 3D Level.

Constructor & Destructor Documentation

◆ Level3D() [1/4]

LevelZ::Level3D::Level3D ( )
inline

Constructs a new, empty 3D Level.

◆ Level3D() [2/4]

LevelZ::Level3D::Level3D ( const std::unordered_map< std::string, std::string > & headers)
inlineexplicit

Constructs a new 3D Level with the specified headers.

Parameters
headersThe headers of the level.

◆ Level3D() [3/4]

LevelZ::Level3D::Level3D ( const std::unordered_map< std::string, std::string > & headers,
const std::vector< LevelObject > & blocks )
inline

Constructs a new 3D Level with the specified headers and blocks.

Parameters
headersThe headers of the level.
blocksThe blocks of the level.

◆ Level3D() [4/4]

LevelZ::Level3D::Level3D ( const Level & level)
inlineexplicit

Clones a 3D Level from an Abstract Level.

Parameters
levelThe level to clone.

Member Data Documentation

◆ spawn

Coordinate3D LevelZ::Level3D::spawn = Coordinate3D(0, 0, 0)

The spawnpoint of the level.


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