C# Class CannonGame.Cannon

Inheritance: GameObject
Afficher le fichier Open project: obcilion/xnaKanonSpill Class Usage Examples

Méthodes publiques

Свойство Type Description
Direction Vector2
aiming bool
ball Ball
hasShot bool
placing bool

Méthodes publiques

Méthode Description
Cannon ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Vector2 direction ) : System
Control ( ) : void
Draw ( SpriteBatch spriteBatch ) : void
Fire ( Ball ball ) : void
updateRotation ( ) : void

Method Details

Cannon() public méthode

public Cannon ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Vector2 direction ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
direction Vector2
Résultat System

Control() public méthode

public Control ( ) : void
Résultat void

Draw() public méthode

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

Fire() public méthode

public Fire ( Ball ball ) : void
ball Ball
Résultat void

updateRotation() public méthode

public updateRotation ( ) : void
Résultat void

Property Details

Direction public_oe property

public Vector2 Direction
Résultat Vector2

aiming public_oe property

public bool aiming
Résultat bool

ball public_oe property

public Ball,CannonGame ball
Résultat Ball

hasShot public_oe property

public bool hasShot
Résultat bool

placing public_oe property

public bool placing
Résultat bool