Empirical
Public Member Functions | Public Attributes | List of all members
emp::StateGridInfo::StateInfo Struct Reference

Information about what a particular state type means in a state grid. More...

#include <StateGrid.h>

Public Member Functions

 StateInfo (int _id, char _sym, double _change, const std::string &_name, const std::string &_desc)
 
 StateInfo (const StateInfo &)=default
 
 StateInfo (StateInfo &&)=default
 
 ~StateInfo ()
 
StateInfooperator= (const StateInfo &)=default
 
StateInfooperator= (StateInfo &&)=default
 

Public Attributes

int state_id
 Ordinal id for this state. More...
 
char symbol
 Symbol for printing this state. More...
 
double score_change
 Change ammount for organism score by stepping on this square. More...
 
std::string name
 Name of this state. More...
 
std::string desc
 Explanation of this state. More...
 

Detailed Description

Information about what a particular state type means in a state grid.

Constructor & Destructor Documentation

emp::StateGridInfo::StateInfo::StateInfo ( int  _id,
char  _sym,
double  _change,
const std::string &  _name,
const std::string &  _desc 
)
inline
emp::StateGridInfo::StateInfo::StateInfo ( const StateInfo )
default
emp::StateGridInfo::StateInfo::StateInfo ( StateInfo &&  )
default
emp::StateGridInfo::StateInfo::~StateInfo ( )
inline

Member Function Documentation

StateInfo& emp::StateGridInfo::StateInfo::operator= ( const StateInfo )
default
StateInfo& emp::StateGridInfo::StateInfo::operator= ( StateInfo &&  )
default

Member Data Documentation

std::string emp::StateGridInfo::StateInfo::desc

Explanation of this state.

std::string emp::StateGridInfo::StateInfo::name

Name of this state.

double emp::StateGridInfo::StateInfo::score_change

Change ammount for organism score by stepping on this square.

int emp::StateGridInfo::StateInfo::state_id

Ordinal id for this state.

char emp::StateGridInfo::StateInfo::symbol

Symbol for printing this state.


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