|
Login Languish
|
the CredetialsStage class is a class that represents the credentials stage in the game More...
#include <credentials_stage.h>


Public Member Functions | |
| CredentialsStage (GameManager *gameManager) | |
| constructor for CredentialsStage More... | |
| bool | validateStage () |
| validates the stage More... | |
| void | update (const rapidjson::Value &req) |
| updates the stage More... | |
| rapidjson::Value | getFieldStates (rapidjson::Document::AllocatorType &allocator) |
| creates the JSON object for the field states More... | |
Public Member Functions inherited from Stage | |
| std::vector< std::string > | getFieldErrors (std::string field) |
| gets the field errors for a given field More... | |
| std::string | getStageName () |
| gets the stage name More... | |
| rapidjson::Value | getStageState (rapidjson::Document::AllocatorType &allocator) |
| creates the JSON representation of the stage state More... | |
| virtual void | progressStage () |
| bool | isFieldDisabled (const std::string &field) |
Additional Inherited Members | |
Protected Member Functions inherited from Stage | |
| Stage (GameManager *gameManager) | |
| rapidjson::Value | createFieldState (const std::string &field, rapidjson::Value &fieldValue, rapidjson::Document::AllocatorType &allocator) |
| creates the JSON representation of the field states More... | |
Protected Attributes inherited from Stage | |
| GameManager * | gm |
| std::string | name = "" |
| std::map< std::string, std::vector< std::string > > | field_errors |
| const int | REQ_FIELD_INDEX = 1 |
| const int | REQ_VALUE_INDEX = 2 |
the CredetialsStage class is a class that represents the credentials stage in the game
contains concrete stage implementions for the credentials stage in the game
| CredentialsStage::CredentialsStage | ( | GameManager * | gameManager | ) |
constructor for CredentialsStage
| gameManager | the game manager object owning this stage |
|
virtual |
creates the JSON object for the field states
creates the rapidjson::Value for the aggregated field states
| allocator | The rapidjson::Document::AllocatorType object used to allocate memory for the JSON objects. |
Implements Stage.
|
virtual |
updates the stage
updates the stage using the given request parameters
| req | the request to update the stage with |
Implements Stage.
|
virtual |
validates the stage
validates the stage by checking if the requirements are met
Implements Stage.
1.8.13