Last change
on this file since 7675 was
7675,
checked in by stefalie, 18 years ago
|
branches/water: loadparams included
|
File size:
909 bytes
|
Rev | Line | |
---|
[7672] | 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" |
---|
[7675] | 17 | #include "util/loading/load_param.h" |
---|
[7672] | 18 | |
---|
| 19 | MappedWater::MappedWater(const TiXmlElement* root) |
---|
| 20 | { |
---|
| 21 | |
---|
| 22 | if (root != NULL) |
---|
| 23 | this->loadParams(root); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | MappedWater::~MappedWater() |
---|
| 27 | { |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | void MappedWater::loadParams(const TiXmlElement* root) |
---|
| 31 | { |
---|
[7675] | 32 | WorldEntity::loadParams(root); |
---|
[7672] | 33 | |
---|
[7675] | 34 | LoadParam(root, "height", this, MappedWater, setHeight); |
---|
[7672] | 35 | } |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | void MappedWater::draw() const |
---|
| 39 | { |
---|
| 40 | |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | void MappedWater::tick(float dt) |
---|
| 44 | { |
---|
| 45 | |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | void MappedWater::setHeight(float height) |
---|
| 49 | { |
---|
| 50 | this->waterHeight = height; |
---|
| 51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.