This will be a struct which will hold info about abilities. They will have the abilities name, cast time, cooldown, damage type(direct amount or %), whether the damage is physical damage or magical, damage, and a debuff they give.



  • string name - the abilities name
  • double castTime - the time it takes to use the ability from the time the button is pressed in seconds
  • double cooldown - the time between when an ability is used(after the castTime) and when it can be used again in seconds
  • string damageType - either "direct" or "percent" to specify if the damage will be subtracted from the health or if it will be a percentage
  • bool isPhysical - whether the damage is physical or magical
  • double damage - the damage being done, whether its an amount or percentage
  • Debuff debuff - any debuff that will be given to an enemy if hit by the ability
  • CollisionObject collObject - the bounding box/ray that will be used for collision detection
  • bool isUsed - whether or not the ability has been used. If it has then it needs to be tested for in collision
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License