OpenClonk
C4ParticleSystemDefinitionList Class Reference

#include <C4Particles.h>

Public Member Functions

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

Friends

class C4ParticleDef
 

Detailed Description

Definition at line 430 of file C4Particles.h.

Constructor & Destructor Documentation

◆ C4ParticleSystemDefinitionList()

C4ParticleSystemDefinitionList::C4ParticleSystemDefinitionList ( )
inline

Definition at line 436 of file C4Particles.h.

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

Member Function Documentation

◆ Clear()

void C4ParticleSystemDefinitionList::Clear ( )

Definition at line 1511 of file C4Particles.cpp.

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

Referenced by C4ParticleSystem::Clear().

Here is the caller graph for this function:

◆ GetDef()

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

Definition at line 1499 of file C4Particles.cpp.

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

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

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

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ C4ParticleDef

friend class C4ParticleDef
friend

Definition at line 440 of file C4Particles.h.


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