Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F623972
BoltEntity.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
BoltEntity.h
View Options
#ifndef BOLTENTITY_H
#define BOLTENTITY_H
#include
"sfml_game/CollidingSpriteEntity.h"
#include
"ParticleGenerator.h"
#include
"Constants.h"
#include
"BaseCreatureEntity.h"
/*! \class BoltEntity
* \brief bolt thrown by the player
*
* BoltEntity are the missile weapons thrown by the player.
* The can collide with an enemy (to hurt him) or with the walls.
*/
class
BoltEntity
:
public
CollidingSpriteEntity
{
public
:
BoltEntity
(
float
x
,
float
y
,
float
boltLifeTime
,
enumShotType
boltType
,
int
level
);
virtual
void
animate
(
float
delay
);
virtual
void
render
(
sf
::
RenderTarget
*
app
);
void
collide
();
void
generateParticule
(
Vector2D
vel
);
int
getDamages
();
unsigned
int
getLevel
();
void
setDamages
(
int
damages
);
void
loseDamages
(
int
damages
);
enumShotType
getBoltType
();
bool
isFlying
();
void
setFlying
(
bool
flying
);
bool
isCritical
();
void
setCritical
(
bool
setCritical
);
void
setGoThrough
(
bool
goThrough
);
bool
getGoThrough
();
enemyTypeEnum
getEnemyType
();
protected
:
virtual
void
calculateBB
();
virtual
void
collideMapRight
();
virtual
void
collideMapLeft
();
virtual
void
collideMapTop
();
virtual
void
collideMapBottom
();
virtual
bool
collideWithMap
(
int
direction
);
virtual
void
onDying
();
virtual
void
stuck
();
void
explode
();
int
damages
;
float
renderScale
;
enumShotType
boltType
;
enemyTypeEnum
enemyType
;
ParticleGenerator
particleGenerator
;
private
:
bool
testWallsCollision
;
bool
flying
;
bool
critical
;
bool
goThrough
;
unsigned
int
level
;
int
hitNumber
;
};
#endif
// BOLTENTITY_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 9:49 PM (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
141682
Default Alt Text
BoltEntity.h (1 KB)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline