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

Collect of the most of the rarest mineral orbiting around the sun and out-compete your competitor. More...

#include <game.hpp>

Inheritance diagram for cpp_client::stardash::Game:

Public Attributes

const std::vector< Body > & bodies
 All the celestial bodies in the game. The first two are planets and the third is the sun. The fourth is the VP asteroid. Everything else is normal asteroids. More...
 
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 & dash_cost
 The cost of dashing. More...
 
const int & dash_distance
 The distance traveled each turn by dashing. 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 double & genarium_value
 The value of every unit of genarium. More...
 
const std::vector< Job > & jobs
 A list of all jobs. The first element is corvette, second is missileboat, third is martyr, fourth is transport, and fifth is miner. More...
 
const double & legendarium_value
 The value of every unit of legendarium. More...
 
const int & max_asteroid
 The highest amount of material, that can be in a asteroid. More...
 
const int & max_turns
 The maximum number of turns before the game will automatically end. More...
 
const int & min_asteroid
 The smallest amount of material, that can be in a asteroid. More...
 
const int & mining_speed
 The rate at which miners grab minerals from asteroids. More...
 
const double & mythicite_amount
 The amount of mythicite that spawns at the start of the game. More...
 
const int & orbits_protected
 The number of orbit updates you cannot mine the mithicite asteroid. More...
 
const double & ore_rarity_genarium
 The rarity modifier of the most common ore. This controls how much spawns. More...
 
const double & ore_rarity_legendarium
 The rarity modifier of the rarest ore. This controls how much spawns. More...
 
const double & ore_rarity_rarium
 The rarity modifier of the second rarest ore. This controls how much spawns. More...
 
const int & planet_energy_cap
 The amount of energy a planet can hold at once. More...
 
const int & planet_recharge_rate
 The amount of energy the planets restore each round. More...
 
const std::vector< Player > & players
 List of all the players in the game. More...
 
const int & projectile_radius
 The standard size of ships. More...
 
const int & projectile_speed
 The amount of distance missiles travel through space. More...
 
const std::vector< Projectile > & projectiles
 Every projectile in the game. More...
 
const double & rarium_value
 The value of every unit of rarium. More...
 
const double & regenerate_rate
 The regeneration rate of asteroids. More...
 
const std::string & session
 A unique identifier for the game instance that is being played. More...
 
const int & ship_radius
 The standard size of ships. More...
 
const int & size_x
 The size of the map in the X direction. More...
 
const int & size_y
 The size of the map in the Y direction. More...
 
const int & time_added_per_turn
 The amount of time (in nano-seconds) added after each player performs a turn. More...
 
const int & turns_to_orbit
 The number of turns it takes for a asteroid to orbit the sun. (Asteroids move after each players turn). More...
 
const std::vector< Unit > & units
 Every Unit in the game. More...
 

Detailed Description

Collect of the most of the rarest mineral orbiting around the sun and out-compete your competitor.

Member Data Documentation

const std::vector<Body>& cpp_client::stardash::Game::bodies

All the celestial bodies in the game. The first two are planets and the third is the sun. The fourth is the VP asteroid. Everything else is normal asteroids.

const Player& cpp_client::stardash::Game::current_player

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

const int& cpp_client::stardash::Game::current_turn

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

const int& cpp_client::stardash::Game::dash_cost

The cost of dashing.

const int& cpp_client::stardash::Game::dash_distance

The distance traveled each turn by dashing.

const std::unordered_map<std::string, Game_object>& cpp_client::stardash::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 double& cpp_client::stardash::Game::genarium_value

The value of every unit of genarium.

const std::vector<Job>& cpp_client::stardash::Game::jobs

A list of all jobs. The first element is corvette, second is missileboat, third is martyr, fourth is transport, and fifth is miner.

const double& cpp_client::stardash::Game::legendarium_value

The value of every unit of legendarium.

const int& cpp_client::stardash::Game::max_asteroid

The highest amount of material, that can be in a asteroid.

const int& cpp_client::stardash::Game::max_turns

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

const int& cpp_client::stardash::Game::min_asteroid

The smallest amount of material, that can be in a asteroid.

const int& cpp_client::stardash::Game::mining_speed

The rate at which miners grab minerals from asteroids.

const double& cpp_client::stardash::Game::mythicite_amount

The amount of mythicite that spawns at the start of the game.

const int& cpp_client::stardash::Game::orbits_protected

The number of orbit updates you cannot mine the mithicite asteroid.

const double& cpp_client::stardash::Game::ore_rarity_genarium

The rarity modifier of the most common ore. This controls how much spawns.

const double& cpp_client::stardash::Game::ore_rarity_legendarium

The rarity modifier of the rarest ore. This controls how much spawns.

const double& cpp_client::stardash::Game::ore_rarity_rarium

The rarity modifier of the second rarest ore. This controls how much spawns.

const int& cpp_client::stardash::Game::planet_energy_cap

The amount of energy a planet can hold at once.

const int& cpp_client::stardash::Game::planet_recharge_rate

The amount of energy the planets restore each round.

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

List of all the players in the game.

const int& cpp_client::stardash::Game::projectile_radius

The standard size of ships.

const int& cpp_client::stardash::Game::projectile_speed

The amount of distance missiles travel through space.

const std::vector<Projectile>& cpp_client::stardash::Game::projectiles

Every projectile in the game.

const double& cpp_client::stardash::Game::rarium_value

The value of every unit of rarium.

const double& cpp_client::stardash::Game::regenerate_rate

The regeneration rate of asteroids.

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

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

const int& cpp_client::stardash::Game::ship_radius

The standard size of ships.

const int& cpp_client::stardash::Game::size_x

The size of the map in the X direction.

const int& cpp_client::stardash::Game::size_y

The size of the map in the Y direction.

const int& cpp_client::stardash::Game::time_added_per_turn

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

const int& cpp_client::stardash::Game::turns_to_orbit

The number of turns it takes for a asteroid to orbit the sun. (Asteroids move after each players turn).

const std::vector<Unit>& cpp_client::stardash::Game::units

Every Unit in the game.


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