gedi::TileABO Class Reference

#include <SAM.h>

Inherits gedi::DynABO.

Inheritance diagram for gedi::TileABO:

[legend]
Collaboration diagram for gedi::TileABO:
[legend]
List of all members.

Public Member Functions

 TileABO (void)
 TileABO (gedi::Int32 iTileWidth, gedi::Int32 iTileHeight)
void SetDimensions (gedi::Int32 iTileWidth, gedi::Int32 iTileHeight)
void SetColorKey (gedi::UInt8 iRed, gedi::UInt8 iGreen, gedi::UInt8 iBlue)
void SetPosition (gedi::Int32 iX, gedi::Int32 iY)
void LoadImage (LPSTR lpszFilename)

Detailed Description

This class represents a "tile" ABO.

It treates each rectangular region as an animation with exactly one frame. It calculates where a tile lies in the image using the width and height information. However, since the class extends gedi::DynABO, the tiles' size, transparency, orientation, etc. can be changed.

Note unlike a conventional Mirus ABO, the ABO description is calculated from width, height information or assumed, e.g., the color key is (255,0,255).


Constructor & Destructor Documentation

gedi::TileABO::TileABO ( void   ) 

Constructor, default tile size is 32 by 32 pixels.

gedi::TileABO::TileABO ( gedi::Int32  iTileWidth,
gedi::Int32  iTileHeight 
)

Constructor.

Parameters:
iTileWidth Tile width.
iTileHeight Tile height.


Member Function Documentation

void gedi::TileABO::SetDimensions ( gedi::Int32  iTileWidth,
gedi::Int32  iTileHeight 
) [inline]

Set tile dimensions.

Parameters:
iTileWidth Tile width.
iTileHeight Tile height.

void gedi::TileABO::SetColorKey ( gedi::UInt8  iRed,
gedi::UInt8  iGreen,
gedi::UInt8  iBlue 
)

Sets the color key for the ABO.

Parameters:
iRed Red component.
iGreen Green component.
iBlue Blue component.

void gedi::TileABO::SetPosition ( gedi::Int32  iX,
gedi::Int32  iY 
) [inline]

Sets the position of the tile where iX, iY are the upper left corner.

Parameters:
iX X coordinate.
iY Y coordinate.

void gedi::TileABO::LoadImage ( LPSTR  lpszFilename  ) 

Loads the image.

Parameters:
lpszFilename Name of file.


The documentation for this class was generated from the following files: