object BlockMap
- Source
- BlockMap.scala
- Alphabetic
- By Inheritance
- BlockMap
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 apply(scale: MapScale, desiredSpanSize: Int): BlockMap
Overloaded constructor that uses a
MapScale
field, common withZone
entities.Overloaded constructor that uses a
MapScale
field, common withZone
entities.- scale
the two-dimensional scale of the map
- desiredSpanSize
the length and width of a sector
- returns
a
BlockMap
entity
- 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])
- def findSectorIndices(blockMap: BlockMap, p: Vector3, rangeX: Float, rangeY: Float): Iterable[Int]
The blockmap is mapped to a coordinate range in two directions, so find the indices of the sectors that correspond to the region defined by the range around a coordinate position.
The blockmap is mapped to a coordinate range in two directions, so find the indices of the sectors that correspond to the region defined by the range around a coordinate position.
- blockMap
the blockmap structure
- p
the coordinate position
- rangeX
a rectangular range aigned with the lateral x-axis extending from a coordinate position
- rangeY
a rectangular range aigned with the lateral y-axis extending from a coordinate position
- returns
the indices of the sectors in the blockmap structure
- def findSectorIndices(blockMap: BlockMap, p: Vector3, range: Float): Iterable[Int]
The blockmap is mapped to a coordinate range in two directions, so find the indices of the sectors that correspond to the region defined by the range around a coordinate position.
The blockmap is mapped to a coordinate range in two directions, so find the indices of the sectors that correspond to the region defined by the range around a coordinate position.
- blockMap
the blockmap structure
- p
the coordinate position
- range
a rectangular range aigned with lateral axes extending from a coordinate position
- returns
the indices of the sectors in the blockmap structure
- 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
- 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 quickToSectorGroup(rangeX: Float, rangeY: Float, to: Iterable[Sector]): SectorPopulation
If only one sector, just return that sector.
If only one sector, just return that sector. If a group of sectors, organize them into a single referential sector.
- rangeX
a custom range value for the x-axis
- rangeY
a custom range value for the y-axis
- to
all allocated sectors
- returns
a conglomerate sector which lists all of the entities in the allocated sector(s)
- def quickToSectorGroup(range: Float, to: Iterable[Sector]): SectorPopulation
If only one sector, just return that sector.
If only one sector, just return that sector. If a group of sectors, organize them into a single referential sector.
- range
a custom range value
- to
all allocated sectors
- returns
a conglomerate sector which lists all of the entities in the allocated sector(s)
- def quickToSectorGroup(to: Iterable[Sector]): SectorPopulation
If only one sector, just return that sector.
If only one sector, just return that sector. If a group of sectors, organize them into a single referential sector.
- to
all allocated sectors
- returns
a conglomerate sector which lists all of the entities in the allocated sector(s)
- def rangeFromEntity(target: BlockMapEntity, defaultX: Option[Float] = None, defaultY: Option[Float] = None): (Float, Float)
Calculate the range expressed by a certain entity that can be allocated into a sector on the blockmap.
Calculate the range expressed by a certain entity that can be allocated into a sector on the blockmap. Entities have different ways of expressing these ranges.
- target
the entity
- defaultX
a default range for the x-axis, if no specific case is discovered; if no default case, the default-default case is a single unit (
1.0f
)- defaultY
a default range for the y-axis, if no specific case is discovered; if no default case, the default-default case is a single unit (
1.0f
)- returns
the distance from a central position along the major axes (y-axis, then x-axis)
- 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()