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
Deploymentobject fails to properly transition between states.Common reporting behavior when a
Deploymentobject fails to properly transition between states.- obj
the game object that could not
- state
the
DriveStatethat 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 DriverVehicleControl(vehicle: Vehicle, speed: Int = 0, flight: Int = 0): 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
- speed
how fast the vehicle is moving forward
- flight
whether the vehicle is ascending or not, if the vehicle is an applicable type
- 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 ofinterstellarFerryis 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 ofinterstellarFerryis 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-globalplayeroccupies it;(None, None), otherwise (even if the vehicle can be determined)
- See also
GetMountableAndSeatinterstellarFerry
- 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
directthenoccupant.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-globalplayeroccupies 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-globalplayeroccupies it;(None, None), otherwise (even if the vehicle can be determined)
- See also
GetMountableAndSeat
- def ServerVehicleLock(vehicle: Vehicle): Unit
Lock all applicable controls of the current vehicle.
Lock all applicable controls of the current vehicle. This includes forward motion, turning, and, if applicable, strafing.
- vehicle
the vehicle being controlled
- def ServerVehicleLockReverse(): Unit
This function is applied to vehicles that are leaving a cargo vehicle's cargo hold to auto reverse them out Lock all applicable controls of the current vehicle Set the vehicle to move in reverse
- def ServerVehicleLockStrafeLeft(): Unit
This function is applied to vehicles that are leaving a cargo vehicle's cargo hold to strafe left out of the cargo hold for vehicles that are mounted sideways e.g.
This function is applied to vehicles that are leaving a cargo vehicle's cargo hold to strafe left out of the cargo hold for vehicles that are mounted sideways e.g. router/BFR Lock all applicable controls of the current vehicle Set the vehicle to strafe left
- def ServerVehicleLockStrafeRight(): Unit
This function is applied to vehicles that are leaving a cargo vehicle's cargo hold to strafe right out of the cargo hold for vehicles that are mounted sideways e.g.
This function is applied to vehicles that are leaving a cargo vehicle's cargo hold to strafe right out of the cargo hold for vehicles that are mounted sideways e.g. router/BFR Lock all applicable controls of the current vehicle Set the vehicle to strafe right
- def ServerVehicleOverride(vehicle: Vehicle, speed: Int = 0, flight: Int = 0): 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
the vehicle
- speed
how fast the vehicle is moving forward
- flight
whether the vehicle is ascending or not, if the vehicle is an applicable type
- def TotalDriverVehicleControl(vehicle: Vehicle): Unit
- 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
senderto be the same ascontext.selfof theSessionActoractor class for which this support class was initialized.Hardwire an implicit
senderto be the same ascontext.selfof theSessionActoractor class for which this support class was initialized. Allows for proper use forActorRef.tellor an actor's!in the support class, one where the result is always directed back to the sameSessionActorinstance. If there is a different packet "sender" that has to be respected by a given method, pass thatActorRefinto 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()