C# Class Aura.Channel.World.Party

Afficher le fichier Open project: aura-project/aura Class Usage Examples

Méthodes publiques

Méthode Description
AddMember ( Creature creature ) : void

Adds creature to party and updates the clients.

AddMemberSilent ( Creature creature ) : void

Adds creature to party without updating the clients.

AutoChooseNextLeader ( ) : void

Sets next leader automatically.

Official gives the character that has been created for the longest period of time precedence.

Broadcast ( Packet packet, bool useMemberEntityId = false, Creature exclude = null ) : void

Sends the supplied packet to all members, with the option of replacing the EntityID with each member's personal ID, and excluding a specific creature.

ChangeExp ( PartyExpSharing rule ) : void

Changes exp sharing rule.

ChangeFinish ( PartyFinishRule rule ) : void

Change finishing rule.

ChangeSettings ( PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : void

Changes settings and updates clients.

CheckPassword ( string password ) : bool

Returns true if password is correct or none is set.

Close ( ) : void

Closes members wanted ad.

Create ( Creature creature, PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : Party

Creates new party with creature as leader.

CreateDummy ( Creature creature ) : Party

Creates new dummy party for creature.

DisconnectedMember ( Creature creature ) : void

Deals with removing disconnected players from the party.

GetCreaturesOnAltar ( int regionId ) : List

Returns a list of all members standing on the altar in the given region.

This and other functions assume that there's only ever one altar per region. Should this change at any point, these functions have to be fixed.

GetMember ( long entityId ) : Creature

Returns party member by entity id, or null if it doesn't exist.

GetMembers ( ) : Aura.Channel.World.Entities.Creature[]

Returns list of all members.

GetMembersInRange ( Creature creature, int range = -1 ) : List

Returns party members in range of given creature, but not the creature itself.

3000 is a total guess as to the actual visible range.

GetMembersInRegion ( int regionId ) : List

Returns a list of all members in the region specified.

GetSortedMembers ( ) : Aura.Channel.World.Entities.Creature[]

Returns list of all members, sorted by their position in the party.

GetSortedMembers ( bool>.Func predicate ) : Aura.Channel.World.Entities.Creature[]

Returns list of all members that match the predicate, sorted by their position in the party.

Open ( ) : void

Opens members wanted ad.

RemoveMember ( Creature creature ) : void

Removes creature from party if it's in it and updates the clients.

RemoveMemberSilent ( Creature creature ) : void

Removes creature from party without updating the clients.

SetDungeonLevel ( string dungeonLevel ) : void

Sets dungeon level.

SetInfo ( string info ) : void

Sets party info.

SetLeader ( Creature creature ) : bool

Sets leader to given creature, if possible.

SetLeader ( long entitiyId ) : bool

Sets leader to given entity, if possible.

SetMaxSize ( int size ) : void

Sets party's max size.

SetName ( string name ) : void

Sets party name.

TODO: Kinda redundant, use property?

SetPartyQuest ( Quest quest ) : void

Sets party quest, removing previous ones and updating all members.

SetPassword ( string pass ) : void

Sets party's password, set to empty string or null to disable.

SetType ( PartyType type ) : void

Sets party type.

ToString ( ) : string

Returns the party name in the format the Party Member Wanted functionality requires.

UnsetPartyQuest ( ) : bool

Unsets party quest, removes it from all normal member's managers, and updates the clients. Returns false if no party quest was set.

Private Methods

Méthode Description
GetAvailableSlot ( ) : int

Returns first available slot, throws if none are available. Check availability before adding members.

OnMinutesTimeTick ( ErinnTime time ) : void

Raised once every minute.

Party ( ) : Aura.Channel.Network.Sending

Initializes party.

SetSettings ( PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : void

Sets given options without updating the clients.

Method Details

AddMember() public méthode

Adds creature to party and updates the clients.
public AddMember ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Résultat void

AddMemberSilent() public méthode

Adds creature to party without updating the clients.
public AddMemberSilent ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Résultat void

AutoChooseNextLeader() public méthode

Sets next leader automatically.
Official gives the character that has been created for the longest period of time precedence.
public AutoChooseNextLeader ( ) : void
Résultat void

Broadcast() public méthode

Sends the supplied packet to all members, with the option of replacing the EntityID with each member's personal ID, and excluding a specific creature.
public Broadcast ( Packet packet, bool useMemberEntityId = false, Creature exclude = null ) : void
packet Packet
useMemberEntityId bool
exclude Aura.Channel.World.Entities.Creature
Résultat void

ChangeExp() public méthode

Changes exp sharing rule.
public ChangeExp ( PartyExpSharing rule ) : void
rule PartyExpSharing
Résultat void

ChangeFinish() public méthode

Change finishing rule.
public ChangeFinish ( PartyFinishRule rule ) : void
rule PartyFinishRule
Résultat void

ChangeSettings() public méthode

Changes settings and updates clients.
public ChangeSettings ( PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : void
type PartyType
name string
dungeonLevel string
info string
password string
maxSize int
Résultat void

CheckPassword() public méthode

Returns true if password is correct or none is set.
public CheckPassword ( string password ) : bool
password string
Résultat bool

Close() public méthode

Closes members wanted ad.
public Close ( ) : void
Résultat void

Create() public static méthode

Creates new party with creature as leader.
public static Create ( Creature creature, PartyType type, string name, string dungeonLevel, string info, string password, int maxSize ) : Party
creature Aura.Channel.World.Entities.Creature
type PartyType
name string
dungeonLevel string
info string
password string
maxSize int
Résultat Party

CreateDummy() public static méthode

Creates new dummy party for creature.
public static CreateDummy ( Creature creature ) : Party
creature Aura.Channel.World.Entities.Creature
Résultat Party

DisconnectedMember() public méthode

Deals with removing disconnected players from the party.
public DisconnectedMember ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Résultat void

GetCreaturesOnAltar() public méthode

Returns a list of all members standing on the altar in the given region.
This and other functions assume that there's only ever one altar per region. Should this change at any point, these functions have to be fixed.
public GetCreaturesOnAltar ( int regionId ) : List
regionId int
Résultat List

GetMember() public méthode

Returns party member by entity id, or null if it doesn't exist.
public GetMember ( long entityId ) : Creature
entityId long
Résultat Aura.Channel.World.Entities.Creature

GetMembers() public méthode

Returns list of all members.
public GetMembers ( ) : Aura.Channel.World.Entities.Creature[]
Résultat Aura.Channel.World.Entities.Creature[]

GetMembersInRange() public méthode

Returns party members in range of given creature, but not the creature itself.
3000 is a total guess as to the actual visible range.
public GetMembersInRange ( Creature creature, int range = -1 ) : List
creature Aura.Channel.World.Entities.Creature Reference creature
range int Pass -1 for visual range.
Résultat List

GetMembersInRegion() public méthode

Returns a list of all members in the region specified.
public GetMembersInRegion ( int regionId ) : List
regionId int
Résultat List

GetSortedMembers() public méthode

Returns list of all members, sorted by their position in the party.
public GetSortedMembers ( ) : Aura.Channel.World.Entities.Creature[]
Résultat Aura.Channel.World.Entities.Creature[]

GetSortedMembers() public méthode

Returns list of all members that match the predicate, sorted by their position in the party.
public GetSortedMembers ( bool>.Func predicate ) : Aura.Channel.World.Entities.Creature[]
predicate bool>.Func
Résultat Aura.Channel.World.Entities.Creature[]

Open() public méthode

Opens members wanted ad.
public Open ( ) : void
Résultat void

RemoveMember() public méthode

Removes creature from party if it's in it and updates the clients.
public RemoveMember ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Résultat void

RemoveMemberSilent() public méthode

Removes creature from party without updating the clients.
public RemoveMemberSilent ( Creature creature ) : void
creature Aura.Channel.World.Entities.Creature
Résultat void

SetDungeonLevel() public méthode

Sets dungeon level.
public SetDungeonLevel ( string dungeonLevel ) : void
dungeonLevel string
Résultat void

SetInfo() public méthode

Sets party info.
public SetInfo ( string info ) : void
info string
Résultat void

SetLeader() public méthode

Sets leader to given creature, if possible.
public SetLeader ( Creature creature ) : bool
creature Aura.Channel.World.Entities.Creature
Résultat bool

SetLeader() public méthode

Sets leader to given entity, if possible.
public SetLeader ( long entitiyId ) : bool
entitiyId long
Résultat bool

SetMaxSize() public méthode

Sets party's max size.
public SetMaxSize ( int size ) : void
size int
Résultat void

SetName() public méthode

Sets party name.
TODO: Kinda redundant, use property?
public SetName ( string name ) : void
name string
Résultat void

SetPartyQuest() public méthode

Sets party quest, removing previous ones and updating all members.
public SetPartyQuest ( Quest quest ) : void
quest Quest
Résultat void

SetPassword() public méthode

Sets party's password, set to empty string or null to disable.
public SetPassword ( string pass ) : void
pass string
Résultat void

SetType() public méthode

Sets party type.
public SetType ( PartyType type ) : void
type PartyType
Résultat void

ToString() public méthode

Returns the party name in the format the Party Member Wanted functionality requires.
public ToString ( ) : string
Résultat string

UnsetPartyQuest() public méthode

Unsets party quest, removes it from all normal member's managers, and updates the clients. Returns false if no party quest was set.
public UnsetPartyQuest ( ) : bool
Résultat bool