C# Class Stroids.PowerUp

ファイルを表示 Open project: Timvangool/AsteroidsAPO2

Public Methods

Method Description
Draw ( SpriteBatch batch, Microsoft.Xna.Framework.Content.ContentManager content ) : void
GetDuration ( ) : int
GetHitbox ( ) : Rectangle
GetIsVisable ( ) : bool
GetPos ( ) : Vector2
GetPowerUpType ( ) : int
GetTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
Load ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
PowerUp ( ) : System
SetDuration ( int duration ) : void
SetIsVisable ( bool isVisable ) : void
SetPos ( Vector2 pos ) : void
SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
SetType ( int type ) : void
Update ( GameTime gameTime ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch batch, Microsoft.Xna.Framework.Content.ContentManager content ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
return void

GetDuration() public method

public GetDuration ( ) : int
return int

GetHitbox() public method

public GetHitbox ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

GetIsVisable() public method

public GetIsVisable ( ) : bool
return bool

GetPos() public method

public GetPos ( ) : Vector2
return Vector2

GetPowerUpType() public method

public GetPowerUpType ( ) : int
return int

GetTexture() public method

public GetTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

Load() public method

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

PowerUp() public method

public PowerUp ( ) : System
return System

SetDuration() public method

public SetDuration ( int duration ) : void
duration int
return void

SetIsVisable() public method

public SetIsVisable ( bool isVisable ) : void
isVisable bool
return void

SetPos() public method

public SetPos ( Vector2 pos ) : void
pos Vector2
return void

SetTexture() public method

public SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
return void

SetType() public method

public SetType ( int type ) : void
type int
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void