TapestryEngine

A 2D Platformer Game Engine
Log | Files | Refs

046b63576f4844eebc79075bd3a48a46fe97a4a7.svn-base (783B)


      1 #ifndef EMITTER_H
      2 #define EMITTER_H
      3 
      4 #include "Console.h"
      5 #include "Utils.h"
      6 #include "Actor.h"
      7 
      8 class Emitter
      9 {
     10 public:
     11 
     12 	Emitter(int x, int y, EventReceiver* ParticleManager, char* name, int count, ParticleTypeData data) : mX(x), mY(y), mPrtMan(ParticleManager), mPrtName(name), mPrtCount(count), mData(data)
     13 	{
     14 	}
     15 
     16 	char* GetType()
     17 	{
     18 		return mPrtType;
     19 	}
     20 
     21 	char* GetName()
     22 	{
     23 		return mPrtName;
     24 	}
     25 
     26 	int GetX()
     27 	{
     28 		return mX;
     29 	}
     30 
     31 	int GetY()
     32 	{
     33 		return mY;
     34 	}
     35 
     36 	ParticleTypeData GetData()
     37 	{
     38 		return mData;
     39 	}
     40 
     41 	bool EmitParticle();
     42 
     43 protected:
     44 
     45 	int mX;
     46 	int mY;
     47 	EventReceiver* mPrtMan;
     48 
     49 	char* mPrtType;
     50 	char* mPrtName;
     51 	int mPrtCount;
     52 
     53 	int mDir;
     54 	int mSpd;
     55 
     56 	ParticleTypeData mData; //union to store data for different types of particles
     57 
     58 	Actor* Particles;
     59 };
     60 
     61 #endif