Show EntityEvents.h syntax highlighted
#pragma once
#include "../EventManager.h"
//class EntityEvents
//{
//public:
// EntityEvents(void);
//public:
// ~EntityEvents(void);
//};
/** Event Type for motion */
//struct EntityMovement : public IEventData
//{
// EntityMovement(Vector2f vel) { m_velocity = vel; };
// Vector2f m_velocity; // velocity of movement
//
// /** Copy this event --WARNING allocates memory */
// IEventData* Copy() { return new EntityMovement( m_velocity ); };
//
// // destroy
// virtual ~EntityMovement() {IEventData::~IEventData(); };
//};
/** Event Type for motion */
struct EntityEvents : public IEventData
{ EntityEvents(unsigned int id, int b) { buttons = b; ent_id = id; };
int buttons;
unsigned int ent_id;
IEventData* Copy() { return new EntityEvents(ent_id, buttons); };
virtual ~EntityEvents() {IEventData::~IEventData(); };
};
See more files for this project here