CloneBlank

final case class CloneBlank(id: CloneId, cloneable: () => Cloneable, isStatic: Boolean)

Used as the blueprint for any clones that want to copy it.

Value parameters:
cloneable

The primitive to clone, can be a Shape, Graphic or Sprite, or any custom entity that extends Cloneable

id

The CloneId of this blank

isStatic

Static clone blanks are only processed once and cached. This means that static sprites will never play their animations!

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def withCloneId(newCloneId: CloneId): CloneBlank
def withCloneable(newCloneable: => Cloneable): CloneBlank

Inherited methods

Inherited from:
Product