Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FATFileSystem
SceneCreator/SceneFunctions.h@14:165fff6d1854, 2019-05-06 (annotated)
- Committer:
- rottenegg
- Date:
- Mon May 06 20:53:37 2019 +0000
- Revision:
- 14:165fff6d1854
- Parent:
- 13:95323e0f2fcb
- Child:
- 15:3d29fb195958
CaMove: Added Additional Chaser options eg. death zones/; Game_Manager: Added Manages all Scenes and Story events with RNG management, Booting Diagnostics and Game File Verification, AllPaths was added.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| rottenegg | 9:ac396c818874 | 1 | #ifndef SCENEFUNCTIONS_H |
| rottenegg | 9:ac396c818874 | 2 | #define SCENEFUNCTIONS_H |
| rottenegg | 9:ac396c818874 | 3 | |
| rottenegg | 13:95323e0f2fcb | 4 | /** SceneFunctions Class |
| rottenegg | 13:95323e0f2fcb | 5 | @brief Contains Private Functions for each Pre Event and Pos Event. SceneFunctions is friend and parent to SceneCreator. |
| rottenegg | 13:95323e0f2fcb | 6 | @breif Also contains ultity functions like button locks and small animation sequences |
| rottenegg | 13:95323e0f2fcb | 7 | |
| rottenegg | 13:95323e0f2fcb | 8 | @author Saad Tayyab |
| rottenegg | 13:95323e0f2fcb | 9 | @date 25th April 2019 |
| rottenegg | 13:95323e0f2fcb | 10 | */ |
| rottenegg | 9:ac396c818874 | 11 | #include "mbed.h" |
| rottenegg | 9:ac396c818874 | 12 | #include "N5110.h" |
| rottenegg | 9:ac396c818874 | 13 | #include "CaMove.h" |
| rottenegg | 9:ac396c818874 | 14 | |
| rottenegg | 13:95323e0f2fcb | 15 | class SceneFunctions { |
| rottenegg | 13:95323e0f2fcb | 16 | friend class SceneCreator; |
| rottenegg | 13:95323e0f2fcb | 17 | |
| rottenegg | 9:ac396c818874 | 18 | public : |
| rottenegg | 13:95323e0f2fcb | 19 | |
| rottenegg | 13:95323e0f2fcb | 20 | private : |
| rottenegg | 13:95323e0f2fcb | 21 | DigitalIn *_BOK; |
| rottenegg | 13:95323e0f2fcb | 22 | int _progress; |
| rottenegg | 13:95323e0f2fcb | 23 | bool _p[3]; |
| rottenegg | 13:95323e0f2fcb | 24 | |
| rottenegg | 9:ac396c818874 | 25 | //constructor functions |
| rottenegg | 9:ac396c818874 | 26 | void set_buttonPin(PinName pin); |
| rottenegg | 9:ac396c818874 | 27 | void deletebutton(); |
| rottenegg | 9:ac396c818874 | 28 | //Ultility Functions |
| rottenegg | 9:ac396c818874 | 29 | void transition(N5110 &lcd); |
| rottenegg | 9:ac396c818874 | 30 | void lockin(N5110 &lcd); |
| rottenegg | 9:ac396c818874 | 31 | void flash(N5110 &lcd); |
| rottenegg | 9:ac396c818874 | 32 | //scene 0 Functions |
| rottenegg | 9:ac396c818874 | 33 | void set_scene0(CaMove &CM); |
| rottenegg | 9:ac396c818874 | 34 | //pre functions objs |
| rottenegg | 9:ac396c818874 | 35 | void obj0_scene0(N5110 &lcd); |
| rottenegg | 9:ac396c818874 | 36 | //pos functions events |
| rottenegg | 9:ac396c818874 | 37 | void event0_scene0(N5110 &lcd); |
| rottenegg | 9:ac396c818874 | 38 | void event1_scene0(N5110 &lcd); |
| rottenegg | 9:ac396c818874 | 39 | //scene 1 Functions |
| rottenegg | 9:ac396c818874 | 40 | void set_scene1(CaMove &CM); |
| rottenegg | 9:ac396c818874 | 41 | //pre |
| rottenegg | 9:ac396c818874 | 42 | void obj0_scene1(N5110 &lcd); |
| rottenegg | 9:ac396c818874 | 43 | void obj1_scene1(N5110 &lcd); |
| rottenegg | 9:ac396c818874 | 44 | //pos |
| rottenegg | 9:ac396c818874 | 45 | void event0_scene1(N5110 &lcd); |
| rottenegg | 14:165fff6d1854 | 46 | void event1_scene1(N5110 &lcd,CaMove &CM); |
| rottenegg | 10:4fda7b01484a | 47 | //Scene2 Functions |
| rottenegg | 10:4fda7b01484a | 48 | void set_scene2(CaMove &CM); |
| rottenegg | 10:4fda7b01484a | 49 | //pre functions |
| rottenegg | 10:4fda7b01484a | 50 | void obj0_scene2(N5110 &lcd); |
| rottenegg | 10:4fda7b01484a | 51 | void obj1_scene2(N5110 &lcd,int rng); |
| rottenegg | 10:4fda7b01484a | 52 | //pos functions |
| rottenegg | 10:4fda7b01484a | 53 | void event0_scene2(N5110 &lcd,CaMove &CM); |
| rottenegg | 10:4fda7b01484a | 54 | //Scene 3 Function |
| rottenegg | 10:4fda7b01484a | 55 | void set_scene3(CaMove &CM); |
| rottenegg | 10:4fda7b01484a | 56 | //pre function |
| rottenegg | 10:4fda7b01484a | 57 | void obj0_scene3(N5110 &lcd); |
| rottenegg | 10:4fda7b01484a | 58 | void obj1_scene3(N5110 &lcd); |
| rottenegg | 10:4fda7b01484a | 59 | void obj3_scene3(N5110 &lcd); |
| rottenegg | 10:4fda7b01484a | 60 | void obj4_scene3(N5110 &lcd); |
| rottenegg | 10:4fda7b01484a | 61 | //pos function |
| rottenegg | 10:4fda7b01484a | 62 | void event0_scene3(N5110 &lcd); |
| rottenegg | 10:4fda7b01484a | 63 | void event1_scene3(N5110 &lcd); |
| rottenegg | 10:4fda7b01484a | 64 | void event2_scene3(N5110 &lcd); |
| rottenegg | 10:4fda7b01484a | 65 | void event3_scene3(N5110 &lcd,CaMove &CM); |
| rottenegg | 10:4fda7b01484a | 66 | |
| rottenegg | 10:4fda7b01484a | 67 | |
| rottenegg | 9:ac396c818874 | 68 | }; |
| rottenegg | 9:ac396c818874 | 69 | |
| rottenegg | 9:ac396c818874 | 70 | #endif |