| 1 | |
|---|
| 2 | |
|---|
| 3 | /* |
|---|
| 4 | orxonox - the future of 3D-vertical-scrollers |
|---|
| 5 | |
|---|
| 6 | Copyright (C) 2004 orx |
|---|
| 7 | |
|---|
| 8 | This program is free software; you can redistribute it and/or modify |
|---|
| 9 | it under the terms of the GNU General Public License as published by |
|---|
| 10 | the Free Software Foundation; either version 2, or (at your option) |
|---|
| 11 | any later version. |
|---|
| 12 | |
|---|
| 13 | ### File Specific: |
|---|
| 14 | main-programmer: hdavid, amaechler |
|---|
| 15 | */ |
|---|
| 16 | |
|---|
| 17 | // TODO: descriptions to loadparams, movealong unified, start activation |
|---|
| 18 | |
|---|
| 19 | #include "weather_effect.h" |
|---|
| 20 | #include "util/loading/load_param.h" |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | using namespace std; |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | /** |
|---|
| 27 | * @param root The XML-element to load the WeatherEffect from |
|---|
| 28 | */ |
|---|
| 29 | WeatherEffect::WeatherEffect(const TiXmlElement* root) |
|---|
| 30 | { |
|---|
| 31 | this->setClassID(CL_WEATHER_EFFECT, "WeatherEffect"); |
|---|
| 32 | this->bActivated = false; |
|---|
| 33 | } |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | /** |
|---|
| 37 | * destroys a WeatherEffects |
|---|
| 38 | */ |
|---|
| 39 | WeatherEffect::~WeatherEffect() |
|---|
| 40 | { |
|---|
| 41 | |
|---|
| 42 | } |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | /** |
|---|
| 46 | * @param root The XML-element to load the WeatherEffects from |
|---|
| 47 | */ |
|---|
| 48 | void WeatherEffect::loadParams(const TiXmlElement* root) |
|---|
| 49 | { |
|---|
| 50 | BaseObject::loadParams(root); |
|---|
| 51 | } |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | /** |
|---|
| 55 | * initializes the graphics effect |
|---|
| 56 | */ |
|---|
| 57 | void WeatherEffect::init() |
|---|
| 58 | { |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | /** |
|---|
| 64 | * draws the effect, if needed |
|---|
| 65 | */ |
|---|
| 66 | void WeatherEffect::draw() const |
|---|
| 67 | {} |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | /** |
|---|
| 72 | * ticks the effect if there is any time dependancy |
|---|
| 73 | */ |
|---|
| 74 | void WeatherEffect::tick(float dt) |
|---|
| 75 | {} |
|---|
| 76 | |
|---|