C# Class Engine.Objects.MapEngineHandler

Afficher le fichier Open project: Radnen/sphere-sfml

Méthodes publiques

Свойство Type Description
FPSToggle bool

Méthodes publiques

Méthode Description
BindToEngine ( ScriptEngine engine ) : void
CheckLineObstruction ( Vector2f &position, Person person ) : bool
CheckTileObstruction ( Vector2f &position, Person person ) : bool
DoTalk ( ) : void
GetLayerHeight ( int layer ) : int
GetLayerWidth ( int layer ) : int
GetTileHeight ( ) : int
GetTileWidth ( ) : int
SetColorMask ( ColorInstance color, int frames ) : void
ToggleFPSThrottle ( ) : void

Toggles the FPS throttle.

Private Methods

Méthode Description
AddPersons ( ) : void

Adds the persons and triggers in this map instance to the person handler.

AreZonesAt ( int x, int y, int layer ) : bool
AttachCamera ( string name ) : void
AttachInput ( string name ) : void
CallDefaultMapScript ( int which ) : void
CallMapScript ( int which ) : void
ChangeMap ( string filename ) : void
CheckMapEdgeScript ( int x, int y ) : void
CompileMapScripts ( ) : void

Compiles the loaded default map scripts for this map.

ConstructFastAtlas ( ) : void

Turns the tileset into a tile atlas and then put it into a wrapper for fast tetxure manipulation.

DetachCamera ( ) : void
DetachInput ( ) : void
DrawPersons ( int layer ) : void

Draws the persons for the requested layer.

DrawVerts ( Vertex in_verts, int x, int y, uint scan ) : void
ExecuteTrigger ( double x, double y, int layer ) : void
ExecuteZoneScript ( int zone ) : void
ExecuteZones ( int x, int y, int layer ) : void
ExitMapEngine ( ) : void
GetCameraPerson ( ) : string
GetCameraX ( ) : int
GetCameraY ( ) : int
GetClampedCamera ( ) : Vector2f
GetCurrentMap ( ) : string
GetCurrentZone ( ) : int
GetInputPerson ( ) : string
GetLayerName ( int layer ) : string
GetMapEngineFrameRate ( ) : int
GetNextAnimatedTile ( int tile ) : int
GetNumLayers ( ) : int
GetNumTiles ( ) : int
GetNumZones ( ) : int
GetTile ( int x, int y, int layer ) : int
GetTileDelay ( int tile ) : int
GetTileImage ( int tile ) : ImageInstance
GetTileName ( int tile ) : string
GetTriggerAt ( double x, double y ) : Entity
GetZoneHeight ( int zone ) : int
GetZoneLayer ( int zone ) : int
GetZoneWidth ( int zone ) : int
GetZoneX ( int zone ) : int
GetZoneY ( int zone ) : int
IsCameraAttached ( ) : bool
IsInputAttached ( ) : bool
IsLayerReflective ( int layer ) : bool
IsLayerVisible ( int layer ) : bool
IsMapEngineRunning ( ) : bool
IsTriggerAt ( double x, double y, int layer ) : bool
LoadMap ( string filename, bool removePeople, bool useBase ) : void

Loads the map, and optionally removes those that may die when changing map.

MapEngine ( string filename, [ fps = 60 ) : void
MapEngineHandler ( ) : System
MapToScreenX ( int layer, int x ) : int
MapToScreenY ( int layer, int y ) : int
ParseAnimations ( ) : void

Goes through the tiles and finds those that animate and Puts their index references into an easily managed class.

RenderMap ( bool self ) : void
RenderMapHandle ( ) : void
ReplaceTilesOnLayer ( int layer, int from, int to ) : void
ScreenToMapX ( int layer, int x ) : int
ScreenToMapY ( int layer, int y ) : int
SetCameraX ( int x ) : void
SetCameraY ( int y ) : void
SetDefaultMapScript ( int type, object code ) : void
SetDelayScript ( int frames, object code ) : void
SetLayerReflective ( int layer, bool value ) : void
SetLayerRenderer ( int layer, object code ) : void
SetLayerVisible ( int layer, bool visible ) : void
SetMapEngineFrameRate ( int rate ) : void
SetRenderScript ( object code ) : void
SetTile ( int x, int y, int layer, int tile ) : void
SetTileImage ( int tile, ImageInstance image ) : void
SetUpdateScript ( object code ) : void
UpdateCutout ( ) : void

Updates the max num of vertices that the size of the screen can handle.

UpdateInput ( ) : void
UpdateMapEngine ( bool self ) : void
UpdateMapEngineHandle ( ) : void

Method Details

BindToEngine() public static méthode

public static BindToEngine ( ScriptEngine engine ) : void
engine ScriptEngine
Résultat void

CheckLineObstruction() public static méthode

public static CheckLineObstruction ( Vector2f &position, Person person ) : bool
position Vector2f
person Person
Résultat bool

CheckTileObstruction() public static méthode

public static CheckTileObstruction ( Vector2f &position, Person person ) : bool
position Vector2f
person Person
Résultat bool

DoTalk() public static méthode

public static DoTalk ( ) : void
Résultat void

GetLayerHeight() public static méthode

public static GetLayerHeight ( int layer ) : int
layer int
Résultat int

GetLayerWidth() public static méthode

public static GetLayerWidth ( int layer ) : int
layer int
Résultat int

GetTileHeight() public static méthode

public static GetTileHeight ( ) : int
Résultat int

GetTileWidth() public static méthode

public static GetTileWidth ( ) : int
Résultat int

SetColorMask() public static méthode

public static SetColorMask ( ColorInstance color, int frames ) : void
color ColorInstance
frames int
Résultat void

ToggleFPSThrottle() public static méthode

Toggles the FPS throttle.
public static ToggleFPSThrottle ( ) : void
Résultat void

Property Details

FPSToggle public_oe static_oe property

public static bool FPSToggle
Résultat bool