Свойство | Тип | Описание | |
---|---|---|---|
collisionMapTextureScale | int |
Свойство | Тип | Описание | |
---|---|---|---|
Init | void |
Метод | Описание | |
---|---|---|
ClosestNodeInLOS ( Point p ) : AStarCollisionMap.Pathfinding.PathfindingNode |
Gets the closest node in line of sight from the given point.
|
|
CollisionAt ( Point p ) : System.Boolean |
Checks whether there is collision at a point.
|
|
CollisionAt ( int i ) : System.Boolean |
Checks whether there is collision at an index.
|
|
CollisionMap ( Microsoft.Xna.Framework.Game game, int width, int height, String collisionMapPath, String collisionMapName, System.Boolean drawMode, int quadDepth ) : System | ||
CollisionMap ( GraphicsDevice graphicsDevice, int width, int height, System.Boolean drawMode, int quadDepth ) : System | ||
Dispose ( ) : void |
Disposes of this collisionmap, releasing most resources used by the map.
|
|
FireCollisionChangedEvent ( |
Fires a collision changed event to all listeners.
|
|
GetNodeLocationsAroundEdges ( ) : CustomArrayList |
Places nodes around all the edges
|
|
IndexExists ( Point p ) : System.Boolean | ||
IndexExists ( int index ) : System.Boolean | ||
IndexToPoint ( int index ) : Point |
Converts an index to a point.
|
|
IsCollisionBetween ( Point p1, Point p2 ) : System.Boolean |
Checks whether there is collision between two points.
|
|
LoadMap ( String path, String mapname ) : void |
Loads a collision map from a file.
|
|
PixelsBetweenPoints ( Point p1, Point p2, int spacing ) : Point[] |
Gets the pixels between points.
|
|
PointToIndex ( Point p ) : int | ||
PointToIndex ( int x, int y ) : int |
Returns the index of a certain point.
|
|
SaveToPng ( ) : void |
Saves this collisionmap to a file.
|
|
UpdateCollisionMap ( |
Updates the collisionmap, without updating or adding pathfinding points. DO NOT USE THIS METHOD IN-GAME, ONLY IN THE EDITOR.
|
Метод | Описание | |
---|---|---|
Init ( int width, int height, String collisionMapPath, String collisionMapName, System.Boolean drawMode, int quadDepth ) : void |
public ClosestNodeInLOS ( Point p ) : AStarCollisionMap.Pathfinding.PathfindingNode | ||
p | Point | The point. |
Результат | AStarCollisionMap.Pathfinding.PathfindingNode |
public CollisionAt ( Point p ) : System.Boolean | ||
p | Point | The point to check. |
Результат | System.Boolean |
public CollisionAt ( int i ) : System.Boolean | ||
i | int | The index |
Результат | System.Boolean |
public CollisionMap ( Microsoft.Xna.Framework.Game game, int width, int height, String collisionMapPath, String collisionMapName, System.Boolean drawMode, int quadDepth ) : System | ||
game | Microsoft.Xna.Framework.Game | |
width | int | |
height | int | |
collisionMapPath | String | |
collisionMapName | String | |
drawMode | System.Boolean | |
quadDepth | int | |
Результат | System |
public CollisionMap ( GraphicsDevice graphicsDevice, int width, int height, System.Boolean drawMode, int quadDepth ) : System | ||
graphicsDevice | GraphicsDevice | |
width | int | |
height | int | |
drawMode | System.Boolean | |
quadDepth | int | |
Результат | System |
public FireCollisionChangedEvent ( |
||
e | The event | |
Результат | void |
public GetNodeLocationsAroundEdges ( ) : CustomArrayList |
||
Результат | CustomArrayList |
public IndexExists ( Point p ) : System.Boolean | ||
p | Point | |
Результат | System.Boolean |
public IndexExists ( int index ) : System.Boolean | ||
index | int | |
Результат | System.Boolean |
public IndexToPoint ( int index ) : Point | ||
index | int | The index. |
Результат | Point |
public IsCollisionBetween ( Point p1, Point p2 ) : System.Boolean | ||
p1 | Point | The first point. |
p2 | Point | The second point. |
Результат | System.Boolean |
public LoadMap ( String path, String mapname ) : void | ||
path | String | The path of the map, WITHOUT a trailing slash. |
mapname | String | The mapname. |
Результат | void |
public PixelsBetweenPoints ( Point p1, Point p2, int spacing ) : Point[] | ||
p1 | Point | Point one |
p2 | Point | Point two |
spacing | int | The pixel spacing between the points (default should be 1). Lower than 1 will use 1. |
Результат | Point[] |
public PointToIndex ( Point p ) : int | ||
p | Point | The point. |
Результат | int |
public UpdateCollisionMap ( |
||
rect | The rectangle | |
add | System.Boolean | Whether to add or to remove the rect. |
Результат | void |