Packages

final class Hero[H] extends CanvasComponent[H]

CanvasComponent's implementation for to visual Hero sprite on the canvas.

H

Numeric generic abstraction

Linear Supertypes
CanvasComponent[H], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hero
  2. CanvasComponent
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Hero(pos: Position[H], img: HTMLImageElement)(implicit arg0: Numeric[H])

    pos

    Heros' position

    img

    HTML image

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Hero[H] to any2stringadd[Hero[H]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Hero[H], B)
    Implicit
    This member is added by an implicit conversion from Hero[H] to ArrowAssoc[Hero[H]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def copy(pos: Position[H]): Hero[H]
  9. def copy(canvas: Canvas): Hero[H]
  10. def copy(img: HTMLImageElement): Hero[H]
    Definition Classes
    HeroCanvasComponent
  11. def ensuring(cond: (Hero[H]) ⇒ Boolean, msg: ⇒ Any): Hero[H]
    Implicit
    This member is added by an implicit conversion from Hero[H] to Ensuring[Hero[H]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (Hero[H]) ⇒ Boolean): Hero[H]
    Implicit
    This member is added by an implicit conversion from Hero[H] to Ensuring[Hero[H]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): Hero[H]
    Implicit
    This member is added by an implicit conversion from Hero[H] to Ensuring[Hero[H]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): Hero[H]
    Implicit
    This member is added by an implicit conversion from Hero[H] to Ensuring[Hero[H]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(that: Any): Boolean
    Definition Classes
    CanvasComponent → AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Hero[H] to StringFormat[Hero[H]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  21. val img: HTMLImageElement
    Definition Classes
    HeroCanvasComponent
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def isValidPosition(canvas: Canvas): Boolean

    Check if the square area is within the rectangle area of the <canvas>

    Check if the square area is within the rectangle area of the <canvas>

    canvas

    Canvas where to

    returns

    False if a square out of bound

    Attributes
    protected[nl.amsscala.simplegame]
  24. def keyEffect(latency: Double, keysDown: Set[Int]): Hero[H]

    Compute new position of hero according to the keys pressed

    Compute new position of hero according to the keys pressed

    latency

    Time since previous update.

    keysDown

    Set of the keys pressed.

    returns

    Computed move Hero

    Attributes
    protected[nl.amsscala.simplegame]
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  28. val pos: Position[H]
    Definition Classes
    HeroCanvasComponent
  29. def src: String
    Definition Classes
    HeroCanvasComponent
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    CanvasComponent → AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def [B](y: B): (Hero[H], B)
    Implicit
    This member is added by an implicit conversion from Hero[H] to ArrowAssoc[Hero[H]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from CanvasComponent[H]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Hero[H] to any2stringadd[Hero[H]]

Inherited by implicit conversion StringFormat from Hero[H] to StringFormat[Hero[H]]

Inherited by implicit conversion Ensuring from Hero[H] to Ensuring[Hero[H]]

Inherited by implicit conversion ArrowAssoc from Hero[H] to ArrowAssoc[Hero[H]]

Ungrouped