C# Class ProjectCow.LiftObject

Inheritance: GameObject
Datei anzeigen Open project: csce3513/Team12 Class Usage Examples

Protected Properties

Property Type Description
GRAVITY float
resistance float
speed Vector2
timeAlive System.TimeSpan

Public Methods

Method 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

Method Description
IsInBeamRange ( Vector2 beamPosition, int beamWidth ) : bool

Method Details

IsCollided() public method

public IsCollided ( LiftObject liftObject ) : bool
liftObject LiftObject
return bool

Lift() public method

public Lift ( Vector2 spaceshipCenter, float pullAcceleration, Vector2 beamPosition, int beamWidth ) : void
spaceshipCenter Vector2
pullAcceleration float
beamPosition Vector2
beamWidth int
return void

LiftObject() public method

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

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

GRAVITY protected_oe property

protected float GRAVITY
return float

resistance protected_oe property

protected float resistance
return float

speed protected_oe property

protected Vector2 speed
return Vector2

timeAlive protected_oe property

protected TimeSpan,System timeAlive
return System.TimeSpan