C# Class ProjectCow.LiftObject

Inheritance: GameObject
Afficher le fichier Open project: csce3513/Team12 Class Usage Examples

Protected Properties

Свойство Type Description
GRAVITY float
resistance float
speed Vector2
timeAlive System.TimeSpan

Méthodes publiques

Méthode Description
IsCollided ( LiftObject liftObject ) : bool
Lift ( Vector2 spaceshipCenter, float pullAcceleration, Vector2 beamPosition, int beamWidth ) : void
LiftObject ( Vector2 position, float resistance, GameObjectsManager manager, int points, int healthModifier ) : System
Update ( GameTime gameTime ) : void

Private Methods

Méthode Description
IsInBeamRange ( Vector2 beamPosition, int beamWidth ) : bool

Method Details

IsCollided() public méthode

public IsCollided ( LiftObject liftObject ) : bool
liftObject LiftObject
Résultat bool

Lift() public méthode

public Lift ( Vector2 spaceshipCenter, float pullAcceleration, Vector2 beamPosition, int beamWidth ) : void
spaceshipCenter Vector2
pullAcceleration float
beamPosition Vector2
beamWidth int
Résultat void

LiftObject() public méthode

public LiftObject ( Vector2 position, float resistance, GameObjectsManager manager, int points, int healthModifier ) : System
position Vector2
resistance float
manager GameObjectsManager
points int
healthModifier int
Résultat System

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

Property Details

GRAVITY protected_oe property

protected float GRAVITY
Résultat float

resistance protected_oe property

protected float resistance
Résultat float

speed protected_oe property

protected Vector2 speed
Résultat Vector2

timeAlive protected_oe property

protected TimeSpan,System timeAlive
Résultat System.TimeSpan