C# Class Sharplike.Mapping.AbstractPage

Inheritance: IScheduledTask
Afficher le fichier Open project: eropple/sharplike Class Usage Examples

Méthodes publiques

Свойство Type Description
address Vector3

Protected Properties

Свойство Type Description
map AbstractSquare[,,]
size Vector3

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
AbstractPage ( ) : System

Method Details

AbstractPage() protected méthode

protected AbstractPage ( ) : System
Résultat System

AbstractPage() public méthode

public AbstractPage ( Int32 width, Int32 height, Int32 depth ) : System
width System.Int32
height System.Int32
depth System.Int32
Résultat System

AbstractPage() public méthode

public AbstractPage ( Vector3 pageSize ) : System
pageSize Vector3
Résultat System

Build() public abstract méthode

public abstract Build ( ) : void
Résultat void

GetSquare() public méthode

public GetSquare ( Int32 x, Int32 y, Int32 z ) : AbstractSquare
x Int32
y Int32
z Int32
Résultat AbstractSquare

LocateNeighbor() public méthode

public LocateNeighbor ( Vector3 p, Direction d ) : AbstractSquare
p Vector3
d Direction
Résultat AbstractSquare

RegisterAIDelegate() public méthode

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.
Résultat void

RegisterAIDelegate() public méthode

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.
Résultat void

RemoveAIDelegate() public méthode

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.
Résultat PageCallbackInfo

RemoveAllAIDelegates() public méthode

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.
Résultat List

RemoveAllAIDelegates() public méthode

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.
Résultat List

ScheduledAction() public méthode

public ScheduledAction ( ) : void
Résultat void

SetSquare() public méthode

public SetSquare ( Int32 x, Int32 y, Int32 z, AbstractSquare sq ) : void
x Int32
y Int32
z Int32
sq AbstractSquare
Résultat void

this() public méthode

public this ( Int32 x, Int32 y ) : AbstractSquare
x Int32
y Int32
Résultat AbstractSquare

this() public méthode

public this ( Int32 x, Int32 y, Int32 z ) : AbstractSquare
x Int32
y Int32
z Int32
Résultat AbstractSquare

this() public méthode

public this ( Point p ) : AbstractSquare
p Point
Résultat AbstractSquare

this() public méthode

public this ( Vector3 p ) : AbstractSquare
p Vector3
Résultat AbstractSquare

Property Details

address public_oe property

public Vector3 address
Résultat Vector3

map protected_oe property

protected AbstractSquare[,,] map
Résultat AbstractSquare[,,]

size protected_oe property

protected Vector3 size
Résultat Vector3