object GUIDTask
The basic compiled tasks for assigning (registering) and revoking (unregistering) globally unique identifiers.
Almost all of these functions will be invoked from WorldSessionActor.
Some of the "unregistering" functions will invoke on delayed Service operations,
indicating behavior that is not user/observer dependent.
The object's (current) Zone must also be knowable since the GUID systems are tied to individual zones.
For simplicity, all functions have the same format where the hook into the GUID system is an implicit parameter.
It will get passed from the more complicated functions down into the less complicated functions,
until it has found the basic number assignment functionality.
All functions produce a TaskResolver.GiveTask container object
or a list of TaskResolver.GiveTask container objects that is expected to be used by a TaskResolver Actor.
These "task containers" can also be unpackaged into their component tasks, sorted into other containers,
and combined with other tasks to enact more complicated sequences of operations.
Almost all tasks have an explicit registering and an unregistering activity defined for it.
- Source
- GUIDTask.scala
- Alphabetic
- By Inheritance
- GUIDTask
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def RegisterAvatar(tplayer: Player)(implicit guid: ActorRef): GiveTask
Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, as a
Player.
Playerobjects are far more complicated thanTools(but they are notEquipment).Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, as a
Player.
Playerobjects are far more complicated thanTools(but they are notEquipment). A player has an inventory in which it can hold a countable number ofEquipment; and, this inventory holds a sub-inventory with its own countable number ofEquipment. Although a process of completing and insertingEquipmentinto the inventories that looks orderly can be written, this function assumes that the player is already fully composed. Use this function for an sudden introduction of the player into his environment (as defined by the scope of the unique number system). For working with processes concerning these "orderly insertions," a task built of lesser registration tasks and supporting tasks should be written instead.- tplayer
the
Playerobject being registered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- def RegisterDeployableTurret(obj: PlanetSideGameObject with WeaponTurret)(implicit guid: ActorRef): GiveTask
- def RegisterEquipment(obj: Equipment)(implicit guid: ActorRef): GiveTask
Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, after determining whether the object is complex (
ToolorLocker) or is simple.
The objects in this case are specificallyEquipment, a subclass of the basic register-ableIdentifiableEntity.Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, after determining whether the object is complex (
ToolorLocker) or is simple.
The objects in this case are specificallyEquipment, a subclass of the basic register-ableIdentifiableEntity. About five subclasses ofEquipmentexist, but they decompose into two groups - "complex objects" and "simple objects." "Simple objects" are most groups ofEquipmentand just their own GUID to be registered. "Complex objects" are just theToolcategory ofEquipment. They have internal objects that must also have their GUID's registered to function.
Using this function when passing unknownEquipmentis recommended. The type will be sorted and the object will be handled according to its complexity level.- obj
the
Equipmentobject being registered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- def RegisterInventory(container: Container)(implicit guid: ActorRef): List[GiveTask]
Construct tasking that registers the objects that are within the given container's inventory with a globally unique identifier selected from a pool of numbers for each object.
Construct tasking that registers the objects that are within the given container's inventory with a globally unique identifier selected from a pool of numbers for each object.
- container
the storage unit in which objects can be found
- guid
implicit reference to a unique number system
- returns
a list of
TaskResolver.GiveTaskmessages
- See also
GUID.UnregisterInventory
Container
- def RegisterLocker(obj: LockerEquipment)(implicit guid: ActorRef): GiveTask
- def RegisterLocker(obj: LockerContainer)(implicit guid: ActorRef): GiveTask
Construct tasking that registers a
LockerContainerobject with a globally unique identifier selected from a pool of numbers.Construct tasking that registers a
LockerContainerobject with a globally unique identifier selected from a pool of numbers.- obj
the object being registered
- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.UnregisterLocker
- def RegisterObjectTask(obj: IdentifiableEntity)(implicit guid: ActorRef): GiveTask
Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers.
Regardless of the complexity of the object provided to this function, only the current depth will be assigned a GUID.Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers.
Regardless of the complexity of the object provided to this function, only the current depth will be assigned a GUID. This is the most basic operation that all objects that can be assigned a GUID must perform.- obj
the object being registered
- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- def RegisterPlayer(tplayer: Player)(implicit guid: ActorRef): GiveTask
Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, as a
Player.
Similar toRegisterAvatarbut the locker components are skipped.Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, as a
Player.
Similar toRegisterAvatarbut the locker components are skipped.- tplayer
the
Playerobject being registered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- def RegisterTool(obj: Tool)(implicit guid: ActorRef): GiveTask
Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, as a
Tool.
Toolobjects are complicated by an internal structure informally called a "magazine feed." The objects in the magazine feed are calledAmmoBoxobjects.Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, as a
Tool.
Toolobjects are complicated by an internal structure informally called a "magazine feed." The objects in the magazine feed are calledAmmoBoxobjects. EachAmmoBoxobject can be registered to a unique number system much like theToolitself; and, each must be registered properly for the whole of theToolto be communicated from the server to the client. While the matter has been abstracted for convenience, mostToolobjects will have only oneAmmoBoxat a time and the common outlier will only be two.
Do not invoke this function unless certain the object will be of typeTool, else use a more general function to differentiate between simple and complex objects.- obj
the
Toolobject being registered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.RegisterEquipment
- def RegisterVehicle(vehicle: Vehicle)(implicit guid: ActorRef): GiveTask
Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, as a
Vehicle.
Vehicleobjects are far more complicated thanTools(but they are notEquipment).Construct tasking that registers an object with a globally unique identifier selected from a pool of numbers, as a
Vehicle.
Vehicleobjects are far more complicated thanTools(but they are notEquipment). A vehicle has an inventory in which it can hold a countable number ofEquipment; and, it may possess weapons (Tools, usually) that are firmly mounted on its outside. (This is similar to the holsters on aPlayerobject but they can not be swapped out for otherEquipmentor for nothing.) Although a process of completing and insertingEquipmentinto the inventories that looks orderly can be written, this function assumes that the vehicle is already fully composed. Use this function for an sudden introduction of the vehicle into its environment (as defined by the scope of the unique number system). For working with processes concerning these "orderly insertions," a task built of lesser registration tasks and supporting tasks should be written instead.- vehicle
the
Vehicleobject being registered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- def UnregisterAvatar(tplayer: Player)(implicit guid: ActorRef): GiveTask
Construct tasking that unregisters a
Playerobject from a globally unique identifier system.
This task performs an operation that reverses the effect ofRegisterAvatar.Construct tasking that unregisters a
Playerobject from a globally unique identifier system.
This task performs an operation that reverses the effect ofRegisterAvatar.- tplayer
the
Playerobject being unregistered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.RegisterAvatar
- def UnregisterDeployableTurret(obj: PlanetSideGameObject with WeaponTurret)(implicit guid: ActorRef): GiveTask
- def UnregisterEquipment(obj: Equipment)(implicit guid: ActorRef): GiveTask
Construct tasking that unregisters an object from a globally unique identifier system after determining whether the object is complex (
ToolorLocker) or is simple.
This task performs an operation that reverses the effect ofRegisterEquipment.Construct tasking that unregisters an object from a globally unique identifier system after determining whether the object is complex (
ToolorLocker) or is simple.
This task performs an operation that reverses the effect ofRegisterEquipment.- obj
the
Equipmentobject being unregistered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.RegisterEquipment
- def UnregisterInventory(container: Container)(implicit guid: ActorRef): List[GiveTask]
Construct tasking that unregisters the objects that are within the given container's inventory from a globally unique identifier system.
Construct tasking that unregisters the objects that are within the given container's inventory from a globally unique identifier system.
- container
the storage unit in which objects can be found
- guid
implicit reference to a unique number system
- returns
a list of
TaskResolver.GiveTaskmessages
- See also
GUIDTask.RegisterInventory
Container
- def UnregisterLocker(obj: LockerEquipment)(implicit guid: ActorRef): GiveTask
- def UnregisterLocker(obj: LockerContainer)(implicit guid: ActorRef): GiveTask
Construct tasking that unregisters a
LockerContainerobject from a globally unique identifier system.Construct tasking that unregisters a
LockerContainerobject from a globally unique identifier system.- obj
the object being unregistered
- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.RegisterLocker
- def UnregisterObjectTask(obj: IdentifiableEntity)(implicit guid: ActorRef): GiveTask
Construct tasking that unregisters an object from a globally unique identifier system.
This task performs an operation that reverses the effect ofRegisterObjectTask.Construct tasking that unregisters an object from a globally unique identifier system.
This task performs an operation that reverses the effect ofRegisterObjectTask. It is the most basic operation that all objects that can have their GUIDs revoked must perform.- obj
the object being unregistered
- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.RegisterObjectTask
- def UnregisterPlayer(tplayer: Player)(implicit guid: ActorRef): GiveTask
Construct tasking that unregisters a portion of a
Playerobject from a globally unique identifier system.
Similar toUnregisterAvatarbut the locker components are skipped.Construct tasking that unregisters a portion of a
Playerobject from a globally unique identifier system.
Similar toUnregisterAvatarbut the locker components are skipped. This task performs an operation that reverses the effect ofRegisterPlayer.- tplayer
the
Playerobject being unregistered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.RegisterAvatar
- def UnregisterTool(obj: Tool)(implicit guid: ActorRef): GiveTask
Construct tasking that unregisters a
Toolobject from a globally unique identifier system.
This task performs an operation that reverses the effect ofRegisterTool.Construct tasking that unregisters a
Toolobject from a globally unique identifier system.
This task performs an operation that reverses the effect ofRegisterTool.- obj
the
Toolobject being unregistered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.RegisterTool
- def UnregisterVehicle(vehicle: Vehicle)(implicit guid: ActorRef): GiveTask
Construct tasking that unregisters a
Vehicleobject from a globally unique identifier system.
This task performs an operation that reverses the effect ofRegisterVehicle.Construct tasking that unregisters a
Vehicleobject from a globally unique identifier system.
This task performs an operation that reverses the effect ofRegisterVehicle.- vehicle
the
Vehicleobject being unregistered- guid
implicit reference to a unique number system
- returns
a
TaskResolver.GiveTaskmessage
- See also
GUIDTask.RegisterVehicle
- def VisibleSlotTaskBuilding(list: Iterable[EquipmentSlot], func: (Equipment) => GiveTask)(implicit guid: ActorRef): List[GiveTask]
Construct tasking that allocates work upon encountered
Equipmentobjects in reference to a globally unique identifier system of a pool of numbers.Construct tasking that allocates work upon encountered
Equipmentobjects in reference to a globally unique identifier system of a pool of numbers. "Visible slots" are locations that can be viewed by multiple observers across a number of clients.- list
an
Iterablesequence ofEquipmentSlotobjects that may or may not have equipment- func
the function used to build tasking from any discovered
Equipment; strictly eitherRegisterEquipmentorUnregisterEquipment- guid
implicit reference to a unique number system
- returns
a list of
TaskResolver.GiveTaskmessages
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()