Method | Description | |
---|---|---|
AddProjectile ( Backend coords, Backend dir, ProjectileTile tile ) : uint | ||
DisplaySubtitle ( string main = "", string sub = "" ) : void | ||
Draw ( |
Draw the Map
|
|
FireProjectile ( ) : void | ||
GetProjectile ( uint id ) : |
||
GetWallStyle ( int x, int y, bool CheckWall = true, int FloorStyle = -1 ) : WallDir |
Determine wall style to use depending on surrounding squares
|
|
HandleEvent ( bool DownStream, Backend eventID ) : void | ||
IsMoving ( int id ) : bool | ||
Mainmap ( Backend parent, |
Create the visible version of the game map
|
|
MoveContent ( Vector2 difference, int _lastCheck ) : void |
Disable moving map by mouse drag to avoid conflicts with move by click
|
|
RemoveProjectile ( uint id ) : void | ||
Update ( |
Move camera, react to mouse
|
|
_map2screen ( Backend mapC, bool tall = false ) : Backend.Coords |
|
|
_map2screen ( int x, int y, bool tall = false ) : Backend.Coords |
|
|
_pos2Tile ( Vector2 coords, bool tall = false ) : Backend.Coords |
Determine tile based on coordinates of point
|
|
_screen2map ( Backend screenC, bool tall = false ) : Backend.Coords |
Determine tile based on coordinates of point
|
|
_screen2map ( int x, int y, bool tall = false ) : Backend.Coords |
Determine tile based on coordinates of point
|
|
_tileRect ( Vector2 coords, bool tall = false ) : |
|
|
addEffect ( int animationID, Backend pos ) : void | ||
floatNumber ( Backend tile, string text, Color color ) : void | ||
resetActors ( ) : void |
Method | Description | |
---|---|---|
_UpdateMouse ( Vector2 coords ) : void |
Highlight tile based on mouse position; note inverted matrix (since map is zoomed / panned)
|
|
_drawFloor ( ) : void |
Display the floor (using "rugged edges" to hide isometric-pattern)
|
|
_drawWall ( WallDir dir, |
Display a wall
|
|
_drawWalls ( |
Display all walls on the current map
|
public AddProjectile ( Backend coords, Backend dir, ProjectileTile tile ) : uint | ||
coords | Backend | |
dir | Backend | |
tile | ProjectileTile | |
return | uint |
public DisplaySubtitle ( string main = "", string sub = "" ) : void | ||
main | string | |
sub | string | |
return | void |
public Draw ( |
||
gametime | ||
return | void |
public GetProjectile ( uint id ) : |
||
id | uint | |
return |
public GetWallStyle ( int x, int y, bool CheckWall = true, int FloorStyle = -1 ) : WallDir | ||
x | int | horizontal coordinate of square to check |
y | int | vertical coordinate of square to check |
CheckWall | bool | |
FloorStyle | int | |
return | WallDir |
public HandleEvent ( bool DownStream, Backend eventID ) : void | ||
DownStream | bool | |
eventID | Backend | |
return | void |
public Mainmap ( Backend parent, |
||
parent | Backend | |
spriteBatch | A sprite batch used for drawing | |
content | Microsoft.Xna.Framework.Content.ContentManager | |
displayArea | The area on wich the map will be placed | |
map | Backend | Internal storage of map data |
enabled | bool | |
return | System |
public MoveContent ( Vector2 difference, int _lastCheck ) : void | ||
difference | Vector2 | |
_lastCheck | int | |
return | void |
public Update ( |
||
gameTime | ||
return | void |
public static _map2screen ( Backend mapC, bool tall = false ) : Backend.Coords | ||
mapC | Backend | |
tall | bool | |
return | Backend.Coords |
public static _map2screen ( int x, int y, bool tall = false ) : Backend.Coords | ||
x | int | |
y | int | |
tall | bool | |
return | Backend.Coords |
public static _pos2Tile ( Vector2 coords, bool tall = false ) : Backend.Coords | ||
coords | Vector2 | |
tall | bool | |
return | Backend.Coords |
public static _screen2map ( Backend screenC, bool tall = false ) : Backend.Coords | ||
screenC | Backend | |
tall | bool | |
return | Backend.Coords |
public static _screen2map ( int x, int y, bool tall = false ) : Backend.Coords | ||
x | int | |
y | int | |
tall | bool | |
return | Backend.Coords |
public static _tileRect ( Vector2 coords, bool tall = false ) : |
||
coords | Vector2 | |
tall | bool | |
return |
public addEffect ( int animationID, Backend pos ) : void | ||
animationID | int | |
pos | Backend | |
return | void |
public floatNumber ( Backend tile, string text, Color color ) : void | ||
tile | Backend | |
text | string | |
color | Color | |
return | void |