C# Класс 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
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CreateObjects() публичный Метод

take the list of objects in the room and actually create them
public CreateObjects ( List items ) : void
items List
Результат void

Destroy() публичный Метод

lets ship know to destroy an object (such as bomb or power up)
public Destroy ( SolitudeObject o ) : void
o Project290.Games.Solitude.SolitudeObjects.SolitudeObject
Результат void

Draw() публичный Метод

public Draw ( ) : void
Результат void

EnterRoom() публичный Метод

public EnterRoom ( Direction d ) : void
d Direction
Результат void

Reset() публичный Метод

public Reset ( ) : void
Результат void

ResetRoom() публичный Метод

reloads the current room when the player dies.
public ResetRoom ( ) : void
Результат void

Ship() публичный Метод

public Ship ( SolitudeScreen s ) : System
s SolitudeScreen
Результат System

Update() публичный Метод

public Update ( ) : void
Результат void

Описание свойств

PhysicalWorld публичное свойство

The world for all physical objects to interact
public World,Project290.Physics.Dynamics PhysicalWorld
Результат Project290.Physics.Dynamics.World

Player публичное свойство

the player object.
public Player,Project290.Games.Solitude.SolitudeObjects Player
Результат Project290.Games.Solitude.SolitudeObjects.Player

bombCount публичное свойство

number of bombs currently active
public int bombCount
Результат int

bossFight публичное свойство

public bool bossFight
Результат bool

c публичное статическое свойство

the column index of the active room
public static int c
Результат int

contents публичное свойство

A list of objects in the room
public List contents
Результат List

lastEnemyDied публичное свойство

time of last enemy's death to boost score multiplier.
public DateTime,System lastEnemyDied
Результат System.DateTime

r публичное статическое свойство

the row index of the active room
public static int r
Результат int

random публичное свойство

public Random,System random
Результат System.Random

roomStatus публичное свойство

distinguishes between normal rooms, rooms with terminals, unfound terminals, and boss fights, etc.
public int[,] roomStatus
Результат ].int[

screen публичное свойство

public SolitudeScreen screen
Результат SolitudeScreen

term публичное свойство

public Terminal,Project290.Games.Solitude.SolitudeObjects.Items term
Результат Project290.Games.Solitude.SolitudeObjects.Items.Terminal