Crossfire Server, Trunk  R20513
CRERandomMap.cpp
Go to the documentation of this file.
1 #include "CRERandomMap.h"
2 
3 CRERandomMap::CRERandomMap(CREMapInformation* source, int x, int y, const char* parameters)
4 {
5  myMap = source;
6  myX = x;
7  myY = y;
8  memset(&myParameters, 0, sizeof myParameters);
10 }
11 
13 {
14  return myMap;
15 }
16 
17 int CRERandomMap::x() const
18 {
19  return myX;
20 }
21 
22 int CRERandomMap::y() const
23 {
24  return myY;
25 }
26 
28 {
29  return &myParameters;
30 }
const CREMapInformation * map() const
Random map parameters.
Definition: random_map.h:14
int x() const
CREMapInformation * myMap
Definition: CRERandomMap.h:21
RMParms myParameters
Definition: CRERandomMap.h:24
const RMParms * parameters() const
CRERandomMap(CREMapInformation *source, int x, int y, const char *parameters)
Definition: CRERandomMap.cpp:3
int set_random_map_variable(RMParms *rp, const char *buf)
int y() const