C# 클래스 Platformer.Levels.DynamicMap

A Map which holds a number of levels and can switch between them. It also holds the player instance.
상속: IDisposable
파일 보기 프로젝트 열기: zmthy/play-dead 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

Will unload all of the loaded content.

Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void

Draws the player and the currently active level to the screen.

DynamicMap ( IServiceProvider serviceProvider, Camera2D camera, GraphicsDevice gd ) : System
GotoLevel ( int levelIndex ) : void
LoadStory ( string storyPath ) : void

Load a story and create all of the levels listed in the file by using the LevelFactory.

NextLevel ( String levelName ) : void
Update ( GameTime gameTime, KeyboardState keyboardState, GamePadState gamePadState, TouchCollection touchState, Microsoft.Xna.Framework.Input.AccelerometerState accelState, DisplayOrientation orientation, InputManager inputManager ) : void

Update the Player state, the tracking camera, and the currently active level.

메소드 상세

Dispose() 공개 메소드

Will unload all of the loaded content.
public Dispose ( ) : void
리턴 void

Draw() 공개 메소드

Draws the player and the currently active level to the screen.
public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 void

DynamicMap() 공개 메소드

public DynamicMap ( IServiceProvider serviceProvider, Camera2D camera, GraphicsDevice gd ) : System
serviceProvider IServiceProvider
camera Platformer.Camera.Camera2D
gd GraphicsDevice
리턴 System

GotoLevel() 공개 메소드

public GotoLevel ( int levelIndex ) : void
levelIndex int
리턴 void

LoadStory() 공개 메소드

Load a story and create all of the levels listed in the file by using the LevelFactory.
public LoadStory ( string storyPath ) : void
storyPath string The filepath of the story file.
리턴 void

NextLevel() 공개 메소드

public NextLevel ( String levelName ) : void
levelName String
리턴 void

Update() 공개 메소드

Update the Player state, the tracking camera, and the currently active level.
public Update ( GameTime gameTime, KeyboardState keyboardState, GamePadState gamePadState, TouchCollection touchState, Microsoft.Xna.Framework.Input.AccelerometerState accelState, DisplayOrientation orientation, InputManager inputManager ) : void
gameTime Microsoft.Xna.Framework.GameTime The current time step of the game.
keyboardState Microsoft.Xna.Framework.Input.KeyboardState The current state of the PC keyboard.
gamePadState Microsoft.Xna.Framework.Input.GamePadState
touchState TouchCollection
accelState Microsoft.Xna.Framework.Input.AccelerometerState
orientation DisplayOrientation
inputManager InputManager
리턴 void