C# Class Sharplike.Mapping.AbstractPage

Inheritance: IScheduledTask
Exibir arquivo Open project: eropple/sharplike Class Usage Examples

Public Properties

Property Type Description
address Vector3

Protected Properties

Property Type Description
map AbstractSquare[,,]
size Vector3

Public Methods

Method 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

Protected Methods

Method Description
AbstractPage ( ) : System

Method Details

AbstractPage() protected method

protected AbstractPage ( ) : System
return System

AbstractPage() public method

public AbstractPage ( Int32 width, Int32 height, Int32 depth ) : System
width System.Int32
height System.Int32
depth System.Int32
return System

AbstractPage() public method

public AbstractPage ( Vector3 pageSize ) : System
pageSize Vector3
return System

Build() public abstract method

public abstract Build ( ) : void
return void

GetSquare() public method

public GetSquare ( Int32 x, Int32 y, Int32 z ) : AbstractSquare
x Int32
y Int32
z Int32
return AbstractSquare

LocateNeighbor() public method

public LocateNeighbor ( Vector3 p, Direction d ) : AbstractSquare
p Vector3
d Direction
return AbstractSquare

RegisterAIDelegate() public method

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.
return void

RegisterAIDelegate() public method

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.
return void

RemoveAIDelegate() public method

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.
return PageCallbackInfo

RemoveAllAIDelegates() public method

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.
return List

RemoveAllAIDelegates() public method

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.
return List

ScheduledAction() public method

public ScheduledAction ( ) : void
return void

SetSquare() public method

public SetSquare ( Int32 x, Int32 y, Int32 z, AbstractSquare sq ) : void
x Int32
y Int32
z Int32
sq AbstractSquare
return void

this() public method

public this ( Int32 x, Int32 y ) : AbstractSquare
x Int32
y Int32
return AbstractSquare

this() public method

public this ( Int32 x, Int32 y, Int32 z ) : AbstractSquare
x Int32
y Int32
z Int32
return AbstractSquare

this() public method

public this ( Point p ) : AbstractSquare
p Point
return AbstractSquare

this() public method

public this ( Vector3 p ) : AbstractSquare
p Vector3
return AbstractSquare

Property Details

address public_oe property

public Vector3 address
return Vector3

map protected_oe property

protected AbstractSquare[,,] map
return AbstractSquare[,,]

size protected_oe property

protected Vector3 size
return Vector3