desacoplament de Player i Options
Player: canviat id de int a enum migrant input: eliminat Device, keyboard separat de la llista de mandos, llig i guarda configuracions de mandos falta: definir botons, asignar mandos a jugadors i guardar la asignació
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include "resource.h" // Para Resource
|
||||
|
||||
// Constructor
|
||||
Bullet::Bullet(float x, float y, BulletType bullet_type, bool powered, int owner)
|
||||
Bullet::Bullet(float x, float y, BulletType bullet_type, bool powered, Player::Id owner)
|
||||
: sprite_(std::make_unique<AnimatedSprite>(Resource::get()->getTexture("bullet.png"), Resource::get()->getAnimation("bullet.ani"))),
|
||||
pos_x_(x),
|
||||
pos_y_(y),
|
||||
@@ -94,7 +94,7 @@ void Bullet::disable() {
|
||||
bullet_type_ = BulletType::NONE;
|
||||
}
|
||||
|
||||
auto Bullet::getOwner() const -> int {
|
||||
auto Bullet::getOwner() const -> Player::Id {
|
||||
return owner_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user