C# Class Dwarrowdelf.Server.ContainerObject

Inheritance: BaseObject, IContainerObject
Exibir arquivo Open project: tomba/dwarrowdelf Class Usage Examples

Private Properties

Property Type Description
AddChild void
MoveChild void
RemoveChild void

Public Methods

Method Description
Destruct ( ) : void
OkToAddChild ( MovableObject ob, IntVector3 dstLoc ) : bool
OkToMoveChild ( MovableObject ob, Direction dir, IntVector3 dstLoc ) : bool
SendTo ( IPlayer player, ObjectVisibility visibility ) : void

Protected Methods

Method Description
ContainerObject ( ObjectType objectType ) : System
ContainerObject ( SaveGameContext ctx, ObjectType objectType ) : System
OnChildAdded ( MovableObject child ) : void
OnChildMoved ( MovableObject child, IntVector3 srcLoc, IntVector3 dstLoc ) : void
OnChildRemoved ( MovableObject child ) : void

Private Methods

Method Description
AddChild ( MovableObject ob ) : void
MoveChild ( MovableObject ob, IntVector3 srcLoc, IntVector3 dstLoc ) : void
RemoveChild ( MovableObject ob ) : void

Method Details

ContainerObject() protected method

protected ContainerObject ( ObjectType objectType ) : System
objectType ObjectType
return System

ContainerObject() protected method

protected ContainerObject ( SaveGameContext ctx, ObjectType objectType ) : System
ctx SaveGameContext
objectType ObjectType
return System

Destruct() public method

public Destruct ( ) : void
return void

OkToAddChild() public method

public OkToAddChild ( MovableObject ob, IntVector3 dstLoc ) : bool
ob MovableObject
dstLoc IntVector3
return bool

OkToMoveChild() public method

public OkToMoveChild ( MovableObject ob, Direction dir, IntVector3 dstLoc ) : bool
ob MovableObject
dir Direction
dstLoc IntVector3
return bool

OnChildAdded() protected method

protected OnChildAdded ( MovableObject child ) : void
child MovableObject
return void

OnChildMoved() protected method

protected OnChildMoved ( MovableObject child, IntVector3 srcLoc, IntVector3 dstLoc ) : void
child MovableObject
srcLoc IntVector3
dstLoc IntVector3
return void

OnChildRemoved() protected method

protected OnChildRemoved ( MovableObject child ) : void
child MovableObject
return void

SendTo() public method

public SendTo ( IPlayer player, ObjectVisibility visibility ) : void
player IPlayer
visibility ObjectVisibility
return void