Packages

abstract class TribalScenario extends RandomScenario

This class represents ready-made tribal robot fight scenarios (that the user can choose to load up from the Tribal menu).

NOTE TO STUDENTS: In this course, you don't need to understand how this class works or can be used.

Linear Supertypes
RandomScenario, Scenario, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TribalScenario
  2. RandomScenario
  3. Scenario
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TribalScenario(name: String)

    name

    the name of the scenario, to be displayed in the menu

Abstract Value Members

  1. abstract def isAvailable: Boolean
    Definition Classes
    Scenario
  2. abstract def setup(locator: Component): Option[RobotWorld]
    Definition Classes
    Scenario

Concrete 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 accelerator: Option[KeyStroke]
    Definition Classes
    Scenario
  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() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def makeDirection(): grid.CompassDir
    Definition Classes
    RandomScenario
  13. def makeWorld(width: Int, height: Int, walls: Int, bunnies: Int, tribalCounts: Map[Tribe, Int]): RobotWorld
    Attributes
    protected
  14. val name: String
    Definition Classes
    Scenario
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. def requestHeight(locator: Component): Option[Int]
    Attributes
    protected
    Definition Classes
    Scenario
  19. def requestParameter(prompt: String, min: Int, locator: Component): Option[Int]
    Attributes
    protected
    Definition Classes
    Scenario
  20. def requestRobotCount(locator: Component): Option[Int]
    Attributes
    protected
    Definition Classes
    Scenario
  21. def requestWallCount(locator: Component): Option[Int]
    Attributes
    protected
    Definition Classes
    Scenario
  22. def requestWidth(locator: Component): Option[Int]
    Attributes
    protected
    Definition Classes
    Scenario
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString: String
    Definition Classes
    AnyRef → Any
  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()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

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 RandomScenario

Inherited from Scenario

Inherited from AnyRef

Inherited from Any

Ungrouped