C# Class Dwarrowdelf.Server.MovableObject

Inheritance: ContainerObject, IMovableObject
Show file Open project: tomba/dwarrowdelf Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Destruct ( ) : void
MoveDir ( Direction dir ) : bool

Move object to given direction, checking that it is possible to move

MoveTo ( ContainerObject container ) : bool
MoveTo ( ContainerObject dst, IntVector3 dstLoc = newIntVector3() ) : bool
MoveTo ( IntVector3 location ) : bool

Move object to given location, without checking if there's a route from current location

MoveToMustSucceed ( ContainerObject container ) : void
MoveToMustSucceed ( ContainerObject dst, IntVector3 dstLoc = newIntVector3() ) : void
MoveToMustSucceed ( IntVector3 location ) : void
ToString ( ) : string

Protected Methods

Method Description
CollectObjectData ( BaseGameObjectData baseData, ObjectVisibility visibility ) : void
MovableObject ( ObjectType objectType ) : System
MovableObject ( ObjectType objectType, MovableObjectBuilder builder ) : System
MovableObject ( SaveGameContext ctx, ObjectType objectType ) : System
MoveToLow ( ContainerObject dst, IntVector3 dstLoc ) : void
MoveToLow ( IntVector3 location ) : void
OkToMove ( ) : bool
OnLocationChanged ( ) : void
OnLocationChanging ( ) : void
OnParentChanged ( ContainerObject src, ContainerObject dst ) : void
OnParentChanging ( ) : void
SerializeProperties ( ) : object>.Dictionary

Method Details

CollectObjectData() protected method

protected CollectObjectData ( BaseGameObjectData baseData, ObjectVisibility visibility ) : void
baseData BaseGameObjectData
visibility ObjectVisibility
return void

Destruct() public method

public Destruct ( ) : void
return void

MovableObject() protected method

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

MovableObject() protected method

protected MovableObject ( ObjectType objectType, MovableObjectBuilder builder ) : System
objectType ObjectType
builder MovableObjectBuilder
return System

MovableObject() protected method

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

MoveDir() public method

Move object to given direction, checking that it is possible to move
public MoveDir ( Direction dir ) : bool
dir Direction
return bool

MoveTo() public method

public MoveTo ( ContainerObject container ) : bool
container ContainerObject
return bool

MoveTo() public method

public MoveTo ( ContainerObject dst, IntVector3 dstLoc = newIntVector3() ) : bool
dst ContainerObject
dstLoc IntVector3
return bool

MoveTo() public method

Move object to given location, without checking if there's a route from current location
public MoveTo ( IntVector3 location ) : bool
location IntVector3
return bool

MoveToLow() protected method

protected MoveToLow ( ContainerObject dst, IntVector3 dstLoc ) : void
dst ContainerObject
dstLoc IntVector3
return void

MoveToLow() protected method

protected MoveToLow ( IntVector3 location ) : void
location IntVector3
return void

MoveToMustSucceed() public method

public MoveToMustSucceed ( ContainerObject container ) : void
container ContainerObject
return void

MoveToMustSucceed() public method

public MoveToMustSucceed ( ContainerObject dst, IntVector3 dstLoc = newIntVector3() ) : void
dst ContainerObject
dstLoc IntVector3
return void

MoveToMustSucceed() public method

public MoveToMustSucceed ( IntVector3 location ) : void
location IntVector3
return void

OkToMove() protected method

protected OkToMove ( ) : bool
return bool

OnLocationChanged() protected method

protected OnLocationChanged ( ) : void
return void

OnLocationChanging() protected method

protected OnLocationChanging ( ) : void
return void

OnParentChanged() protected method

protected OnParentChanged ( ContainerObject src, ContainerObject dst ) : void
src ContainerObject
dst ContainerObject
return void

OnParentChanging() protected method

protected OnParentChanging ( ) : void
return void

SerializeProperties() protected method

protected SerializeProperties ( ) : object>.Dictionary
return object>.Dictionary

ToString() public method

public ToString ( ) : string
return string