Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F626633
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
994 B
Referenced Files
None
Subscribers
None
BoltEntity.h
View Options
#ifndef BOLTENTITY_H
#define BOLTENTITY_H
#include
"sfml_game/CollidingSpriteEntity.h"
#include
"Constants.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
(
sf
::
Texture
*
image
,
float
x
,
float
y
,
float
boltLifeTime
,
enumShotType
boltType
);
virtual
void
animate
(
float
delay
);
void
collide
();
void
generateParticule
(
Vector2D
vel
);
int
getDamages
();
void
setDamages
(
int
damages
);
enumShotType
getBoltType
();
protected
:
virtual
void
calculateBB
();
virtual
void
collideMapRight
();
virtual
void
collideMapLeft
();
virtual
void
collideMapTop
();
virtual
void
collideMapBottom
();
virtual
bool
collideWithMap
(
int
direction
);
int
damages
;
float
renderScale
;
enumShotType
boltType
;
private
:
};
#endif
// BOLTENTITY_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 12:57 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
132499
Default Alt Text
BoltEntity.h (994 B)
Attached To
Mode
R78 witchblast
Attached
Detach File
Event Timeline