SpriteLayer.DisplayListItem

Helps to determine the displaying properties and order of sprites.

Constructors

this
this(Coordinate position, ABitmap sprite, int priority, ushort paletteSel, int scaleHoriz, int scaleVert)
Undocumented in source.
this
this(Coordinate position, Coordinate slice, ABitmap sprite, int priority, int scaleHoriz, int scaleVert)
Undocumented in source.

Members

Functions

opCmp
int opCmp(DisplayListItem d)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(DisplayListItem d)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceSprite
void replaceSprite(ABitmap sprite)

Replaces the sprite with a new one. If the sizes are mismatching, the top-left coordinates are left as is, but the slicing is reset.

resetSlice
void resetSlice()

Resets the slice to its original position.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

attributes
BitmapAttrib attributes;

Horizontal and vertical mirroring. DEPRECATED

height
int height;

Height of the sprite

paletteSel
ushort paletteSel;

Selects the palette of the sprite (Bitmap4Bit: 4096X16 color palettes; Bitmap8Bit: 256X256 color palettes)

pixelData
void* pixelData;

Points to the pixel data.

position
Coordinate position;

Stores the position relative to the origin point. Actual display position is determined by the scroll positions.

priority
int priority;

Used for automatic sorting and identification.

scaleHoriz
int scaleHoriz;

Horizontal scaling

scaleVert
int scaleVert;

Vertical scaling

slice
Coordinate slice;

To compensate for the lack of scanline interrupt capabilities, this enables chopping off parts of a sprite.

width
int width;

Width of the sprite

wordLength
ubyte wordLength;

Determines the word length of a sprite in a much quicker way than getting classinfo.

Meta