123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #pragma once
- #include "Array.h"
- #include "Punkt.h"
- namespace Framework
- {
- class Model2D;
- struct MausEreignis;
- struct TastaturEreignis;
- class Bild;
- class Welt2D
- {
- public:
- class Style
- {
- public:
- const static __int64 HORIZONTAL_UNENDLICH = 0x0001;
- const static __int64 VERTIKAL_UNENDLICH = 0x0002;
- const static __int64 BEI_VERLASSEN_LÖSCHEN = 0x0004;
- const static __int64 HINTERGRUND_BENUTZEN = 0x0008;
- const static __int64 HINTERGRUND_EREIGNISSE = 0x0010;
- const static __int64 HINTERGRUND_TICK = 0x0020;
- };
- private:
- RCArray< Model2D > *obj;
- int style;
- int ref;
- public:
-
- Welt2D();
-
- ~Welt2D();
-
- void addModel( Model2D *obj );
- void removeModel( Model2D *zObj );
- void setModelInVordergrund( Model2D *zObj );
- void setModelInHintergrund( Model2D *zObj );
- void removeAll();
- void doMausEreignis( MausEreignis &me );
- void doTastaturEreignis( TastaturEreignis &me );
- bool tick( double t );
- void render( Bild &zRObj, Punkt &wPos, Punkt &wGr, Punkt &kamGr );
-
- int getModelAnzahl() const;
- Model2D *getModel( int z ) const;
- Model2D *zModel( int z ) const;
-
- Welt2D *getThis();
- Welt2D *release();
- };
- }
|