C# 클래스 MrGravity.Import_Code.Importer

Imports an XML file into the game
파일 보기 프로젝트 열기: DizWARE/Mr-Gravity 1 사용 예제들

공개 메소드들

메소드 설명
GetObjects ( PhysicsEnvironment &environment ) : List

Goes through all the entities and finds all of the ones that are Static, or physics(Dynamic maybe in the future) Creates and returns them using the data found in the xml file

GetPlayerEnd ( ) : PlayerEnd

Creates and returns a PlayerEnd using the info that is in the xml file

GetPlayerStart ( Level level ) : void

Gets the players start position

GetRails ( ) : List
GetTriggers ( ) : List

Gets all the triggers in the level

GetWalls ( Level level ) : List

UNUSED FOR NOW. MAY IN THE FUTURE, GATHER ALL THE INFO UP AND MAKE BIGGER BOUNDING BOXES FOR ENTIRE WALLS

ImportLevel ( Level level ) : Level

Goes through the xml file and translates the information

Importer ( Microsoft.Xna.Framework.Content.ContentManager content ) : System

Constructor for an importer object

비공개 메소드들

메소드 설명
CreateSortedIndicies ( List walls, List indicies, bool cols ) : void

Creates the sorted indicies.

메소드 상세

GetObjects() 공개 메소드

Goes through all the entities and finds all of the ones that are Static, or physics(Dynamic maybe in the future) Creates and returns them using the data found in the xml file
public GetObjects ( PhysicsEnvironment &environment ) : List
environment PhysicsEnvironment Environment that these items exist in
리턴 List

GetPlayerEnd() 공개 메소드

Creates and returns a PlayerEnd using the info that is in the xml file
public GetPlayerEnd ( ) : PlayerEnd
리턴 MrGravity.Game_Objects.Static_Objects.PlayerEnd

GetPlayerStart() 공개 메소드

Gets the players start position
public GetPlayerStart ( Level level ) : void
level Level
리턴 void

GetRails() 공개 메소드

public GetRails ( ) : List
리턴 List

GetTriggers() 공개 메소드

Gets all the triggers in the level
public GetTriggers ( ) : List
리턴 List

GetWalls() 공개 메소드

UNUSED FOR NOW. MAY IN THE FUTURE, GATHER ALL THE INFO UP AND MAKE BIGGER BOUNDING BOXES FOR ENTIRE WALLS
public GetWalls ( Level level ) : List
level Level
리턴 List

ImportLevel() 공개 메소드

Goes through the xml file and translates the information
public ImportLevel ( Level level ) : Level
level Level
리턴 Level

Importer() 공개 메소드

Constructor for an importer object
public Importer ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager Content Manager
리턴 System