Packages

final class Cood extends ProdInt2

A Cood represents a 2 dimensional integer coordinate within a tile grid system. This has current been implemented for Hexs and Squares, while triangles is the third possible regular tile system. A SqGrid Cood represents either a tile centre, a tile side or a tile vertex. This is the same for a Hex Grid except that not all values are legal Cood values on a HexGrid. This system allows river and naval units to move along the tile sides. The axis are named xi and yi to distinguish them from the x and y of a Vec2. On a Hex grid there is not a simple 1 to 1 mapping between the Cood components and the Vec2 components.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cood
  2. ProdInt2
  3. ProdHomo
  4. SpecialT
  5. Product2
  6. Product
  7. Equals
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Cood(xi: Int, yi: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def *(operand: Int): Cood
  4. def +(operand: Cood): Cood
  5. def -(operand: Cood): Cood
  6. def /(operand: Int): Cood
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def _1: Int
    Definition Classes
    Cood → Product2
  9. def _2: Int
    Definition Classes
    Cood → Product2
  10. def addX(operand: Int): Cood
  11. def addXY(xOff: Int, yOff: Int): Cood
  12. def addY(operand: Int): Cood
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def canEqual(a: Any): Boolean
    Definition Classes
    Cood → Equals
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def eqXY(x: Int, y: Int): Boolean
  18. def equals(that: Any): Boolean
    Definition Classes
    Cood → Equals → AnyRef → Any
  19. def evenSum: Boolean

    x.isOdd & y.isOdd | x.isEven & y.isEven

  20. def fXY[A](f: (Int, Int) => A): A
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. def oddSum: Boolean

    x.isOdd & y.isEven | x.isEven & y.isOdd

  28. def productArity: Int
    Definition Classes
    Product2 → Product
  29. def productElement(n: Int): Any
    Definition Classes
    Product2 → Product
    Annotations
    @throws(classOf[java.lang.IndexOutOfBoundsException])
  30. def productElementName(n: Int): String
    Definition Classes
    Product
  31. def productElementNames: Iterator[String]
    Definition Classes
    Product
  32. def productIterator: Iterator[Any]
    Definition Classes
    Product
  33. def productPrefix: String
    Definition Classes
    Product
  34. def subX(operand: Int): Cood
  35. def subXY(xOff: Int, yOff: Int): Cood
  36. def subY(operand: Int): Cood
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toSqVec2: Vec2
  39. def toString(): String
    Definition Classes
    Cood → AnyRef → Any
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  43. val xi: Int
  44. def xyStr: String
  45. val yi: Int
  46. def yxStr: String

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from ProdInt2

Inherited from ProdHomo

Inherited from SpecialT

Inherited from Product2[Int, Int]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped