C# Class Shooter.GameStates.GameStateManager

ファイルを表示 Open project: JoeyTheAsian/Just-Force

Public Properties

Property Type Description
backButton Microsoft.Xna.Framework.Graphics.Texture2D
backButtonPosition Microsoft.Xna.Framework.Rectangle
caseBackground Microsoft.Xna.Framework.Graphics.Texture2D
closedBackground Microsoft.Xna.Framework.Graphics.Texture2D
controlBackButtonPosition Microsoft.Xna.Framework.Rectangle
controlButton Microsoft.Xna.Framework.Graphics.Texture2D
controlButtonPosition Microsoft.Xna.Framework.Rectangle
controls Microsoft.Xna.Framework.Graphics.Texture2D
deathBackground Microsoft.Xna.Framework.Graphics.Texture2D
exitButton Microsoft.Xna.Framework.Graphics.Texture2D
exitButtonPosition Microsoft.Xna.Framework.Rectangle
gameState string
graphicIcons List
graphicsButton Microsoft.Xna.Framework.Graphics.Texture2D
graphicsButtonPosition Microsoft.Xna.Framework.Rectangle
isLoading bool
lastState string
levelClears int[]
levelIcons List
levelRect List
levelSelectButton Microsoft.Xna.Framework.Graphics.Texture2D
levelSelectButtonPosition Microsoft.Xna.Framework.Rectangle
loadScreen Microsoft.Xna.Framework.Graphics.Texture2D
loadScreenPos Vector2
optionsButton Microsoft.Xna.Framework.Graphics.Texture2D
optionsButtonPosition Microsoft.Xna.Framework.Rectangle
resumeButton Microsoft.Xna.Framework.Graphics.Texture2D
resumeButtonPosition Microsoft.Xna.Framework.Rectangle
rightStartButton Microsoft.Xna.Framework.Rectangle
soundsButton Microsoft.Xna.Framework.Graphics.Texture2D
soundsButtonPosition Microsoft.Xna.Framework.Rectangle
startButton Microsoft.Xna.Framework.Graphics.Texture2D
startButtonPosition Microsoft.Xna.Framework.Rectangle
startMenuBackground Microsoft.Xna.Framework.Graphics.Texture2D
states List

Public Methods

Method Description
CheckGameState ( ) : void
DrawLoad ( SpriteBatch sb ) : void
GameStateManager ( int screenWidth, int screenHeight, Microsoft.Xna.Framework.Content.ContentManager content, int curLvl ) : Microsoft.Xna.Framework
MouseClicked ( int x, int y, Game1 game, int &currentLevel, List &enemies, List &Items, List &projectiles, int &timer, Microsoft.Xna.Framework.Content.ContentManager Content, Character &player, string &wepUnl, bool &songPlaying, SoundEffectInstance &song ) : Rectangle
StartGame ( ) : void
saveLevelClears ( ) : void
updateState ( KeyboardState State, KeyboardState oldState, bool &songPlaying, SoundEffectInstance &song ) : bool

Method Details

CheckGameState() public method

public CheckGameState ( ) : void
return void

DrawLoad() public method

public DrawLoad ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GameStateManager() public method

public GameStateManager ( int screenWidth, int screenHeight, Microsoft.Xna.Framework.Content.ContentManager content, int curLvl ) : Microsoft.Xna.Framework
screenWidth int
screenHeight int
content Microsoft.Xna.Framework.Content.ContentManager
curLvl int
return Microsoft.Xna.Framework

MouseClicked() public method

public MouseClicked ( int x, int y, Game1 game, int &currentLevel, List &enemies, List &Items, List &projectiles, int &timer, Microsoft.Xna.Framework.Content.ContentManager Content, Character &player, string &wepUnl, bool &songPlaying, SoundEffectInstance &song ) : Rectangle
x int
y int
game Game1
currentLevel int
enemies List
Items List
projectiles List
timer int
Content Microsoft.Xna.Framework.Content.ContentManager
player Shooter.Entities.Character
wepUnl string
songPlaying bool
song Microsoft.Xna.Framework.Audio.SoundEffectInstance
return Microsoft.Xna.Framework.Rectangle

