Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F621073
ExplosionEntity.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
759 B
Referenced Files
None
Subscribers
None
ExplosionEntity.h
View Options
#ifndef EXPLOSIONENTITY_H
#define EXPLOSIONENTITY_H
#include
"sfml_game/SpriteEntity.h"
#include
"BaseCreatureEntity.h"
enum
explosionTypeEnum
{
ExplosionTypeStandard
,
ExplosionTypeViolet
};
class
ExplosionEntity
:
public
SpriteEntity
{
public
:
ExplosionEntity
(
float
x
,
float
y
,
explosionTypeEnum
explosionType
,
int
damage
,
enemyTypeEnum
enemyType
,
bool
canHurtPlayer
);
virtual
void
animate
(
float
delay
);
virtual
void
render
(
sf
::
RenderTarget
*
app
);
virtual
void
dying
();
void
setCanHurtPlayer
(
bool
can
);
//enemyTypeEnum getEnemyType();
protected
:
void
testCollisions
();
private
:
int
damage
;
explosionTypeEnum
explosionType
;
enemyTypeEnum
enemyType
;
bool
canHurtPlayer
;
};
#endif
// EXPLOSIONENTITY_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 6:43 PM (18 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
121182
Default Alt Text
ExplosionEntity.h (759 B)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline