Свойство | Тип | Описание | |
---|---|---|---|
_graphics | GraphicsDeviceManager |
Метод | Описание | |
---|---|---|
GameWin ( ) : System |
Constructor
|
|
HandleEvent ( bool DownStream, Backend eventID ) : void |
Handle events from UIElements and/or backend objects
|
|
OnKeyDown ( Keys k ) : bool | ||
OnKeyHeld ( Keys k ) : bool | ||
OnKeyUp ( Keys k ) : bool | ||
OnMouseDown ( int button ) : bool | ||
OnMouseHeld ( int button ) : bool | ||
OnMouseUp ( int button ) : bool | ||
center ( |
||
inner ( |
||
wc_DownloadFileCompleted ( object sender, System e ) : void |
Fired when a download is complete
|
|
wc_DownloadProgressChanged ( object sender, |
Display download progress in the UI
|
Метод | Описание | |
---|---|---|
Draw ( |
This is called when the game should draw itself.
|
|
Initialize ( ) : void |
Set up the (non visible) objects of the game
|
|
LoadContent ( ) : void |
Cache Content
|
|
UnloadContent ( ) : void |
Unload all managed content which has not been disposed of elsewhere
|
|
Update ( |
Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.
|
Метод | Описание | |
---|---|---|
MediaPlayer_MediaStateChanged ( object sender, |
||
SetupGame ( ) : void |
Setup user interface
|
|
_AddHealth ( ) : void |
Indicate health regained by potions
|
|
_AddMessage ( string s, object color = null ) : void |
Add text to status box
|
|
_LoadFile ( string _filename, DownloadProgressChangedEventHandler progress, AsyncCompletedEventHandler finished ) : System.Threading.Tasks.Task |
Download a file from the internet and place it in the local documents directory
|
|
_PlayMusic ( ) : void |
Restart background music
|
|
_PlaySoundEffect ( Backend index ) : void |
Play a sound effect
|
|
_RemoveHealth ( ) : void |
Indicate damage done to player
|
|
_ShowAbout ( ) : void |
Setup and display a window containing credits
|
|
_ShowCharacterWindow ( Backend actor, uint page ) : void | ||
_ShowEndGame ( string message = "You have failed in your mission. Better luck next time.", string title = "Game over!" ) : void |
A text displayed if the player died
|
|
_ShowFileDialog ( bool save ) : void |
Setup and display a window used for saving / loading files
|
|
_ShowLANWindow ( |
||
_ShowMenu ( ) : void |
Display Main Menu
|
|
_ShowShopWindow ( Backend actor1, Backend actor2 ) : void | ||
_ShowTextBox ( string message ) : void |
Display a dialog with Ok button
|
|
_screenshot ( ) : void |
protected Draw ( |
||
gameTime | Provides a snapshot of timing values. | |
Результат | void |
public HandleEvent ( bool DownStream, Backend eventID ) : void | ||
DownStream | bool | |
eventID | Backend | |
Результат | void |
protected Update ( |
||
gameTime | Provides a snapshot of timing values. | |
Результат | void |
public static center ( |
||
ViewPort | ||
width | int | |
height | int | |
top | int | |
Результат |
public static inner ( |
||
outer | ||
padding | int | |
Результат |
public wc_DownloadFileCompleted ( object sender, System e ) : void | ||
sender | object | The source of the event |
e | System | Event data |
Результат | void |
public wc_DownloadProgressChanged ( object sender, |
||
sender | object | The source of the event |
e | Event data | |
Результат | void |