Module entity

Types

PEntity = ref TEntity
TEntity = object of TObject
  fX, fY: float
  fXi, fYi: int16
  fLayer*: int
  updateLayer*, deleteEntity*: bool
  kind*: string
  graphic*: PImage
  collider*: PCollider

Procs

proc free(obj: PEntity)
proc init(obj: PEntity; graphic: PImage; x: float = 0.0000000000000000e+00; 
          y: float = 0.0000000000000000e+00; layer: int = 0; kind: string = ""; 
          collider: PCollider = nil)
proc newEntity(graphic: PImage; x: float = 0.0000000000000000e+00; 
               y: float = 0.0000000000000000e+00; layer: int = 0; 
               kind: string = ""; collider: PCollider = nil): PEntity
proc renderEntity(obj: PEntity)
proc updateEntity(obj: PEntity)

Methods

method render(obj: PEntity) {.inline.}
method getRect(obj: PEntity): TRect {.inline.}
method getCircle(obj: PEntity): TCircle {.inline.}
method x(obj: PEntity): float {.inline.}
method xi(obj: PEntity): int {.inline.}
method x=(obj: PEntity; value: int) {.inline.}
method x=(obj: PEntity; value: float) {.inline.}
method y(obj: PEntity): float {.inline.}
method yi(obj: PEntity): int {.inline.}
method y=(obj: PEntity; value: int) {.inline.}
method y=(obj: PEntity; value: float) {.inline.}
method layer(obj: PEntity): int {.inline.}
method layer=(obj: PEntity; value: int) {.inline.}
method delete(obj: PEntity) {.inline.}
method update(obj: PEntity) {.inline.}
Generated: 2012-11-11 20:09:27 UTC