2023-06-17 21:19:08 -05:00
|
|
|
#include "Ability.h"
|
|
|
|
|
2023-09-06 23:07:15 -05:00
|
|
|
PrecastData::PrecastData()
|
|
|
|
:castTime(0),range(0),size(0){};
|
2023-07-25 18:37:12 -05:00
|
|
|
PrecastData::PrecastData(float castTime)
|
|
|
|
:castTime(castTime),range(0),size(0){precastTargetingRequired=true;};
|
2023-07-19 20:36:01 +00:00
|
|
|
PrecastData::PrecastData(float castTime,float range,float size)
|
2023-07-27 18:26:23 -05:00
|
|
|
:castTime(castTime),range(range),size(size){
|
|
|
|
if(castTime>0)precastTargetingRequired=true;
|
|
|
|
};
|
2023-07-19 20:36:01 +00:00
|
|
|
|
2023-06-17 21:19:08 -05:00
|
|
|
Ability::Ability(){};
|
2023-07-19 20:36:01 +00:00
|
|
|
Ability::Ability(std::string name,float cooldownTime,int manaCost,Pixel barColor1,Pixel barColor2,PrecastData precastInfo)
|
|
|
|
:name(name),cooldown(0),COOLDOWN_TIME(cooldownTime),manaCost(manaCost),barColor1(barColor1),barColor2(barColor2),precastInfo(precastInfo){}
|