C# Class FTilemap, FutileAdditionalClasses

Inheritance: FContainer
Datei anzeigen Open project: mattfox12/FutileAdditionalClasses Class Usage Examples

Public Properties

Property Type Description
repeatX bool
repeatY bool

Protected Properties

Property Type Description
_baseName string
_clipHeight float
_clipNode FNode,
_clipPos Vector2
_clipToScreen bool
_clipWidth float
_shader FShader,
_skipZero bool
_tileArray int[]
_tileHeight float
_tileWidth float
_tiles List
_tilesHigh int
_tilesWide int

Public Methods

Method Description
FTilemap ( string elementBase ) : System
HandleResize ( bool orientationChange ) : void
LoadCSV ( string textFile, bool skipZero = true ) : void
LoadText ( string text, bool skipZero = true ) : void
Update ( ) : void
getFrameNum ( int givenX, int givenY ) : int
getLeft ( ) : float
getRight ( ) : float
getTile ( int givenX, int givenY ) : FSprite,
getTileAt ( float givenX, float givenY ) : FSprite,

Protected Methods

Method Description
buildTiles ( ) : void

Private Methods

Method Description
FTilemap ( string elementBase, string elementExtension ) : System

Method Details

FTilemap() public method

public FTilemap ( string elementBase ) : System
elementBase string
return System

HandleResize() public method

public HandleResize ( bool orientationChange ) : void
orientationChange bool
return void

LoadCSV() public method

public LoadCSV ( string textFile, bool skipZero = true ) : void
textFile string
skipZero bool
return void

LoadText() public method

public LoadText ( string text, bool skipZero = true ) : void
text string
skipZero bool
return void

Update() public method

public Update ( ) : void
return void

buildTiles() protected method

protected buildTiles ( ) : void
return void

getFrameNum() public method

public getFrameNum ( int givenX, int givenY ) : int
givenX int
givenY int
return int

getLeft() public method

public getLeft ( ) : float
return float

getRight() public method

public getRight ( ) : float
return float

getTile() public method

public getTile ( int givenX, int givenY ) : FSprite,
givenX int
givenY int
return FSprite,

getTileAt() public method

public getTileAt ( float givenX, float givenY ) : FSprite,
givenX float
givenY float
return FSprite,

Property Details

_baseName protected_oe property

protected string _baseName
return string

_clipHeight protected_oe property

protected float _clipHeight
return float

_clipNode protected_oe property

protected FNode, _clipNode
return FNode,

_clipPos protected_oe property

protected Vector2 _clipPos
return Vector2

_clipToScreen protected_oe property

protected bool _clipToScreen
return bool

_clipWidth protected_oe property

protected float _clipWidth
return float

_shader protected_oe property

protected FShader, _shader
return FShader,

_skipZero protected_oe property

protected bool _skipZero
return bool

_tileArray protected_oe property

protected int[] _tileArray
return int[]

_tileHeight protected_oe property

protected float _tileHeight
return float

_tileWidth protected_oe property

protected float _tileWidth
return float

_tiles protected_oe property

protected List _tiles
return List

_tilesHigh protected_oe property

protected int _tilesHigh
return int

_tilesWide protected_oe property

protected int _tilesWide
return int

repeatX public_oe property

public bool repeatX
return bool

repeatY public_oe property

public bool repeatY
return bool