Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
{
21
class
Coordinate
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
33
class
StartingLocation
34
{
35
public
:
36
std::string
city
;
37
std::string
desc
;
38
Realms::Realm
*
realm
;
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
Pol::Core::StartingLocation::cliloc_desc
unsigned long cliloc_desc
Definition:
startloc.h:40
Pol::Core::Coordinate::Coordinate
Coordinate(unsigned short i_x, unsigned short i_y, char i_z)
Definition:
startloc.h:28
Pol::Realms::Realm
Definition:
realm.h:58
Pol::Core::StartingLocation::mapid
unsigned short mapid
Definition:
startloc.h:39
Pol::Core::StartingLocation
Definition:
startloc.h:33
Pol::Core::StartingLocation::desc
std::string desc
Definition:
startloc.h:37
Pol::Core::Coordinate
Definition:
startloc.h:21
Pol::Core::StartingLocation::realm
Realms::Realm * realm
Definition:
startloc.h:38
Pol::Core::Coordinate::z
char z
Definition:
startloc.h:26
Pol::Core::StartingLocation::coords
std::vector< Coordinate > coords
Definition:
startloc.h:46
Pol::Core::StartingLocation::city
std::string city
Definition:
startloc.h:36
Pol::Core::Coordinate::x
unsigned short x
Definition:
startloc.h:24
Pol::Core::Coordinate::y
unsigned short y
Definition:
startloc.h:25
Pol
Definition:
berror.cpp:12
pol
startloc.h
Generated on Wed Oct 10 2018 02:42:28 for Pol by
1.8.11