class Sector extends SectorPopulation
The bucket of a blockmap structure that contains lists of entities that, within a given span of coordinate distance, are considered neighbors. While the coordinate space that supports a blockmap (?) may be any combination of two dimensions, the sectors are always square.
- Source
- Sector.scala
- Alphabetic
- By Inheritance
- Sector
- SectorPopulation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Sector(longitude: Int, latitude: Int, span: Int)
- longitude
a starting coordinate of the region (in terms of width)
- latitude
a starting coordinate of the region (in terms of length)
- span
the distance across the sector in both directions
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 addTo(o: BlockMapEntity): Boolean
Appropriate an entity added to this blockmap bucket inot a list of objects that are like itself.
Appropriate an entity added to this blockmap bucket inot a list of objects that are like itself.
- o
the entity
- returns
whether or not the entity was added
- def amenityList: List[Amenity]
- Definition Classes
- Sector → SectorPopulation
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildingList: List[Building]
- Definition Classes
- Sector → SectorPopulation
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def corpseList: List[Player]
- Definition Classes
- Sector → SectorPopulation
- def deployableList: List[Deployable]
- Definition Classes
- Sector → SectorPopulation
- def environmentList: List[PieceOfEnvironment]
- Definition Classes
- Sector → SectorPopulation
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def equipmentOnGroundList: List[Equipment]
- Definition Classes
- Sector → SectorPopulation
- 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
- val latitude: Int
- def livePlayerList: List[Player]
- Definition Classes
- Sector → SectorPopulation
- val longitude: Int
- 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 projectileList: List[Projectile]
- Definition Classes
- Sector → SectorPopulation
- def rangeX: Float
- Definition Classes
- Sector → SectorPopulation
- def rangeY: Float
- Definition Classes
- Sector → SectorPopulation
- def removeFrom(o: Any): Boolean
Remove an entity added to this blockmap bucket from a list of already-added objects that are like itself.
Remove an entity added to this blockmap bucket from a list of already-added objects that are like itself.
- o
the entity
- returns
whether or not the entity was removed
- val span: Int
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def total: Int
A count of all the entities in all the lists.
A count of all the entities in all the lists.
- Definition Classes
- SectorPopulation
- def vehicleList: List[Vehicle]
- Definition Classes
- Sector → SectorPopulation
- 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()