Method | Description | |
---|---|---|
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 ( |
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 ( |
Method | Description | |
---|---|---|
CheckCollisions ( ) : void | ||
ResourceManager ( ) : System |
public AddDroppable ( IDroppable newDroppable ) : void | ||
newDroppable | IDroppable | |
return | void |
public AddEnemy ( IEnemy newEnemy ) : void | ||
newEnemy | IEnemy | The new enemy to add |
return | void |
public AddPlayer ( IPlayer newPlayer ) : void | ||
newPlayer | IPlayer | The new player to add |
return | void |
public AddProjectile ( IProjectile newProjectile ) : void | ||
newProjectile | IProjectile | The new projectile to add |
return | void |
public AddRenderableObject ( IRenderable renderableObject ) : void | ||
renderableObject | IRenderable | |
return | void |
public RemoveDroppable ( IDroppable droppableToRemove ) : void | ||
droppableToRemove | IDroppable | |
return | void |
public RemoveEnemy ( IEnemy enemyToRemove ) : void | ||
enemyToRemove | IEnemy | The enemy to remove |
return | void |
public RemovePlayer ( IPlayer playerToRemove ) : void | ||
playerToRemove | IPlayer | The player to remove |
return | void |
public RemoveProjectile ( IProjectile projectileToRemove ) : void | ||
projectileToRemove | IProjectile | The projectile to remove |
return | void |
public RemoveRenderable ( IRenderable renderableToRemove ) : void | ||
renderableToRemove | IRenderable | The renderableObject to remove |
return | void |
public RenderSprites ( |
||
spriteBatch | The spritebatch to use for the drawingc | |
return | void |
public Update ( |
||
gameTime | ||
return | void |