C# Класс DivineRightGame.LocalMap

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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[