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

       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"

CParticle Class Reference

#include <particle.h>

Inheritance diagram for CParticle:

CChunkParticle CSmokeParticle StaticParticle

List of all members.

Public Member Functions

 CParticle (CPosition position)
virtual ~CParticle ()
virtual void draw ()
virtual void update (int ticks)
void destroy ()
bool isDestroyed ()
virtual CParticleclone ()=0

Protected Attributes

CPosition pos
bool destroyed


Detailed Description

Definition at line 87 of file particle.h.


Constructor & Destructor Documentation

CParticle::CParticle ( CPosition  position  )  [inline]

Definition at line 90 of file particle.h.

virtual CParticle::~CParticle (  )  [inline, virtual]

Definition at line 93 of file particle.h.


Member Function Documentation

virtual void CParticle::draw (  )  [inline, virtual]

Reimplemented in StaticParticle, CChunkParticle, and CSmokeParticle.

Definition at line 95 of file particle.h.

virtual void CParticle::update ( int  ticks  )  [inline, virtual]

Reimplemented in StaticParticle, CChunkParticle, and CSmokeParticle.

Definition at line 96 of file particle.h.

void CParticle::destroy (  )  [inline]

Definition at line 98 of file particle.h.

References destroyed.

Referenced by StaticParticle::update(), CSmokeParticle::update(), and CChunkParticle::update().

bool CParticle::isDestroyed (  )  [inline]

Definition at line 99 of file particle.h.

References destroyed.

virtual CParticle* CParticle::clone (  )  [pure virtual]


Member Data Documentation

bool CParticle::destroyed [protected]

Definition at line 105 of file particle.h.

Referenced by destroy(), and isDestroyed().


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

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