C# Class Asteroids.Classes.Weapon

显示文件 Open project: Timvangool/AsteroidsAPO2

Protected Properties

Property Type Description
direction Vector2
fadeTime float
hitBox Microsoft.Xna.Framework.Rectangle
isVisable bool
origin Vector2
pos Vector2
speed float
texture Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
CheckBoundries ( int scrnWidth, int scrnHeight ) : void
Draw ( SpriteBatch spriteBatch ) : void
GetDirection ( ) : Vector2
GetFadeTime ( ) : float
GetHitbox ( ) : Rectangle
GetIsVisable ( ) : bool
GetPos ( ) : Vector2
GetTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
Load ( Microsoft.Xna.Framework.Content.ContentManager content, Vector2 direction ) : void
SetDirection ( Vector2 direction ) : void
SetIsVisable ( bool isVisable ) : void
SetPos ( Vector2 pos ) : void
SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
Update ( GameTime gameTime, Vector2 direction ) : void
Weapon ( ) : System

Method Details

CheckBoundries() public method

public CheckBoundries ( int scrnWidth, int scrnHeight ) : void
scrnWidth int
scrnHeight int
return void

Draw() public abstract method

public abstract Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetDirection() public method

public GetDirection ( ) : Vector2
return Vector2

GetFadeTime() public method

public GetFadeTime ( ) : float
return float

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

GetTexture() public method

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

Load() public abstract method

public abstract Load ( Microsoft.Xna.Framework.Content.ContentManager content, Vector2 direction ) : void
content Microsoft.Xna.Framework.Content.ContentManager
direction Vector2
return void

SetDirection() public method

public SetDirection ( Vector2 direction ) : void
direction Vector2
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

Update() public abstract method

public abstract Update ( GameTime gameTime, Vector2 direction ) : void
gameTime Microsoft.Xna.Framework.GameTime
direction Vector2
return void

Weapon() public method

public Weapon ( ) : System
return System

Property Details

direction protected_oe property

protected Vector2 direction
return Vector2

fadeTime protected_oe property

protected float fadeTime
return float

hitBox protected_oe property

protected Rectangle,Microsoft.Xna.Framework hitBox
return Microsoft.Xna.Framework.Rectangle

isVisable protected_oe property

protected bool isVisable
return bool

origin protected_oe property

protected Vector2 origin
return Vector2

pos protected_oe property

protected Vector2 pos
return Vector2

speed protected_oe property

protected float speed
return float

texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics texture
return Microsoft.Xna.Framework.Graphics.Texture2D