C# 클래스 PathfindingTest.Collision.RTSCollisionMap

상속: AStarCollisionMap.Collision.CollisionMap
파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2 1 사용 예제들

공개 메소드들

메소드 설명
CanPlace ( Rectangle rect ) : System.Boolean

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 ( SpriteBatch sb ) : void

Draws this map on the screen.

PlaceBuilding ( Rectangle rect ) : BuildingMesh

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

메소드 상세

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.
public CanPlace ( Rectangle rect ) : System.Boolean
rect Microsoft.Xna.Framework.Rectangle The rect you want to update
리턴 System.Boolean

DrawMap() 공개 메소드

Draws this map on the screen.
public DrawMap ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

PlaceBuilding() 공개 메소드

Updates the collisionmap, adding the rectangle to the collisionmap, and performing new connections, as for placing nodes
public PlaceBuilding ( Rectangle rect ) : BuildingMesh
rect Microsoft.Xna.Framework.Rectangle
리턴 BuildingMesh

PlaceNodesAroundEdges() 공개 메소드

Places nodes around collision edges
public PlaceNodesAroundEdges ( ) : void
리턴 void

RTSCollisionMap() 공개 메소드

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
리턴 System

RTSCollisionMap() 공개 메소드

public RTSCollisionMap ( GraphicsDevice device, int width, int height, int quadDepth ) : System
device GraphicsDevice
width int
height int
quadDepth int
리턴 System