Pathfinder  v3.0
The definitive Hacknet programmable modding system
Hacknet.GameScreen Class Reference
+ Inheritance diagram for Hacknet.GameScreen:

Public Member Functions

virtual void Draw (GameTime gameTime)
 Draws the screen given the delta of gameTime. More...
 
void ExitScreen ()
 Exits the screen. More...
 
virtual void HandleInput (InputState input)
 Handles general input. More...
 
virtual void inputMethodChanged (bool usingGamePad)
 Marks input method to change. More...
 
virtual void UnloadContent ()
 Unloads content if need be. More...
 
virtual void LoadContent ()
 Loads content. More...
 
virtual void Update (GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
 Updates the screen given the delta of gameTime gameTime. More...
 

Properties

PlayerIndex ControllingPlayer [get, set]
 Retrieves the screen's controlling player's index, or null if it does not exist More...
 
bool IsActive [get]
 Retrieves true if the screen is active, false otherwise. More...
 
bool IsExiting [get, protected set]
 Retrieves true if the screen is exiting, false otherwise. More...
 
bool IsPopup [get, protected set]
 Retrieves true if the screen is a popup, false otherwise. More...
 
ScreenManager ScreenManager [get, set]
 
ScreenState ScreenState [get, protected set]
 
byte TransitionAlpha [get]
 
TimeSpan TransitionOffTime [get, protected set]
 
TimeSpan TransitionOnTime [get, protected set]
 
float TransitionPosition [get, protected set]
 

Member Function Documentation

◆ Draw()

virtual void Hacknet.GameScreen.Draw ( GameTime  gameTime)
virtual
Parameters
gameTimeThe delta of last draw

Reimplemented in Hacknet.OS.

◆ ExitScreen()

void Hacknet.GameScreen.ExitScreen ( )

◆ HandleInput()

virtual void Hacknet.GameScreen.HandleInput ( InputState  input)
virtual

Reimplemented in Hacknet.OS.

◆ inputMethodChanged()

virtual void Hacknet.GameScreen.inputMethodChanged ( bool  usingGamePad)
virtual
Parameters
usingGamePadIf set to true then input changes to game pad.

Reimplemented in Hacknet.OS.

◆ LoadContent()

virtual void Hacknet.GameScreen.LoadContent ( )
virtual

Reimplemented in Hacknet.OS.

◆ UnloadContent()

virtual void Hacknet.GameScreen.UnloadContent ( )
virtual

Reimplemented in Hacknet.OS.

◆ Update()

virtual void Hacknet.GameScreen.Update ( GameTime  gameTime,
bool  otherScreenHasFocus,
bool  coveredByOtherScreen 
)
virtual
Parameters
gameTimeThe delta of last update.
otherScreenHasFocusIf other screen has focus then is true, otherwise false.
coveredByOtherScreenIf covered by another screen then is true, otherwise false.

Reimplemented in Hacknet.OS.

Property Documentation

◆ ControllingPlayer

PlayerIndex Hacknet.GameScreen.ControllingPlayer
getset

◆ IsActive

bool Hacknet.GameScreen.IsActive
get

◆ IsExiting

bool Hacknet.GameScreen.IsExiting
getprotected set

◆ IsPopup

bool Hacknet.GameScreen.IsPopup
getprotected set

◆ ScreenManager

ScreenManager Hacknet.GameScreen.ScreenManager
getset

◆ ScreenState

ScreenState Hacknet.GameScreen.ScreenState
getprotected set

◆ TransitionAlpha

byte Hacknet.GameScreen.TransitionAlpha
get

◆ TransitionOffTime

TimeSpan Hacknet.GameScreen.TransitionOffTime
getprotected set

◆ TransitionOnTime

TimeSpan Hacknet.GameScreen.TransitionOnTime
getprotected set

◆ TransitionPosition

float Hacknet.GameScreen.TransitionPosition
getprotected set

The documentation for this class was generated from the following file: