$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <particle.h>
Public Member Functions | |
chunkparticle.cpp - The chunk particle. | |
CChunkParticle (CPosition position, Animation *smokeAnimation, Animation *debrisAnimation, int minVelocity, int maxVelocity, int minTrajectoryAngle) | |
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 |
int | minVelocity |
int | maxVelocity |
int | minTrajectoryAngle |
float | height |
Animation * | debrisAnimation |
Animation * | smokeAnimation |
struct { | |
float x | |
float y | |
} | direction |
CChunkParticle::CChunkParticle | ( | CPosition | position, | |
Animation * | smokeAnimation, | |||
Animation * | debrisAnimation, | |||
int | minVelocity = 0 , |
|||
int | maxVelocity = 400 , |
|||
int | minTrajectoryAngle = 77 | |||
) |
CChunkParticle::~CChunkParticle | ( | ) | [virtual] |
void CChunkParticle::draw | ( | ) | [virtual] |
Reimplemented from CParticle.
void CChunkParticle::update | ( | int | ticks | ) | [virtual] |
Reimplemented from CParticle.
CPosition CChunkParticle::initialPos [protected] |
int CChunkParticle::initialVelocity [protected] |
float CChunkParticle::trajectoryAngle [protected] |
int CChunkParticle::nextSmokeTicks [protected] |
int CChunkParticle::lifetime [protected] |
int CChunkParticle::age [protected] |
int CChunkParticle::minVelocity [protected] |
int CChunkParticle::maxVelocity [protected] |
int CChunkParticle::minTrajectoryAngle [protected] |
float CChunkParticle::height [protected] |
Animation* CChunkParticle::debrisAnimation [protected] |
Animation* CChunkParticle::smokeAnimation [protected] |
float CChunkParticle::x |
float CChunkParticle::y |
struct { ... } CChunkParticle::direction [protected] |