SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
Functions
Powers.cpp File Reference
#include "Powers.h"
#include "Entity.h"
#include "EntityHelpers.h"
#include "Character.h"
#include "CharacterHelpers.h"
#include "Logging.h"
#include "GameData/GameDataStore.h"
#include "serialization_common.h"
#include "serialization_types.h"
#include <random>
Include dependency graph for Powers.cpp:

Functions

 CEREAL_CLASS_VERSION (PowerPool_Info, PowerPool_Info::class_version) 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)
 
PowerVecIndexes getOwnedPowerIndexes (Entity &e, const PowerPool_Info &ppool)
 
CharacterPowergetOwnedPowerByVecIdx (Entity &e, uint32_t pset_idx, uint32_t pow_idx)
 
CharacterPowergetOwnedPowerByTpl (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)
 
void addInspirationByName (CharacterData &cd, QString &name)
 
void addInspirationToChar (CharacterData &cd, const CharacterInspiration &insp)
 
const CharacterInspirationgetInspiration (const Entity &ent, uint32_t col, uint32_t row)
 
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)
 
float enhancementCombineChances (CharacterEnhancement *eh1, CharacterEnhancement *eh2)
 
CombineResult combineEnhancements (Entity &ent, const EnhancemenSlotEntry &slot1, const EnhancemenSlotEntry &slot2)
 
void dumpEnhancements (CharacterData &cd)
 
 CEREAL_CLASS_VERSION (CharacterInspiration, CharacterInspiration::class_version) template< class Archive > void vInspirations
 
 CEREAL_CLASS_VERSION (vInspirations, vInspirations::class_version) template< class Archive > void CharacterEnhancement
 
 CEREAL_CLASS_VERSION (CharacterEnhancement, CharacterEnhancement::class_version) Power_Data CharacterPower
 
 CEREAL_CLASS_VERSION (CharacterPower, CharacterPower::class_version) template< class Archive > void CharacterPowerSet
 
 CEREAL_CLASS_VERSION (CharacterPowerSet, CharacterPowerSet::class_version) template< class Archive > void PowerTrayItem
 
 CEREAL_CLASS_VERSION (PowerTrayItem, PowerTrayItem::class_version) template< class Archive > void PowerTray
 
 CEREAL_CLASS_VERSION (PowerTray, PowerTray::class_version) template< class Archive > void PowerTrayGroup