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

#include <C4Sector.h>

Collaboration diagram for C4LSector:
[legend]

Public Member Functions

 C4LSector ()
 
 ~C4LSector ()
 
void CompileFunc (StdCompiler *pComp, C4ValueNumbers *numbers)
 
void ClearObjects ()
 

Public Attributes

int x
 
int y
 
C4ObjectList Objects
 
C4ObjectList ObjectShapes
 

Protected Member Functions

void Init (int ix, int iy)
 
void Clear ()
 

Friends

class C4LSectors
 

Detailed Description

Definition at line 35 of file C4Sector.h.

Constructor & Destructor Documentation

C4LSector::C4LSector ( )
inline

Definition at line 38 of file C4Sector.h.

38 { } // constructor
C4LSector::~C4LSector ( )
inline

Definition at line 39 of file C4Sector.h.

References Clear().

39 { Clear(); } // destructor
void Clear()
Definition: C4Sector.cpp:37

Here is the call graph for this function:

Member Function Documentation

void C4LSector::Clear ( )
protected

Definition at line 37 of file C4Sector.cpp.

References ClearObjects().

Referenced by C4LSectors::Clear(), Init(), and ~C4LSector().

38 {
39  // clear objects
40  ClearObjects();
41 }
void ClearObjects()
Definition: C4Sector.cpp:51

Here is the call graph for this function:

Here is the caller graph for this function:

void C4LSector::ClearObjects ( )

Definition at line 51 of file C4Sector.cpp.

References C4ObjectList::Clear(), Objects, and ObjectShapes.

Referenced by Clear(), and C4LSectors::ClearObjects().

52 {
53  // clear objects
54  Objects.Clear();
56 }
C4ObjectList Objects
Definition: C4Sector.h:48
C4ObjectList ObjectShapes
Definition: C4Sector.h:49
virtual void Clear()

Here is the call graph for this function:

Here is the caller graph for this function:

void C4LSector::CompileFunc ( StdCompiler pComp,
C4ValueNumbers numbers 
)

Definition at line 43 of file C4Sector.cpp.

References mkIntAdapt(), mkNamingAdapt(), mkParAdapt(), Objects, ObjectShapes, StdCompiler::Value(), x, and y.

44 {
45  pComp->Value(mkNamingAdapt(mkIntAdapt(x), "x"));
46  pComp->Value(mkNamingAdapt(mkIntAdapt(y), "y"));
47  pComp->Value(mkNamingAdapt(mkParAdapt(Objects, numbers), "Objects"));
48  pComp->Value(mkNamingAdapt(mkParAdapt(ObjectShapes, numbers), "ObjectShapes"));
49 }
C4ObjectList Objects
Definition: C4Sector.h:48
int y
Definition: C4Sector.h:46
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
void Value(const T &rStruct)
Definition: StdCompiler.h:171
C4ObjectList ObjectShapes
Definition: C4Sector.h:49
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:459
int x
Definition: C4Sector.h:46
StdIntAdapt< T > mkIntAdapt(T &rValue)
Definition: StdAdaptors.h:230

Here is the call graph for this function:

void C4LSector::Init ( int  ix,
int  iy 
)
protected

Definition at line 29 of file C4Sector.cpp.

References Clear(), x, and y.

Referenced by C4LSectors::Init().

30 {
31  // clear any previous initialization
32  Clear();
33  // store class members
34  x=ix; y=iy;
35 }
int y
Definition: C4Sector.h:46
void Clear()
Definition: C4Sector.cpp:37
int x
Definition: C4Sector.h:46

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class C4LSectors
friend

Definition at line 54 of file C4Sector.h.

Member Data Documentation

int C4LSector::x

Definition at line 46 of file C4Sector.h.

Referenced by CompileFunc(), C4LArea::Contains(), C4LArea::DebugRec(), Init(), and C4LArea::Next().

int C4LSector::y

Definition at line 46 of file C4Sector.h.

Referenced by CompileFunc(), C4LArea::Contains(), Init(), and C4LArea::Next().


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