Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628461
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
858 B
Referenced Files
None
Subscribers
None
KingRatEntity.h
View Options
#ifndef KINGRATSPRITE_H
#define KINGRATSPRITE_H
#include
"EnemyEntity.h"
#include
"PlayerEntity.h"
class
KingRatEntity
:
public
EnemyEntity
{
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
int
hurt
(
StructHurt
hurtParam
)
override
;
void
generateGreenRats
();
virtual
void
collideWithEnemy
(
EnemyEntity
*
entity
)
override
;
virtual
void
drop
();
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, 4:12 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122758
Default Alt Text
KingRatEntity.h (858 B)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline