class LockerContainer extends PlanetSideServerObject with Container
The companion of a Locker
that is carried with a player
masquerading as their sixth EquipmentSlot
object and a sub-inventory item.
The inventory of this object is accessed indirectly using a game world Locker
object (mb_locker
) as a proxy.
The Player
class refers to it as the "fifth slot".
- Source
- LockerContainer.scala
- Alphabetic
- By Inheritance
- LockerContainer
- Container
- PlanetSideServerObject
- ZoneAware
- FactionAffinity
- PlanetSideGameObject
- WorldEntity
- IdentifiableEntity
- Identifiable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new LockerContainer(inventory: GridInventory)
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 Actor: ActorRef
Retrieve a reference to the internal
Actor
.Retrieve a reference to the internal
Actor
.- returns
the internal
ActorRef
- Definition Classes
- PlanetSideServerObject
- def Actor_=(control: ActorRef): ActorRef
Assign an
Actor
to act for this server object.Assign an
Actor
to act for this server object. This reference is only set once, that is, as long as the internalActorRef
directs toActorRef.noSender
(null
).- control
the
Actor
whose functionality will govern this server object- returns
the current internal
ActorRef
- Definition Classes
- PlanetSideServerObject
- def Collisions(index: Int, width: Int, height: Int): Try[List[InventoryItem]]
Given a region of "searchable unit positions" considered as stowable, determine if any previously stowed items are contained within that region.
Default usage, and recommended the continued inclusion of that use, is defined in terms ofEquipment
being stowed in aGridInventory
.Given a region of "searchable unit positions" considered as stowable, determine if any previously stowed items are contained within that region.
Default usage, and recommended the continued inclusion of that use, is defined in terms ofEquipment
being stowed in aGridInventory
. Where theEquipment
object is defined by the dimensionswidth
andheight
, starting a search atindex
will search all positions within a grid-like range of numbers. Under certain searching conditions, this range may be meaningless, such as is the case when searching individual positions that are normalEquipmentSlot
objects. Regardless, the value collected indicates the potential of multiple objects being discovered and maintains a reference to the object itself and the slot position where the object is located. (As any object can be discovered within the range, that is important.)- index
the position to start searching
- width
the width of the searchable space
- height
the height of the serachable space
- returns
a list of objects that have been encountered within the searchable space
- Definition Classes
- Container
- See also
GridInventory.CheckCollisionsVar
- def Continent: String
- Definition Classes
- ZoneAware
- def Continent_=(zoneId: String): String
Give the entity a custom
Zone
identifier.Give the entity a custom
Zone
identifier.- zoneId
the custom identifier of the
Zone
object- returns
the identifier of the
Zone
object
- Definition Classes
- ZoneAware
- def Definition: EquipmentDefinition
- Definition Classes
- LockerContainer → PlanetSideGameObject
- def Destroyed: Boolean
- Definition Classes
- PlanetSideGameObject
- def Destroyed_=(state: Boolean): Boolean
- Definition Classes
- PlanetSideGameObject
- def Entity: WorldEntity
- Definition Classes
- PlanetSideGameObject
- def Entity_=(newEntity: WorldEntity): Unit
- Definition Classes
- PlanetSideGameObject
- def Faction: types.PlanetSideEmpire.Value
- Definition Classes
- LockerContainer → FactionAffinity
- def Faction_=(fact: types.PlanetSideEmpire.Value): types.PlanetSideEmpire.Value
- Definition Classes
- LockerContainer → FactionAffinity
- def Find(guid: PlanetSideGUID): Option[Int]
Given globally unique identifier, if the object using it is stowed, attempt to locate its slot.
Given globally unique identifier, if the object using it is stowed, attempt to locate its slot. All positions,
VisibleSlot
andInventory
, and wherever else, should be searchable.- guid
the GUID of the
Equipment
- returns
the index of the
EquipmentSlot
, orNone
- Definition Classes
- Container
- def Find(obj: Equipment): Option[Int]
Given an object, attempt to locate its slot.
Given an object, attempt to locate its slot. All positions,
VisibleSlot
andInventory
, and wherever else, should be searchable.- obj
the
Equipment
object- returns
the index of the
EquipmentSlot
, orNone
- Definition Classes
- Container
- def Fit(tile: InventoryTile): Option[Int]
- Definition Classes
- Container
- def Fit(obj: Equipment): Option[Int]
- Definition Classes
- Container
- def GUID: PlanetSideGUID
- Definition Classes
- IdentifiableEntity → Identifiable
- def GUID_=(guid: PlanetSideGUID): PlanetSideGUID
- Definition Classes
- IdentifiableEntity → Identifiable
- def GUID_=(guid: StalePlanetSideGUID): PlanetSideGUID
Always intercept
StalePlanetSideGUID
references when attempting to mutate the GUID value.Always intercept
StalePlanetSideGUID
references when attempting to mutate the GUID value.- guid
the valid GUID to assign
- returns
never returns
- Definition Classes
- IdentifiableEntity
- Exceptions thrown
`AssigningGUIDException`
always
- def HasGUID: Boolean
Flag when the object has no GUID (initial condition) or is considered stale.
Flag when the object has no GUID (initial condition) or is considered stale.
- returns
whether the value of the GUID is a valid representation for this object
- Definition Classes
- IdentifiableEntity
- def Invalidate(): Unit
Indicate that the current GUID is no longer a valid representation of the object.
Indicate that the current GUID is no longer a valid representation of the object. Transforms whatever the current GUID is into a
StalePlanetSideGUID
entity with the same value. Doing this restores the object to its default mutation option ("the ability to set a new valid GUID"). The current GUID will still be accessed as if it were valid, but it will be wrapped in the new stale object.- Definition Classes
- IdentifiableEntity
- def Inventory: GridInventory
A(n imperfect) reference to a generalized pool of the contained objects.
A(n imperfect) reference to a generalized pool of the contained objects. Having access to all of the available positions is not required. The entries in this reference should definitely include all unseen positions. The
GridInventory
returned by this accessor is also an implementation ofContainer
.- Definition Classes
- LockerContainer → Container
- See also
VisibleSlots
- def Orientation: Vector3
- Definition Classes
- PlanetSideGameObject → WorldEntity
- def Orientation_=(vec: Vector3): Vector3
- Definition Classes
- PlanetSideGameObject → WorldEntity
- def Position: Vector3
- Definition Classes
- PlanetSideGameObject → WorldEntity
- def Position_=(vec: Vector3): Vector3
- Definition Classes
- PlanetSideGameObject → WorldEntity
- def ResetControl(): ActorRef
- Definition Classes
- PlanetSideServerObject
- def Slot(slotNum: Int): EquipmentSlot
Access to all stowable positions on this object by index.
All positions,VisibleSlot
andInventory
, and wherever else, should be reachable.Access to all stowable positions on this object by index.
All positions,VisibleSlot
andInventory
, and wherever else, should be reachable. Regardless of the internal storage medium, the format of return is expected to be the same structure of object as the most basic storage component forEquipment
, namely,EquipmentSlot
objects. By default, it is expected to return anEquipmentSlot
that can not be manipulated because it isBlocked
.- slotNum
an index
- returns
the searchable position identified by that index
- Definition Classes
- Container
- See also
OffhandEquipmentSlot
- def SlotMapResolution(slot: Int): Int
When the slot reported is not the slot requested, change the slot.
When the slot reported is not the slot requested, change the slot.
- slot
the original slot index
- returns
the modified slot index
- Definition Classes
- Container
- def Velocity: Option[Vector3]
- Definition Classes
- PlanetSideGameObject → WorldEntity
- def Velocity_=(vec: Option[Vector3]): Option[Vector3]
- Definition Classes
- PlanetSideGameObject → WorldEntity
- def Velocity_=(vec: Vector3): Option[Vector3]
- Definition Classes
- WorldEntity
- def VisibleSlots: Set[Int]
A(n imperfect) reference to a generalized pool of the contained objects.
Having access to all of the available positions is not required.A(n imperfect) reference to a generalized pool of the contained objects.
Having access to all of the available positions is not required. Only the positions that can be actively viewed by other clients are listed.- returns
all of the affected slot indices
- Definition Classes
- LockerContainer → Container
- See also
Inventory
- def Zone: Zone
- Definition Classes
- ZoneAware
- def Zone_=(zone: Zone): Zone
When assigning a new
Zone
object for theVehicle
object, eliminateWhen assigning a new
Zone
object for theVehicle
object, eliminate- zone
a reference to the
Zone
object- returns
a reference to the
Zone
object
- Definition Classes
- ZoneAware
- 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
- def isMoving(test: Float): Boolean
This object is not considered moving unless it is moving at least as fast as a certain velocity.
This object is not considered moving unless it is moving at least as fast as a certain velocity.
- test
the (squared) velocity to test against
- returns
true
, if we are moving;false
, otherwise
- Definition Classes
- WorldEntity
- def isMoving(test: Vector3): Boolean
This object is not considered moving unless it is moving at least as fast as a certain velocity.
This object is not considered moving unless it is moving at least as fast as a certain velocity.
- test
the velocity to test against
- returns
true
, if we are moving;false
, otherwise
- Definition Classes
- WorldEntity
- def isMoving: Boolean
A velocity of non-zero is the same as moving.
A velocity of non-zero is the same as moving.
- returns
true
, if we are moving;false
, otherwise
- Definition Classes
- WorldEntity
- 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()