C# 클래스 fliXNA_xbox.FlxTilemap

상속: FlxObject
파일 보기 프로젝트 열기: jlorek/flxSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
auto uint
tileGraphic Microsoft.Xna.Framework.Graphics.Texture2D

보호된 프로퍼티들

프로퍼티 타입 설명
_block FlxObject
_data List
_rects Microsoft.Xna.Framework.Rectangle[]
_startingIndex uint
_tileHeight int
_tileObjects fliXNA_xbox.FlxTile[]
_tileObjectsForDrawing List
_tileWidth int
_tiles Microsoft.Xna.Framework.Graphics.Texture2D
collideIndex int
tileSize int

공개 메소드들

메소드 설명
FlxTilemap ( ) : System
draw ( ) : void
findPath ( FlxPoint Start, FlxPoint End, bool Simplify = true, bool RaySimplify = false ) : FlxPath
follow ( FlxCamera Camera = null, int Border, System.Boolean UpdateWorld = false ) : void
getTile ( int X, int Y ) : int
loadMap ( String CSVdataFile, Microsoft.Xna.Framework.Graphics.Texture2D Graphic, int TileWidth, int TileHeight, int DrawIndex, int CollideIndex = 1 ) : FlxTilemap
overlaps ( FlxBasic objectOrGroup, System.Boolean inScreenSpace = false, FlxCamera camera = null ) : System.Boolean
overlapsPoint ( FlxPoint point, System.Boolean inScreenSpace = false, FlxCamera camera = null ) : System.Boolean
overlapsWithCallback ( FlxObject Object, Func Callback = null, System.Boolean FlipCallbackParams = false, FlxPoint Position = null ) : System.Boolean
ray ( FlxPoint Start, FlxPoint End, FlxPoint Result = null, float Resolution = 1f ) : bool
setTileProperties ( uint Tile, uint AllowCollisions = 0x1111, FlxObject>.Action Callback = null, uint Range = 1 ) : void

보호된 메소드들

메소드 설명
computePathDistance ( int StartIndex, int EndIndex ) : List
drawTilemap ( FlxCamera Camera ) : void
raySimplifyPath ( List Points ) : void
simplifyPath ( List Points ) : void
updateTile ( int Index ) : void
walkPath ( List Data, int Start, List Points ) : void

메소드 상세

FlxTilemap() 공개 메소드

public FlxTilemap ( ) : System
리턴 System

computePathDistance() 보호된 메소드

protected computePathDistance ( int StartIndex, int EndIndex ) : List
StartIndex int
EndIndex int
리턴 List

draw() 공개 메소드

public draw ( ) : void
리턴 void

drawTilemap() 보호된 메소드

protected drawTilemap ( FlxCamera Camera ) : void
Camera FlxCamera
리턴 void

findPath() 공개 메소드

public findPath ( FlxPoint Start, FlxPoint End, bool Simplify = true, bool RaySimplify = false ) : FlxPath
Start flxSharp.flxSharp.FlxPoint
End flxSharp.flxSharp.FlxPoint
Simplify bool
RaySimplify bool
리턴 flxSharp.flxSharp.FlxPath

follow() 공개 메소드

public follow ( FlxCamera Camera = null, int Border, System.Boolean UpdateWorld = false ) : void
Camera FlxCamera
Border int
UpdateWorld System.Boolean
리턴 void

getTile() 공개 메소드

public getTile ( int X, int Y ) : int
X int
Y int
리턴 int

loadMap() 공개 메소드

public loadMap ( String CSVdataFile, Microsoft.Xna.Framework.Graphics.Texture2D Graphic, int TileWidth, int TileHeight, int DrawIndex, int CollideIndex = 1 ) : FlxTilemap
CSVdataFile String
Graphic Microsoft.Xna.Framework.Graphics.Texture2D
TileWidth int
TileHeight int
DrawIndex int
CollideIndex int
리턴 FlxTilemap

overlaps() 공개 메소드

public overlaps ( FlxBasic objectOrGroup, System.Boolean inScreenSpace = false, FlxCamera camera = null ) : System.Boolean
objectOrGroup FlxBasic
inScreenSpace System.Boolean
camera FlxCamera
리턴 System.Boolean

overlapsPoint() 공개 메소드

public overlapsPoint ( FlxPoint point, System.Boolean inScreenSpace = false, FlxCamera camera = null ) : System.Boolean
point flxSharp.flxSharp.FlxPoint
inScreenSpace System.Boolean
camera FlxCamera
리턴 System.Boolean

overlapsWithCallback() 공개 메소드

public overlapsWithCallback ( FlxObject Object, Func Callback = null, System.Boolean FlipCallbackParams = false, FlxPoint Position = null ) : System.Boolean
Object FlxObject
Callback Func
FlipCallbackParams System.Boolean
Position flxSharp.flxSharp.FlxPoint
리턴 System.Boolean

ray() 공개 메소드

public ray ( FlxPoint Start, FlxPoint End, FlxPoint Result = null, float Resolution = 1f ) : bool
Start flxSharp.flxSharp.FlxPoint
End flxSharp.flxSharp.FlxPoint
Result flxSharp.flxSharp.FlxPoint
Resolution float
리턴 bool

raySimplifyPath() 보호된 메소드

protected raySimplifyPath ( List Points ) : void
Points List
리턴 void

setTileProperties() 공개 메소드

public setTileProperties ( uint Tile, uint AllowCollisions = 0x1111, FlxObject>.Action Callback = null, uint Range = 1 ) : void
Tile uint
AllowCollisions uint
Callback FlxObject>.Action
Range uint
리턴 void

simplifyPath() 보호된 메소드

protected simplifyPath ( List Points ) : void
Points List
리턴 void

updateTile() 보호된 메소드

protected updateTile ( int Index ) : void
Index int
리턴 void

walkPath() 보호된 메소드

protected walkPath ( List Data, int Start, List Points ) : void
Data List
Start int
Points List
리턴 void

프로퍼티 상세

_block 보호되어 있는 프로퍼티

protected FlxObject _block
리턴 FlxObject

_data 보호되어 있는 프로퍼티

protected List _data
리턴 List

_rects 보호되어 있는 프로퍼티

protected Rectangle[],Microsoft.Xna.Framework _rects
리턴 Microsoft.Xna.Framework.Rectangle[]

_startingIndex 보호되어 있는 프로퍼티

protected uint _startingIndex
리턴 uint

_tileHeight 보호되어 있는 프로퍼티

protected int _tileHeight
리턴 int

_tileObjects 보호되어 있는 프로퍼티

protected FlxTile[],fliXNA_xbox _tileObjects
리턴 fliXNA_xbox.FlxTile[]

_tileObjectsForDrawing 보호되어 있는 프로퍼티

protected List _tileObjectsForDrawing
리턴 List

_tileWidth 보호되어 있는 프로퍼티

protected int _tileWidth
리턴 int

_tiles 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics _tiles
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

auto 공개적으로 프로퍼티

public uint auto
리턴 uint

collideIndex 보호되어 있는 프로퍼티

protected int collideIndex
리턴 int

tileGraphic 공개적으로 프로퍼티

public Texture2D,Microsoft.Xna.Framework.Graphics tileGraphic
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

tileSize 보호되어 있는 프로퍼티

protected int tileSize
리턴 int