Trait

cwinter.codecraft.core.api

Drone

Related Doc: package api

Permalink

trait Drone extends AnyRef

Annotations
@JSExportAll()
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Drone
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def isEnemy: Boolean

    Permalink

    Returns true if this drone is an enemy, false if it is one of your own drones.

  2. abstract def isVisible: Boolean

    Permalink

    Returns whether this drone is within the sight radius of any of your drones.

    Returns whether this drone is within the sight radius of any of your drones.

    This property always returns true for your own drones. If the drone is an enemy and isVisible is false, you will be unable to query properties such as position.

  3. abstract def lastKnownOrientation: Double

    Permalink

    The orientation of this drone at the last time it was seen by any of your drones.

  4. abstract def lastKnownPosition: Vector2

    Permalink

    The position of this drone at the last time it was seen by any of your drones.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def availableStorage: Int

    Permalink

    Returns the number of free storage capacity.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def constructors: Int

    Permalink

    Returns the number of constructor modules

  8. def displayString: String

    Permalink

    Returns a string that encodes various properties of the drone.

  9. final def engines: Int

    Permalink

    Returns the number of engine modules

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hitpoints: Int

    Permalink

    Returns the current number of hitpoints, including shields.

  16. def isConstructing: Boolean

    Permalink

    Returns true if this drone is currently constructing another drone.

  17. def isDead: Boolean

    Permalink

    Returns true if this drone is dead, false otherwise.

  18. def isHarvesting: Boolean

    Permalink

    Returns true if this drone is currently harvesting a mineral.

  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. def isMoving: Boolean

    Permalink

    Returns true of this drone has a movement command active or queued up, false otherwise.

  21. final def maxHitpoints: Int

    Permalink

    Returns the amount of hitpoints at full health.

  22. final def maxSpeed: Double

    Permalink

    Returns the drone's maximum speed.

  23. final def missileBatteries: Int

    Permalink

    Returns the number of missile battery modules.

  24. def missileCooldown: Int

    Permalink

    Returns the drone's homing missile cooldown.

  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def orientation: Double

    Permalink

    Returns the drones orientation in radians.

  29. def playerID: Int

    Permalink

    Returns the identifier of the player that owns this drone.

  30. def position: Vector2

    Permalink

    Returns the drone's position.

  31. final def shieldGenerators: Int

    Permalink

    Returns the number of shield generator modules

  32. def showText(text: String): Unit

    Permalink

    Draws the specified text at the position of the drone on this timestep.

  33. final def spec: DroneSpec

    Permalink

    Returns an object that specifies how many copies of each module the drone has.

    Returns an object that specifies how many copies of each module the drone has.

    Annotations
    @inline()
  34. final def storageModules: Int

    Permalink

    Returns the number of storage modules.

  35. def storedResources: Int

    Permalink

    Returns the amount of resources store by this drone.

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def totalAvailableResources: Int

    Permalink

    Returns the total amount of resources available to this drone.

    Returns the total amount of resources available to this drone. This includes any mineral crystals that are small enough to be processed by this drone.

    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.4.0) Use storedResources instead.

  2. def weaponsCooldown: Int

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.4.3) Use missileCooldown instead.

Inherited from AnyRef

Inherited from Any

Ungrouped