C# Class Asteroids.Classes.Weapon

Afficher le fichier Open project: Timvangool/AsteroidsAPO2

Protected Properties

Свойство 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

Méthodes publiques

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

public CheckBoundries ( int scrnWidth, int scrnHeight ) : void
scrnWidth int
scrnHeight int
Résultat void

Draw() public abstract méthode

public abstract Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

GetDirection() public méthode

public GetDirection ( ) : Vector2
Résultat Vector2

GetFadeTime() public méthode

public GetFadeTime ( ) : float
Résultat float

GetHitbox() public méthode

public GetHitbox ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

GetIsVisable() public méthode

public GetIsVisable ( ) : bool
Résultat bool

GetPos() public méthode

public GetPos ( ) : Vector2
Résultat Vector2

GetTexture() public méthode

public GetTexture ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

Load() public abstract méthode

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

SetDirection() public méthode

public SetDirection ( Vector2 direction ) : void
direction Vector2
Résultat void

SetIsVisable() public méthode

public SetIsVisable ( bool isVisable ) : void
isVisable bool
Résultat void

SetPos() public méthode

public SetPos ( Vector2 pos ) : void
pos Vector2
Résultat void

SetTexture() public méthode

public SetTexture ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

Update() public abstract méthode

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

Weapon() public méthode

public Weapon ( ) : System
Résultat System

Property Details

direction protected_oe property

protected Vector2 direction
Résultat Vector2

fadeTime protected_oe property

protected float fadeTime
Résultat float

hitBox protected_oe property

protected Rectangle,Microsoft.Xna.Framework hitBox
Résultat Microsoft.Xna.Framework.Rectangle

isVisable protected_oe property

protected bool isVisable
Résultat bool

origin protected_oe property

protected Vector2 origin
Résultat Vector2

pos protected_oe property

protected Vector2 pos
Résultat Vector2

speed protected_oe property

protected float speed
Résultat float

texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics texture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D