____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <particle.h>

Public Member Functions | |
| CChunkParticle (CPosition position, Animation *smokeAnimation) | |
| virtual | ~CChunkParticle () |
| virtual void | draw () |
| virtual void | update (int ticks) |
| virtual CParticle * | clone () |
Protected Attributes | |
| CPosition | initialPos |
| int | initialVelocity |
| float | trajectoryAngle |
| int | nextSmokeTicks |
| int | lifetime |
| int | age |
| float | height |
| Animation * | smokeAnimation |
| struct { | |
| float x | |
| float y | |
| } | direction |
Definition at line 125 of file particle.h.
Definition at line 45 of file chunkparticle.cpp.
References Animation::clone(), deg2rad(), direction, gravity, initialVelocity, int(), lifetime, MyRand, and trajectoryAngle.
Referenced by clone().
| CChunkParticle::~CChunkParticle | ( | ) | [virtual] |
| void CChunkParticle::draw | ( | ) | [virtual] |
Reimplemented from CParticle.
Definition at line 73 of file chunkparticle.cpp.
References calculateScreenPos(), ColorBlack, CVideo::DrawRectangleClip(), CParticleManager::getScreenPos(), height, ParticleManager, CParticle::pos, Video, CPosition::x, and CPosition::y.
| void CChunkParticle::update | ( | int | ticks | ) | [virtual] |
Reimplemented from CParticle.
Definition at line 91 of file chunkparticle.cpp.
References CParticleManager::add(), age, calculateScreenPos(), Animation::clone(), CParticle::destroy(), direction, getHorizontalPosition(), getVerticalPosition(), height, initialPos, initialVelocity, lifetime, MyRand, nextSmokeTicks, ParticleManager, CParticle::pos, smokeAnimation, trajectoryAngle, CPosition::x, and CPosition::y.
| CParticle * CChunkParticle::clone | ( | ) | [virtual] |
Implements CParticle.
Definition at line 121 of file chunkparticle.cpp.
References CChunkParticle(), CParticle::pos, and smokeAnimation.
CPosition CChunkParticle::initialPos [protected] |
int CChunkParticle::initialVelocity [protected] |
float CChunkParticle::trajectoryAngle [protected] |
int CChunkParticle::nextSmokeTicks [protected] |
int CChunkParticle::lifetime [protected] |
int CChunkParticle::age [protected] |
float CChunkParticle::height [protected] |
Animation* CChunkParticle::smokeAnimation [protected] |
| float CChunkParticle::x |
Definition at line 146 of file particle.h.
| float CChunkParticle::y |
Definition at line 147 of file particle.h.
struct { ... } CChunkParticle::direction [protected] |
Referenced by CChunkParticle(), and update().
1.5.6