Pol  Revision:cb584c9
startloc.h
Go to the documentation of this file.
1 
7 #ifndef STARTLOC_H
8 #define STARTLOC_H
9 
10 #include <string>
11 #include <vector>
12 
13 namespace Pol
14 {
15 namespace Realms
16 {
17 class Realm;
18 }
19 namespace Core
20 {
22 {
23 public:
24  unsigned short x;
25  unsigned short y;
26  char z;
27 
28  Coordinate( unsigned short i_x, unsigned short i_y, char i_z ) : x( i_x ), y( i_y ), z( i_z ) {}
29  /*Coordinate( const Coordinate& );
30  const Coordinate& operator=( const Coordinate& );*/
31 };
32 
34 {
35 public:
36  std::string city;
37  std::string desc;
39  unsigned short mapid;
40  unsigned long cliloc_desc;
41  /* NOTE: this list will be selected from randomly.
42  By placing only one coordinate in a StartingLocation,
43  the system will behave as standard UO - ie, you pick
44  the exact point you come into the world.
45  */
46  std::vector<Coordinate> coords;
47 
48  Coordinate select_coordinate() const;
49  size_t estimateSize() const;
50 };
51 }
52 }
53 #endif
unsigned long cliloc_desc
Definition: startloc.h:40
Coordinate(unsigned short i_x, unsigned short i_y, char i_z)
Definition: startloc.h:28
unsigned short mapid
Definition: startloc.h:39
Realms::Realm * realm
Definition: startloc.h:38
std::vector< Coordinate > coords
Definition: startloc.h:46
unsigned short x
Definition: startloc.h:24
unsigned short y
Definition: startloc.h:25
Definition: berror.cpp:12