C# Class CEngineSharp_Client.World.Map

Afficher le fichier Open project: JohnLamontagne/CEngineSharp

Méthodes publiques

Méthode 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

Méthode 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 méthode

public CacheMap ( ) : void
Résultat void

Draw() public méthode

public Draw ( RenderWindow window ) : void
window SFML.Graphics.RenderWindow
Résultat void

FindMapItem() public méthode

public FindMapItem ( Vector2f position ) : MapItem
position Vector2f
Résultat MapItem

GetMapNpc() public méthode

public GetMapNpc ( int index ) : Npc
index int
Résultat CEngineSharp_Client.World.Entity.Npc

GetTile() public méthode

public GetTile ( int x, int y ) : Tile
x int
y int
Résultat Tile

LoadCache() public méthode

public LoadCache ( string mapName ) : void
mapName string
Résultat void

Map() public méthode

public Map ( ) : System
Résultat System

RemoveMapItem() public méthode

public RemoveMapItem ( int mapItemX, int mapItemY ) : void
mapItemX int
mapItemY int
Résultat void

ResizeMap() public méthode

public ResizeMap ( int newWidth, int newHeight ) : void
newWidth int
newHeight int
Résultat void

SetTile() public méthode

public SetTile ( int x, int y, Tile tile ) : void
x int
y int
tile Tile
Résultat void

SpawnMapItem() public méthode

public SpawnMapItem ( Item item, int x, int y, int spawnDuration ) : void
item Item
x int
y int
spawnDuration int
Résultat void

SpawnMapNpc() public méthode

public SpawnMapNpc ( Npc mapNpc ) : void
mapNpc CEngineSharp_Client.World.Entity.Npc
Résultat void

TryPickupItem() public méthode

public TryPickupItem ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime GameTime
Résultat void