Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F620405
KingRatEntity.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
881 B
Referenced Files
None
Subscribers
None
KingRatEntity.h
View Options
#ifndef KINGRATSPRITE_H
#define KINGRATSPRITE_H
#include
"EnnemyEntity.h"
#include
"PlayerEntity.h"
class
KingRatEntity
:
public
EnnemyEntity
{
public
:
KingRatEntity
(
float
x
,
float
y
);
virtual
void
animate
(
float
delay
);
virtual
void
render
(
sf
::
RenderTarget
*
app
);
virtual
void
calculateBB
();
virtual
void
inflictsRecoilTo
(
BaseCreatureEntity
*
targetEntity
);
protected
:
virtual
void
collideMapRight
();
virtual
void
collideMapLeft
();
virtual
void
collideMapTop
();
virtual
void
collideMapBottom
();
void
afterWallCollide
();
virtual
bool
hurt
(
int
damages
,
enumShotType
hurtingType
,
int
level
);
void
generateGreenRats
();
virtual
void
collideWithEnnemy
(
GameEntity
*
collidingEntity
);
virtual
void
dying
();
private
:
float
timer
;
float
berserkDelay
;
int
state
;
bool
hasBeenBerserk
;
};
#endif
// KINGRATSPRITE_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 5:57 PM (15 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
128737
Default Alt Text
KingRatEntity.h (881 B)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline