C++ Joueur Client
 All Classes Namespaces Functions Variables
cpp_client::spiders::Game Class Reference

There's an infestation of enemy spiders challenging your queen BroodMother spider! Protect her and attack the other BroodMother in this turn based, node based, game. More...

#include <game.hpp>

Inheritance diagram for cpp_client::spiders::Game:

Public Attributes

const Playercurrent_player
 The player whose turn it is currently. That player can send commands. Other players cannot. More...
 
const int & current_turn
 The current turn number, starting at 0 for the first player's turn. More...
 
const int & cut_speed
 The speed at which Cutters work to do cut Webs. More...
 
const double & eggs_scalar
 Constant used to calculate how many eggs BroodMothers get on their owner's turns. More...
 
const std::unordered_map
< std::string, Game_object > & 
game_objects
 A mapping of every game object's ID to the actual game object. Primarily used by the server and client to easily refer to the game objects via ID. More...
 
const int & initial_web_strength
 The starting strength for Webs. More...
 
const int & max_turns
 The maximum number of turns before the game will automatically end. More...
 
const int & max_web_strength
 The maximum strength a web can be strengthened to. More...
 
const int & movement_speed
 The speed at which Spiderlings move on Webs. More...
 
const std::vector< Nest > & nests
 Every Nest in the game. More...
 
const std::vector< Player > & players
 List of all the players in the game. More...
 
const std::string & session
 A unique identifier for the game instance that is being played. More...
 
const int & spit_speed
 The speed at which Spitters work to spit new Webs. More...
 
const int & time_added_per_turn
 The amount of time (in nano-seconds) added after each player performs a turn. More...
 
const int & weave_power
 How much web strength is added or removed from Webs when they are weaved. More...
 
const int & weave_speed
 The speed at which Weavers work to do strengthens and weakens on Webs. More...
 
const std::vector< Web > & webs
 Every Web in the game. More...
 

Detailed Description

There's an infestation of enemy spiders challenging your queen BroodMother spider! Protect her and attack the other BroodMother in this turn based, node based, game.

Member Data Documentation

const Player& cpp_client::spiders::Game::current_player

The player whose turn it is currently. That player can send commands. Other players cannot.

const int& cpp_client::spiders::Game::current_turn

The current turn number, starting at 0 for the first player's turn.

const int& cpp_client::spiders::Game::cut_speed

The speed at which Cutters work to do cut Webs.

const double& cpp_client::spiders::Game::eggs_scalar

Constant used to calculate how many eggs BroodMothers get on their owner's turns.

const std::unordered_map<std::string, Game_object>& cpp_client::spiders::Game::game_objects

A mapping of every game object's ID to the actual game object. Primarily used by the server and client to easily refer to the game objects via ID.

const int& cpp_client::spiders::Game::initial_web_strength

The starting strength for Webs.

const int& cpp_client::spiders::Game::max_turns

The maximum number of turns before the game will automatically end.

const int& cpp_client::spiders::Game::max_web_strength

The maximum strength a web can be strengthened to.

const int& cpp_client::spiders::Game::movement_speed

The speed at which Spiderlings move on Webs.

const std::vector<Nest>& cpp_client::spiders::Game::nests

Every Nest in the game.

const std::vector<Player>& cpp_client::spiders::Game::players

List of all the players in the game.

const std::string& cpp_client::spiders::Game::session

A unique identifier for the game instance that is being played.

const int& cpp_client::spiders::Game::spit_speed

The speed at which Spitters work to spit new Webs.

const int& cpp_client::spiders::Game::time_added_per_turn

The amount of time (in nano-seconds) added after each player performs a turn.

const int& cpp_client::spiders::Game::weave_power

How much web strength is added or removed from Webs when they are weaved.

const int& cpp_client::spiders::Game::weave_speed

The speed at which Weavers work to do strengthens and weakens on Webs.

const std::vector<Web>& cpp_client::spiders::Game::webs

Every Web in the game.


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