Orthello  version 2.7
2D Framework for Unity3D
Public Member Functions | Protected Member Functions | Properties
OTTilesSprite Class Reference

PRO : Simple tile based sprite More...

Inheritance diagram for OTTilesSprite:
OTSprite OTObject

List of all members.

Public Member Functions

Protected Member Functions

Properties


Detailed Description

PRO : Simple tile based sprite

This sprite is basicly a matrix of tiles (frameIndexes) from an atlas or spritesheet It can be filled randomly, manually or from an OTTilemap. regular use would be to show the on screen portion of a tile based game world.


Member Function Documentation

override void OTTilesSprite.AfterMesh ( ) [inline, protected, virtual]

Overridable virtual method that is called after create the object's mesh.

Reimplemented from OTSprite.

void OTTilesSprite.Alpha ( IVector2[]  tiles,
float  value 
) [inline]

sets the alpha value of a number of tiles;

override void OTTilesSprite.CheckDirty ( ) [inline, protected, virtual]

Overridable virtual method that will check Objects mesh settings.

Reimplemented from OTSprite.

override void OTTilesSprite.CheckSettings ( ) [inline, protected, virtual]

Overridable virtual method that will check object's editor settings.

Reimplemented from OTSprite.

override void OTTilesSprite.Clean ( ) [inline, protected, virtual]

Overridable virtual method that will clean the dirty object.

Reimplemented from OTSprite.

void OTTilesSprite.Clear ( IVector2[]  tiles) [inline]

Clear a number of tiles.

void OTTilesSprite.Clear ( IVector2  tile) [inline]

Clear a single tile.

void OTTilesSprite.Clear ( ) [inline]

Clears all tiles.

void OTTilesSprite.FillWithRandomTiles ( bool  useTransparent) [inline]

Fills the sprite with random tiles.

override Mesh OTTilesSprite.GetMesh ( ) [inline, protected, virtual]

Overridable virtual method that will provide object's mesh.

Returns:
object's mesh

Reimplemented from OTSprite.

override string OTTilesSprite.GetTypeName ( ) [inline, protected, virtual]

Overridable virtual method that will provide object's type name.

Returns:
object's type name

Reimplemented from OTSprite.

Vector2 OTTilesSprite.LocalPosition ( IVector2  tile) [inline]

Gets local position of a tile.

Vector2 OTTilesSprite.LocalToTilesPoint ( Vector2  point) [inline]

Translates the current local point to a point relative to the bottom left corner.

void OTTilesSprite.Repaint ( IVector2[]  tiles) [inline]

Repaints a number of tiles, indicated by the IVector2 array;.

void OTTilesSprite.Repaint ( IVector2  tile) [inline]

Repaints a tile.

void OTTilesSprite.Repaint ( ) [inline]

Repaints all tiles.

void OTTilesSprite.Scroll ( IVector2  d,
bool  keepTiles 
) [inline]

Scroll the tiles with a certain delta (d)

IVector2 OTTilesSprite.TileFromLocalPoint ( Vector2  p) [inline]

Get tile from a local point on the tiles sprite.

IVector2 OTTilesSprite.TileFromTilesPoint ( Vector2  p) [inline]

Get tile from a point on the tiles sprite.

IVector2 OTTilesSprite.TileFromWorldPoint ( Vector2  p) [inline]

Get tile from a world point related to the tiles sprite.

IVector2 [] OTTilesSprite.TilesBlock ( Rect  r) [inline]

Get the tiles from a specific block (x,y,w,h - starts at 1,1)

Vector2 OTTilesSprite.TilesPosition ( IVector2  tile) [inline]

Gets local position of a tile.

Vector2 OTTilesSprite.TilesToLocalPoint ( Vector2  point) [inline]

Translates the current local point to a point relative to the bottom left corner.

IVector2 [] OTTilesSprite.TilesX ( int  x) [inline]

Get the tiles from a specific column (x - starts at 1)

IVector2 [] OTTilesSprite.TilesY ( int  y) [inline]

Get the tiles from a specific row (y - starts at 1)

void OTTilesSprite.Tint ( IVector2[]  tiles,
Color  color 
) [inline]

sets the color tint of number of tiles

Color OTTilesSprite.Tint ( IVector2  tile,
Color  color 
) [inline]

sets the color tint of a tile

Color OTTilesSprite.Tint ( IVector2  tile) [inline]

gets the color tint of a tile

void OTTilesSprite.VColor ( IVector2[]  tiles,
Color  color 
) [inline]

sets the vertex color of number of tiles

Color OTTilesSprite.VColor ( IVector2  tile,
Color  color 
) [inline]

sets the vertex color of a tile

Color OTTilesSprite.VColor ( IVector2  tile) [inline]

gets the vertex color of a tile

Vector2 OTTilesSprite.WorldPosition ( IVector2  tile) [inline]

Gets local position of a tile.


Property Documentation

Gets all empty tiles.

Gets all filled tiles.

Gets all tiles.

float [][] OTTilesSprite.alphas [get, set]

Gets or sets the alpha values of the objects.

Gets the tile that was hit - based on the OTObject.hitPoint.

Gets the tile under the mouse pointer.

object [][] OTTilesSprite.objects [get, set]

Gets or sets the objects.

The tile count in this tiles sprite.

Gets or sets the tile matrix.

int [][] OTTilesSprite.tiles [get, set]

Gets or sets the tiles.

Gets or sets the size of the tile.