mercator 0.4.0
A terrain generation library for the Worldforge system.
Plant.h
1// This file may be redistributed and modified only under the terms of
2// the GNU General Public License (See COPYING for details).
3// Copyright (C) 2004 Alistair Riddoch
4
5#ifndef MERCATOR_PLANT_H
6#define MERCATOR_PLANT_H
7
8#include <wfmath/point.h>
9#include <wfmath/quaternion.h>
10
11#include <string>
12
13namespace Mercator {
14
19struct Plant {
21 WFMath::Point<2> m_displacement;
23 WFMath::Quaternion m_orientation;
25 float m_height;
26
27};
28
29}
30
31#endif // MERCATOR_PLANT_H
This is the simple class for representing instances of vegetation.
Definition: Plant.h:19
float m_height
Height of the vegetation.
Definition: Plant.h:25
WFMath::Quaternion m_orientation
Orientation of the vegetation.
Definition: Plant.h:23
WFMath::Point< 2 > m_displacement
Position of the vegetation relative to its grid point.
Definition: Plant.h:21