Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F619718
BaseCreatureEntity.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
877 B
Referenced Files
None
Subscribers
None
BaseCreatureEntity.h
View Options
#ifndef BASECREATUREENTITY_H
#define BASECREATUREENTITY_H
#include
"sfml_game/CollidingSpriteEntity.h"
class
WitchBlastGame
;
class
BaseCreatureEntity
:
public
CollidingSpriteEntity
{
public
:
BaseCreatureEntity
(
sf
::
Texture
*
image
,
float
x
,
float
y
,
int
spriteWidth
,
int
spriteHeight
);
int
getHp
();
int
getHpMax
();
int
getHpDisplay
();
virtual
void
animate
(
float
delay
);
virtual
void
render
(
sf
::
RenderWindow
*
app
);
virtual
void
calculateBB
();
bool
hurt
(
int
damages
);
virtual
void
dying
();
void
setParent
(
WitchBlastGame
*
parent
);
enum
enumBloodColor
{
bloodRed
,
bloodGreen
};
protected
:
int
hp
;
int
hpMax
;
int
hpDisplay
;
float
creatureSpeed
;
int
shadowFrame
;
bool
hurting
;
float
hurtingDelay
;
WitchBlastGame
*
parentGame
;
enumBloodColor
bloodColor
;
private
:
};
#endif
// BASECREATUREENTITY_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 5:07 PM (1 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
140563
Default Alt Text
BaseCreatureEntity.h (877 B)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline