C# Class ManicDigger.ManicDiggerGameWindow

显示文件 Open project: GlennMR/800Craft-Client Class Usage Examples

Public Properties

Property Type Description
ChatFontSize int
ChatLinesMaxToDraw int
ChatScreenExpireTimeSeconds int
DisconnectMessage string
Disconnected bool
ENABLE_DRAW_TEST_CHARACTER bool
ENABLE_MAINMENU bool
ENABLE_TPP_VIEW bool
GameUrl string
clearcolor Color
enable_finiteinventory bool
ff FontFamily
fn Font
fov float
mppassword string
particleEffectBlockBreak ParticleEffectBlockBreak
pfc System.Drawing.Text.PrivateFontCollection
pickcubepos Vector3
playertexturedefaultfilename string
username string

Private Properties

Property Type Description
BlockPlayerLegs int?
BlockUnderPlayer int?
BoolCommandArgument bool
CheckClippingQE bool
ConnectToInternetGame void
Draw2d void
DrawAim void
DrawBlockInfo void
DrawCharacter void
DrawConnectedPlayersList void
DrawCraftingRecipes void
DrawFpsHistoryGraph void
DrawLinesAroundSelectedCube void
DrawMapLoading void
DrawMaterialSelector void
DrawMouseCursor void
DrawPlayerNames void
DrawPlayers void
DrawScreenshotFlash void
DrawSkySphere void
DrawTypingBuffer void
EscapeMenuActionMain void
EscapeMenuActionOptions void
EscapeMenuMouse void
FppCamera Matrix4
GetMinecraftPasswordFilePath string
GetPlayerTexture int
GuiActionGenerateNewMap void
GuiActionLoadGame void
GuiActionSaveGame void
GuiStateBackToGame void
GuiStateEscapeMenu void
GuiStateSetMapLoading void
HandleMaterialKeys void
InterpolateColor System.Color
InventoryGetSelected int?
IsInLeft bool
IsPowerOfTwo bool
IsTileEmptyForPhysics bool
IsTileEmptyForPhysicsClose bool
MakeTextTexture CachedTexture
MoveSpeedNow float
NextPowerOfTwo uint
OnPick void
OverheadCamera Matrix4
SaveGameExists bool
Set3dProjection void
Set3dProjection void
SetAmbientLight void
SetFog void
ToMapPos Vector3
UpdateMouseViewportControl void
UpdatePicking void
UpdateTitleFps void
VectorAngleGet float
WhiteTexture int
getblockheight float
soundwalkcurrent string[]
xcenter int
ycenter int

Public Methods

Method Description
AddChatline ( string s ) : void
ClientCommand ( string s ) : void
CraftingMouse ( ) : void
DeleteUnusedCachedTextures ( ) : void
Draw2dBitmapFile ( string filename, float x1, float y1, float width, float height ) : void
Draw2dText ( string text, float x, float y, float fontsize, System.Color color ) : void
Draw2dTexture ( int textureid, float x1, float y1, float width, float height, int inAtlasId ) : void
Draw2dTexture ( int textureid, float x1, float y1, float width, float height, int inAtlasId, System.Color color ) : void
Draw2dTextures ( List todraw, int textureid ) : void
DrawCharacters ( float dt ) : void
DrawChatLines ( bool all ) : void
DrawDisconnected ( string Message ) : void
DrawEscapeMenu ( ) : void
DrawInventory ( ) : void
DrawLineLoop ( Vector3 points ) : void
DrawMainMenu ( ) : void
DrawMap ( ) : void
EscapeMenuAction ( ) : void
FrameTick ( FrameEventArgs e ) : void
GrabScreenshot ( ) : Bitmap
GuiStateCraft ( List recipes, List blocks, Action craftingRecipeSelected ) : void
InventoryMouse ( ) : void
InventorySelectionMove ( Direction4 dir ) : void
Keyboard_KeyDown ( object sender, OpenTK e ) : void
Keyboard_KeyUp ( object sender, OpenTK e ) : void
LoadPassword ( ) : void
LoadTexture ( Bitmap bmp ) : int
LoadTexture ( string filename ) : int
Log ( string p ) : void
MainMenuAction ( ) : void
ManicDiggerGameWindow ( ) : System
ManicDiggerGameWindow_KeyPress ( object sender, OpenTK e ) : void
Mouse_Move ( object sender, OpenTK e ) : void
Mouse_WheelChanged ( object sender, OpenTK e ) : void
OrthoMode ( ) : void
PerspectiveMode ( ) : void
SetTileAndUpdate ( Vector3 pos, int type ) : void
StripColors ( string input ) : string

Strips all ampersand color codes and doubled-up ampersands.

TextSize ( string text, float fontsize ) : SizeF
UpdateAllTiles ( ) : void
UpdateMousePosition ( ) : void
UpdateWalkSound ( double dt ) : void
maploaded ( ) : void
network_MapLoaded ( object sender, MapLoadedEventArgs e ) : void
newnetwork_MapLoadingProgress ( object sender, MapLoadingProgressEventArgs e ) : void

Protected Methods

Method Description
OnClosed ( EventArgs e ) : void
OnFocusedChanged ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnUpdateFrame ( FrameEventArgs e ) : void

Private Methods

Method Description
BlockPlayerLegs ( ) : int?
BlockUnderPlayer ( ) : int?
BoolCommandArgument ( string arguments ) : bool
CheckClippingQE ( Vector3 NewPosition ) : bool
ConnectToInternetGame ( string qusername, string qpass, string qgameurl ) : void
Draw2d ( ) : void
DrawAim ( ) : void
DrawBlockInfo ( ) : void
DrawCharacter ( AnimationState animstate, Vector3 pos, byte heading, byte pitch, bool moves, float dt, int playertexture, AnimationHint animationhint ) : void
DrawConnectedPlayersList ( ) : void
DrawCraftingRecipes ( ) : void
DrawFpsHistoryGraph ( ) : void
DrawLinesAroundSelectedCube ( Vector3 posx ) : void
DrawMapLoading ( ) : void
DrawMaterialSelector ( ) : void
DrawMouseCursor ( ) : void
DrawPlayerNames ( ) : void
DrawPlayers ( float dt ) : void
DrawScreenshotFlash ( ) : void
DrawSkySphere ( ) : void
DrawTypingBuffer ( ) : void
EscapeMenuActionMain ( ) : void
EscapeMenuActionOptions ( ) : void
EscapeMenuMouse ( ) : void
FppCamera ( ) : Matrix4
GetMinecraftPasswordFilePath ( ) : string
GetPlayerTexture ( int playerid ) : int
GuiActionGenerateNewMap ( ) : void
GuiActionLoadGame ( ) : void
GuiActionSaveGame ( ) : void
GuiStateBackToGame ( ) : void
GuiStateEscapeMenu ( ) : void
GuiStateSetMapLoading ( ) : void
HandleMaterialKeys ( OpenTK e ) : void
InterpolateColor ( float progress ) : System.Color
InventoryGetSelected ( ) : int?
IsInLeft ( Vector3 player_yy, Vector3 tile_yy ) : bool
IsPowerOfTwo ( uint x ) : bool
IsTileEmptyForPhysics ( int x, int y, int z ) : bool
IsTileEmptyForPhysicsClose ( int x, int y, int z ) : bool
MakeTextTexture ( Text t ) : CachedTexture
MoveSpeedNow ( ) : float
NextPowerOfTwo ( uint x ) : uint
OnPick ( BlockPosSide pick0 ) : void
OverheadCamera ( ) : Matrix4
SaveGameExists ( ) : bool
Set3dProjection ( ) : void
Set3dProjection ( float zfar ) : void
SetAmbientLight ( Color c ) : void
SetFog ( ) : void
ToMapPos ( Vector3 a ) : Vector3
UpdateMouseViewportControl ( FrameEventArgs e ) : void
UpdatePicking ( ) : void
UpdateTitleFps ( FrameEventArgs e ) : void
VectorAngleGet ( Vector3 q ) : float
WhiteTexture ( ) : int
getblockheight ( int x, int y, int z ) : float
soundwalkcurrent ( ) : string[]
xcenter ( float width ) : int
ycenter ( float height ) : int

Method Details

AddChatline() public method

public AddChatline ( string s ) : void
s string
return void

ClientCommand() public method

public ClientCommand ( string s ) : void
s string
return void

CraftingMouse() public method

public CraftingMouse ( ) : void
return void

DeleteUnusedCachedTextures() public method

public DeleteUnusedCachedTextures ( ) : void
return void

Draw2dBitmapFile() public method

public Draw2dBitmapFile ( string filename, float x1, float y1, float width, float height ) : void
filename string
x1 float
y1 float
width float
height float
return void

Draw2dText() public method

public Draw2dText ( string text, float x, float y, float fontsize, System.Color color ) : void
text string
x float
y float
fontsize float
color System.Color
return void

Draw2dTexture() public method

public Draw2dTexture ( int textureid, float x1, float y1, float width, float height, int inAtlasId ) : void
textureid int
x1 float
y1 float
width float
height float
inAtlasId int
return void

Draw2dTexture() public method

public Draw2dTexture ( int textureid, float x1, float y1, float width, float height, int inAtlasId, System.Color color ) : void
textureid int
x1 float
y1 float
width float
height float
inAtlasId int
color System.Color
return void

Draw2dTextures() public method

public Draw2dTextures ( List todraw, int textureid ) : void
todraw List
textureid int
return void

DrawCharacters() public method

public DrawCharacters ( float dt ) : void
dt float
return void

DrawChatLines() public method

public DrawChatLines ( bool all ) : void
all bool
return void

DrawDisconnected() public method

public DrawDisconnected ( string Message ) : void
Message string
return void

DrawEscapeMenu() public method

public DrawEscapeMenu ( ) : void
return void

DrawInventory() public method

public DrawInventory ( ) : void
return void

DrawLineLoop() public method

public DrawLineLoop ( Vector3 points ) : void
points Vector3
return void

DrawMainMenu() public method

public DrawMainMenu ( ) : void
return void

DrawMap() public method

