Packages

  • package root
    Definition Classes
    root
  • package o1
    Definition Classes
    root
  • package grid

    This package contains tools for working with grid-like two-dimensional structures.

    This package contains tools for working with grid-like two-dimensional structures.

    The contents of this package have aliases in the top-level package o1, so they are accessible to students simply via import o1._.

    Definition Classes
    o1
  • CompassDir
  • Grid
  • GridPos

object CompassDir extends Serializable

This companion object of class CompassDir provides a selection of related constants and utility methods.

This object has an alias in the top-level package o1, so it’s accessible to students simply via import o1._.

Linear Supertypes
Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CompassDir
  2. Serializable
  3. AnyRef
  4. 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. val Clockwise: Vector[CompassDir]

    a collection of all the four directions, in clockwise order starting with North

  5. val Count: Int

    The number of the compass directions represented by class CompassDir.

    The number of the compass directions represented by class CompassDir. Four, that is.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def fromArrowKey(key: Key): Option[CompassDir]

    Returns the CompassDir that corresponds to the given arrow key.

    Returns the CompassDir that corresponds to the given arrow key. For example, the right arrow corresponds to East.

    key

    any key on the keyboard

    returns

    one of the four CompassDirs; None if the given key was not one of the four arrow keys

    See also

    fromWASD, fromKey

  11. def fromKey(key: Key): Option[CompassDir]

    Returns the CompassDir that corresponds to the given arrow key.

    Returns the CompassDir that corresponds to the given arrow key. For example, the right arrow or the D key corresponds to East.

    key

    any key on the keyboard

    returns

    one of the four CompassDirs; None if the given key was not one of the four arrow keys or one of the four WASD keys

    See also

    fromArrowKey, fromWASD

  12. def fromWASD(key: Key): Option[CompassDir]

    Returns the CompassDir that corresponds to the given WASD key.

    Returns the CompassDir that corresponds to the given WASD key. For example, the D key corresponds to East.

    key

    any key on the keyboard

    returns

    one of the four CompassDirs; None if the given key was not one of the four WASD keys

    See also

    fromArrowKey, fromKey

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString: String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. object East extends CompassDir with Product with Serializable

    This immutable singleton object represents the eastwardly compass direction.

    This immutable singleton object represents the eastwardly compass direction. It’s one of the four predefined instances of class CompassDir. It has an alias in the top-level package o1, so it’s accessible to students simply via import o1._.

  25. object North extends CompassDir with Product with Serializable

    This immutable singleton object represents the northwardly compass direction.

    This immutable singleton object represents the northwardly compass direction. It’s one of the four predefined instances of class CompassDir. It has an alias in the top-level package o1, so it’s accessible to students simply via import o1._.

  26. object South extends CompassDir with Product with Serializable

    This immutable singleton object represents the southwardly compass direction.

    This immutable singleton object represents the southwardly compass direction. It’s one of the four predefined instances of class CompassDir. It has an alias in the top-level package o1, so it’s accessible to students simply via import o1._.

  27. object West extends CompassDir with Product with Serializable

    This immutable singleton object represents the westwardly compass direction.

    This immutable singleton object represents the westwardly compass direction. It’s one of the four predefined instances of class CompassDir. It has an alias in the top-level package o1, so it’s accessible to students simply via import o1._.

Deprecated Value Members

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

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped