C# Class MyGame.BulletUnit

This class represent bullet unit which represent the logic of the bullet that is it move with constant speed in a certain direction
Inheritance: Unit
Afficher le fichier Open project: mahmoudbahaa/XNA-Game-project

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
BulletUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale, Vector3 Direction ) : System
update ( GameTime gameTime ) : void

Allows the unit to update itself.

Method Details

BulletUnit() public méthode

public BulletUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale, Vector3 Direction ) : System
game MyGame
Position Vector3
Rotation Vector3
Scale Vector3
Direction Vector3
Résultat System

update() public méthode

Allows the unit to update itself.
public update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Résultat void