C# Класс Manic_Shooter.ResourceManager

Показать файл Открыть проект

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

Метод Описание
AddDroppable ( IDroppable newDroppable ) : void

Adds a new droppable to the game

AddEnemy ( IEnemy newEnemy ) : void

Adds a new enemy to the game

AddPlayer ( IPlayer newPlayer ) : void

Adds a new player to the game

AddProjectile ( IProjectile newProjectile ) : void

Adds a new projectile to the game

AddRenderableObject ( IRenderable renderableObject ) : void

Adds the sprite to the spriteList

CleanUpLists ( ) : void

Cleans inactive elements from the player, enemy, projectile, and render lists. Should not be called too often as it can be expensive. This is effectively a garbage collector

RemoveDroppable ( IDroppable droppableToRemove ) : void

Removes a droppable from the list

RemoveEnemy ( IEnemy enemyToRemove ) : void

Removes an enemy from the list

RemovePlayer ( IPlayer playerToRemove ) : void

Removes a player from the list

RemoveProjectile ( IProjectile projectileToRemove ) : void

Removes a projectile from the list

RemoveRenderable ( IRenderable renderableToRemove ) : void

Removes a renderable object from the list

RenderSprites ( SpriteBatch spriteBatch ) : void

Renders the lists in the order of renderable objects, players, enemies, and the projectiles. Should be called between spriteBatch.Begin() and spriteBatch.End() calls

ResetAll ( ) : void
Update ( GameTime gameTime ) : void

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

Метод Описание
CheckCollisions ( ) : void
ResourceManager ( ) : System

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

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

Adds a new droppable to the game
public AddDroppable ( IDroppable newDroppable ) : void
newDroppable IDroppable
Результат void

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

Adds a new enemy to the game
public AddEnemy ( IEnemy newEnemy ) : void
newEnemy IEnemy The new enemy to add
Результат void

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

Adds a new player to the game
public AddPlayer ( IPlayer newPlayer ) : void
newPlayer IPlayer The new player to add
Результат void

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

Adds a new projectile to the game
public AddProjectile ( IProjectile newProjectile ) : void
newProjectile IProjectile The new projectile to add
Результат void

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

Adds the sprite to the spriteList
public AddRenderableObject ( IRenderable renderableObject ) : void
renderableObject IRenderable
Результат void

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

Cleans inactive elements from the player, enemy, projectile, and render lists. Should not be called too often as it can be expensive. This is effectively a garbage collector
public CleanUpLists ( ) : void
Результат void

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

Removes a droppable from the list
public RemoveDroppable ( IDroppable droppableToRemove ) : void
droppableToRemove IDroppable
Результат void

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

Removes an enemy from the list
public RemoveEnemy ( IEnemy enemyToRemove ) : void
enemyToRemove IEnemy The enemy to remove
Результат void

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

Removes a player from the list
public RemovePlayer ( IPlayer playerToRemove ) : void
playerToRemove IPlayer The player to remove
Результат void

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

Removes a projectile from the list
public RemoveProjectile ( IProjectile projectileToRemove ) : void
projectileToRemove IProjectile The projectile to remove
Результат void

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

Removes a renderable object from the list
public RemoveRenderable ( IRenderable renderableToRemove ) : void
renderableToRemove IRenderable The renderableObject to remove
Результат void

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

Renders the lists in the order of renderable objects, players, enemies, and the projectiles. Should be called between spriteBatch.Begin() and spriteBatch.End() calls
public RenderSprites ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch The spritebatch to use for the drawingc
Результат void

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

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

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

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void