$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

CChunkParticle Class Reference

#include <particle.h>

Inheritance diagram for CChunkParticle:

CParticle

List of all members.


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 CParticleclone ()

Protected Attributes

CPosition initialPos
int initialVelocity
float trajectoryAngle
int nextSmokeTicks
int lifetime
int age
int minVelocity
int maxVelocity
int minTrajectoryAngle
float height
AnimationdebrisAnimation
AnimationsmokeAnimation
struct {
   float   x
   float   y
direction

Constructor & Destructor Documentation

CChunkParticle::CChunkParticle ( CPosition  position,
Animation smokeAnimation,
Animation debrisAnimation,
int  minVelocity = 0,
int  maxVelocity = 400,
int  minTrajectoryAngle = 77 
)

CChunkParticle::~CChunkParticle (  )  [virtual]


Member Function Documentation

void CChunkParticle::draw (  )  [virtual]

Reimplemented from CParticle.

void CChunkParticle::update ( int  ticks  )  [virtual]

Reimplemented from CParticle.

CParticle * CChunkParticle::clone (  )  [virtual]

Implements CParticle.


Member Data Documentation

int CChunkParticle::lifetime [protected]

int CChunkParticle::age [protected]

int CChunkParticle::minVelocity [protected]

int CChunkParticle::maxVelocity [protected]

float CChunkParticle::height [protected]

struct { ... } CChunkParticle::direction [protected]


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.