Method | Description | |
---|---|---|
AddDoor ( Door door ) : void |
Adds a door to the board
|
|
Board ( int width, int height, Microsoft.Xna.Framework.Graphics.Texture2D floorTexture ) : System |
Initializes a new instance of the Board class.
|
|
CanFigureMoveToPoint ( |
Gets a value indicating whether a figure can move to a point
|
|
CanOverlordSpawn ( Point point ) : bool |
Indicates whether the overlord can spawn on a space
|
|
Distance ( Point here, Point there ) : int |
Get the distance between to squares. This distance does not take blocking into account, such has there being a wall in the way
|
|
FigureSquares ( |
Creates an array of all points a figure is on
|
|
IsSquareWithinBoard ( Point point ) : bool |
Determines whether the point is within the board, and if there is a square on that point.
|
|
IsSquareWithinBoard ( int x, int y ) : bool |
Determines wether the point (x, y) is within the board, and a square in the dungeon
|
|
IsStandable ( Point points ) : bool |
Is all points in the array standable?
|
|
IsStandable ( int x, int y ) : bool |
Is the square inside the dungeon, and is there no figure?
|
|
IsThereLineOfSight ( |
Indicates whethere there's nothing in the way from one figure to another. Can ignore monsters.
|
|
IsThereLineOfSight ( Point from, Point to, bool ignoreMonsters ) : bool |
Indicates whether there is nothing in the way from one point to another Monsters can be ignored, so it can be used to calculate where to spawn monsters
|
|
IsValidStartSquare ( Point point ) : bool |
Indicates whether a point is a valid start/spawn point
|
|
MoveFigure ( |
Moves a figure to a specific point.
|
|
OpenDoor ( Point point ) : void |
Open a door
|
|
PlaceFigure ( |
Places a figure at a specific point
|
|
RespawnDeadHeroes ( ) : void |
Respawns a dead hero next to the start glyph
|
|
SquareVisibleByPlayers ( int x, int y ) : bool |
Should the square be shown on the board? A square is visible by players if it has something on it, and if that squares area has been revealed
|
|
this ( Point p ) : Square |
Access a point on the board
|
|
this ( int x, int y ) : Square |
Access the (x, y)'th in the board
|
Method | Description | |
---|---|---|
CanOpenDoor ( Point point ) : bool | ||
GetDoor ( Point point ) : Door |
Gets a door at a specific point, if there is any
|
|
PlaceDeadHero ( Hero hero ) : void | ||
RemoveFigure ( Point point ) : void |
Removes a figure from all squares where it was previously on the board
|
|
SquaresBetweenPoints ( Point from, Point to ) : Point[] |
Get a (non-sorted) array of squares between two squares.
|
|
UpdateCanSpawn ( ) : void |
public AddDoor ( Door door ) : void | ||
door | Door | /// The door to be added /// |
return | void |
public Board ( int width, int height, Microsoft.Xna.Framework.Graphics.Texture2D floorTexture ) : System | ||
width | int | /// The width of the board /// |
height | int | /// The height of the board /// |
floorTexture | Microsoft.Xna.Framework.Graphics.Texture2D | /// The floor Texture. /// |
return | System |
public CanFigureMoveToPoint ( |
||
figure | /// The figure /// | |
point | Point | /// The upper left corner of the end point /// |
return | bool |
public CanOverlordSpawn ( Point point ) : bool | ||
point | Point | /// The point /// |
return | bool |
public Distance ( Point here, Point there ) : int | ||
here | Point | /// The 'here' point /// |
there | Point | /// The 'there' point /// |
return | int |
public FigureSquares ( |
||
figure | /// The figure /// | |
return | Point[] |
public IsSquareWithinBoard ( Point point ) : bool | ||
point | Point | /// The point. /// |
return | bool |
public IsSquareWithinBoard ( int x, int y ) : bool | ||
x | int | /// The x coordinate /// |
y | int | /// The y coordinate /// |
return | bool |
public IsStandable ( int x, int y ) : bool | ||
x | int | /// The x coordinate /// |
y | int | /// The y coordinate /// |
return | bool |
public IsThereLineOfSight ( |
||
from | "From" figure. | |
to | "To" figure. | |
ignoreMonsters | bool | Will ignore monsters if true. |
return | bool |
public IsThereLineOfSight ( Point from, Point to, bool ignoreMonsters ) : bool | ||
from | Point | /// The start point /// |
to | Point | /// The end point /// |
ignoreMonsters | bool | /// If true, monsters will be ignored so they do not break line of sight /// |
return | bool |
public IsValidStartSquare ( Point point ) : bool | ||
point | Point | /// The point to check /// |
return | bool |
public MoveFigure ( |
||
figure | /// The figure that is moved /// | |
point | Point | /// The upper left corner of the figure, that is moved to /// |
return | void |
public OpenDoor ( Point point ) : void | ||
point | Point | /// A point adjacent to a door /// |
return | void |
public PlaceFigure ( |
||
figure | /// The figure that is placed /// | |
point | Point | /// The upper left corner of the figure /// |
return | void |
public SquareVisibleByPlayers ( int x, int y ) : bool | ||
x | int | /// The x coordinate /// |
y | int | /// The y coordinate /// |
return | bool |
public this ( Point p ) : Square | ||
p | Point | /// The point to be accessed /// |
return | Square |
public this ( int x, int y ) : Square | ||
x | int | /// The x coordinate /// |
y | int | /// The y coordinate /// |
return | Square |