Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628069
Component.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
528 B
Referenced Files
None
Subscribers
None
Component.h
View Options
//
// 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
Details
Attached
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)
Attached To
Mode
R74 BloonsTD
Attached
Detach File
Event Timeline