|
Bomberman
|
#include <ParserYaml.hpp>
Classes | |
| struct | PlayerInfos |
Static Public Member Functions | |
| static Node | parseFile (const std::string &path) |
| static void | save (std::shared_ptr< WAL::Scene > scene) |
| save yaml More... | |
| static void | load (std::shared_ptr< WAL::Scene > scene) |
| load yaml More... | |
Static Public Attributes | |
| static std::vector< PlayerInfos > | playersInfos = {} |
| static const std::string | fileName = "save" |
| save file name More... | |
Static Private Member Functions | |
| static void | _saveBlock (const WAL::Entity &entity) |
| save block in _block More... | |
| static void | _saveBonus (const WAL::Entity &entity) |
| save bonus in _bonus More... | |
| static void | _savePlayer (const WAL::Entity &entity) |
| save player in _player More... | |
| static std::string | _getBlockType (const std::string &blockName) |
| transform block name More... | |
| static std::string | _getBonusType (const std::string &bonusName) |
| transform bonus name More... | |
| static int | _parseMaxBomb (const std::string &str) |
| return max bomb parsed More... | |
| static int | _parseExplosionRadius (const std::string &line) |
| return explosion radius parsed More... | |
| static float | _parseSpeed (const std::string &line) |
| return speed parsed More... | |
| static Vector3f | _parsePosition (const std::string &line) |
| return vector3f of position parsed More... | |
| static MapGenerator::BlockType | _parseBlockType (const std::string &blockType) |
| return BlockType of type parsed More... | |
| static Bonus::BonusType | _parseBonusType (const std::string &bonusType) |
| return bonusType of type parsed More... | |
| static void | _loadPlayer (std::shared_ptr< WAL::Scene > scene, Node &node, int countPlayer) |
| add player into scene More... | |
| static void | _loadBlock (std::shared_ptr< WAL::Scene > scene, Node child, MapGenerator::MapBlock &map) |
| add block into scene More... | |
| static void | _loadBonus (std::shared_ptr< WAL::Scene > scene, Node &node) |
| add bonus into scene More... | |
| static void | _loadPlayers (std::shared_ptr< WAL::Scene > scene, Node &node) |
| load all players into scene More... | |
| static void | _loadBlocks (std::shared_ptr< WAL::Scene > scene, Node &node) |
| load all blocks into scene More... | |
| static void | _loadBonuses (std::shared_ptr< WAL::Scene > scene, Node &node) |
| load all blocks into scene More... | |
| static std::string | parseHeader (const std::string &line) |
| static std::pair< std::string,std::string > | parseProperty (const std::string &line) |
| static bool | isHeader (const std::string &line) |
| static Node | parseNode (std::ifstream &file, const std::string &nodeName, int indentLevel=0) |
| static float | getIndent (const std::string &line) |
Static Private Attributes | |
| static std::stringstream | _block |
| The number of chars for endl. More... | |
| static std::stringstream | _bonus |
| file bonus of the parser More... | |
| static std::stringstream | _player |
| file player of the parser More... | |
| static constexpr const char * | indent = " " |
|
staticprivate |
transform block name
| blockName | block name |
|
staticprivate |
transform bonus name
| blockName | bonus name |
|
staticprivate |
add block into scene
| scene | Scene to update |
| lines | Lines of the file |
| index | index of the vector |
| map | map of all the block |
|
staticprivate |
load all blocks into scene
| scene | Scene to update |
|
staticprivate |
add bonus into scene
| scene | Scene to update |
| lines | Lines of the file |
| index | index of the vector |
|
staticprivate |
load all blocks into scene
| scene | Scene to update |
|
staticprivate |
add player into scene
| scene | Scene to update |
| lines | Lines of the file |
| index | index of the vector |
|
staticprivate |
load all players into scene
| scene | Scene to update |
|
staticprivate |
return BlockType of type parsed
| blockType | to parse |
|
staticprivate |
return bonusType of type parsed
| bonusType | to parse |
|
staticprivate |
return explosion radius parsed
| line | to parse |
|
staticprivate |
return max bomb parsed
| str | to parse |
|
staticprivate |
return vector3f of position parsed
| line | to parse |
|
staticprivate |
return speed parsed
| line | to parse |
|
staticprivate |
save block in _block
| entity | entity to save |
|
staticprivate |
save bonus in _bonus
| entity | entity to save |
|
staticprivate |
save player in _player
| entity | entity to save |
|
staticprivate |
|
staticprivate |
|
static |
load yaml
| scene | Scene to update |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
save yaml
| scene | Scene to update |
|
staticprivate |
The number of chars for endl.
file block of the parser
|
staticprivate |
file bonus of the parser
|
staticprivate |
file player of the parser
|
static |
save file name
|
staticconstexprprivate |
|
static |
1.8.17