C# Class ManicDigger.ManicDiggerGameWindow

Afficher le fichier Open project: GlennMR/800Craft-Client Class Usage Examples

Méthodes publiques

Свойство 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

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AddChatline ( string s ) : void
s string
Résultat void

ClientCommand() public méthode

public ClientCommand ( string s ) : void
s string
Résultat void

CraftingMouse() public méthode

public CraftingMouse ( ) : void
Résultat void

DeleteUnusedCachedTextures() public méthode

public DeleteUnusedCachedTextures ( ) : void
Résultat void

Draw2dBitmapFile() public méthode

public Draw2dBitmapFile ( string filename, float x1, float y1, float width, float height ) : void
filename string
x1 float
y1 float
width float
height float
Résultat void

Draw2dText() public méthode

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
Résultat void

Draw2dTexture() public méthode

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
Résultat void

Draw2dTexture() public méthode

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
Résultat void

Draw2dTextures() public méthode

public Draw2dTextures ( List todraw, int textureid ) : void
todraw List
textureid int
Résultat void

DrawCharacters() public méthode

public DrawCharacters ( float dt ) : void
dt float
Résultat void

DrawChatLines() public méthode

public DrawChatLines ( bool all ) : void
all bool
Résultat void

DrawDisconnected() public méthode

public DrawDisconnected ( string Message ) : void
Message string
Résultat void

DrawEscapeMenu() public méthode

public DrawEscapeMenu ( ) : void
Résultat void

DrawInventory() public méthode

public DrawInventory ( ) : void
Résultat void

DrawLineLoop() public méthode

public DrawLineLoop ( Vector3 points ) : void
points Vector3
Résultat void

DrawMainMenu() public méthode

public DrawMainMenu ( ) : void
Résultat void

DrawMap() public méthode

public DrawMap ( ) : void
Résultat void

EscapeMenuAction() public méthode

public EscapeMenuAction ( ) : void
Résultat void

FrameTick() public méthode

public FrameTick ( FrameEventArgs e ) : void
e FrameEventArgs
Résultat void

GrabScreenshot() public méthode

public GrabScreenshot ( ) : Bitmap
Résultat Bitmap

GuiStateCraft() public méthode

public GuiStateCraft ( List recipes, List blocks, Action craftingRecipeSelected ) : void
recipes List
blocks List
craftingRecipeSelected Action
Résultat void

InventoryMouse() public méthode

public InventoryMouse ( ) : void
Résultat void

InventorySelectionMove() public méthode

public InventorySelectionMove ( Direction4 dir ) : void
dir Direction4
Résultat void

Keyboard_KeyDown() public méthode

public Keyboard_KeyDown ( object sender, OpenTK e ) : void
sender object
e OpenTK
Résultat void

Keyboard_KeyUp() public méthode

public Keyboard_KeyUp ( object sender, OpenTK e ) : void
sender object
e OpenTK
Résultat void

LoadPassword() public méthode

public LoadPassword ( ) : void
Résultat void

LoadTexture() public méthode

public LoadTexture ( Bitmap bmp ) : int
bmp Bitmap
Résultat int

LoadTexture() public méthode

public LoadTexture ( string filename ) : int
filename string
Résultat int

Log() public méthode

public Log ( string p ) : void
p string
Résultat void

MainMenuAction() public méthode

public MainMenuAction ( ) : void
Résultat void

ManicDiggerGameWindow() public méthode

public ManicDiggerGameWindow ( ) : System
Résultat System

ManicDiggerGameWindow_KeyPress() public méthode

public ManicDiggerGameWindow_KeyPress ( object sender, OpenTK e ) : void
sender object
e OpenTK
Résultat void

Mouse_Move() public méthode

public Mouse_Move ( object sender, OpenTK e ) : void
sender object
e OpenTK
Résultat void

Mouse_WheelChanged() public méthode

public Mouse_WheelChanged ( object sender, OpenTK e ) : void
sender object
e OpenTK
Résultat void

OnClosed() protected méthode

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnFocusedChanged() protected méthode

protected OnFocusedChanged ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnLoad() protected méthode

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnRenderFrame() protected méthode

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnUpdateFrame() protected méthode

protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Résultat void

OrthoMode() public méthode

public OrthoMode ( ) : void
Résultat void

PerspectiveMode() public méthode

public PerspectiveMode ( ) : void
Résultat void

SetTileAndUpdate() public méthode

public SetTileAndUpdate ( Vector3 pos, int type ) : void
pos Vector3
type int
Résultat void

StripColors() public static méthode

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

TextSize() public static méthode

public static TextSize ( string text, float fontsize ) : SizeF
text string
fontsize float
Résultat SizeF

UpdateAllTiles() public méthode

public UpdateAllTiles ( ) : void
Résultat void

UpdateMousePosition() public méthode

public UpdateMousePosition ( ) : void
Résultat void

UpdateWalkSound() public méthode

public UpdateWalkSound ( double dt ) : void
dt double
Résultat void

maploaded() public méthode

public maploaded ( ) : void
Résultat void

network_MapLoaded() public méthode

public network_MapLoaded ( object sender, MapLoadedEventArgs e ) : void
sender object
e MapLoadedEventArgs
Résultat void

newnetwork_MapLoadingProgress() public méthode

public newnetwork_MapLoadingProgress ( object sender, MapLoadingProgressEventArgs e ) : void
sender object
e MapLoadingProgressEventArgs
Résultat void

Property Details

ChatFontSize public_oe static_oe property

public static int ChatFontSize
Résultat int

ChatLinesMaxToDraw public_oe property

public int ChatLinesMaxToDraw
Résultat int

ChatScreenExpireTimeSeconds public_oe property

public int ChatScreenExpireTimeSeconds
Résultat int

DisconnectMessage public_oe static_oe property

public static string DisconnectMessage
Résultat string

Disconnected public_oe static_oe property

public static bool Disconnected
Résultat bool

ENABLE_DRAW_TEST_CHARACTER public_oe property

public bool ENABLE_DRAW_TEST_CHARACTER
Résultat bool

ENABLE_MAINMENU public_oe property

public bool ENABLE_MAINMENU
Résultat bool

ENABLE_TPP_VIEW public_oe property

public bool ENABLE_TPP_VIEW
Résultat bool

GameUrl public_oe property

public string GameUrl
Résultat string

clearcolor public_oe property

public Color clearcolor
Résultat Color

enable_finiteinventory public_oe property

public bool enable_finiteinventory
Résultat bool

ff public_oe static_oe property

public static FontFamily ff
Résultat FontFamily

fn public_oe static_oe property

public static Font fn
Résultat Font

fov public_oe property

public float fov
Résultat float

mppassword public_oe property

public string mppassword
Résultat string

particleEffectBlockBreak public_oe property

public ParticleEffectBlockBreak particleEffectBlockBreak
Résultat ParticleEffectBlockBreak

pfc public_oe static_oe property

public static System.Drawing.Text.PrivateFontCollection pfc
Résultat System.Drawing.Text.PrivateFontCollection

pickcubepos public_oe property

public Vector3 pickcubepos
Résultat Vector3

playertexturedefaultfilename public_oe property

public string playertexturedefaultfilename
Résultat string

username public_oe property

public string username
Résultat string