Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/water/src/world_entities/environments/mapped_water.cc @ 7686

Last change on this file since 7686 was 7675, checked in by stefalie, 19 years ago

branches/water: loadparams included

File size: 909 bytes
Line 
1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11   ### File Specific:
12   main-programmer: Stefan Lienard
13   co-programmer: ...
14*/
15
16#include "mapped_water.h"
17#include "util/loading/load_param.h"
18
19MappedWater::MappedWater(const TiXmlElement* root)
20{
21
22  if (root != NULL)
23    this->loadParams(root);
24}
25
26MappedWater::~MappedWater()
27{
28}
29
30void MappedWater::loadParams(const TiXmlElement* root)
31{
32  WorldEntity::loadParams(root);
33
34  LoadParam(root, "height", this, MappedWater, setHeight);
35}
36
37
38void MappedWater::draw() const
39{
40
41}
42
43void MappedWater::tick(float dt)
44{
45
46}
47
48void MappedWater::setHeight(float height)
49{
50  this->waterHeight = height;
51}
Note: See TracBrowser for help on using the repository browser.