Page MenuHomePhabricator (Chris)

BoltEntity.h
No OneTemporary

Authored By
Unknown
Size
914 B
Referenced Files
None
Subscribers
None

BoltEntity.h

#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, enumBoltType boltType);
virtual void animate(float delay);
void collide();
void generateParticule(Vector2D vel);
int getDamages();
void setDamages(int damages);
enumBoltType getBoltType();
protected:
virtual void collideMapRight();
virtual void collideMapLeft();
virtual void collideMapTop();
virtual void collideMapBottom();
int damages;
float renderScale;
enumBoltType boltType;
private:
};
#endif // BOLTENTITY_H

File Metadata

Mime Type
text/x-c++
Expires
Sat, Nov 14, 8:42 PM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
140841
Default Alt Text
BoltEntity.h (914 B)

Event Timeline