Model

class Model(verticesX: IntArray, verticesY: IntArray, verticesZ: IntArray, indicesX: IntArray, indicesY: IntArray, indicesZ: IntArray, orientation: Int, entityHeight: Int?, tileHeight: Int?, downscale: Boolean)

Functions

centerPoint
Link copied to clipboard
fun centerPoint(localX: Int, localY: Int): Point
contains
Link copied to clipboard
fun contains(point: Point?, localX: Int, localY: Int): Boolean
draw
Link copied to clipboard
fun draw(localX: Int, localY: Int, g: Graphics)

Gets all the polygons of the model

indicesX
Link copied to clipboard
fun indicesX(): IntArray
indicesY
Link copied to clipboard
fun indicesY(): IntArray
indicesZ
Link copied to clipboard
fun indicesZ(): IntArray
nextPoint
Link copied to clipboard
fun nextPoint(localX: Int, localY: Int): Point
points
Link copied to clipboard
fun points(localX: Int, localY: Int): List<Point>
polygons
Link copied to clipboard
fun polygons(localX: Int, localY: Int): List<Polygon>?

Gets all the polygons of the model

quickHull
Link copied to clipboard
fun quickHull(localX: Int, localY: Int): Polygon
setRotationDownScale
Link copied to clipboard
fun setRotationDownScale()

Rotates and scales the model

toString
Link copied to clipboard
open override fun toString(): String
update
Link copied to clipboard
fun update(verticesX: IntArray, verticesY: IntArray, verticesZ: IntArray, indicesX: IntArray, indicesY: IntArray, indicesZ: IntArray, orientation: Int): Model
verticesX
Link copied to clipboard
fun verticesX(): IntArray
verticesY
Link copied to clipboard
fun verticesY(): IntArray
verticesZ
Link copied to clipboard
fun verticesZ(): IntArray

Properties

downscale
Link copied to clipboard
var downscale: Boolean = true
entityHeight
Link copied to clipboard
var entityHeight: Int?
indicesX
Link copied to clipboard
var indicesX: IntArray
indicesY
Link copied to clipboard
var indicesY: IntArray
indicesZ
Link copied to clipboard
var indicesZ: IntArray
orientation
Link copied to clipboard
var orientation: Int
tileHeight
Link copied to clipboard
var tileHeight: Int?
verticesX
Link copied to clipboard
var verticesX: IntArray
verticesY
Link copied to clipboard
var verticesY: IntArray
verticesZ
Link copied to clipboard
var verticesZ: IntArray