-
Notifications
You must be signed in to change notification settings - Fork 4
EventManager
Adam White edited this page Aug 27, 2017
·
5 revisions
EventManager is a class that enables the program to manage all TimeEvents associated with tickable entities.
TimeEvents are registered with registerEvent
and all registered events will be ticked when the game ticks via the tickAll
method
Method | Use |
---|---|
registerEvent(Tickable, TimeEvent<? extends Tickable>) |
Adds an event that is associated with a tickable to the Manager. |
unregisterEvent(Tickable, TimeEvent<? extends Tickable>) |
Removes a singular event that is associated with a tickable from the Manager. Will only remove first Tickable/Event pair that matches. |
unregisterAll(Tickable) |
Removes all events associated with a tickable from the Manager. |
tickAll(long deltaTime) |
Ticks all registered events. Completed events will be automatically unregistered. |
This class has been implemented to 'just work' and should be changed in the future. The registration of TimeEvents could be moved back to entities in the future (making this class depracated)
- Home
- How To Play
- Keybindings
- Inventory and Resources
- Trees
- Portals and Worlds
- Projectiles
- Enemies
- Waves & Spawning
- Graphical assets progress overview
- Audio Files
- Design Templates
- Blender Intro
- Converting 3D models to Sprites
- Scripting in Blender
- Creating a Model in Sketchup
- Colouring and Animating in Blender
- Animation using Dope Sheet, Keyframes and Scale Transformation in Blender
- Template
- Testing
- Terrain
- Terrain Generation
- Resource Trees
- Main Menu, Chat, options
- Main Menu V2, Options V2, Sound
- Damage Trees
- Projectiles
- Enemy User Testing
- Tree planting, inventory GUI, resources, portals
- Caveman Character
- Debug Mode Menu
- Tree learning, Attack Trees, Main Menu Tutorial Resources Styling
- Revamped Resource Trees
- Squirrel User Testing
- Final evaluation
- Project Structure
- Git Workflow
- GUI
- Worlds
- Entity Directions
- Resources
- Inventory
- AbstractEntities
- BasicProperties
- MortalEntity
- ProgressBarEntity
- Multiplayer
- Trees
- TimeEvent
- Game Time
- Animations
- Enemies
- Waves
- Player
- Projectiles
- Effect
- Particles
- Path Manager
- Sounds
- Debug 'God' Mode
- 2D Collision
- Box3D {depreciated}
- Render3D
- Cheat Codes