Dungeon Crawler
Library for turn based RPG
Character Class Reference

Public Member Functions

 Character ()
 
void MoveTo (int x, int y)
 
int[] SkillValueModifiers (string skill, string[] tags)
 
int SkillValue (string skill, string[] tags)
 
Aspect[] AspectsAffectingSkill (string skill)
 
void ReceiveXP (int xp)
 
void NextLevelReached ()
 
void LevelUpSkill (string skill)
 
bool Equip (string itemName, string slot)
 
void UnEquip (string itemName)
 
void ReceiveDamage (int damage)
 
void TakeConsequence (int damage)
 
void GetsTakenOut ()
 
Character[] EnemiesInReach ()
 
void ScheduleAttack (string attackSkill="MeleeWeapons")
 
void Attack (Character defender, string attackSkill="MeleeWeapons", Stunt stunt=null)
 
int Defend (Character attacker, string attackSkill, int attackValue)
 
void Heal (Character patient, Consequence consequence)
 

Static Public Member Functions

static Character DeserializeFromJson (string json)
 
static string SerializeToJson (Character character)
 

Public Attributes

int Id
 
string Type
 
string Name
 
int XP
 
int SkillPoints
 
Attribute PhysicalStress
 
List< ConsequenceConsequences
 
Dictionary< string, int > Skills
 
string[] Tags
 
List< AspectAspects
 
List< StuntStunts
 
Dictionary< string, string > Equipment
 
Inventory Inventory
 
bool IsTakenOut
 
string[] Enemies
 
AttackMarker ScheduledAttack
 
Transform Transform
 
Cell CurrentCell
 
int Spin
 

Properties

int Cost [get]
 
int[][] AttackShape [get]
 
List< AspectAllAspects [get]
 
int Level [get]
 
Weapon[] Weapons [get]
 
List< ConsequenceAllConsequences [get]
 
int Protection [get]
 
int Damage [get]
 
float AttackSpeed [get]
 

Events

PhysicalStressChangedHandler OnPhysicalStressChanged
 
AttackScheduledHandler OnAttackScheduled
 
TakenOutHandler OnTakenOut
 

Constructor & Destructor Documentation

Character ( )
inline

Member Function Documentation

void MoveTo ( int  x,
int  y 
)
inline
int [] SkillValueModifiers ( string  skill,
string[]  tags 
)
inline
int SkillValue ( string  skill,
string[]  tags 
)
inline
Aspect [] AspectsAffectingSkill ( string  skill)
inline
void ReceiveXP ( int  xp)
inline
void NextLevelReached ( )
inline
void LevelUpSkill ( string  skill)
inline
bool Equip ( string  itemName,
string  slot 
)
inline
void UnEquip ( string  itemName)
inline
void ReceiveDamage ( int  damage)
inline
void TakeConsequence ( int  damage)
inline
void GetsTakenOut ( )
inline
Character [] EnemiesInReach ( )
inline
void ScheduleAttack ( string  attackSkill = "MeleeWeapons")
inline
void Attack ( Character  defender,
string  attackSkill = "MeleeWeapons",
Stunt  stunt = null 
)
inline
int Defend ( Character  attacker,
string  attackSkill,
int  attackValue 
)
inline
void Heal ( Character  patient,
Consequence  consequence 
)
inline
static Character DeserializeFromJson ( string  json)
inlinestatic
static string SerializeToJson ( Character  character)
inlinestatic

Member Data Documentation

int Id
string Type
string Name
int XP
int SkillPoints
Attribute PhysicalStress
List<Consequence> Consequences
Dictionary<string, int> Skills
string [] Tags
List<Aspect> Aspects
List<Stunt> Stunts
Dictionary<string, string> Equipment
bool IsTakenOut
string [] Enemies
AttackMarker ScheduledAttack
Cell CurrentCell
int Spin

Property Documentation

int Cost
get
int [][] AttackShape
get
List<Aspect> AllAspects
get
int Level
get
Weapon [] Weapons
get
List<Consequence> AllConsequences
get
int Protection
get
int Damage
get
float AttackSpeed
get

Event Documentation

PhysicalStressChangedHandler OnPhysicalStressChanged
AttackScheduledHandler OnAttackScheduled
TakenOutHandler OnTakenOut

The documentation for this class was generated from the following file: