Crossfire Server, Trunk
RandomMap.cpp
Go to the documentation of this file.
1 #include "RandomMap.h"
2 
3 RandomMap::RandomMap(CREMapInformation *parent, int x, int y, const char* parameters) : AssetWrapper(parent, "RandomMap")
4 {
5  myMap = parent;
6  myX = x;
7  myY = y;
8  memset(&myParameters, 0, sizeof myParameters);
10 }
11 
13 {
14  return myMap;
15 }
16 
17 int RandomMap::x() const
18 {
19  return myX;
20 }
21 
22 int RandomMap::y() const
23 {
24  return myY;
25 }
26 
28 {
29  return &myParameters;
30 }
RandomMap::parameters
const RMParms * parameters() const
Definition: RandomMap.cpp:27
RandomMap::myParameters
RMParms myParameters
Definition: RandomMap.h:35
RandomMap::map
const CREMapInformation * map() const
Definition: RandomMap.cpp:12
diamondslots.x
x
Definition: diamondslots.py:15
set_random_map_variable
int set_random_map_variable(RMParms *rp, const char *buf)
Definition: reader.c:2579
RandomMap::x
int x() const
Definition: RandomMap.cpp:17
RandomMap.h
RMParms
Definition: random_map.h:14
CREMapInformation
Definition: CREMapInformation.h:16
RandomMap::y
int y() const
Definition: RandomMap.cpp:22
AssetWrapper
Definition: AssetWrapper.h:11
RandomMap::RandomMap
RandomMap(CREMapInformation *parent, int x, int y, const char *parameters)
Definition: RandomMap.cpp:3
filter.parameters
parameters
Definition: filter.py:41
diamondslots.y
y
Definition: diamondslots.py:16
RandomMap::myX
int myX
Definition: RandomMap.h:33
RandomMap::myMap
CREMapInformation * myMap
Definition: RandomMap.h:32
RandomMap::myY
int myY
Definition: RandomMap.h:34