trait WeaponTurret extends FactionAffinity with Mountable with MountedWeapons with Container
- Self Type
- WeaponTurret with PlanetSideGameObject
- Source
- WeaponTurret.scala
- Alphabetic
- By Inheritance
- WeaponTurret
- Container
- MountedWeapons
- Mountable
- FactionAffinity
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def Actor: ActorRef
A reference to an
Actorthat governs the logic of the object to acceptMountablemessages.A reference to an
Actorthat governs the logic of the object to acceptMountablemessages. Specifically, theActorshould intercept the logic ofMountableControl.- returns
the internal
ActorRef
- Definition Classes
- Mountable
- See also
MountableControlPlanetSideServerObject.Actor
- abstract def Definition: TurretDefinition
- abstract def Faction: types.PlanetSideEmpire.Value
- Definition Classes
- FactionAffinity
- abstract def Health: Int
- abstract def MaxHealth: Int
- abstract def MountPoints: Map[Int, Int]
Retrieve a mapping of each seat from its mount point index.
Retrieve a mapping of each seat from its mount point index.
- returns
the mapping of mount point to seat
- Definition Classes
- WeaponTurret → Mountable
Concrete 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 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 ofEquipmentbeing 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 ofEquipmentbeing stowed in aGridInventory. Where theEquipmentobject is defined by the dimensionswidthandheight, starting a search atindexwill 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 normalEquipmentSlotobjects. 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 ConfirmUpgrade(upgrade: TurretUpgrade.Value): TurretUpgrade.Value
- def ControlledWeapon(wepNumber: Int): Option[Equipment]
- Definition Classes
- WeaponTurret → MountedWeapons
- def Faction_=(fac: types.PlanetSideEmpire.Value): types.PlanetSideEmpire.Value
- Definition Classes
- 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,
VisibleSlotandInventory, 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,
VisibleSlotandInventory, and wherever else, should be searchable.- obj
the
Equipmentobject- 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 GetSeatFromMountPoint(mountPoint: Int): Option[Int]
Given the index of an entry mounting point, return the infantry-accessible
Seatassociated with it.Given the index of an entry mounting point, return the infantry-accessible
Seatassociated with it.- mountPoint
an index representing the seat position / mounting point
- returns
a seat number, or
None
- Definition Classes
- WeaponTurret → Mountable
- 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
GridInventoryreturned by this accessor is also an implementation ofContainer.- Definition Classes
- WeaponTurret → Container
- See also
VisibleSlots
- def PassengerInSeat(user: Player): Option[Int]
Given a player, determine if that player is seated.
Given a player, determine if that player is seated.
- user
the player
- returns
the seat index
- Definition Classes
- WeaponTurret → Mountable
- def Seat(seatNum: Int): Option[Seat]
Given a seat's index position, retrieve the internal
Seatobject.Given a seat's index position, retrieve the internal
Seatobject.- returns
the specific seat
- Definition Classes
- WeaponTurret → Mountable
- def Seats: Map[Int, Seat]
Retrieve a mapping of each seat from its internal index.
Retrieve a mapping of each seat from its internal index.
- returns
the mapping of index to seat
- Definition Classes
- WeaponTurret → Mountable
- def Slot(slotNum: Int): EquipmentSlot
Access to all stowable positions on this object by index.
All positions,VisibleSlotandInventory, and wherever else, should be reachable.Access to all stowable positions on this object by index.
All positions,VisibleSlotandInventory, 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,EquipmentSlotobjects. By default, it is expected to return anEquipmentSlotthat 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 Upgrade: TurretUpgrade.Value
- def Upgrade_=(upgrade: TurretUpgrade.Value): TurretUpgrade.Value
- 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
- WeaponTurret → Container
- See also
Inventory
- def WeaponControlledFromSeat(seatNumber: Int): Option[Equipment]
Given a valid seat number, retrieve an index where the weapon controlled from this seat is mounted.
Given a valid seat number, retrieve an index where the weapon controlled from this seat is mounted.
- seatNumber
the seat number
- returns
a mounted weapon by index, or
Noneif either the seat doesn't exist or there is no controlled weapon
- Definition Classes
- MountedWeapons
- def Weapons: Map[Int, EquipmentSlot]
- Definition Classes
- WeaponTurret → MountedWeapons
- 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()
- val inventory: GridInventory
may or may not have inaccessible inventory space see
ReserveAmmunitionin the definitionmay or may not have inaccessible inventory space see
ReserveAmmunitionin the definition- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isUpgrading: Boolean
- 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()
- val seats: Map[Int, Seat]
manned turrets have just one seat; this is just standard interface
manned turrets have just one seat; this is just standard interface
- Attributes
- protected
- 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()
- val weapons: Map[Int, EquipmentSlot]
turrets have just one weapon; this is just standard interface
turrets have just one weapon; this is just standard interface
- Attributes
- protected