C# Class Engine.PersonManager

Mostrar archivo Open project: Radnen/sphere-sfml

Public Properties

Property Type Description
CurrentPerson string
ObstPerson string

Public Methods

Method Description
BindToEngine ( ScriptEngine engine ) : void
CallPersonScript ( string name, int type ) : void
CheckPersonObstructions ( Vector2f &position, Person person ) : bool
ClearPersonCommands ( string name ) : void
CreatePerson ( Entity person ) : void
CreatePerson ( string name, string ss, [ destroy = true ) : void
DestroyPerson ( string name ) : void
DoesPersonExist ( string name ) : bool
GetClosest ( string name ) : string

Gets the closest person within talking range.

GetCurrentPerson ( ) : string
GetPersonBase ( string name ) : object
GetPersonData ( string name ) : object
GetPersonDirection ( string name ) : string
GetPersonFrame ( string name ) : int
GetPersonFrameRevert ( string name ) : int
GetPersonLayer ( string name ) : int
GetPersonList ( ) : ArrayInstance
GetPersonMask ( string name ) : object
GetPersonOffsetX ( string name ) : double
GetPersonOffsetY ( string name ) : double
GetPersonSpeedX ( string name ) : double
GetPersonSpeedY ( string name ) : double
GetPersonSpriteset ( string name ) : object
GetPersonValue ( string name, string key ) : object
GetPersonX ( string name ) : int
GetPersonXFloat ( string name ) : double
GetPersonY ( string name ) : int
GetPersonYFloat ( string name ) : double
IgnorePersonObstructions ( string name, bool ignore ) : void
IgnoreTileObstructions ( string name, bool ignore ) : void
IsCommandQueueEmpty ( string name ) : bool
IsIgnoringPersonObstructions ( string name ) : bool
IsIgnoringTileObstructions ( string name ) : bool
IsPersonObstructed ( string name, double x, double y ) : bool
IsPersonVisible ( string name ) : bool
OrderPeople ( ) : void

Orders the people by the y axis, like in vanilla Sphere.

QueuePersonCommand ( string name, int command, bool immediate ) : void
QueuePersonScript ( string name, object script, bool immediate ) : void
RemoveNonEssential ( ) : void

Removes the non-essential person objects on a map.

SetPersonData ( string name, ObjectInstance o ) : void
SetPersonDirection ( string name, string d ) : void
SetPersonFrame ( string name, int v ) : void
SetPersonFrameRevert ( string name, int r ) : void
SetPersonLayer ( string name, int layer ) : void
SetPersonMask ( string name, ColorInstance color ) : void
SetPersonOffsetX ( string name, double x ) : void
SetPersonOffsetY ( string name, double y ) : void
SetPersonScript ( string name, int type, object script ) : void
SetPersonSpeed ( string name, double s ) : void
SetPersonSpeedXY ( string name, double x, double y ) : void
SetPersonSpriteset ( string name, SpritesetInstance instance ) : void
SetPersonValue ( string name, string key, object o ) : void
SetPersonVisible ( string name, bool visible ) : void
SetPersonX ( string name, int x ) : void
SetPersonXFloat ( string name, double x ) : void
SetPersonXY ( string name, int x, int y ) : void
SetPersonXYFloat ( string name, double x, double y ) : void
SetPersonY ( string name, int y ) : void
SetPersonYFloat ( string name, double y ) : void

Private Methods

Method Description
GetObstructingPerson ( ) : string
GetTalkDistance ( ) : int
PersonManager ( ) : System
SetTalkDistance ( int dist ) : void

Method Details

BindToEngine() public static method

public static BindToEngine ( ScriptEngine engine ) : void
engine ScriptEngine
return void

CallPersonScript() public static method

public static CallPersonScript ( string name, int type ) : void
name string
type int
return void

CheckPersonObstructions() public static method

public static CheckPersonObstructions ( Vector2f &position, Person person ) : bool
position Vector2f
person Engine.Objects.Person
return bool

ClearPersonCommands() public static method

public static ClearPersonCommands ( string name ) : void
name string
return void

CreatePerson() public static method

public static CreatePerson ( Entity person ) : void
person Entity
return void

CreatePerson() public static method

public static CreatePerson ( string name, string ss, [ destroy = true ) : void
name string
ss string
destroy [
return void

DestroyPerson() public static method

public static DestroyPerson ( string name ) : void
name string
return void

DoesPersonExist() public static method

public static DoesPersonExist ( string name ) : bool
name string
return bool

GetClosest() public static method

Gets the closest person within talking range.
public static GetClosest ( string name ) : string
name string Compare all others to this one.
return string

GetCurrentPerson() public static method

public static GetCurrentPerson ( ) : string
return string

GetPersonBase() public static method

public static GetPersonBase ( string name ) : object
name string
return object

GetPersonData() public static method

public static GetPersonData ( string name ) : object
name string
return object

GetPersonDirection() public static method

public static GetPersonDirection ( string name ) : string
name string
return string

GetPersonFrame() public static method

public static GetPersonFrame ( string name ) : int
name string
return int

GetPersonFrameRevert() public static method

public static GetPersonFrameRevert ( string name ) : int
name string
return int

GetPersonLayer() public static method

public static GetPersonLayer ( string name ) : int
name string
return int

GetPersonList() public static method

public static GetPersonList ( ) : ArrayInstance
return Jurassic.Library.ArrayInstance

GetPersonMask() public static method

public static GetPersonMask ( string name ) : object
name string
return object

GetPersonOffsetX() public static method

public static GetPersonOffsetX ( string name ) : double
name string
return double

GetPersonOffsetY() public static method

public static GetPersonOffsetY ( string name ) : double
name string
return double

GetPersonSpeedX() public static method

public static GetPersonSpeedX ( string name ) : double
name string
return double

GetPersonSpeedY() public static method

public static GetPersonSpeedY ( string name ) : double
name string
return double

GetPersonSpriteset() public static method

public static GetPersonSpriteset ( string name ) : object
name string
return object

GetPersonValue() public static method

public static GetPersonValue ( string name, string key ) : object
name string
key string
return object

GetPersonX() public static method

public static GetPersonX ( string name ) : int
name string
return int

GetPersonXFloat() public static method

public static GetPersonXFloat ( string name ) : double
name string
return double

GetPersonY() public static method

public static GetPersonY ( string name ) : int
name string
return int

GetPersonYFloat() public static method

public static GetPersonYFloat ( string name ) : double
name string
return double

IgnorePersonObstructions() public static method

public static IgnorePersonObstructions ( string name, bool ignore ) : void
name string
ignore bool
return void

IgnoreTileObstructions() public static method

public static IgnoreTileObstructions ( string name, bool ignore ) : void
name string
ignore bool
return void

IsCommandQueueEmpty() public static method

public static IsCommandQueueEmpty ( string name ) : bool
name string
return bool

IsIgnoringPersonObstructions() public static method

public static IsIgnoringPersonObstructions ( string name ) : bool
name string
return bool

IsIgnoringTileObstructions() public static method

public static IsIgnoringTileObstructions ( string name ) : bool
name string
return bool

IsPersonObstructed() public static method

public static IsPersonObstructed ( string name, double x, double y ) : bool
name string
x double
y double
return bool

IsPersonVisible() public static method

public static IsPersonVisible ( string name ) : bool
name string
return bool

OrderPeople() public static method

Orders the people by the y axis, like in vanilla Sphere.
public static OrderPeople ( ) : void
return void

QueuePersonCommand() public static method

public static QueuePersonCommand ( string name, int command, bool immediate ) : void
name string
command int
immediate bool
return void

QueuePersonScript() public static method

public static QueuePersonScript ( string name, object script, bool immediate ) : void
name string
script object
immediate bool
return void

RemoveNonEssential() public static method

Removes the non-essential person objects on a map.
public static RemoveNonEssential ( ) : void
return void

SetPersonData() public static method

public static SetPersonData ( string name, ObjectInstance o ) : void
name string
o Jurassic.Library.ObjectInstance
return void

SetPersonDirection() public static method

public static SetPersonDirection ( string name, string d ) : void
name string
d string
return void

SetPersonFrame() public static method

public static SetPersonFrame ( string name, int v ) : void
name string
v int
return void

SetPersonFrameRevert() public static method

public static SetPersonFrameRevert ( string name, int r ) : void
name string
r int
return void

SetPersonLayer() public static method

public static SetPersonLayer ( string name, int layer ) : void
name string
layer int
return void

SetPersonMask() public static method

public static SetPersonMask ( string name, ColorInstance color ) : void
name string
color Engine.Objects.ColorInstance
return void

SetPersonOffsetX() public static method

public static SetPersonOffsetX ( string name, double x ) : void
name string
x double
return void

SetPersonOffsetY() public static method

public static SetPersonOffsetY ( string name, double y ) : void
name string
y double
return void

SetPersonScript() public static method

public static SetPersonScript ( string name, int type, object script ) : void
name string
type int
script object
return void

SetPersonSpeed() public static method

public static SetPersonSpeed ( string name, double s ) : void
name string
s double
return void

SetPersonSpeedXY() public static method

public static SetPersonSpeedXY ( string name, double x, double y ) : void
name string
x double
y double
return void

SetPersonSpriteset() public static method

public static SetPersonSpriteset ( string name, SpritesetInstance instance ) : void
name string
instance Engine.Objects.SpritesetInstance
return void

SetPersonValue() public static method

public static SetPersonValue ( string name, string key, object o ) : void
name string
key string
o object
return void

SetPersonVisible() public static method

public static SetPersonVisible ( string name, bool visible ) : void
name string
visible bool
return void

SetPersonX() public static method

public static SetPersonX ( string name, int x ) : void
name string
x int
return void

SetPersonXFloat() public static method

public static SetPersonXFloat ( string name, double x ) : void
name string
x double
return void

SetPersonXY() public static method

public static SetPersonXY ( string name, int x, int y ) : void
name string
x int
y int
return void

SetPersonXYFloat() public static method

public static SetPersonXYFloat ( string name, double x, double y ) : void
name string
x double
y double
return void

SetPersonY() public static method

public static SetPersonY ( string name, int y ) : void
name string
y int
return void

SetPersonYFloat() public static method

public static SetPersonYFloat ( string name, double y ) : void
name string
y double
return void

Property Details

CurrentPerson public_oe static_oe property

public static string CurrentPerson
return string

ObstPerson public_oe static_oe property

public static string ObstPerson
return string