WorldSim  inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Idea Class Reference

#include <Idea.hpp>

Inheritance diagram for Idea:
Inheritance graph
[legend]
Collaboration diagram for Idea:
Collaboration graph
[legend]

Public Types

enum  IDEA_TYPE {
  IDEA_NONE, IDEA_MINING, IDEA_SMELTING, IDEA_MANUFACTURING,
  IDEA_ASTRONOMY, IDEA_MILITARY, IDEA_AGRICULTURE, ENUM_COUNT
}
 

Public Member Functions

 Idea (Character *_originator, IDEA_TYPE _type)
 
 Idea (const Idea &other)
 
Ideaoperator= (const Idea &other)
 
bool operator== (const Idea &other) const
 
std::string ideaToString (IDEA_TYPE idea)
 

Public Attributes

int id
 
Characteroriginator
 
bool isSpecialIdea
 
IDEA_TYPE type
 

Static Public Attributes

static int lastID = 0
 

Member Enumeration Documentation

◆ IDEA_TYPE

Enumerator
IDEA_NONE 
IDEA_MINING 
IDEA_SMELTING 
IDEA_MANUFACTURING 
IDEA_ASTRONOMY 
IDEA_MILITARY 
IDEA_AGRICULTURE 
ENUM_COUNT 

Constructor & Destructor Documentation

◆ Idea() [1/2]

Idea::Idea ( Character _originator,
IDEA_TYPE  _type 
)

◆ Idea() [2/2]

Idea::Idea ( const Idea other)

Member Function Documentation

◆ ideaToString()

std::string Idea::ideaToString ( IDEA_TYPE  idea)

◆ operator=()

Idea & Idea::operator= ( const Idea other)

◆ operator==()

bool Idea::operator== ( const Idea other) const

Member Data Documentation

◆ id

int Idea::id

◆ isSpecialIdea

bool Idea::isSpecialIdea

◆ lastID

int Idea::lastID = 0
static

◆ originator

Character* Idea::originator

◆ type

IDEA_TYPE Idea::type

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