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

Afficher le fichier Open project: aura-project/aura

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ChangeTitle() public méthode

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

CreatureTitles() public méthode

public CreatureTitles ( Creature creature ) : System
creature Creature
Résultat System

Enable() public méthode

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

GetList() public méthode

Returns new list of all titles.
public GetList ( ) : TitleState>>.ICollection
Résultat TitleState>>.ICollection

IsUsable() public méthode

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

Knows() public méthode

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

Remove() public méthode

Removes title.
public Remove ( ushort titleId ) : bool
titleId ushort
Résultat bool

Show() public méthode

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