Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F625773
DoorEntity.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
681 B
Referenced Files
None
Subscribers
None
DoorEntity.h
View Options
#ifndef DOORENTITY_H
#define DOORENTITY_H
#include
"sfml_game/SpriteEntity.h"
enum
doorEnum
{
DoorNone
=
-1
,
DoorStandard_0
,
DoorStandard_1
,
DoorStandard_2
,
DoorStandard_3
,
DoorStandard_4
,
DoorBoss
,
DoorChallenge
,
DoorExit
};
class
DoorEntity
:
public
SpriteEntity
{
public
:
DoorEntity
(
int
direction
);
virtual
void
animate
(
float
delay
);
void
render
(
sf
::
RenderTarget
*
app
);
void
renderDoors
(
sf
::
RenderTarget
*
app
);
void
setOpen
(
bool
open
);
void
setDoorType
(
doorEnum
doorType
);
void
closeDoor
();
void
openDoor
();
private
:
int
direction
;
bool
isOpen
;
float
timer
;
doorEnum
doorType
;
};
#endif
// DOORENTITY_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 11:53 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
136710
Default Alt Text
DoorEntity.h (681 B)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline