Dawn of Light - Class documentation 2900
This is the Dawn of Light project
DOL.GS.Faction Class Reference

Faction of mob. More...

List of all members.

Public Member Functions

void LoadFromDatabase (DBFaction dbfaction)
 load faction from DB
void SaveAggroToFaction ()
void SaveAggroToFaction (string charID)
void AddFriendFaction (Faction faction)
 add friend faction to this faction
void RemoveFriendFaction (Faction faction)
 remove friend faction
void AddEnemyFaction (Faction faction)
 add enemy faction
void RemoveEnemyFaction (Faction faction)
 remove enemy faction
void KillMember (GamePlayer killer)
 called when a player kills a mob from the faction
void ChangeAggroLevel (GamePlayer player, int amount)
int GetAggroToFaction (GamePlayer player)
 gets aggro level of player with faction

Properties

string Name [get]
 name of faction
ArrayList FriendFactions [get]
 friend factions
ArrayList EnemyFactions [get]
 enemy factions
int ID [get]
 id of faction
int BaseAggroLevel [get]
 base aggro when player have never meet faction before
Hashtable PlayerxFaction [get]
 table of player and aggrolevel (characterid/aggrolevel)

Detailed Description

Faction of mob.


Member Function Documentation

void DOL.GS.Faction.AddEnemyFaction ( Faction  faction)

add enemy faction

Parameters:
faction
void DOL.GS.Faction.AddFriendFaction ( Faction  faction)

add friend faction to this faction

Parameters:
faction
void DOL.GS.Faction.ChangeAggroLevel ( GamePlayer  player,
int  amount 
)

changes aggro of faction and related factions to player

Parameters:
player
amount
int DOL.GS.Faction.GetAggroToFaction ( GamePlayer  player)

gets aggro level of player with faction

Parameters:
player
Returns:
void DOL.GS.Faction.KillMember ( GamePlayer  killer)

called when a player kills a mob from the faction

Parameters:
killer
void DOL.GS.Faction.LoadFromDatabase ( DBFaction  dbfaction)

load faction from DB

Parameters:
dbfaction
void DOL.GS.Faction.RemoveEnemyFaction ( Faction  faction)

remove enemy faction

Parameters:
faction
void DOL.GS.Faction.RemoveFriendFaction ( Faction  faction)

remove friend faction

Parameters:
faction

Property Documentation

int DOL.GS.Faction.BaseAggroLevel [get]

base aggro when player have never meet faction before

ArrayList DOL.GS.Faction.EnemyFactions [get]

enemy factions

ArrayList DOL.GS.Faction.FriendFactions [get]

friend factions

int DOL.GS.Faction.ID [get]

id of faction

string DOL.GS.Faction.Name [get]

name of faction

Hashtable DOL.GS.Faction.PlayerxFaction [get]

table of player and aggrolevel (characterid/aggrolevel)


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events