C# Class SpaceShip.Logic.Planet

Inheritance: GameObject
Afficher le fichier Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Protected Properties

Свойство Type Description
fixedPosition bool

Méthodes publiques

Méthode Description
calculateGravity ( ) : void
isFixed ( ) : bool
loadPlanets ( string fileString, Map map ) : void
updatePosition ( ) : void

Méthodes protégées

Méthode Description
Planet ( int spriteID = -1, float x, float y, int radius = 10, int mass = 10, bool fixedPos = true ) : System

Private Methods

Méthode Description
loadMoons ( String fileString, Map map ) : void
loadPlanetPropriety ( string propriety ) : Planet
setUpMoons ( int spriteId, int number, int radius, int d, int mass, Map map ) : void

Method Details

Planet() protected méthode

protected Planet ( int spriteID = -1, float x, float y, int radius = 10, int mass = 10, bool fixedPos = true ) : System
spriteID int
x float
y float
radius int
mass int
fixedPos bool
Résultat System

calculateGravity() public méthode

public calculateGravity ( ) : void
Résultat void

isFixed() public méthode

public isFixed ( ) : bool
Résultat bool

loadPlanets() public static méthode

public static loadPlanets ( string fileString, Map map ) : void
fileString string
map Map
Résultat void

updatePosition() public méthode

public updatePosition ( ) : void
Résultat void

Property Details

fixedPosition protected_oe property

protected bool fixedPosition
Résultat bool