C# Класс SunsetHigh.Hero.PickpocketSystem

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

PickpocketSystem() публичный Метод

public PickpocketSystem ( ) : System
Результат System

draw() публичный Метод

public draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

loadContent() публичный Метод

public loadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Результат void

randomize() публичный Метод

Randomizes the speed and starting position of the arrow (to keep the game unpredictable)
public randomize ( ) : void
Результат void

setBarDifficulty() публичный Метод

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
Результат void

success() публичный Метод

Checks if the arrow is within the positive region (i.e. if pickpocket is successful
public success ( ) : bool
Результат bool

update() публичный Метод

public update ( Hero h, float elapsed ) : void
h Hero
elapsed float
Результат void