C# Class Aura.Channel.World.Entities.Creatures.CreatureTitles

Datei anzeigen Open project: aura-project/aura

Public Methods

Method Description
Add ( ushort titleId, TitleState state ) : bool

Adds title, returns true if title was added or state was changed.

ChangeTitle ( ushort titleId, bool option ) : bool

Tries to change title, returns false if anything goes wrong.

CreatureTitles ( Creature creature ) : System
Enable ( ushort titleId ) : void

Adds title as "Available" and sends xyz.

GetList ( ) : TitleState>>.ICollection

Returns new list of all titles.

IsUsable ( ushort titleId ) : bool

Returns true if creature is able to use title.

Knows ( ushort titleId ) : bool

Returns true if creature knows about title in any way.

Remove ( ushort titleId ) : bool

Removes title.

Show ( ushort titleId ) : void

Adds title as "Known" and sends xyz.

Private Methods

Method Description
GetTitle ( bool option ) : ushort

Returns title or option title.

SetTitle ( ushort titleId, bool option ) : void

Sets title or option title.

SwitchStatMods ( TitleData data, bool option ) : void

Removes previous stat mods and adds new ones.

Method Details

Add() public method

Adds title, returns true if title was added or state was changed.
public Add ( ushort titleId, TitleState state ) : bool
titleId ushort
state TitleState
return bool

ChangeTitle() public method

Tries to change title, returns false if anything goes wrong.
public ChangeTitle ( ushort titleId, bool option ) : bool
titleId ushort
option bool
return bool

CreatureTitles() public method

public CreatureTitles ( Creature creature ) : System
creature Creature
return System

Enable() public method

Adds title as "Available" and sends xyz.
public Enable ( ushort titleId ) : void
titleId ushort
return void

GetList() public method

Returns new list of all titles.
public GetList ( ) : TitleState>>.ICollection
return TitleState>>.ICollection

IsUsable() public method

Returns true if creature is able to use title.
public IsUsable ( ushort titleId ) : bool
titleId ushort
return bool

Knows() public method

Returns true if creature knows about title in any way.
public Knows ( ushort titleId ) : bool
titleId ushort
return bool

Remove() public method

Removes title.
public Remove ( ushort titleId ) : bool
titleId ushort
return bool

Show() public method

Adds title as "Known" and sends xyz.
public Show ( ushort titleId ) : void
titleId ushort
return void