C# Class Engine.Program

ファイルを表示 Open project: Radnen/sphere-sfml

Public Properties

Property Type Description
Batch SpriteBatch
_clipper IntRect
_engine ScriptEngine
_window RenderWindow

Public Methods

Method Description
Abort ( string msg ) : void
BlendColors ( Color c1, Color c2 ) : ColorInstance
BlendColorsWeighted ( Color c1, Color c2, double w ) : ColorInstance
BlendColorsWeighted ( ColorInstance c1, ColorInstance c2, double w ) : ColorInstance
CreateObject ( ) : ObjectInstance
Exit ( ) : void
FlipScreen ( ) : void
GetFrameRate ( ) : int
GetScreenHeight ( ) : int
GetScreenWidth ( ) : int
GetSphereEngine ( ) : ScriptEngine
GetSystemFont ( ) : FontInstance
GetTime ( ) : double
InitWindow ( Styles style ) : bool
IsFullScreen ( ) : bool
ParseSpherePath ( string path, string root ) : string

Sandboxes the game.sgm, allows to peek a level behind.

SetFrameRate ( int fps ) : void
SetFullScreen ( bool value ) : void
SetScaled ( bool v ) : void
SetupTestEnvironment ( ) : void
ShowAbortScreen ( string message ) : void

Private Methods

Method Description
BlendColors ( ColorInstance c1, ColorInstance c2 ) : ColorInstance
CreateByteArray ( int size ) : ByteArrayInstance
CreateByteArrayFromString ( string content ) : ByteArrayInstance
CreateColor ( int r, int g, int b, [ a = 255 ) : ColorInstance
CreateDirectory ( string fullname ) : void
CreateSpriteset ( int width, int height, int i, int d, int f ) : SpritesetInstance
CreateStringFromByteArray ( ByteArrayInstance array ) : string
CreateStringFromCode ( int code ) : string
CreateSurface ( int w, int h, ColorInstance color ) : HWSurfaceInstance
FindIcon ( ) : void
GarbageCollect ( ) : void
GetClippingRectangle ( ) : ObjectInstance
GetDirectoryList ( [ filepath = "" ) : ArrayInstance
GetExtensions ( ) : ArrayInstance
GetFileList ( [ filepath = "" ) : ArrayInstance
GetGameList ( ) : ArrayInstance
GetHash ( HashAlgorithm algorithm, byte content ) : string
GetLocalAddress ( ) : string
GetLocalName ( ) : string
GetSystemArrow ( ) : ImageInstance
GetSystemDownArrow ( ) : ImageInstance
GetSystemUpArrow ( ) : ImageInstance
GetSystemWindowStyle ( ) : WindowStyleInstance
GetVersion ( ) : double
GetVersionString ( ) : string
GrabImage ( int x, int y, int w, int h ) : ImageInstance
GrabSurface ( int x, int y, int w, int h ) : SurfaceInstance
HashByteArray ( ByteArrayInstance array, [ sha = false ) : string
HashFromFile ( string filename, [ sha = false ) : string
InitEngine ( ) : bool
LineIntersects ( ObjectInstance a1, ObjectInstance b1, ObjectInstance a2, ObjectInstance b2 ) : bool
ListGames ( ) : void
ListenOnPort ( int port ) : object
LoadFont ( string filename ) : FontInstance
LoadImage ( string filename ) : ImageInstance
LoadSound ( string filename ) : SoundInstance
LoadSpriteset ( string filename ) : SpritesetInstance
LoadSurface ( string filename ) : HWSurfaceInstance
LoadWindowStyle ( string filename ) : WindowStyleInstance
Main ( string args ) : void
OpenAddress ( string address, int port ) : object
OpenFile ( string filename ) : FileInstance
OpenRawFile ( string filename, [ writeable = false ) : RawFileInstance
Print ( object obj ) : void
RemoveDirectory ( string filepath ) : void
RemoveFile ( string filepath ) : void
Rename ( string file1, string file2 ) : bool
SetClippingRectangle ( int x, int y, int w, int h ) : void
SetGlobalConst ( ScriptEngine engine ) : void

Method Details

Abort() public static method

public static Abort ( string msg ) : void
msg string
return void

BlendColors() public static method

public static BlendColors ( Color c1, Color c2 ) : ColorInstance
c1 Color
c2 Color
return ColorInstance

BlendColorsWeighted() public static method

public static BlendColorsWeighted ( Color c1, Color c2, double w ) : ColorInstance
c1 Color
c2 Color
w double
return ColorInstance

BlendColorsWeighted() public static method

public static BlendColorsWeighted ( ColorInstance c1, ColorInstance c2, double w ) : ColorInstance
c1 ColorInstance
c2 ColorInstance
w double
return ColorInstance

CreateObject() public static method

public static CreateObject ( ) : ObjectInstance
return ObjectInstance

Exit() public static method

public static Exit ( ) : void
return void

FlipScreen() public static method

public static FlipScreen ( ) : void
return void

GetFrameRate() public static method

public static GetFrameRate ( ) : int
return int

GetScreenHeight() public static method

public static GetScreenHeight ( ) : int
return int

GetScreenWidth() public static method

public static GetScreenWidth ( ) : int
return int

GetSphereEngine() public static method

public static GetSphereEngine ( ) : ScriptEngine
return ScriptEngine

GetSystemFont() public static method

public static GetSystemFont ( ) : FontInstance
return FontInstance

GetTime() public static method

public static GetTime ( ) : double
return double

InitWindow() public static method

public static InitWindow ( Styles style ) : bool
style Styles
return bool

IsFullScreen() public static method

public static IsFullScreen ( ) : bool
return bool

ParseSpherePath() public static method

Sandboxes the game.sgm, allows to peek a level behind.
public static ParseSpherePath ( string path, string root ) : string
path string Path.
root string Root.
return string

SetFrameRate() public static method

public static SetFrameRate ( int fps ) : void
fps int
return void

SetFullScreen() public static method

public static SetFullScreen ( bool value ) : void
value bool
return void

SetScaled() public static method

public static SetScaled ( bool v ) : void
v bool
return void

SetupTestEnvironment() public static method

public static SetupTestEnvironment ( ) : void
return void

ShowAbortScreen() public static method

public static ShowAbortScreen ( string message ) : void
message string
return void

Property Details

Batch public_oe static_oe property

public static SpriteBatch Batch
return SpriteBatch

_clipper public_oe static_oe property

public static IntRect _clipper
return IntRect

_engine public_oe static_oe property

public static ScriptEngine _engine
return ScriptEngine

_window public_oe static_oe property

public static RenderWindow _window
return RenderWindow