_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | Protected Attributes | List of all members
CChunkParticle Class Reference

#include <particle.h>

Inheritance diagram for CChunkParticle:
CParticle

Public Member Functions

int getSmokeDrawLevel () const
 
int getDestroyDrawLevel () const
 
void setSmokeDrawLevel (int value)
 
void setDestroyDrawLevel (int value)
 
chunkparticle.cpp - The chunk particle.
 CChunkParticle (CPosition position, GraphicAnimation *smokeAnimation, GraphicAnimation *debrisAnimation, GraphicAnimation *destroyAnimation, int minVelocity=0, int maxVelocity=400, int minTrajectoryAngle=77, int maxTTL=0, int drawlevel=0)
 
virtual ~CChunkParticle ()
 
virtual bool isVisible (const CViewport &vp) const
 
virtual void draw ()
 
virtual void update (int ticks)
 
virtual CParticleclone ()
 
- Public Member Functions inherited from CParticle
 CParticle (CPosition position, int drawlevel=0)
 
virtual ~CParticle ()
 
void destroy ()
 
bool isDestroyed ()
 
int getDrawLevel () const
 
void setDrawLevel (int value)
 

Protected Attributes

CPosition initialPos
 
int initialVelocity
 
float trajectoryAngle
 
int maxTTL
 
int nextSmokeTicks
 
int lifetime
 
int age
 
int minVelocity
 
int maxVelocity
 
int minTrajectoryAngle
 
float height
 
int smokeDrawLevel
 
int destroyDrawLevel
 
GraphicAnimationdebrisAnimation
 
GraphicAnimationsmokeAnimation
 
GraphicAnimationdestroyAnimation
 
struct {
   float   x
 
   float   y
 
direction
 
- Protected Attributes inherited from CParticle
CPosition pos
 
bool destroyed
 
int drawLevel
 

Constructor & Destructor Documentation

◆ CChunkParticle()

CChunkParticle::CChunkParticle ( CPosition  position,
GraphicAnimation smokeAnimation,
GraphicAnimation debrisAnimation,
GraphicAnimation destroyAnimation,
int  minVelocity = 0,
int  maxVelocity = 400,
int  minTrajectoryAngle = 77,
int  maxTTL = 0,
int  drawlevel = 0 
)

◆ ~CChunkParticle()

CChunkParticle::~CChunkParticle ( )
virtual

Member Function Documentation

◆ clone()

CParticle * CChunkParticle::clone ( )
virtual

Implements CParticle.

◆ draw()

void CChunkParticle::draw ( )
virtual

Implements CParticle.

◆ getDestroyDrawLevel()

int CChunkParticle::getDestroyDrawLevel ( ) const
inline

◆ getSmokeDrawLevel()

int CChunkParticle::getSmokeDrawLevel ( ) const
inline

◆ isVisible()

bool CChunkParticle::isVisible ( const CViewport vp) const
virtual

Implements CParticle.

◆ setDestroyDrawLevel()

void CChunkParticle::setDestroyDrawLevel ( int  value)
inline

◆ setSmokeDrawLevel()

void CChunkParticle::setSmokeDrawLevel ( int  value)
inline

◆ update()

void CChunkParticle::update ( int  ticks)
virtual

Implements CParticle.

Member Data Documentation

◆ age

int CChunkParticle::age
protected

◆ debrisAnimation

GraphicAnimation* CChunkParticle::debrisAnimation
protected

◆ destroyAnimation

GraphicAnimation* CChunkParticle::destroyAnimation
protected

◆ destroyDrawLevel

int CChunkParticle::destroyDrawLevel
protected

◆ direction

struct { ... } CChunkParticle::direction

◆ height

float CChunkParticle::height
protected

◆ initialPos

CPosition CChunkParticle::initialPos
protected

◆ initialVelocity

int CChunkParticle::initialVelocity
protected

◆ lifetime

int CChunkParticle::lifetime
protected

◆ maxTTL

int CChunkParticle::maxTTL
protected

◆ maxVelocity

int CChunkParticle::maxVelocity
protected

◆ minTrajectoryAngle

int CChunkParticle::minTrajectoryAngle
protected

◆ minVelocity

int CChunkParticle::minVelocity
protected

◆ nextSmokeTicks

int CChunkParticle::nextSmokeTicks
protected

◆ smokeAnimation

GraphicAnimation* CChunkParticle::smokeAnimation
protected

◆ smokeDrawLevel

int CChunkParticle::smokeDrawLevel
protected

◆ trajectoryAngle

float CChunkParticle::trajectoryAngle
protected

◆ x

float CChunkParticle::x

◆ y

float CChunkParticle::y

The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.