Crossfire Server, Trunk
RandomMap Class Reference

#include <RandomMap.h>

+ Inheritance diagram for RandomMap:
+ Collaboration diagram for RandomMap:

Public Member Functions

virtual QString displayName () const override
 
const CREMapInformationmap () const
 
const RMParmsparameters () const
 
 RandomMap (CREMapInformation *parent, int x, int y, const char *parameters)
 
int x () const
 
int y () const
 
- Public Member Functions inherited from AssetWrapper
 AssetWrapper (AssetWrapper *parent, const QString &panelName="empty")
 
virtual bool canDrag () const
 
virtual bool canDrop (const QMimeData *, int) const
 
virtual AssetWrapperchild (int)
 
virtual int childIndex (AssetWrapper *)
 
virtual int childrenCount () const
 
virtual QIcon displayIcon () const
 
virtual QString displayPanelName () const
 
AssetWrapperdisplayParent () const
 
virtual void drag (QMimeData *) const
 
virtual void drop (const QMimeData *, int)
 
virtual void fillMenu (QMenu *)
 
void markModified (ChangeType change, int extra=0)
 
AssetWrapperself ()
 
void setDisplayParent (AssetWrapper *parent)
 
virtual PossibleUse uses (const AssetWrapper *, std::string &) const
 
virtual ~AssetWrapper () override
 

Private Attributes

CREMapInformationmyMap
 
RMParms myParameters
 
int myX
 
int myY
 

Additional Inherited Members

- Public Types inherited from AssetWrapper
enum  ChangeType {
  AssetUpdated, BeforeChildAdd, AfterChildAdd, BeforeChildRemove,
  AfterChildRemove, BeforeLayoutChange, AfterLayoutChange
}
 
enum  PossibleUse { Uses, ChildrenMayUse, DoesntUse }
 
- Public Slots inherited from AssetWrapper
virtual void removeChild (AssetWrapper *)
 
- Signals inherited from AssetWrapper
void dataModified (AssetWrapper *asset, AssetWrapper::ChangeType type, int extra)
 
void modified ()
 
- Static Public Member Functions inherited from AssetWrapper
static bool compareByDisplayName (const AssetWrapper *left, const AssetWrapper *right)
 
- Static Public Attributes inherited from AssetWrapper
static const char * tipProperty = "_cre_internal"
 
- Protected Member Functions inherited from AssetWrapper
virtual void wasModified (AssetWrapper *asset, ChangeType type, int extra)
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Detailed Description

Definition at line 24 of file RandomMap.h.

Constructor & Destructor Documentation

◆ RandomMap()

RandomMap::RandomMap ( CREMapInformation parent,
int  x,
int  y,
const char *  parameters 
)

Definition at line 15 of file RandomMap.cpp.

References myMap, myParameters, myX, myY, parameters(), set_random_map_variable(), x(), and y().

+ Here is the call graph for this function:

Member Function Documentation

◆ displayName()

virtual QString RandomMap::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 29 of file RandomMap.h.

References myMap, and CREMapInformation::path.

◆ map()

const CREMapInformation * RandomMap::map ( ) const

Definition at line 24 of file RandomMap.cpp.

References myMap.

Referenced by CRERandomMapPanel::updateItem().

+ Here is the caller graph for this function:

◆ parameters()

const RMParms * RandomMap::parameters ( ) const

Definition at line 39 of file RandomMap.cpp.

References myParameters.

Referenced by RandomMap(), CREMapInformationManager::storeCache(), and CRERandomMapPanel::updateItem().

+ Here is the caller graph for this function:

◆ x()

int RandomMap::x ( ) const

Definition at line 29 of file RandomMap.cpp.

References myX.

Referenced by RandomMap(), CREMapInformationManager::storeCache(), and CRERandomMapPanel::updateItem().

+ Here is the caller graph for this function:

◆ y()

int RandomMap::y ( ) const

Definition at line 34 of file RandomMap.cpp.

References myY.

Referenced by RandomMap(), CREMapInformationManager::storeCache(), and CRERandomMapPanel::updateItem().

+ Here is the caller graph for this function:

Field Documentation

◆ myMap

CREMapInformation* RandomMap::myMap
private

Definition at line 37 of file RandomMap.h.

Referenced by displayName(), map(), and RandomMap().

◆ myParameters

RMParms RandomMap::myParameters
private

Definition at line 40 of file RandomMap.h.

Referenced by parameters(), and RandomMap().

◆ myX

int RandomMap::myX
private

Definition at line 38 of file RandomMap.h.

Referenced by RandomMap(), and x().

◆ myY

int RandomMap::myY
private

Definition at line 39 of file RandomMap.h.

Referenced by RandomMap(), and y().


The documentation for this class was generated from the following files: