Page MenuHomePhabricator (Chris)

Component.h
No OneTemporary

Authored By
Unknown
Size
528 B
Referenced Files
None
Subscribers
None

Component.h

//
// Created by Ido Mozes on 20/06/2019.
//
#ifndef SDL2_GAME_COMPONENT_H
#define SDL2_GAME_COMPONENT_H
struct Point {
short X;
short Y;
};
class Entity;
enum ComponentType {
VISIBILITY, POSITION, VELOCITY,SPEED, ACCELERATION, PATH_INDEX, HEALTH, KIND, TYPE, DAMAGE, PIERCE, SPREAD,SEQUENCE,ACTION,DRAGGABLE,
LENGTH
};
class Component {
Entity *entity;
public:
explicit Component(Entity *entity) : entity(entity) {};
Entity *getEntity() { return entity; }
};
#endif //SDL2_GAME_COMPONENT_H

File Metadata

Mime Type
text/x-c++
Expires
Sun, Nov 15, 3:13 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
126640
Default Alt Text
Component.h (528 B)

Event Timeline