Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/effects/lightening_effect.cc @ 8219

Last change on this file since 8219 was 7810, checked in by bensch, 19 years ago

orxonox/trunk: merged the Weather effects back here

File size: 1.5 KB
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: hdavid, amaechler
13*/
14
15#include "lightening_effect.h"
16
17#include "state.h"
18#include "util/loading/load_param.h"
19#include "util/loading/factory.h"
20#include "render2D/image_plane.h"
21
22#include "glincl.h"
23#include "parser/tinyxml/tinyxml.h"
24
25using namespace std;
26
27CREATE_FACTORY(LighteningEffect, CL_LIGHTENING_EFFECT);
28
29LighteningEffect::LighteningEffect(const TiXmlElement* root)
30{
31        this->setClassID(CL_LIGHTENING_EFFECT, "LighteningEffect");
32 
33 
34  lightening = new ImagePlane(NULL);
35  lightening->setTexture("maps/lightning_bolt.png");
36  lightening->setSize(50, 50);
37  lightening->setAbsCoor2D(10,10);
38  lightening->setVisibility(true);
39 
40 
41        this->init();
42
43        if (root != NULL)
44                this->loadParams(root);
45
46        this->activate();
47}
48
49LighteningEffect::~LighteningEffect()
50{
51        this->deactivate();
52  delete lightening;
53}
54
55void LighteningEffect::loadParams(const TiXmlElement* root)
56{
57        WeatherEffect::loadParams(root);
58}
59
60
61bool LighteningEffect::init()
62{
63        //Default values
64}
65
66
67bool LighteningEffect::activate()
68{
69        PRINTF(0)( "Activating LighteningEffect\n" );
70
71}
72
73
74bool LighteningEffect::deactivate()
75{
76        PRINTF(0)("Deactivating LighteningEffect\n");
77}
78
79void LighteningEffect::tick (float dt)
80{
81
82}
Note: See TracBrowser for help on using the repository browser.