Class/Object

net.psforever.objects.zones

Zone

Related Docs: object Zone | package zones

Permalink

class Zone extends AnyRef

A server object representing the one-landmass planets as well as the individual subterranean caverns.

The concept of a "zone" is synonymous to the common vernacular "continent," commonly referred by names such as Hossin or Ishundar and internally identified as c2 and c7, respectively. A Zone is composed of the abstracted concept of all the information pertinent for the simulation of the environment. That is, "everything about the continent." Physically, server objects and dynamic game objects are maintained through a local unique identifier system. Static server objects originate from the ZoneMap. Dynamic game objects originate from player characters. (Write more later.)

Source
Zone.scala
See also

ZoneMap
LoadMapMessage
LivePlayerList

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Zone
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Zone(zoneId: String, zoneMap: ZoneMap, zoneNumber: Int)

    Permalink

    zoneId

    the privileged name that can be used as the second parameter in the packet LoadMapMessage

    zoneMap

    the map of server objects upon which this Zone is based

    zoneNumber

    the numerical index of the Zone as it is recognized in a variety of packets; also used by LivePlayerList to indicate a specific Zone

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Zone to any2stringadd[Zone] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Zone, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Zone to ArrowAssoc[Zone] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def Activity: ActorRef

    Permalink
  7. def Actor: ActorRef

    Permalink

    A reference to the primary Actor that governs this Zone.

    A reference to the primary Actor that governs this Zone.

    returns

    an ActorRef

    See also

    ZoneActor
    Zone.Init

  8. def Actor_=(zoneActor: ActorRef): ActorRef

    Permalink

    Give this Zone an Actor that will govern its interactions sequentially.

    Give this Zone an Actor that will govern its interactions sequentially.

    zoneActor

    an ActorRef for this Zone; will not overwrite any existing governance unless noSender

    returns

    an ActorRef

    See also

    ZoneActor

  9. def AddPool(name: String, pool: Seq[Int]): Boolean

    Permalink

    Wraps around the globally unique identifier system to insert a new number pool.

    Wraps around the globally unique identifier system to insert a new number pool. Throws exceptions for specific reasons if the pool can not be populated before the system has been started.

    name

    the name of the pool

    pool

    the numbers that will belong to the pool

    returns

    true, if the new pool is created; false, if the new pool can not be created because the system has already been started

    See also

    NumberPoolHub.AddPool

  10. def Building(id: Int): Option[Building]

    Permalink
  11. def BuildingByMapId(map_id: Int): Option[Building]

    Permalink
  12. def Buildings: Map[Int, Building]

    Permalink
  13. def ClientInitialization(): Zone

    Permalink

    Provide bulk correspondence on all map entities that can be composed into packet messages and reported to a client.

    Provide bulk correspondence on all map entities that can be composed into packet messages and reported to a client. These messages are sent in this fashion at the time of joining the server:
    - BuildingInfoUpdateMessage
    - DensityLevelUpdateMessage
    - BroadcastWarpgateUpdateMessage
    - CaptureFlagUpdateMessage
    - ContinentalLockUpdateMessage
    - ModuleLimitsMessage
    - VanuModuleUpdateMessage
    - ZoneForcedCavernConnectionMessage
    - ZoneInfoMessage
    - ZoneLockInfoMessage
    - ZonePopulationUpdateMessage

    returns

    the Zone object

  14. def Corpses: List[Player]

    Permalink
  15. def DeployableList: List[PlanetSideGameObject with Deployable]

    Permalink
  16. def Deployables: ActorRef

    Permalink
  17. def EquipmentOnGround: List[Equipment]

    Permalink

    The List of items (Equipment) dropped by players on the ground and can be collected again.

    The List of items (Equipment) dropped by players on the ground and can be collected again.

    returns

    the List of Equipment

  18. def GUID(object_guid: Int): Option[PlanetSideGameObject]

    Permalink

    Recover an object from the globally unique identifier system by the number that was assigned previously.

    Recover an object from the globally unique identifier system by the number that was assigned previously. The object must be upcast into due to the differtence between the storage type and the return type.

    object_guid

    the globally unique identifier requested

    returns

    the associated object, if it exists

    See also

    NumberPoolHub(Int)

  19. def GUID(object_guid: PlanetSideGUID): Option[PlanetSideGameObject]

    Permalink

    Recover an object from the globally unique identifier system by the number that was assigned previously.

    Recover an object from the globally unique identifier system by the number that was assigned previously.

    object_guid

    the globally unique identifier requested

    returns

    the associated object, if it exists

    See also

    GUID(Int)

  20. def GUID(object_guid: Option[PlanetSideGUID]): Option[PlanetSideGameObject]

    Permalink

    Recover an object from the globally unique identifier system by the number that was assigned previously.

    Recover an object from the globally unique identifier system by the number that was assigned previously.

    object_guid

    the globally unique identifier requested

    returns

    the associated object, if it exists

    See also

    GUID(Int)

  21. def GUID(hub: NumberPoolHub): Boolean

    Permalink

    Replace the current globally unique identifier system with a new one.

    Replace the current globally unique identifier system with a new one. The replacement will not occur if the current system is populated or if its synchronized reference has been created. The primary use of this function should be testing. A warning will be issued.

    returns

    synchronized reference to the globally unique identifier system

  22. def GUID: ActorRef

    Permalink

    The globally unique identifier system is synchronized via an Actor to ensure that concurrent requests do not clash.

    The globally unique identifier system is synchronized via an Actor to ensure that concurrent requests do not clash. A clash is merely when the same number is produced more than once by the same system due to concurrent requests.

    returns

    synchronized reference to the globally unique identifier system

  23. def Ground: ActorRef

    Permalink

    Coordinate Equipment that has been dropped on the ground or to-be-dropped on the ground.

    Coordinate Equipment that has been dropped on the ground or to-be-dropped on the ground.

    returns

    synchronized reference to the ground

    See also

    ZoneGroundActor
    Zone.DropItemOnGround
    Zone.GetItemOnGround
    Zone.ItemFromGround

  24. def HotSpotCoordinateFunction: (Vector3) ⇒ Vector3

    Permalink
  25. def HotSpotCoordinateFunction_=(func: (Vector3) ⇒ Vector3): (Vector3) ⇒ Vector3

    Permalink
  26. def HotSpotTimeFunction: (SourceEntry, SourceEntry) ⇒ FiniteDuration

    Permalink
  27. def HotSpotTimeFunction_=(func: (SourceEntry, SourceEntry) ⇒ FiniteDuration): (SourceEntry, SourceEntry) ⇒ FiniteDuration

    Permalink
  28. def HotSpots: List[HotSpotInfo]

    Permalink
  29. def HotSpots_=(spots: Seq[HotSpotInfo]): List[HotSpotInfo]

    Permalink
  30. def Id: String

    Permalink

    The privileged name that can be used as the second parameter in the packet LoadMapMessage.

    The privileged name that can be used as the second parameter in the packet LoadMapMessage.

    returns

    the name

  31. def Init(implicit context: ActorContext): Unit

    Permalink

    Establish the basic accessible conditions necessary for a functional Zone.

    Called from the Actor that governs this Zone when it is passed a constructor reference to the Zone.

    Establish the basic accessible conditions necessary for a functional Zone.

    Called from the Actor that governs this Zone when it is passed a constructor reference to the Zone. Specifically, the order of calling follows: InterstellarCluster.preStart -> ZoneActor.receive(Zone.Init()) -> Zone.Init. The basic method performs three main operations. First, the Actor-driven aspect of the globally unique identifier system for this Zone is finalized. Second, all supporting Actor agents are created, e.g., ground. Third, the ZoneMap server objects are loaded and constructed within that aforementioned system. To avoid being called more than once, there is a test whether the accessor for the globally unique identifier system has been changed.

    Execution of this operation should be fail-safe. The chances of failure should be mitigated or skipped. A testing routine should be run after the fact on the results of the process.

    context

    a reference to an ActorContext necessary for Props

    See also

    ZoneActor.ZoneSetupCheck

  32. def LivePlayers: List[Player]

    Permalink
  33. def Map: ZoneMap

    Permalink

    The map of server objects upon which this Zone is based

    The map of server objects upon which this Zone is based

    returns

    the map

  34. def Number: Int

    Permalink

    The numerical index of the Zone as it is recognized in a variety of packets.

    The numerical index of the Zone as it is recognized in a variety of packets.

    returns

    the abstract index position of this Zone

  35. def Players: List[Avatar]

    Permalink
  36. def Population: ActorRef

    Permalink
  37. def RemovePool(name: String): Boolean

    Permalink

    Wraps around the globally unique identifier system to remove an existing number pool.

    Wraps around the globally unique identifier system to remove an existing number pool. Throws exceptions for specific reasons if the pool can not be removed before the system has been started.

    name

    the name of the pool

    returns

    true, if the new pool is un-made; false, if the new pool can not be removed because the system has already been started

    See also

    NumberPoolHub.RemovePool

  38. def SetupNumberPools(): Unit

    Permalink
  39. def SpawnGroups(spawns: (Building, List[SpawnPoint])): Map[Building, List[SpawnPoint]]

    Permalink
  40. def SpawnGroups(buildingId: Int): List[SpawnPoint]

    Permalink
  41. def SpawnGroups(building: Building): List[SpawnPoint]

    Permalink
  42. def SpawnGroups(): Map[Building, List[SpawnPoint]]

    Permalink
  43. def Transport: ActorRef

    Permalink
  44. def TryHotSpot(displayLoc: Vector3): HotSpotInfo

    Permalink
  45. def VehicleEvents: ActorRef

    Permalink
  46. def VehicleEvents_=(bus: ActorRef): ActorRef

    Permalink
  47. def Vehicles: List[Vehicle]

    Permalink
  48. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  49. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. def ensuring(cond: (Zone) ⇒ Boolean, msg: ⇒ Any): Zone

    Permalink
    Implicit information
    This member is added by an implicit conversion from Zone to Ensuring[Zone] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  51. def ensuring(cond: (Zone) ⇒ Boolean): Zone

    Permalink
    Implicit information
    This member is added by an implicit conversion from Zone to Ensuring[Zone] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  52. def ensuring(cond: Boolean, msg: ⇒ Any): Zone

    Permalink
    Implicit information
    This member is added by an implicit conversion from Zone to Ensuring[Zone] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  53. def ensuring(cond: Boolean): Zone

    Permalink
    Implicit information
    This member is added by an implicit conversion from Zone to Ensuring[Zone] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  54. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  55. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  56. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  57. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Zone to StringFormat[Zone] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  58. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  59. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  60. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  61. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  62. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  65. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  66. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. def [B](y: B): (Zone, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Zone to ArrowAssoc[Zone] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Zone to any2stringadd[Zone]

Inherited by implicit conversion StringFormat from Zone to StringFormat[Zone]

Inherited by implicit conversion Ensuring from Zone to Ensuring[Zone]

Inherited by implicit conversion ArrowAssoc from Zone to ArrowAssoc[Zone]

Ungrouped