C# Class SunsetHigh.Hero.PickpocketSystem

Afficher le fichier Open project: ErraticUnicorn/MOSH

Méthodes publiques

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

public PickpocketSystem ( ) : System
Résultat System

draw() public méthode

public draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

loadContent() public méthode

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

randomize() public méthode

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

setBarDifficulty() public méthode

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

success() public méthode

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

update() public méthode

public update ( Hero h, float elapsed ) : void
h Hero
elapsed float
Résultat void