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
Show file Open project: mahmoudbahaa/XNA-Game-project

Private Properties

Property Type Description

Public Methods

Method 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 method

public BulletUnit ( MyGame game, Vector3 Position, Vector3 Rotation, Vector3 Scale, Vector3 Direction ) : System
game MyGame
Position Vector3
Rotation Vector3
Scale Vector3
Direction Vector3
return System

update() public method

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