C# 클래스 DivineRightGame.LocalMap

파일 보기 프로젝트 열기: Haedrian/Divine-Right

공개 프로퍼티들

프로퍼티 타입 설명
localGameMap DRObjects.MapBlock[

공개 메소드들

메소드 설명
AddToLocalMap ( MapBlock block ) : void

Add a block to a local map

DeserialiseLocalMap ( System.Guid uniqueGuid ) : LocalMap

Loads a local map from the file it was saved in. Will not load it into the gamestate thoughs

GeneratePathfindingMap ( ) : void

Generates the map required for pathfinding, and assign it to the Interface

GetBlockAtCoordinate ( MapCoordinate coordinate ) : MapBlock

Gets a block which is at a particular coordinate. If there is no block marked on the map, it will return an Air block.

GetBlocksAroundPoint ( MapCoordinate centre, int radius ) : DRObjects.MapBlock[]
HasDirectPath ( MapCoordinate source, MapCoordinate target ) : bool

Returns true if there is a direct path between the source and the target

LocalMap ( int sizeX, int sizeY, int sizeZ, int groundLevel ) : System

Creates a new Local map with x,y,z as size. The ground level determines the entry level for the map (generally 0)

MapGenerated ( System.Guid uniqueGuid ) : bool

Determines whether a map has been generated already or not

MinuteChanged ( object sender, EventArgs e ) : void

Performs the summoning of creatures for Dungeons, as well as handles events

SerialiseLocalMap ( ) : void

Saves the Local Map into the folder as per its guid

Tick ( ) : ActionFeedback[]

Perform a tick. Checks all actors and allow them an action

메소드 상세

AddToLocalMap() 공개 메소드

Add a block to a local map
public AddToLocalMap ( MapBlock block ) : void
block DRObjects.MapBlock
리턴 void

DeserialiseLocalMap() 공개 정적인 메소드

Loads a local map from the file it was saved in. Will not load it into the gamestate thoughs
public static DeserialiseLocalMap ( System.Guid uniqueGuid ) : LocalMap
uniqueGuid System.Guid
리턴 LocalMap

GeneratePathfindingMap() 공개 메소드

Generates the map required for pathfinding, and assign it to the Interface
public GeneratePathfindingMap ( ) : void
리턴 void

GetBlockAtCoordinate() 공개 메소드

Gets a block which is at a particular coordinate. If there is no block marked on the map, it will return an Air block.
public GetBlockAtCoordinate ( MapCoordinate coordinate ) : MapBlock
coordinate MapCoordinate
리턴 DRObjects.MapBlock

GetBlocksAroundPoint() 공개 메소드

public GetBlocksAroundPoint ( MapCoordinate centre, int radius ) : DRObjects.MapBlock[]
centre MapCoordinate
radius int
리턴 DRObjects.MapBlock[]

HasDirectPath() 공개 메소드

Returns true if there is a direct path between the source and the target
public HasDirectPath ( MapCoordinate source, MapCoordinate target ) : bool
source MapCoordinate
target MapCoordinate
리턴 bool

LocalMap() 공개 메소드

Creates a new Local map with x,y,z as size. The ground level determines the entry level for the map (generally 0)
public LocalMap ( int sizeX, int sizeY, int sizeZ, int groundLevel ) : System
sizeX int
sizeY int
sizeZ int
groundLevel int
리턴 System

MapGenerated() 공개 정적인 메소드

Determines whether a map has been generated already or not
public static MapGenerated ( System.Guid uniqueGuid ) : bool
uniqueGuid System.Guid
리턴 bool

MinuteChanged() 공개 메소드

Performs the summoning of creatures for Dungeons, as well as handles events
public MinuteChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
리턴 void

SerialiseLocalMap() 공개 메소드

Saves the Local Map into the folder as per its guid
public SerialiseLocalMap ( ) : void
리턴 void

Tick() 공개 메소드

Perform a tick. Checks all actors and allow them an action
public Tick ( ) : ActionFeedback[]
리턴 ActionFeedback[]

프로퍼티 상세

localGameMap 공개적으로 프로퍼티

public MapBlock[,DRObjects localGameMap
리턴 DRObjects.MapBlock[