Packages

object BlockMap

Source
BlockMap.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(scale: MapScale, desiredSpanSize: Int): BlockMap

    Overloaded constructor that uses a MapScale field, common with Zone entities.

    Overloaded constructor that uses a MapScale field, common with Zone entities.

    scale

    the two-dimensional scale of the map

    desiredSpanSize

    the length and width of a sector

    returns

    a BlockMap entity

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. 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

  11. 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

  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. 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)

  19. 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)

  20. 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)

  21. 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)

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped