C# Class CEngineSharp_Client.World.Map

ファイルを表示 Open project: JohnLamontagne/CEngineSharp

Public Methods

Method Description
CacheMap ( ) : void
Draw ( RenderWindow window ) : void
FindMapItem ( Vector2f position ) : MapItem
GetMapNpc ( int index ) : Npc
GetTile ( int x, int y ) : Tile
LoadCache ( string mapName ) : void
Map ( ) : System
RemoveMapItem ( int mapItemX, int mapItemY ) : void
ResizeMap ( int newWidth, int newHeight ) : void
SetTile ( int x, int y, Tile tile ) : void
SpawnMapItem ( Item item, int x, int y, int spawnDuration ) : void
SpawnMapNpc ( Npc mapNpc ) : void
TryPickupItem ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
DrawLowerTiles ( RenderTarget window, int left, int top, int width, int height ) : void
DrawMapItems ( RenderTarget window, int left, int top, int width, int height ) : void
DrawNpcs ( RenderTarget window, int left, int top, int width, int height ) : void
DrawPlayers ( RenderTarget window, int left, int top, int width, int height ) : void
DrawUpperTiles ( RenderTarget window, int left, int top, int width, int height ) : void

Method Details

CacheMap() public method

public CacheMap ( ) : void
return void

Draw() public method

public Draw ( RenderWindow window ) : void
window SFML.Graphics.RenderWindow
return void

FindMapItem() public method

public FindMapItem ( Vector2f position ) : MapItem
position Vector2f
return MapItem

GetMapNpc() public method

public GetMapNpc ( int index ) : Npc
index int
return CEngineSharp_Client.World.Entity.Npc

GetTile() public method

public GetTile ( int x, int y ) : Tile
x int
y int
return Tile

LoadCache() public method

public LoadCache ( string mapName ) : void
mapName string
return void

Map() public method

public Map ( ) : System
return System

RemoveMapItem() public method

public RemoveMapItem ( int mapItemX, int mapItemY ) : void
mapItemX int
mapItemY int
return void

ResizeMap() public method

public ResizeMap ( int newWidth, int newHeight ) : void
newWidth int
newHeight int
return void

SetTile() public method

public SetTile ( int x, int y, Tile tile ) : void
x int
y int
tile Tile
return void

SpawnMapItem() public method

public SpawnMapItem ( Item item, int x, int y, int spawnDuration ) : void
item Item
x int
y int
spawnDuration int
return void

SpawnMapNpc() public method

public SpawnMapNpc ( Npc mapNpc ) : void
mapNpc CEngineSharp_Client.World.Entity.Npc
return void

TryPickupItem() public method

public TryPickupItem ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime GameTime
return void