C# Class SunsetHigh.Hero.PickpocketSystem

Mostrar archivo Open project: ErraticUnicorn/MOSH

Public Methods

Method Description
PickpocketSystem ( ) : System
draw ( SpriteBatch sb ) : void
loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
randomize ( ) : void

Randomizes the speed and starting position of the arrow (to keep the game unpredictable)

setBarDifficulty ( float difficulty ) : void

Sets bar width in terms of "difficulty"

success ( ) : bool

Checks if the arrow is within the positive region (i.e. if pickpocket is successful

update ( Hero h, float elapsed ) : void

Method Details

PickpocketSystem() public method

public PickpocketSystem ( ) : System
return System

draw() public method

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

loadContent() public method

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

randomize() public method

Randomizes the speed and starting position of the arrow (to keep the game unpredictable)
public randomize ( ) : void
return void

setBarDifficulty() public method

Sets bar width in terms of "difficulty"
public setBarDifficulty ( float difficulty ) : void
difficulty float 0.0 to 1.0, 0.0 for impossible, 1.0 for always win
return void

success() public method

Checks if the arrow is within the positive region (i.e. if pickpocket is successful
public success ( ) : bool
return bool

update() public method

public update ( Hero h, float elapsed ) : void
h Hero
elapsed float
return void