public DrawMap ( ) : void
return void

EscapeMenuAction() public method

public EscapeMenuAction ( ) : void
return void

FrameTick() public method

public FrameTick ( FrameEventArgs e ) : void
e FrameEventArgs
return void

GrabScreenshot() public method

public GrabScreenshot ( ) : Bitmap
return Bitmap

GuiStateCraft() public method

public GuiStateCraft ( List recipes, List blocks, Action craftingRecipeSelected ) : void
recipes List
blocks List
craftingRecipeSelected Action
return void

InventoryMouse() public method

public InventoryMouse ( ) : void
return void

InventorySelectionMove() public method

public InventorySelectionMove ( Direction4 dir ) : void
dir Direction4
return void

Keyboard_KeyDown() public method

public Keyboard_KeyDown ( object sender, OpenTK e ) : void
sender object
e OpenTK
return void

Keyboard_KeyUp() public method

public Keyboard_KeyUp ( object sender, OpenTK e ) : void
sender object
e OpenTK
return void

LoadPassword() public method

public LoadPassword ( ) : void
return void

LoadTexture() public method

public LoadTexture ( Bitmap bmp ) : int
bmp Bitmap
return int

LoadTexture() public method

public LoadTexture ( string filename ) : int
filename string
return int

Log() public method

public Log ( string p ) : void
p string
return void

MainMenuAction() public method

public MainMenuAction ( ) : void
return void

ManicDiggerGameWindow() public method

public ManicDiggerGameWindow ( ) : System
return System

ManicDiggerGameWindow_KeyPress() public method

public ManicDiggerGameWindow_KeyPress ( object sender, OpenTK e ) : void
sender object
e OpenTK
return void

Mouse_Move() public method

public Mouse_Move ( object sender, OpenTK e ) : void
sender object
e OpenTK
return void

Mouse_WheelChanged() public method

public Mouse_WheelChanged ( object sender, OpenTK e ) : void
sender object
e OpenTK
return void

OnClosed() protected method

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
return void

OnFocusedChanged() protected method

protected OnFocusedChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnLoad() protected method

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

OnRenderFrame() protected method

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnUpdateFrame() protected method

protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

OrthoMode() public method

public OrthoMode ( ) : void
return void

PerspectiveMode() public method

public PerspectiveMode ( ) : void
return void

SetTileAndUpdate() public method

public SetTileAndUpdate ( Vector3 pos, int type ) : void
pos Vector3
type int
return void

StripColors() public static method

Strips all ampersand color codes and doubled-up ampersands.
public static StripColors ( string input ) : string
input string
return string

TextSize() public static method

public static TextSize ( string text, float fontsize ) : SizeF
text string
fontsize float
return SizeF

UpdateAllTiles() public method

public UpdateAllTiles ( ) : void
return void

UpdateMousePosition() public method

public UpdateMousePosition ( ) : void
return void

UpdateWalkSound() public method

public UpdateWalkSound ( double dt ) : void
dt double
return void

maploaded() public method

public maploaded ( ) : void
return void

network_MapLoaded() public method

public network_MapLoaded ( object sender, MapLoadedEventArgs e ) : void
sender object
e MapLoadedEventArgs
return void

newnetwork_MapLoadingProgress() public method

public newnetwork_MapLoadingProgress ( object sender, MapLoadingProgressEventArgs e ) : void
sender object
e MapLoadingProgressEventArgs
return void

Property Details

ChatFontSize public_oe static_oe property

public static int ChatFontSize
return int

ChatLinesMaxToDraw public_oe property

public int ChatLinesMaxToDraw
return int

ChatScreenExpireTimeSeconds public_oe property

public int ChatScreenExpireTimeSeconds
return int

DisconnectMessage public_oe static_oe property

public static string DisconnectMessage
return string

Disconnected public_oe static_oe property

public static bool Disconnected
return bool

ENABLE_DRAW_TEST_CHARACTER public_oe property

public bool ENABLE_DRAW_TEST_CHARACTER
return bool

ENABLE_MAINMENU public_oe property

public bool ENABLE_MAINMENU
return bool

ENABLE_TPP_VIEW public_oe property

public bool ENABLE_TPP_VIEW
return bool

GameUrl public_oe property

public string GameUrl
return string

clearcolor public_oe property

public Color clearcolor
return Color

enable_finiteinventory public_oe property

public bool enable_finiteinventory
return bool

ff public_oe static_oe property

public static FontFamily ff
return FontFamily

fn public_oe static_oe property

public static Font fn
return Font

fov public_oe property

public float fov
return float

mppassword public_oe property

public string mppassword
return string

particleEffectBlockBreak public_oe property

public ParticleEffectBlockBreak particleEffectBlockBreak
return ParticleEffectBlockBreak

pfc public_oe static_oe property

public static System.Drawing.Text.PrivateFontCollection pfc
return System.Drawing.Text.PrivateFontCollection

pickcubepos public_oe property

public Vector3 pickcubepos
return Vector3

playertexturedefaultfilename public_oe property

public string playertexturedefaultfilename
return string

username public_oe property

public string username
return string