Advertisement
Guest User

Untitled

a guest
Jan 4th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.64 KB | None | 0 0
  1. #include "interfaces/Map_Interface.hps"
  2. #include "base/Inputhandler_Types.hps"
  3.  
  4. #include "helpers/helper_map.hps"
  5. #include "helpers/helper_props.hps"
  6. #include "helpers/helper_effects.hps"
  7. #include "helpers/helper_audio.hps"
  8. #include "helpers/helper_imgui.hps"
  9. #include "helpers/helper_sequences.hps"
  10. #include "helpers/helper_game.hps"
  11. #include "helpers/helper_modules.hps"
  12. #include "helpers/helper_ai.hps"
  13. #include "helpers/helper_player.hps"
  14. #include "helper_imgui_station.hps"
  15.  
  16.  
  17. //--------------------------------------------------
  18.  
  19. /*Place any global values here. These must be const variables as they will not be saved*/
  20. /*This is also the place for enums and classes, but these should be avoided whenever possible*/
  21.  
  22. //--------------------------------------------------
  23.  
  24. class cScrMap : iScrMap
  25. {
  26.     //--------------------------------------------
  27.  
  28.     //////////////////////////////////////////////////////////////////////////////////////////
  29.     // ==============
  30.     // MAIN CALLBACKS
  31.     // ==============
  32.     //{///////////////////////////////////////////////////////////////////////////////////////
  33.  
  34.     //-------------------------------------------------------
  35.  
  36.     ////////////////////////////
  37.     // Set up map environment
  38.     void Setup()
  39.     {
  40.    
  41.     }
  42.    
  43.     //-------------------------------------------------------
  44.  
  45.     ////////////////////////////
  46.     // Run first time starting map
  47.     void OnStart()
  48.     {
  49.         Player_SetClothing("default");
  50.         Player_SetFootWear("default");
  51.         LockBedroomDoor();
  52.        
  53.         /*Map_AddTimer("UnlockDoorTimer",
  54.             2.0f,
  55.             "UnlockBedroomDoor");*/
  56.     }
  57.  
  58.     //-------------------------------------------------------
  59.  
  60.     ////////////////////////////
  61.     // Run when entering map
  62.     void OnEnter()
  63.     {  
  64.     }
  65.  
  66.     //-------------------------------------------------------
  67.  
  68.     ////////////////////////////
  69.     // Run when leaving map
  70.     void OnLeave()
  71.     {
  72.     }
  73.  
  74.     //-------------------------------------------------------
  75.  
  76.     ////////////////////////////
  77.     // The player has died.
  78.     void OnPlayerKilled(int alRecentDeaths, const tString&in asSource)
  79.     {
  80.     }
  81.  
  82.     //-------------------------------------------------------
  83.  
  84.     ////////////////////////////
  85.     // To get when player makes input (mostly used for debug)
  86.     void OnAction(int alAction, bool abPressed)
  87.     {
  88.         if(abPressed==false) return;
  89.        
  90.         if(alAction == eAction_Test1)
  91.         {
  92.         }
  93.     }
  94.  
  95.     //-------------------------------------------------------
  96.  
  97.     ////////////////////////////
  98.     // This only used for pure debug purposes when info needs to printed.
  99.     float DrawDebugOutput(cGuiSet @apSet,iFontData @apFont,float afY)
  100.     {
  101.         //afY = cLux_DrawDebugText("My Debug value:"+..., afY);
  102.         return afY;
  103.     }
  104.  
  105.     //-------------------------------------------------------
  106.  
  107.     //} END MAIN CALLBACKS
  108.  
  109.  
  110.     //////////////////////////////////////////////////////////////////////////////////////////
  111.     // ==============
  112.     // MAIN FUNCTIONS
  113.     // ==============
  114.     //{///////////////////////////////////////////////////////////////////////////////////////
  115.  
  116.     //-------------------------------------------------------
  117.  
  118.     /*Put any variables that are used in more than one scene here.*/
  119.  
  120.     //-------------------------------------------------------
  121.  
  122.     /*Put any functions that are used in more than one scene here.*/
  123.  
  124.     //-------------------------------------------------------
  125.  
  126.     //} END MAIN FUNCTIONS
  127.  
  128.     //////////////////////////////////////////////////////////////////////////////////////////
  129.     // ==============
  130.     // SCENE 1: "Intro: Bedroom Wakeup Call"
  131.     // ==============
  132.     //{//////////////////////////////////////////////////////////////////////////////////////
  133.  
  134.          /////////////////////////////////////////
  135.          // General
  136.          //{//////////////////////////////////////
  137.          
  138.         //-------------------------------------------------------
  139.      
  140.         /*Put any variables that are used by many events in Scene 1 here.*/
  141.      
  142.         //-------------------------------------------------------
  143.      
  144.         /*Put any functions that are used in more than one event in Scene 1 here.*/
  145.        
  146.         ////////////////////////////
  147.         // Locks the starting bedroom buttons.
  148.         void LockBedroomDoor()
  149.         {
  150.             Button_SetLocked("home_door_panel_1",
  151.                 true,
  152.                 false);
  153.             Button_SetLocked("home_door_panel_2",
  154.                 true,
  155.                 false);
  156.         }
  157.        
  158.         //-------------------------------------------------------
  159.        
  160.         /////////////////////////////
  161.         // Unlocks the starting bedroom door + buttons.
  162.         void UnlockBedroomDoor()
  163.         {
  164.             Button_SetLocked("home_door_panel_1",
  165.                 false,
  166.                 true);
  167.             Button_SetLocked("home_door_panel_2",
  168.                 false,
  169.                 true);
  170.         }
  171.        
  172.         //-------------------------------------------------------
  173.        
  174.         // Unlocks the starting bedroom door + buttons.
  175.         // This function is timer ready.
  176.         void UnlockBedroomDoor(const tString &in)
  177.         {
  178.             Button_SetLocked("home_door_panel_1",
  179.                 false,
  180.                 true);
  181.             Button_SetLocked("home_door_panel_2",
  182.                 false,
  183.                 true);
  184.         }
  185.      
  186.         //-------------------------------------------------------
  187.        
  188.         //} END General
  189.      
  190.          /////////////////////////////////////////
  191.          // Event *Name Of Event*
  192.          //{//////////////////////////////////////
  193.      
  194.          //-------------------------------------------------------
  195.      
  196.          /*Put any variables that are only used in Scene X, Event X here.*/
  197.      
  198.          //-------------------------------------------------------
  199.      
  200.          /*Put any functionsthat are only used in Scene X, Event X here.*/
  201.          
  202.      
  203.          //-------------------------------------------------------
  204.      
  205.          //} END Event *Name Of Event*
  206.      
  207.      //} END SCENE 1: "Intro: Bedroom Wakeup Call"
  208.  
  209.  
  210.     /////////////////////////////////////////
  211.     // ==============
  212.     // TERMINALS
  213.     // ==============
  214.     //{//////////////////////////////////////
  215.  
  216.     //-------------------------------------------------------
  217.  
  218.         /////////////////////////////////////////
  219.         // Terminal "Bedroom Terminal"
  220.         //{//////////////////////////////////////
  221.  
  222.         //-------------------------------------------------------
  223.  
  224.         /*Put any variables that are only used Terminal here.*/
  225.  
  226.         //-------------------------------------------------------
  227.  
  228.         /*Put any functions that are only used Terminal here.*/
  229.  
  230.         //-------------------------------------------------------
  231.  
  232.         //} END Terminal "Bedroom Terminal"
  233.  
  234.     //} END TERMINALS
  235.  
  236. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement