class VehicleOperations extends CommonSessionInterfacingFunctionality
- Source
- VehicleOperations.scala
- Alphabetic
- By Inheritance
- VehicleOperations
- CommonSessionInterfacingFunctionality
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new VehicleOperations(sessionData: SessionData, avatarActor: ActorRef[Command], context: ActorContext)
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 CanNotChangeDeployment(obj: PlanetSideServerObject with Deployment, state: types.DriveState.Value, reason: String): Unit
Common reporting behavior when a
Deployment
object fails to properly transition between states.Common reporting behavior when a
Deployment
object fails to properly transition between states.- obj
the game object that could not
- state
the
DriveState
that could not be promoted- reason
a string explaining why the state can not or will not change
- def ConditionalDriverVehicleControl(vehicle: Vehicle): Unit
Place the current vehicle under the control of the driver's commands, but leave it in a cancellable auto-drive.
Place the current vehicle under the control of the driver's commands, but leave it in a cancellable auto-drive. Stop all movement entirely.
- vehicle
the vehicle
- def GetKnownVehicleAndSeat(): (Option[Vehicle], Option[Int])
If the player is seated in a vehicle, find that vehicle and get the mount index number at which the player is sat.
For special purposes involved in zone transfers, where the vehicle may or may not exist in either of the zones (yet), the value ofinterstellarFerry
is also polled.If the player is seated in a vehicle, find that vehicle and get the mount index number at which the player is sat.
For special purposes involved in zone transfers, where the vehicle may or may not exist in either of the zones (yet), the value ofinterstellarFerry
is also polled. Making certain this field is blanked after the transfer is completed is important to avoid inspecting the wrong vehicle and failing simple vehicle checks where this function may be employed.- returns
a tuple consisting of a vehicle reference and a mount index if and only if the vehicle is known to this client and the
WorldSessioNActor
-globalplayer
occupies it;(None, None)
, otherwise (even if the vehicle can be determined)
- See also
GetMountableAndSeat
interstellarFerry
- def GetMountableAndSeat(direct: Option[PlanetSideGameObject with Mountable], occupant: Player, zone: Zone): (Option[PlanetSideGameObject with Mountable], Option[Int])
If the player is mounted in some entity, find that entity and get the mount index number at which the player is sat.
If the player is mounted in some entity, find that entity and get the mount index number at which the player is sat. The priority of object confirmation is
direct
thenoccupant.VehicleSeated
. Once an object is found, the remainder are ignored.- direct
a game object in which the player may be sat
- occupant
the player who is sat and may have specified the game object in which mounted
- returns
a tuple consisting of a vehicle reference and a mount index if and only if the vehicle is known to this client and the
WorldSessioNActor
-globalplayer
occupies it;(None, None)
, otherwise (even if the vehicle can be determined)
- def GetVehicleAndSeat(): (Option[Vehicle], Option[Int])
If the player is seated in a vehicle, find that vehicle and get the mount index number at which the player is sat.
If the player is seated in a vehicle, find that vehicle and get the mount index number at which the player is sat.
- returns
a tuple consisting of a vehicle reference and a mount index if and only if the vehicle is known to this client and the
WorldSessioNActor
-globalplayer
occupies it;(None, None)
, otherwise (even if the vehicle can be determined)
- See also
GetMountableAndSeat
- def ServerVehicleOverrideStop(vehicle: Vehicle): Unit
Place the current vehicle under the control of the driver's commands, but leave it in a cancellable auto-drive.
Place the current vehicle under the control of the driver's commands, but leave it in a cancellable auto-drive.
- vehicle
the vehicle
- def ServerVehicleOverrideWithPacket(vehicle: Vehicle, pkt: ServerVehicleOverrideMsg): Unit
Place the current vehicle under the control of the server's commands.
Place the current vehicle under the control of the server's commands.
- vehicle
vehicle to be controlled; the client's player who is receiving this packet should be mounted as its driver, but this is not explicitly tested
- pkt
packet to instigate server control
- def TotalDriverVehicleControl(vehicle: Vehicle): Unit
Place the current vehicle under the control of the driver's commands, but leave it in a cancellable auto-drive.
Place the current vehicle under the control of the driver's commands, but leave it in a cancellable auto-drive. Stop all movement entirely.
- vehicle
the vehicle
- def TotalDriverVehicleControlWithPacket(vehicle: Vehicle, pkt: ServerVehicleOverrideMsg): Unit
Place the current vehicle under the control of the driver's commands, but leave it in a cancellable auto-drive.
Place the current vehicle under the control of the driver's commands, but leave it in a cancellable auto-drive. Stop all movement entirely.
- vehicle
the vehicle; the client's player who is receiving this packet should be mounted as its driver, but this is not explicitly tested
- pkt
packet to instigate cancellable control
- def account: Account
- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def avatar: Avatar
- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit val context: ActorContext
- Definition Classes
- VehicleOperations → CommonSessionInterfacingFunctionality
- def continent: Zone
- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- 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 handleCanDeploy(obj: DeploymentObject, state: types.DriveState.Value): Unit
- def handleCanNotChangeDeployment(obj: DeploymentObject, state: types.DriveState.Value, reason: String): Unit
- def handleCanUndeploy(obj: DeploymentObject, state: types.DriveState.Value): Unit
- def handleChildObjectState(pkt: ChildObjectStateMessage): Unit
- def handleDeployRequest(pkt: DeployRequestMessage): Unit
- def handleDismountVehicle(pkt: DismountVehicleMsg): Unit
- def handleDismountVehicleCargo(pkt: DismountVehicleCargoMsg): Unit
- def handleFrameVehicleState(pkt: FrameVehicleStateMessage): Unit
- def handleMountVehicle(pkt: MountVehicleMsg): Unit
- def handleMountVehicleCargo(pkt: MountVehicleCargoMsg): Unit
- def handleVehicleState(pkt: VehicleStateMessage): Unit
- def handleVehicleSubState(pkt: VehicleSubStateMessage): Unit
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log: Logger
- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- 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()
- def player: Player
- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- def sendResponse(pkt: PlanetSideGamePacket): Unit
- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- implicit val sender: ActorRef
Hardwire an implicit
sender
to be the same ascontext.self
of theSessionActor
actor class for which this support class was initialized.Hardwire an implicit
sender
to be the same ascontext.self
of theSessionActor
actor class for which this support class was initialized. Allows for proper use forActorRef.tell
or an actor's!
in the support class, one where the result is always directed back to the sameSessionActor
instance. If there is a different packet "sender" that has to be respected by a given method, pass thatActorRef
into the method as a parameter.- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- See also
ActorRef.!(Any)(ActorRef)
ActorRef.tell(Any)(ActorRef)
- def session: Session
- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- val sessionData: SessionData
- Definition Classes
- VehicleOperations → CommonSessionInterfacingFunctionality
- def session_=(newsession: Session): Unit
- Attributes
- protected
- Definition Classes
- CommonSessionInterfacingFunctionality
- def stop(): Unit
- Attributes
- protected[actors.session]
- Definition Classes
- CommonSessionInterfacingFunctionality
- 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()