Method | Description | |
---|---|---|
ChangeMap ( Directions direction ) : void |
Changes the map by loading the correct map file for the specified direction.
|
|
DrawBase ( |
Renders the base of the map (everything below the player) at the specified coordinates.
|
|
DrawTop ( |
Renders the top of the map (everything above the player) at the specified coordinates.
|
|
GetNPEAt ( int x, int y ) : |
Returns the NPE at the specified location
|
|
IsCollisionAt ( int x, int y ) : bool |
Tests to see if there is a collision at the specified coordinates.
|
|
LoadMap ( string filename ) : void |
Loads a map from a file.
|
|
Map ( Microsoft.Xna.Framework.Game game ) : System |
Method | Description | |
---|---|---|
addNPE ( |
||
dialogue ( string text ) : void | ||
drawLayers ( List |
||
drawNPEs ( |
||
getFlag ( string flag ) : bool | ||
newNPE ( ) : |
||
parseLayer ( |
||
parseScriptFile ( string filename ) : void | ||
parseTMXFile ( ) : void | ||
save ( |
||
setEastMapfile ( string filename ) : void | ||
setFlag ( string flag ) : void | ||
setMapName ( string name ) : void | ||
setNorthMapfile ( string filename ) : void | ||
setSouthMapfile ( string filename ) : void | ||
setTmxMapfile ( string filename ) : void | ||
setWestMapfile ( string filename ) : void |
public ChangeMap ( Directions direction ) : void | ||
direction | Directions | The direction to use |
return | void |
public DrawBase ( |
||
spriteBatch | ||
xPos | int | |
yPos | int | |
return | void |
public DrawTop ( |
||
spriteBatch | ||
xPos | int | |
yPos | int | |
return | void |
public LoadMap ( string filename ) : void | ||
filename | string | The filename |
return | void |
public Map ( Microsoft.Xna.Framework.Game game ) : System | ||
game | Microsoft.Xna.Framework.Game | |
return | System |