____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

CChunkParticle Class Reference

#include <particle.h>

Inheritance diagram for CChunkParticle:

CParticle

List of all members.

Public Member Functions

 CChunkParticle (CPosition position, Animation *smokeAnimation)
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
float height
AnimationsmokeAnimation
struct {
   float   x
   float   y
direction


Detailed Description

Definition at line 125 of file particle.h.


Constructor & Destructor Documentation

CChunkParticle::CChunkParticle ( CPosition  position,
Animation smokeAnimation 
)

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]

Definition at line 63 of file chunkparticle.cpp.

References smokeAnimation.


Member Function Documentation

void CChunkParticle::draw (  )  [virtual]

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

CParticle * CChunkParticle::clone (  )  [virtual]

Implements CParticle.

Definition at line 121 of file chunkparticle.cpp.

References CChunkParticle(), CParticle::pos, and smokeAnimation.


Member Data Documentation

Definition at line 136 of file particle.h.

Referenced by update().

Definition at line 137 of file particle.h.

Referenced by CChunkParticle(), and update().

Definition at line 138 of file particle.h.

Referenced by CChunkParticle(), and update().

Definition at line 139 of file particle.h.

Referenced by update().

int CChunkParticle::lifetime [protected]

Definition at line 140 of file particle.h.

Referenced by CChunkParticle(), and update().

int CChunkParticle::age [protected]

Definition at line 141 of file particle.h.

Referenced by update().

float CChunkParticle::height [protected]

Definition at line 142 of file particle.h.

Referenced by draw(), and update().

Definition at line 143 of file particle.h.

Referenced by clone(), update(), and ~CChunkParticle().

Definition at line 146 of file particle.h.

Definition at line 147 of file particle.h.

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

Referenced by CChunkParticle(), and update().


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:23 2009 for Bos Wars by  doxygen 1.5.6