C# Class Project290.Games.Solitude.SolitudeEntities.Ship

Stores information about the entire world!!! It controls EVERYTHING and determines when to enter/exit rooms and handles their objects' transitions into and out of the physicsworld
Afficher le fichier Open project: scastle/Solitude Class Usage Examples

Méthodes publiques

Свойство Type Description
PhysicalWorld Project290.Physics.Dynamics.World
Player Project290.Games.Solitude.SolitudeObjects.Player
bombCount int
bossFight bool
c int
contents List
lastEnemyDied System.DateTime
r int
random System.Random
roomStatus ].int[
screen SolitudeScreen
term Project290.Games.Solitude.SolitudeObjects.Items.Terminal

Méthodes publiques

Méthode Description
CreateObjects ( List items ) : void

take the list of objects in the room and actually create them

Destroy ( SolitudeObject o ) : void

lets ship know to destroy an object (such as bomb or power up)

Draw ( ) : void
EnterRoom ( Direction d ) : void

Reset ( ) : void
ResetRoom ( ) : void

reloads the current room when the player dies.

Ship ( SolitudeScreen s ) : System
Update ( ) : void

Private Methods

Méthode Description
ItemIsDoor ( ObjectListItem o ) : void
ItemIsFighter ( ObjectListItem o ) : void
ItemIsMauler ( ObjectListItem o ) : void
ItemIsSentinel ( ObjectListItem o ) : void
ItemIsTerminal ( ObjectListItem o ) : void
ItemIsTy ( ObjectListItem o ) : void
ItemIsWall ( ObjectListItem o ) : void

Creates a wall based on information from an ObjectListItem o

Method Details

CreateObjects() public méthode

take the list of objects in the room and actually create them
public CreateObjects ( List items ) : void
items List
Résultat void

Destroy() public méthode

lets ship know to destroy an object (such as bomb or power up)
public Destroy ( SolitudeObject o ) : void
o Project290.Games.Solitude.SolitudeObjects.SolitudeObject
Résultat void

Draw() public méthode

public Draw ( ) : void
Résultat void

EnterRoom() public méthode

public EnterRoom ( Direction d ) : void
d Direction
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

ResetRoom() public méthode

reloads the current room when the player dies.
public ResetRoom ( ) : void
Résultat void

Ship() public méthode

public Ship ( SolitudeScreen s ) : System
s SolitudeScreen
Résultat System

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

PhysicalWorld public_oe property

The world for all physical objects to interact
public World,Project290.Physics.Dynamics PhysicalWorld
Résultat Project290.Physics.Dynamics.World

Player public_oe property

the player object.
public Player,Project290.Games.Solitude.SolitudeObjects Player
Résultat Project290.Games.Solitude.SolitudeObjects.Player

bombCount public_oe property

number of bombs currently active
public int bombCount
Résultat int

bossFight public_oe property

public bool bossFight
Résultat bool

c public_oe static_oe property

the column index of the active room
public static int c
Résultat int

contents public_oe property

A list of objects in the room
public List contents
Résultat List

lastEnemyDied public_oe property

time of last enemy's death to boost score multiplier.
public DateTime,System lastEnemyDied
Résultat System.DateTime

r public_oe static_oe property

the row index of the active room
public static int r
Résultat int

random public_oe property

public Random,System random
Résultat System.Random

roomStatus public_oe property

distinguishes between normal rooms, rooms with terminals, unfound terminals, and boss fights, etc.
public int[,] roomStatus
Résultat ].int[

screen public_oe property

public SolitudeScreen screen
Résultat SolitudeScreen

term public_oe property

public Terminal,Project290.Games.Solitude.SolitudeObjects.Items term
Résultat Project290.Games.Solitude.SolitudeObjects.Items.Terminal