R-Type  1.0.1.0
Rewrite of the R-Type game with networking ability
Loading...
Searching...
No Matches
Player Class Reference
Inheritance diagram for Player:
[legend]
Collaboration diagram for Player:
[legend]

Public Member Functions

 Player (const std::string &uniqueName, std::shared_ptr< engine::Texture > &texture, const std::string &bulletTextureName, std::uint32_t networkId=0, const sf::Vector2f &pos={0, 0})
 
void colliding (const size_t &entity, const size_t &entityCollidingWith)
 
void enableDoubleBullet ()
 
void getDamage (size_t entity, int damage) override
 
void move (size_t entity, const engine::Event event)
 
void shoot ()
 
- Public Member Functions inherited from engine::Base
 Base (const std::string &uniqueName)
 
size_t getEntityId ()
 
const std::string & getUniqueName ()
 
void setEntityId (size_t entityId)
 
void setUniqueName (const std::string &uniqueName)
 
virtual void getDamage (size_t entity, int damage)=0
 

Private Attributes

std::string _bulletTextureName
 
engine::Clock _clockCooldown
 
float _delta
 
bool _doubleBullet
 
bool _networked
 
std::uint32_t _networkId
 

Additional Inherited Members

- Protected Attributes inherited from engine::Base
size_t _entityId
 
std::string _uniqueName
 
- Protected Attributes inherited from Damaging
int _health
 

Member Function Documentation

◆ getDamage()

void Player::getDamage ( size_t  entity,
int  damage 
)
overridevirtual

Implements Damaging.


The documentation for this class was generated from the following files: