C# Class SpaceShip.Logic.Planet

Inheritance: GameObject
Show file Open project: pmyoung/Advanced-Game-Project Class Usage Examples

Protected Properties

Property Type Description
fixedPosition bool

Public Methods

Method Description
calculateGravity ( ) : void
isFixed ( ) : bool
loadPlanets ( string fileString, Map map ) : void
updatePosition ( ) : void

Protected Methods

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

Private Methods

Method 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 method

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
return System

calculateGravity() public method

public calculateGravity ( ) : void
return void

isFixed() public method

public isFixed ( ) : bool
return bool

loadPlanets() public static method

public static loadPlanets ( string fileString, Map map ) : void
fileString string
map Map
return void

updatePosition() public method

public updatePosition ( ) : void
return void

Property Details

fixedPosition protected property

protected bool fixedPosition
return bool