feat: add mob size

This commit is contained in:
2021-11-21 17:18:45 +01:00
parent f48af51dc7
commit c7d81de60e
2 changed files with 57 additions and 54 deletions

View File

@@ -6,6 +6,8 @@
#include <vector>
#include <memory>
#include <glm/glm.hpp>
namespace td {
namespace game {
@@ -41,16 +43,17 @@ class MobStats {
private:
float m_Damage;
float m_Speed;
glm::vec2 m_Size;
std::uint16_t m_MoneyCost;
std::uint16_t m_ExpCost;
std::uint16_t m_MaxLife;
std::uint16_t m_ExpReward;
public:
MobStats(float damage, float speed, std::uint16_t moneyCost,
MobStats(float damage, float speed, glm::vec2 size, std::uint16_t moneyCost,
std::uint16_t expCost, std::uint16_t expReward,
std::uint16_t maxLife) : m_Damage(damage), m_Speed(speed),
m_MoneyCost(moneyCost), m_ExpCost(expCost), m_MaxLife(maxLife),
m_ExpReward(expReward) {
m_Size(size), m_MoneyCost(moneyCost), m_ExpCost(expCost),
m_MaxLife(maxLife), m_ExpReward(expReward) {
}
float getDamage() const { return m_Damage; }