C# 클래스 SunsetHigh.Hero.PickpocketSystem

파일 보기 프로젝트 열기: ErraticUnicorn/MOSH

공개 메소드들

메소드 설명
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