OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ParticleSystemDefinitionList Class Reference

#include <C4Particles.h>

Public Member Functions

 C4ParticleSystemDefinitionList ()
 
void Clear ()
 
C4ParticleDefGetDef (const char *name, C4ParticleDef *exclude=0)
 

Friends

class C4ParticleDef
 

Detailed Description

Definition at line 430 of file C4Particles.h.

Constructor & Destructor Documentation

C4ParticleSystemDefinitionList::C4ParticleSystemDefinitionList ( )
inline

Definition at line 436 of file C4Particles.h.

436 : first(0), last(0) {}

Member Function Documentation

void C4ParticleSystemDefinitionList::Clear ( )

Definition at line 1513 of file C4Particles.cpp.

Referenced by C4ParticleSystem::Clear().

1514 {
1515  // the particle definitions update the list in their destructor
1516  while (first)
1517  delete first;
1518 }

Here is the caller graph for this function:

C4ParticleDef * C4ParticleSystemDefinitionList::GetDef ( const char *  name,
C4ParticleDef exclude = 0 
)

Definition at line 1501 of file C4Particles.cpp.

References C4ParticleDefCore::Name, and C4ParticleDef::next.

Referenced by C4ParticleDef::Load(), and C4Game::ReloadParticle().

1502 {
1503 #ifndef USE_CONSOLE
1504  // seek list
1505  for (C4ParticleDef *def = first; def != 0; def=def->next)
1506  if (def != exclude && def->Name == name)
1507  return def;
1508 #endif
1509  // nothing found
1510  return 0;
1511 }
StdStrBuf Name
Definition: C4Particles.h:73
C4ParticleDef * next
Definition: C4Particles.h:86

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class C4ParticleDef
friend

Definition at line 440 of file C4Particles.h.


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