Public Member Functions | |
ActorsManager () | |
bool | TryAddPeerToGame (HiveGame game, HivePeer peer, int actorNr, out Actor actor, out bool isNewActor, out Photon.Common.ErrorCode errorcode, out string reason, JoinGameRequest joinRequest) |
Tries to add a HivePeer to this game instance. More... | |
int | RemovePeerFromGame (HiveGame game, HivePeer peer, int playerTTL, bool isComingBack) |
bool | RemoveInactiveActor (HiveGame game, Actor actor) |
void | AddToExcludeList (string userId, byte reason) |
string | DumpActors () |
bool | CheckMayAddSlots (string[] slots, int maxPlayers) |
bool | CheckMayOverrideSlots (string[] newExpectedUsersArray, int maxPlayers) |
bool | IsExpectedUser (string userId) |
bool | TryAddExpectedUsers (HiveGame hiveGame, JoinGameRequest joinRequest) |
Actor | GetActorByUserId (string userId) |
Actor | GetActorByNumber (int actorNr) |
void | DeserializeActors (IList< SerializableActor > list) |
List< SerializableActor > | SerializeActors (bool withDebugInfo) |
Actor | ActorsGetActorByNumber (int actorNumber) |
Gets an actor by the actor number. More... | |
Actor | ActorsGetActorByPeer (PeerBase peer) |
Gets an actor by a specified peer. More... | |
Actor | ActorsGetActorByUserId (string userId) |
Gets an actor by userId. More... | |
IEnumerable< int > | ActorsGetActorNumbers () |
Gets the actor numbers of all actors in this instance as an array. More... | |
IEnumerable< Actor > | ActorsGetActorsByNumbers (int[] actors) |
Returns all actors with the given actor numbers. More... | |
IEnumerable< Actor > | ActorsGetExcludedList (Actor actorToExclude) |
Gets a list of actors in the room exluding a specified actor. This method can be used to get the actor list for an event, where the actor causing the event should not be notified. More... | |
IEnumerable< Actor > | ActorsGetExcludedList (int actorToExclude) |
IEnumerable< int > | InactiveActorsGetActorNumbers () |
Actor | InactiveActorsGetActorByNumber (int actorNr) |
Actor | InactiveActorsGetActorByUserId (string userId) |
Actor | AllActorsGetActorByNumber (int actorNr) |
IEnumerator< Actor > | GetEnumerator () |
void | DeactivateActors (HiveGame game) |
Protected Attributes | |
readonly List< Actor > | allActors = new List<Actor>() |
Properties | |
int | Count [get] |
int | ActiveActorsCount [get] |
int | InactiveActorsCount [get] |
int | ActorNumberCounter [get, set] |
List< ExcludedActorInfo >?? | ExcludedActors [get, set] |
IEnumerable< Actor > | AllActors [get] |
IEnumerable< Actor > | ActiveActors [get] |
IEnumerable< Actor > | InactiveActors [get] |
int | YetExpectedUsersCount [get] |
List< string > | ExpectedUsers [get, set] |
|
inline |
|
inline |
Gets an actor by the actor number.
actorNumber | The actor number. |
Gets an actor by a specified peer.
peer | The peer. |
|
inline |
Gets an actor by userId.
userId | The userId to query for. |
|
inline |
Gets the actor numbers of all actors in this instance as an array.
|
inline |
Returns all actors with the given actor numbers.
actors | The actor numbers. |
|
inline |
Gets a list of actors in the room exluding a specified actor. This method can be used to get the actor list for an event, where the actor causing the event should not be notified.
actorToExclude | The actor to exclude. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Tries to add a HivePeer to this game instance.
game | |
peer | The peer to add. |
actorNr | The actor Nr. |
actor | When this method returns this out param contains the Actor associated with the peer . |
isNewActor | indicates that new actor was created |
errorcode | error code if error happened |
reason | reason why player can not be added |
joinRequest |
|
get |
|
get |
|
getset |
|
get |
|
get |
|
getset |
|
getset |
|
get |
|
get |
|
get |