Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F625083
CyclopsEntity.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
1 KB
Referenced Files
None
Subscribers
None
CyclopsEntity.h
View Options
#ifndef CYCLOPENTITY_H
#define CYCLOPENTITY_H
#include
"EnemyEntity.h"
#include
"PlayerEntity.h"
class
CyclopsEntity
:
public
EnemyEntity
{
public
:
CyclopsEntity
(
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
;
virtual
void
collideWithEnemy
(
EnemyEntity
*
entity
)
override
;
virtual
void
drop
();
void
computeStates
(
float
delay
);
int
getHealthLevel
();
private
:
float
timer
;
int
state
;
int
counter
;
int
destroyLevel
;
int
nextRockMissile
;
void
computeNextRockMissile
();
void
fire
();
void
fallRock
();
void
initFallingGrid
();
bool
fallingGrid
[
MAP_WIDTH
][
MAP_HEIGHT
];
};
#endif
// CYCLOPENTITY_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 11:02 PM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
118251
Default Alt Text
CyclopsEntity.h (1 KB)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline