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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
CParticle Class Referenceabstract

#include <particle.h>

Inheritance diagram for CParticle:
CChunkParticle CRadialParticle CSmokeParticle StaticParticle

Public Member Functions

 CParticle (CPosition position, int drawlevel=0)
 
virtual ~CParticle ()
 
virtual bool isVisible (const CViewport &vp) const =0
 
virtual void draw ()=0
 
virtual void update (int)=0
 
void destroy ()
 
bool isDestroyed ()
 
virtual CParticleclone ()=0
 
int getDrawLevel () const
 
void setDrawLevel (int value)
 

Protected Attributes

CPosition pos
 
bool destroyed
 
int drawLevel
 

Constructor & Destructor Documentation

CParticle::CParticle ( CPosition  position,
int  drawlevel = 0 
)
inline
virtual CParticle::~CParticle ( )
inlinevirtual

Member Function Documentation

virtual CParticle* CParticle::clone ( )
pure virtual
void CParticle::destroy ( )
inline
virtual void CParticle::draw ( )
pure virtual
int CParticle::getDrawLevel ( ) const
inline
bool CParticle::isDestroyed ( )
inline
virtual bool CParticle::isVisible ( const CViewport vp) const
pure virtual
void CParticle::setDrawLevel ( int  value)
inline
virtual void CParticle::update ( int  )
pure virtual

Member Data Documentation

bool CParticle::destroyed
protected
int CParticle::drawLevel
protected
CPosition CParticle::pos
protected

The documentation for this class was generated from the following file:
(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.