Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F626825
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
844 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
);
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
Sun, Nov 15, 1:14 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
136514
Default Alt Text
KingRatEntity.h (844 B)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline