Méthode | Description | |
---|---|---|
CanPlace ( |
Checks whether you can place the rectangle on the map. You can of course still update the collision map despite the outcome of this function.
|
|
DrawMap ( |
Draws this map on the screen.
|
|
PlaceBuilding ( |
Updates the collisionmap, adding the rectangle to the collisionmap, and performing new connections, as for placing nodes
|
|
PlaceNodesAroundEdges ( ) : void |
Places nodes around collision edges
|
|
RTSCollisionMap ( Microsoft.Xna.Framework.Game game, int width, int height, String collisionMapPath, String collisionMapName ) : System | ||
RTSCollisionMap ( GraphicsDevice device, int width, int height, int quadDepth ) : System |
public CanPlace ( |
||
rect | The rect you want to update | |
Résultat | System.Boolean |
public DrawMap ( |
||
sb | ||
Résultat | void |
public PlaceBuilding ( |
||
rect | ||
Résultat |
public RTSCollisionMap ( Microsoft.Xna.Framework.Game game, int width, int height, String collisionMapPath, String collisionMapName ) : System | ||
game | Microsoft.Xna.Framework.Game | |
width | int | |
height | int | |
collisionMapPath | String | |
collisionMapName | String | |
Résultat | System |
public RTSCollisionMap ( GraphicsDevice device, int width, int height, int quadDepth ) : System | ||
device | GraphicsDevice | |
width | int | |
height | int | |
quadDepth | int | |
Résultat | System |