C# Class Server.Planets

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

Méthodes publiques

Méthode 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 méthode

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
Résultat void

applyGravity() public méthode

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
Résultat void