C# 클래스 Swordening.LiveGrid

상속: Microsoft.Xna.Framework.DrawableGameComponent
파일 보기 프로젝트 열기: ArghyV/Peliohjelmointi-s2011 1 사용 예제들

공개 메소드들

메소드 설명
CurrentTile ( ) : MapTile
Draw ( GameTime gameTime ) : void

Draws the contents on screen

Initialize ( ) : void
LiveGrid ( SwordeningGame game, MapGrid &mapGrid ) : System

Creates a new live grid.

MoveTo ( Direction dir ) : void

Moves to the given direction.

SetNewCenter ( int x, int z ) : void

Sets new MapTile as the center of the LiveGrid.

UpdateToTile ( int x, int z ) : void

Sets a new center for the grid if the given tile isn't current.

비공개 메소드들

메소드 설명
UpdateGrid ( ) : void

Updates the 9 tiles of the LiveGrid.

메소드 상세

CurrentTile() 공개 메소드

public CurrentTile ( ) : MapTile
리턴 MapTile

Draw() 공개 메소드

Draws the contents on screen
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

Initialize() 공개 메소드

public Initialize ( ) : void
리턴 void

LiveGrid() 공개 메소드

Creates a new live grid.
public LiveGrid ( SwordeningGame game, MapGrid &mapGrid ) : System
game SwordeningGame
mapGrid MapGrid
리턴 System

MoveTo() 공개 메소드

Moves to the given direction.
public MoveTo ( Direction dir ) : void
dir Direction A compass point
리턴 void

SetNewCenter() 공개 메소드

Sets new MapTile as the center of the LiveGrid.
public SetNewCenter ( int x, int z ) : void
x int The centertile's x position in the MapGrid.
z int The centertile's z position in the MapGrid.
리턴 void

UpdateToTile() 공개 메소드

Sets a new center for the grid if the given tile isn't current.
public UpdateToTile ( int x, int z ) : void
x int
z int
리턴 void