C# 클래스 Bricklayer.Client.Game

The main game code
상속: TomShane.Neoforce.Controls.Application
파일 보기 프로젝트 열기: Cyral/Bricklayer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ContentPackData Bricklayer.Client.ContentPack
ContentPackIndex int
ContentPackName string
CurrentGameState GameState
DefaultFont Microsoft.Xna.Framework.Graphics.SpriteFont
Host string
Input InputHandler
IsMouseOnControl bool
MainWindow Bricklayer.Client.Interface.MainWindow
Map Bricklayer.Client.World.Map
MsgHandler Bricklayer.Client.Networking.MessageHandler
MyColor Color
MyHue int
MyID byte
MyIndex byte
NetManager Bricklayer.Client.Networking.NetworkManager
Port int
Random System.Random
Resolution Microsoft.Xna.Framework.Rectangle
TextureLoader Bricklayer.Client.TextureLoader
Username string

공개 메소드들

메소드 설명
CheckControlPos ( Control c, Point pos ) : bool
CheckPosition ( Point pos ) : bool

Checks to see if the mouse is over a control (Mostly used for seeing if you can place a block there)

Exit ( ) : void
Game ( ) : System

보호된 메소드들

메소드 설명
CreateMainWindow ( ) : TomShane.Neoforce.Controls.Window

Creates a new instance of the main UI window

Draw ( GameTime gameTime ) : void

This is called when the game should draw itself.

DrawScene ( GameTime gameTime ) : void

Draws content behind the UI interface

Initialize ( ) : void

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.

LoadContent ( ) : void

LoadContent will be called once per game and is the place to load all of your content.

Update ( GameTime gameTime ) : void

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

비공개 메소드들

메소드 설명
MainWindow_FocusGained ( object sender, TomShane e ) : void

Called when the MainWindow gains focus

메소드 상세

CheckControlPos() 공개 메소드

public CheckControlPos ( Control c, Point pos ) : bool
c Control
pos Point
리턴 bool

CheckPosition() 공개 메소드

Checks to see if the mouse is over a control (Mostly used for seeing if you can place a block there)
public CheckPosition ( Point pos ) : bool
pos Point
리턴 bool

CreateMainWindow() 보호된 메소드

Creates a new instance of the main UI window
protected CreateMainWindow ( ) : TomShane.Neoforce.Controls.Window
리턴 TomShane.Neoforce.Controls.Window

Draw() 보호된 메소드

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void

DrawScene() 보호된 메소드

Draws content behind the UI interface
protected DrawScene ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void

Exit() 공개 메소드

public Exit ( ) : void
리턴 void

Game() 공개 메소드

public Game ( ) : System
리턴 System

Initialize() 보호된 메소드

Allows the game to perform any initialization it needs to before starting to run. This is where it can query for any required services and load any non-graphic related content. Calling base.Initialize will enumerate through any components and initialize them as well.
protected Initialize ( ) : void
리턴 void

LoadContent() 보호된 메소드

LoadContent will be called once per game and is the place to load all of your content.
protected LoadContent ( ) : void
리턴 void

Update() 보호된 메소드

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void

프로퍼티 상세

ContentPackData 공개적으로 정적으로 프로퍼티

public static ContentPack,Bricklayer.Client ContentPackData
리턴 Bricklayer.Client.ContentPack

ContentPackIndex 공개적으로 정적으로 프로퍼티

public static int ContentPackIndex
리턴 int

ContentPackName 공개적으로 정적으로 프로퍼티

public static string ContentPackName
리턴 string

CurrentGameState 공개적으로 정적으로 프로퍼티

public static GameState CurrentGameState
리턴 GameState

DefaultFont 공개적으로 정적으로 프로퍼티

public static SpriteFont,Microsoft.Xna.Framework.Graphics DefaultFont
리턴 Microsoft.Xna.Framework.Graphics.SpriteFont

Host 공개적으로 정적으로 프로퍼티

public static string Host
리턴 string

Input 공개적으로 정적으로 프로퍼티

public static InputHandler,Bricklayer.Client Input
리턴 InputHandler

IsMouseOnControl 공개적으로 정적으로 프로퍼티

public static bool IsMouseOnControl
리턴 bool

MainWindow 공개적으로 정적으로 프로퍼티

public static MainWindow,Bricklayer.Client.Interface MainWindow
리턴 Bricklayer.Client.Interface.MainWindow

Map 공개적으로 정적으로 프로퍼티

public static Map,Bricklayer.Client.World Map
리턴 Bricklayer.Client.World.Map

MsgHandler 공개적으로 정적으로 프로퍼티

public static MessageHandler,Bricklayer.Client.Networking MsgHandler
리턴 Bricklayer.Client.Networking.MessageHandler

MyColor 공개적으로 정적으로 프로퍼티

public static Color MyColor
리턴 Color

MyHue 공개적으로 정적으로 프로퍼티

public static int MyHue
리턴 int

MyID 공개적으로 정적으로 프로퍼티

public static byte MyID
리턴 byte

MyIndex 공개적으로 정적으로 프로퍼티

public static byte MyIndex
리턴 byte

NetManager 공개적으로 정적으로 프로퍼티

public static NetworkManager,Bricklayer.Client.Networking NetManager
리턴 Bricklayer.Client.Networking.NetworkManager

Port 공개적으로 정적으로 프로퍼티

public static int Port
리턴 int

Random 공개적으로 정적으로 프로퍼티

public static Random,System Random
리턴 System.Random

Resolution 공개적으로 정적으로 프로퍼티

public static Rectangle,Microsoft.Xna.Framework Resolution
리턴 Microsoft.Xna.Framework.Rectangle

TextureLoader 공개적으로 정적으로 프로퍼티

public static TextureLoader,Bricklayer.Client TextureLoader
리턴 Bricklayer.Client.TextureLoader

Username 공개적으로 정적으로 프로퍼티

public static string Username
리턴 string