CloneTiles

indigo.shared.scenegraph.CloneTiles
See theCloneTiles companion object
final case class CloneTiles(id: CloneId, depth: Depth, cloneData: Batch[CloneTileData], staticBatchKey: Option[BindingKey]) extends DependentNode[CloneTiles]

Represents many clones of the same cloneblank, differentiated by their transform data and which part of the texture it is cropped on.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait SceneNode
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type Out = T

Attributes

Inherited from:
DependentNode

Value members

Concrete methods

def addClone(x: Int, y: Int, cropX: Int, cropY: Int, cropWidth: Int, cropHeight: Int): CloneTiles
def addClone(x: Int, y: Int, rotation: Radians, cropX: Int, cropY: Int, cropWidth: Int, cropHeight: Int): CloneTiles
def addClones(additionalClones: Batch[CloneTileData]): CloneTiles
def addClones(x: Int, y: Int, rotation: Radians, scaleX: Double, scaleY: Double, cropX: Int, cropY: Int, cropWidth: Int, cropHeight: Int): CloneTiles
def withCloneId(newCloneId: CloneId): CloneTiles
def withDepth(newDepth: Depth): CloneTiles

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val eventHandlerEnabled: Boolean
lazy val flip: Flip
lazy val position: Point
lazy val ref: Point
lazy val rotation: Radians
lazy val scale: Vector2