-
Notifications
You must be signed in to change notification settings - Fork 1
Game Object Model
Elias Watson edited this page Nov 6, 2018
·
2 revisions

This manages a single game instance.
- PlayerCharacter - Reference to the player's character object
- Characters - A list of all characters in the game, including the player
- Pickups - A list of all pickups in the game world
- Bullets - A list of all bullets in the game world
- Game() - Constructor. Initialize the game
- Update() - Update the game
- CreatePlayer(character) - Adds the player character to the game
- AddCharacter(character) - Adds a character to the game
Enum for the three character classes.
- Gunner - Assault Rifle
- Support - Shotgun
- Tank - Pistol & Shield
Abstract parent class of player and non-player characters.
- Class - Character's class
- HeldWeapon - Reference to currently held weapon
- Armor - Is the player wearing armor
- MaxHealth - Character's maximum health
- Health - Character's current health
- Score - Character's current score
- Hit(bullet) - Called when the character is hit by a bullet
Child of Character. Holds the player's character.
Child of Character. Holds an enemy (non-player) character
Abstract parent class of item pickups.
- PickUp(character) - Called when a character touches the item
Child of Pickup. Holds an armor pickup.
Child of Pickup. Holds a weapon upgrade pickup.
Abstract parent class of all weapons.
- Upgradeable - Can the weapon be upgraded
- MaxCooldown - Maximum cooldown time
- CurrentCooldown - Current cooldown time
- Fire() - Fire the weapon
- Upgrade(characterClass) - Returns the next weapon upgrade for the given class
Child of Weapon. Holds an advanced assault rifle.
Child of Weapon. Holds an advanced shotgun.
Child of Weapon. Holds an assault rifle.
Child of Weapon. Holds a knife.
Child of Weapon. Holds a pistol.
Child of Weapon. Holds a pistol & shield.
Child of Weapon. Holds a shotgun