EngineLib
 All Classes Functions
Public Member Functions | Public Attributes | List of all members
Tile Class Reference

#include <Tile.h>

Public Member Functions

 Tile (TileSet *tileset, int x, int y, int id, int type)
 
void drawTile ()
 
void drawTile (int x, int y, int w, int h, int index)
 
int getType ()
 
void setType (int type)
 

Public Attributes

int x
 
int y
 
int id
 
int type
 

Detailed Description

Represents an Basic Tile for the BaseEngine.

This Tile in conjuction with an Tileset can be used to Create Tile based Games.

You need to initialize it with an Tileset before using it.

Member Function Documentation

void Tile::drawTile ( )

Draws this Tile to Screen

void Tile::drawTile ( int  x,
int  y,
int  w,
int  h,
int  index 
)

Draws Tile at index to x,y

The Tile can be flipped horizontal or vertical

Parameters
intx
inty
intwidth
intheight
intindex
int Tile::getType ( )

Gets the Type of the Tile /return int

void Tile::setType ( int  type)

Sets the Type of the Tile /param int type


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