C# Класс Sharplike.Mapping.AbstractPage

Наследование: IScheduledTask
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
address Vector3

Защищенные свойства (Protected)

Свойство Тип Описание
map AbstractSquare[,,]
size Vector3

Открытые методы

Метод Описание
AbstractPage ( Int32 width, Int32 height, Int32 depth ) : System
AbstractPage ( Vector3 pageSize ) : System
Build ( ) : void
GetSquare ( Int32 x, Int32 y, Int32 z ) : AbstractSquare
LocateNeighbor ( Vector3 p, Direction d ) : AbstractSquare
RegisterAIDelegate ( Int64 timeToCall, IPageCallbacker target, PageActionDelegate callbackFunction ) : void

Allows an IPageCallbacker (the page itself or an Entity) to register a callback for some future point in time. Designed for AI calls from entities, hence the name.

RegisterAIDelegate ( PageCallbackInfo callbackInfo ) : void

Allows an IPageCallbacker (the page itself or an Entity) to register a callback for some future point in time. Designed for AI calls from entities, hence the name.

RemoveAIDelegate ( Int64 time, IPageCallbacker target ) : PageCallbackInfo

Removes a single AI delegate from the page's schedule.

RemoveAllAIDelegates ( IList targets ) : List

Removes all delegates from the specified IPageCallbackers from the page scheduler, and returns them. Used primarily to get a list of callbacks that must transition during a page move.

RemoveAllAIDelegates ( IPageCallbacker target ) : List

Removes all delegates from the specified IPageCallbacker from the page scheduler, and returns them. Used primarily to get a list of callbacks that must transition during a page move.

ScheduledAction ( ) : void
SetSquare ( Int32 x, Int32 y, Int32 z, AbstractSquare sq ) : void
this ( Int32 x, Int32 y ) : AbstractSquare
this ( Int32 x, Int32 y, Int32 z ) : AbstractSquare
this ( Point p ) : AbstractSquare
this ( Vector3 p ) : AbstractSquare

Защищенные методы

Метод Описание
AbstractPage ( ) : System

Описание методов

AbstractPage() защищенный Метод

protected AbstractPage ( ) : System
Результат System

AbstractPage() публичный Метод

public AbstractPage ( Int32 width, Int32 height, Int32 depth ) : System
width System.Int32
height System.Int32
depth System.Int32
Результат System

AbstractPage() публичный Метод

public AbstractPage ( Vector3 pageSize ) : System
pageSize Vector3
Результат System

Build() публичный абстрактный Метод

public abstract Build ( ) : void
Результат void

GetSquare() публичный Метод

public GetSquare ( Int32 x, Int32 y, Int32 z ) : AbstractSquare
x Int32
y Int32
z Int32
Результат AbstractSquare

LocateNeighbor() публичный Метод

public LocateNeighbor ( Vector3 p, Direction d ) : AbstractSquare
p Vector3
d Direction
Результат AbstractSquare

RegisterAIDelegate() публичный Метод

Allows an IPageCallbacker (the page itself or an Entity) to register a callback for some future point in time. Designed for AI calls from entities, hence the name.
public RegisterAIDelegate ( Int64 timeToCall, IPageCallbacker target, PageActionDelegate callbackFunction ) : void
timeToCall Int64 The future tick to invoke the delegate at.
target IPageCallbacker The object that requests this AI call; used for later culling.
callbackFunction PageActionDelegate The delegate for the function to call.
Результат void

RegisterAIDelegate() публичный Метод

Allows an IPageCallbacker (the page itself or an Entity) to register a callback for some future point in time. Designed for AI calls from entities, hence the name.
public RegisterAIDelegate ( PageCallbackInfo callbackInfo ) : void
callbackInfo PageCallbackInfo The collected callback information.
Результат void

RemoveAIDelegate() публичный Метод

Removes a single AI delegate from the page's schedule.
public RemoveAIDelegate ( Int64 time, IPageCallbacker target ) : PageCallbackInfo
time Int64 The time at which the delegate to remove is running.
target IPageCallbacker The object owning the delegate to remove.
Результат PageCallbackInfo

RemoveAllAIDelegates() публичный Метод

Removes all delegates from the specified IPageCallbackers from the page scheduler, and returns them. Used primarily to get a list of callbacks that must transition during a page move.
public RemoveAllAIDelegates ( IList targets ) : List
targets IList The targets whose callbacks to remove.
Результат List

RemoveAllAIDelegates() публичный Метод

Removes all delegates from the specified IPageCallbacker from the page scheduler, and returns them. Used primarily to get a list of callbacks that must transition during a page move.
public RemoveAllAIDelegates ( IPageCallbacker target ) : List
target IPageCallbacker The target whose callbacks to remove.
Результат List

ScheduledAction() публичный Метод

public ScheduledAction ( ) : void
Результат void

SetSquare() публичный Метод

public SetSquare ( Int32 x, Int32 y, Int32 z, AbstractSquare sq ) : void
x Int32
y Int32
z Int32
sq AbstractSquare
Результат void

this() публичный Метод

public this ( Int32 x, Int32 y ) : AbstractSquare
x Int32
y Int32
Результат AbstractSquare

this() публичный Метод

public this ( Int32 x, Int32 y, Int32 z ) : AbstractSquare
x Int32
y Int32
z Int32
Результат AbstractSquare

this() публичный Метод

public this ( Point p ) : AbstractSquare
p Point
Результат AbstractSquare

this() публичный Метод

public this ( Vector3 p ) : AbstractSquare
p Vector3
Результат AbstractSquare

Описание свойств

address публичное свойство

public Vector3 address
Результат Vector3

map защищенное свойство

protected AbstractSquare[,,] map
Результат AbstractSquare[,,]

size защищенное свойство

protected Vector3 size
Результат Vector3