SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
Classes | Typedefs | Enumerations | Functions
Powers.h File Reference
#include "CommonNetStructures.h"
#include "BitStream.h"
#include "GameData/power_definitions.h"
#include "GameData/GameDataStore.h"
#include <QtCore/QString>
#include <QtCore/QDebug>
#include <array>
Include dependency graph for Powers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PowerStance
 
struct  EnhancemenSlotEntry
 
struct  PowerVecIndexes
 
struct  QueuedPowers
 
class  PowerPool_Info
 
struct  Buffs
 
struct  CharacterInspiration
 
struct  vInspirations
 
struct  CharacterEnhancement
 
struct  CharacterPower
 
struct  CharacterPowerSet
 
class  PowerTrayItem
 
class  PowerTray
 
class  PowerTrayGroup
 
struct  CombineResult
 

Typedefs

using vEnhancements = std::array< CharacterEnhancement, 10 >
 
using vPowerSets = std::vector< CharacterPowerSet >
 

Enumerations

enum  TrayItemType : uint32_t {
  TrayItemType::None = 0, TrayItemType::Power = 1, TrayItemType::Inspiration = 2, TrayItemType::BodyItem = 3,
  TrayItemType::SpecializationPower = 4, TrayItemType::SpecializationInventory = 5, TrayItemType::Macro = 6, TrayItemType::Count = 7
}
 
enum  ReviveLevel {
  ReviveLevel::AWAKEN = 1, ReviveLevel::BOUNCE_BACK = 2, ReviveLevel::RESTORATION = 3, ReviveLevel::IMMORTAL_RECOVERY = 4,
  ReviveLevel::REGEN_REVIVE = 5, ReviveLevel::FULL = 6
}
 

Functions

int getPowerCatByName (const QString &name)
 
int getPowerSetByName (const QString &name, uint32_t pcat_idx)
 
int getPowerByName (const QString &name, uint32_t pcat_idx, uint32_t pset_idx)
 
CharacterPower getPowerData (PowerPool_Info &ppool)
 
CharacterPowerSet getPowerSetData (PowerPool_Info &ppool)
 
CharacterPowergetOwnedPowerByVecIdx (Entity &e, uint32_t pset_idx, uint32_t pow_idx)
 
CharacterPowergetOwnedPowerByTpl (Entity &e, const PowerPool_Info &ppool)
 
PowerVecIndexes getOwnedPowerIndexes (Entity &e, const PowerPool_Info &ppool)
 
void addPowerSet (CharacterData &cd, PowerPool_Info &ppool)
 
void addEntirePowerSet (CharacterData &cd, PowerPool_Info &ppool)
 
void addPower (CharacterData &cd, PowerPool_Info &ppool)
 
void removePower (CharacterData &cd, const PowerPool_Info &ppool)
 
uint32_t countAllOwnedPowers (CharacterData &cd, bool include_temps)
 
void dumpPowerPoolInfo (const PowerPool_Info &pinfo)
 
void dumpPower (const CharacterPower &pow)
 
void dumpOwnedPowers (CharacterData &cd)
 
const CharacterInspirationgetInspiration (const Entity &ent, uint32_t col, uint32_t row)
 
void addInspirationByName (CharacterData &cd, QString &name)
 
void addInspirationToChar (CharacterData &cd, const CharacterInspiration &insp)
 
int getNumberInspirations (const CharacterData &cd)
 
int getMaxNumberInspirations (const CharacterData &cd)
 
void moveInspiration (CharacterData &cd, uint32_t src_col, uint32_t src_row, uint32_t dest_col, uint32_t dest_row)
 
bool useInspiration (Entity &ent, uint32_t col, uint32_t row)
 
void removeInspiration (CharacterData &cd, uint32_t col, uint32_t row)
 
void applyInspirationEffect (Entity &ent, uint32_t col, uint32_t row)
 
void dumpInspirations (CharacterData &cd)
 
void addEnhancementByName (CharacterData &cd, QString &name, uint32_t &level)
 
void addEnhancementToChar (CharacterData &cd, const CharacterEnhancement &enh)
 
CharacterEnhancementgetSetEnhancementBySlot (Entity &e, uint32_t pset_idx_in_array, uint32_t pow_idx_in_array, uint32_t eh_slot)
 
const CharacterEnhancementgetEnhancement (const Entity &ent, uint32_t idx)
 
uint32_t getNumberEnhancements (const CharacterData &cd)
 
uint32_t getMaxNumberEnhancements (const CharacterData &cd)
 
void moveEnhancement (CharacterData &cd, uint32_t src_idx, uint32_t dest_idx)
 
void setEnhancement (Entity &ent, uint32_t pset_idx, uint32_t pow_idx, uint32_t src_idx, uint32_t dest_idx)
 
void trashEnhancement (CharacterData &cd, uint32_t eh_idx)
 
void trashEnhancementInPower (CharacterData &cd, uint32_t pset_idx, uint32_t pow_idx, uint32_t eh_idx)
 
void trashComboEnhancement (CharacterEnhancement &eh, uint32_t eh_idx)
 
void reserveEnhancementSlot (CharacterPower *pow, uint32_t level_purchased)
 
void buyEnhancementSlots (Entity &ent, uint32_t available_slots, std::vector< int > pset_idx, std::vector< int > pow_idx)
 
CombineResult combineEnhancements (Entity &ent, const EnhancemenSlotEntry &slot1, const EnhancemenSlotEntry &slot2)
 
void dumpEnhancements (CharacterData &cd)
 

Typedef Documentation

◆ vEnhancements

using vEnhancements = std::array<CharacterEnhancement, 10>

◆ vPowerSets

using vPowerSets = std::vector<CharacterPowerSet>

Enumeration Type Documentation

◆ ReviveLevel

enum ReviveLevel
strong
Enumerator
AWAKEN 
BOUNCE_BACK 
RESTORATION 
IMMORTAL_RECOVERY 
REGEN_REVIVE 
FULL 

◆ TrayItemType

enum TrayItemType : uint32_t
strong
Enumerator
None 
Power 
Inspiration 
BodyItem 
SpecializationPower 
SpecializationInventory 
Macro 
Count 

Function Documentation

◆ getPowerCatByName()

int getPowerCatByName ( const QString &  name)
Here is the caller graph for this function: