Crossfire Server, Trunk
RandomMap.cpp
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #include "RandomMap.h"
14 
15 RandomMap::RandomMap(CREMapInformation *parent, int x, int y, const char* parameters) : AssetWrapper(parent, "RandomMap")
16 {
17  myMap = parent;
18  myX = x;
19  myY = y;
20  memset(&myParameters, 0, sizeof myParameters);
22 }
23 
25 {
26  return myMap;
27 }
28 
29 int RandomMap::x() const
30 {
31  return myX;
32 }
33 
34 int RandomMap::y() const
35 {
36  return myY;
37 }
38 
40 {
41  return &myParameters;
42 }
RandomMap::parameters
const RMParms * parameters() const
Definition: RandomMap.cpp:39
RandomMap::myParameters
RMParms myParameters
Definition: RandomMap.h:40
RandomMap::map
const CREMapInformation * map() const
Definition: RandomMap.cpp:24
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:29
RandomMap.h
RMParms
Definition: random_map.h:14
CREMapInformation
Definition: CREMapInformation.h:27
RandomMap::y
int y() const
Definition: RandomMap.cpp:34
AssetWrapper
Definition: AssetWrapper.h:25
RandomMap::RandomMap
RandomMap(CREMapInformation *parent, int x, int y, const char *parameters)
Definition: RandomMap.cpp:15
filter.parameters
parameters
Definition: filter.py:41
diamondslots.y
y
Definition: diamondslots.py:16
RandomMap::myX
int myX
Definition: RandomMap.h:38
RandomMap::myMap
CREMapInformation * myMap
Definition: RandomMap.h:37
RandomMap::myY
int myY
Definition: RandomMap.h:39