Game for Leeds University Gamepad for the FRDM-K64F: Game is a RPG Horror Title.
Dependencies: mbed FATFileSystem
SceneCreator/SceneFunctions.h@15:3d29fb195958, 2019-05-07 (annotated)
- Committer:
- rottenegg
- Date:
- Tue May 07 03:20:24 2019 +0000
- Revision:
- 15:3d29fb195958
- Parent:
- 14:165fff6d1854
- Child:
- 17:7d4d8905b608
SceneFunctions: Added a new Scene; Game_Manager: set up the Main story flow; CaMove: fixed a error with chaser ( typo in code causes the chaser to be unable to move right)
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 | 15:3d29fb195958 | 32 | |
rottenegg | 9:ac396c818874 | 33 | //scene 0 Functions |
rottenegg | 9:ac396c818874 | 34 | void set_scene0(CaMove &CM); |
rottenegg | 9:ac396c818874 | 35 | //pre functions objs |
rottenegg | 9:ac396c818874 | 36 | void obj0_scene0(N5110 &lcd); |
rottenegg | 9:ac396c818874 | 37 | //pos functions events |
rottenegg | 9:ac396c818874 | 38 | void event0_scene0(N5110 &lcd); |
rottenegg | 9:ac396c818874 | 39 | void event1_scene0(N5110 &lcd); |
rottenegg | 15:3d29fb195958 | 40 | |
rottenegg | 9:ac396c818874 | 41 | //scene 1 Functions |
rottenegg | 9:ac396c818874 | 42 | void set_scene1(CaMove &CM); |
rottenegg | 9:ac396c818874 | 43 | //pre |
rottenegg | 9:ac396c818874 | 44 | void obj0_scene1(N5110 &lcd); |
rottenegg | 9:ac396c818874 | 45 | void obj1_scene1(N5110 &lcd); |
rottenegg | 9:ac396c818874 | 46 | //pos |
rottenegg | 9:ac396c818874 | 47 | void event0_scene1(N5110 &lcd); |
rottenegg | 14:165fff6d1854 | 48 | void event1_scene1(N5110 &lcd,CaMove &CM); |
rottenegg | 15:3d29fb195958 | 49 | |
rottenegg | 10:4fda7b01484a | 50 | //Scene2 Functions |
rottenegg | 10:4fda7b01484a | 51 | void set_scene2(CaMove &CM); |
rottenegg | 10:4fda7b01484a | 52 | //pre functions |
rottenegg | 10:4fda7b01484a | 53 | void obj0_scene2(N5110 &lcd); |
rottenegg | 10:4fda7b01484a | 54 | void obj1_scene2(N5110 &lcd,int rng); |
rottenegg | 10:4fda7b01484a | 55 | //pos functions |
rottenegg | 10:4fda7b01484a | 56 | void event0_scene2(N5110 &lcd,CaMove &CM); |
rottenegg | 15:3d29fb195958 | 57 | |
rottenegg | 10:4fda7b01484a | 58 | //Scene 3 Function |
rottenegg | 10:4fda7b01484a | 59 | void set_scene3(CaMove &CM); |
rottenegg | 10:4fda7b01484a | 60 | //pre function |
rottenegg | 10:4fda7b01484a | 61 | void obj0_scene3(N5110 &lcd); |
rottenegg | 10:4fda7b01484a | 62 | void obj1_scene3(N5110 &lcd); |
rottenegg | 10:4fda7b01484a | 63 | void obj3_scene3(N5110 &lcd); |
rottenegg | 10:4fda7b01484a | 64 | void obj4_scene3(N5110 &lcd); |
rottenegg | 10:4fda7b01484a | 65 | //pos function |
rottenegg | 10:4fda7b01484a | 66 | void event0_scene3(N5110 &lcd); |
rottenegg | 10:4fda7b01484a | 67 | void event1_scene3(N5110 &lcd); |
rottenegg | 10:4fda7b01484a | 68 | void event2_scene3(N5110 &lcd); |
rottenegg | 10:4fda7b01484a | 69 | void event3_scene3(N5110 &lcd,CaMove &CM); |
rottenegg | 10:4fda7b01484a | 70 | |
rottenegg | 15:3d29fb195958 | 71 | //Scene 4 Function |
rottenegg | 15:3d29fb195958 | 72 | void set_scene4(CaMove &CM); |
rottenegg | 15:3d29fb195958 | 73 | //pre functions |
rottenegg | 15:3d29fb195958 | 74 | void obj1_scene4(N5110 &lcd); |
rottenegg | 15:3d29fb195958 | 75 | void obj2_scene4(N5110 &lcd); |
rottenegg | 15:3d29fb195958 | 76 | void obj3_scene4(N5110 &lcd); |
rottenegg | 15:3d29fb195958 | 77 | //pos function |
rottenegg | 15:3d29fb195958 | 78 | void event0_scene4(N5110 &lcd,CaMove &CM); |
rottenegg | 10:4fda7b01484a | 79 | |
rottenegg | 9:ac396c818874 | 80 | }; |
rottenegg | 9:ac396c818874 | 81 | |
rottenegg | 9:ac396c818874 | 82 | #endif |