DunGen  1.0
Dungeongenerator library for Irrlicht
CorridorCommon.h
1 // Copyright (C) 2011-2013 by Maximilian Hönig
2 // This file is part of "DunGen - the Dungeongenerator".
3 // For conditions of distribution and use, see licence.txt provided together with DunGen.
4 
5 #ifndef CORRIDORCOMMON_H
6 #define CORRIDORCOMMON_H
7 
8 #include <irrlicht.h>
9 
10 namespace DunGen
11 {
14  {
15  irr::scene::ISceneNode* Node;
16  irr::core::vector3d<double> Scale;
17  irr::core::vector3d<double> Rotation;
18  irr::core::vector2d<double> Position;
20  unsigned int DistanceNumFactor;
21  unsigned int DistanceNumMin;
22  unsigned int DistanceNumMax;
25  bool ObjectAtT1;
26  };
27 }
28 
29 #endif
irr::core::vector2d< double > Position
The 2D position of the detail object, uses the same coordiante system as the corridor points: (0...
Definition: CorridorCommon.h:18
unsigned int DistanceNumMaxFirstElement
The maximum random distance for the first detailobject. The first detailobject is placed every Distan...
Definition: CorridorCommon.h:24
irr::scene::ISceneNode * Node
The scene node (with its children), which is used as template for the detail object.
Definition: CorridorCommon.h:15
bool ObjectAtT1
Shall a detailobjects be placed at the last samplepoint (end of corridor), even if the distance would...
Definition: CorridorCommon.h:25
unsigned int DistanceNumMax
The maximum random distance. Each detailobject is placed every DistanceNumFactor*[DistanceNumMin,DistanceNumMax] samplepoints.
Definition: CorridorCommon.h:22
unsigned int DistanceNumMin
The minimum random distance. Each detailobject is placed every DistanceNumFactor*[DistanceNumMin,DistanceNumMax] samplepoints.
Definition: CorridorCommon.h:21
irr::core::vector3d< double > Rotation
The rotation of the detail object.
Definition: CorridorCommon.h:17
double DistanceSampling
The sampling factor for computing the underlying hermite spline. Advice: use the same as the distance...
Definition: CorridorCommon.h:19
unsigned int DistanceNumMinFirstElement
The minimum random distance for the first detailobject. The first detailobject is placed every Distan...
Definition: CorridorCommon.h:23
irr::core::vector3d< double > Scale
The scale factor of the detail object.
Definition: CorridorCommon.h:16
unsigned int DistanceNumFactor
The distancefactor. Each detailobject is placed every DistanceNumFactor*[DistanceNumMin,DistanceNumMax] samplepoints.
Definition: CorridorCommon.h:20
The parameters of a detailobject in a corridor.
Definition: CorridorCommon.h:13