StartGame() public method

public StartGame ( ) : void
return void

saveLevelClears() public method

public saveLevelClears ( ) : void
return void

updateState() public method

public updateState ( KeyboardState State, KeyboardState oldState, bool &songPlaying, SoundEffectInstance &song ) : bool
State Microsoft.Xna.Framework.Input.KeyboardState
oldState Microsoft.Xna.Framework.Input.KeyboardState
songPlaying bool
song Microsoft.Xna.Framework.Audio.SoundEffectInstance
return bool

Property Details

backButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics backButton
return Microsoft.Xna.Framework.Graphics.Texture2D

backButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework backButtonPosition
return Microsoft.Xna.Framework.Rectangle

caseBackground public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics caseBackground
return Microsoft.Xna.Framework.Graphics.Texture2D

closedBackground public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics closedBackground
return Microsoft.Xna.Framework.Graphics.Texture2D

controlBackButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework controlBackButtonPosition
return Microsoft.Xna.Framework.Rectangle

controlButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics controlButton
return Microsoft.Xna.Framework.Graphics.Texture2D

controlButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework controlButtonPosition
return Microsoft.Xna.Framework.Rectangle

controls public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics controls
return Microsoft.Xna.Framework.Graphics.Texture2D

deathBackground public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics deathBackground
return Microsoft.Xna.Framework.Graphics.Texture2D

exitButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics exitButton
return Microsoft.Xna.Framework.Graphics.Texture2D

exitButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework exitButtonPosition
return Microsoft.Xna.Framework.Rectangle

gameState public_oe property

public string gameState
return string

graphicIcons public_oe property

public List graphicIcons
return List

graphicsButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics graphicsButton
return Microsoft.Xna.Framework.Graphics.Texture2D

graphicsButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework graphicsButtonPosition
return Microsoft.Xna.Framework.Rectangle

isLoading public_oe property

public bool isLoading
return bool

lastState public_oe property

public string lastState
return string

levelClears public_oe property

public int[] levelClears
return int[]

levelIcons public_oe property

public List levelIcons
return List

levelRect public_oe property

public List levelRect
return List

levelSelectButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics levelSelectButton
return Microsoft.Xna.Framework.Graphics.Texture2D

levelSelectButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework levelSelectButtonPosition
return Microsoft.Xna.Framework.Rectangle

loadScreen public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics loadScreen
return Microsoft.Xna.Framework.Graphics.Texture2D

loadScreenPos public_oe property

public Vector2 loadScreenPos
return Vector2

optionsButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics optionsButton
return Microsoft.Xna.Framework.Graphics.Texture2D

optionsButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework optionsButtonPosition
return Microsoft.Xna.Framework.Rectangle

resumeButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics resumeButton
return Microsoft.Xna.Framework.Graphics.Texture2D

resumeButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework resumeButtonPosition
return Microsoft.Xna.Framework.Rectangle

rightStartButton public_oe property

public Rectangle,Microsoft.Xna.Framework rightStartButton
return Microsoft.Xna.Framework.Rectangle

soundsButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics soundsButton
return Microsoft.Xna.Framework.Graphics.Texture2D

soundsButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework soundsButtonPosition
return Microsoft.Xna.Framework.Rectangle

startButton public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics startButton
return Microsoft.Xna.Framework.Graphics.Texture2D

startButtonPosition public_oe property

public Rectangle,Microsoft.Xna.Framework startButtonPosition
return Microsoft.Xna.Framework.Rectangle

startMenuBackground public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics startMenuBackground
return Microsoft.Xna.Framework.Graphics.Texture2D

states public_oe property

public List states
return List