_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          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
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::CParticle ( CPosition  position,
int  drawlevel = 0 
)
inline

◆ ~CParticle()

virtual CParticle::~CParticle ( )
inlinevirtual

Member Function Documentation

◆ clone()

virtual CParticle* CParticle::clone ( )
pure virtual

◆ destroy()

void CParticle::destroy ( )
inline

◆ draw()

virtual void CParticle::draw ( )
pure virtual

◆ getDrawLevel()

int CParticle::getDrawLevel ( ) const
inline

◆ isDestroyed()

bool CParticle::isDestroyed ( )
inline

◆ isVisible()

virtual bool CParticle::isVisible ( const CViewport vp) const
pure virtual

◆ setDrawLevel()

void CParticle::setDrawLevel ( int  value)
inline

◆ update()

virtual void CParticle::update ( int  )
pure virtual

Member Data Documentation

◆ destroyed

bool CParticle::destroyed
protected

◆ drawLevel

int CParticle::drawLevel
protected

◆ pos

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.