C# Class Server.Planets

This class represents a Planets that it would be not affected by gravity and collisions with other objects.
Inheritance: GameObject
Mostra file Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Public Methods

Method Description
applyGravity ( Bullet b ) : void

This function changes the speed of the object based on its proximity to its Planet instance

applyGravity ( Player p ) : void

This function changes the speed of the object based on its proximity to its Planet instance

Method Details

applyGravity() public method

This function changes the speed of the object based on its proximity to its Planet instance
public applyGravity ( Bullet b ) : void
b Bullet An instance to a Bullet
return void

applyGravity() public method

This function changes the speed of the object based on its proximity to its Planet instance
public applyGravity ( Player p ) : void
p Player An instance to a player
return void