Eris  1.4.0
SpawnPoint.h
1 #ifndef ERIS_SPAWNPOINT_H_
2 #define ERIS_SPAWNPOINT_H_
3 
4 #include <vector>
5 #include <string>
6 
7 namespace Eris
8 {
9 
11 
13 typedef std::vector<CharacterType> CharacterTypeStore;
14 
31 {
32 public:
39  SpawnPoint(const std::string& name, const CharacterTypeStore& availableCharacterTypes, const std::string& description);
40 
44  ~SpawnPoint();
45 
50  const CharacterTypeStore& getAvailableCharacterTypes() const;
51 
56  const std::string& getName() const;
57 
62  const std::string& getDescription() const;
63 
64 private:
65 
69  const std::string m_name;
70 
74  CharacterTypeStore m_availableCharacterTypes;
75 
79  const std::string m_description;
80 };
81 
82 }
83 
84 #endif /* ERIS_SPAWNPOINT_H_ */
std::vector< CharacterType > CharacterTypeStore
Type used to return available character types.
Definition: SpawnPoint.h:10
SpawnPoint(const std::string &name, const CharacterTypeStore &availableCharacterTypes, const std::string &description)
Ctor.
Definition: SpawnPoint.cpp:7
const std::string & getName() const
Gets the name of this spawn point.
Definition: SpawnPoint.cpp:24
Represents a possible spawn point as described by the server. When a new character is created on the ...
Definition: SpawnPoint.h:30
Every Eris class and type lives inside the Eris namespace; certain utility functions live in the Util...
Definition: Account.cpp:34
An available character type which a client can create a character from on the server.
Definition: CharacterType.h:15
const std::string & getDescription() const
Gets a description of this spawn point.
Definition: SpawnPoint.cpp:29
~SpawnPoint()
Dtor.
Definition: SpawnPoint.cpp:15
const CharacterTypeStore & getAvailableCharacterTypes() const
Gets a list of available character types for this spawn point.
Definition: SpawnPoint.cpp:19