#include <Tutorial.h>
Public Methods | |
| Tutorial (void) | |
| ~Tutorial () | |
| void | update () |
| void | intro () |
| void | overhead () |
| void | battleMode () |
| void | city () |
| void | unit () |
| void | overheadWhileBattle () |
| void | battleCircle () |
| void | twoBattlesAtOnce () |
| void | stopTutorial () |
Private Types | |
| enum | State { NOT_PLAYED, PLAYED } |
Private Attributes | |
| int | m_ticksRemainingBeforeCurrentTutorialItemStops |
| State | m_intro |
| State | m_overhead |
| State | m_battleMode |
| State | m_city |
| State | m_unit |
| State | m_overheadWhileBattle |
| State | m_battleCircle |
| State | m_twoBattlesAtOnce |
|
|
Definition at line 37 of file Tutorial.h.
00037 {NOT_PLAYED, PLAYED};
|
|
|
Definition at line 21 of file Tutorial.cpp.
00021 : m_ticksRemainingBeforeCurrentTutorialItemStops(0), m_intro(NOT_PLAYED), m_overhead(NOT_PLAYED), 00022 m_battleMode(NOT_PLAYED), m_city(NOT_PLAYED), m_unit(NOT_PLAYED), m_overheadWhileBattle(NOT_PLAYED), m_battleCircle(NOT_PLAYED), 00023 m_twoBattlesAtOnce(NOT_PLAYED) 00024 { 00025 } |
|
|
Definition at line 27 of file Tutorial.cpp.
00028 {
00029 //nothing to do
00030 }
|
|
|
Definition at line 118 of file Tutorial.cpp. References m_battleCircle, m_ticksRemainingBeforeCurrentTutorialItemStops, NOT_PLAYED, Sound::play(), and PLAYED. Referenced by Overhead::overheadRender().
00119 {
00120 if (m_ticksRemainingBeforeCurrentTutorialItemStops == 0 && m_battleCircle == NOT_PLAYED)
00121 {
00122 Sound::play(Sound::SMPL_TUTORIAL_BATTLE_CIRCLE, 1.0f);
00123 m_battleCircle = PLAYED;
00124 const int SAMPLE_LENGTH(25);
00125 const int ONE_SECOND_OF_TICKS(60);
00126 m_ticksRemainingBeforeCurrentTutorialItemStops = SAMPLE_LENGTH * ONE_SECOND_OF_TICKS;
00127 }
00128 }
|
|
|
Definition at line 68 of file Tutorial.cpp. References m_battleMode, m_ticksRemainingBeforeCurrentTutorialItemStops, NOT_PLAYED, Sound::play(), and PLAYED. Referenced by Overhead::doTutorial().
00069 {
00070 if (m_ticksRemainingBeforeCurrentTutorialItemStops == 0 && m_battleMode == NOT_PLAYED)
00071 {
00072 Sound::play(Sound::SMPL_TUTORIAL_BATTLE_MODE, 1.0f);
00073 m_battleMode = PLAYED;
00074 const int SAMPLE_LENGTH(35);
00075 const int ONE_SECOND_OF_TICKS(60);
00076 m_ticksRemainingBeforeCurrentTutorialItemStops = SAMPLE_LENGTH * ONE_SECOND_OF_TICKS;
00077 }
00078 }
|
|
|
Definition at line 80 of file Tutorial.cpp. References m_city, m_ticksRemainingBeforeCurrentTutorialItemStops, NOT_PLAYED, Sound::play(), and PLAYED. Referenced by Overhead::doTutorial().
00081 {
00082 if (m_ticksRemainingBeforeCurrentTutorialItemStops == 0 && m_city == NOT_PLAYED)
00083 {
00084 Sound::play(Sound::SMPL_TUTORIAL_CITIES, 1.0f);
00085 m_city = PLAYED;
00086 const int SAMPLE_LENGTH(35);
00087 const int ONE_SECOND_OF_TICKS(60);
00088 m_ticksRemainingBeforeCurrentTutorialItemStops = SAMPLE_LENGTH * ONE_SECOND_OF_TICKS;
00089
00090 }
00091 }
|
|
|
Definition at line 44 of file Tutorial.cpp. References m_intro, m_ticksRemainingBeforeCurrentTutorialItemStops, NOT_PLAYED, Sound::play(), and PLAYED. Referenced by Overhead::overhead_update().
00045 {
00046 if (m_ticksRemainingBeforeCurrentTutorialItemStops == 0 && m_intro == NOT_PLAYED)
00047 {
00048 Sound::play(Sound::SMPL_TUTORIAL_INTRO, 1.0f);
00049 m_intro = PLAYED;
00050 const int SAMPLE_LENGTH(20);
00051 const int ONE_SECOND_OF_TICKS(60);
00052 m_ticksRemainingBeforeCurrentTutorialItemStops = SAMPLE_LENGTH * ONE_SECOND_OF_TICKS;
00053 }
00054 }
|
|
|
Definition at line 56 of file Tutorial.cpp. References m_overhead, m_ticksRemainingBeforeCurrentTutorialItemStops, NOT_PLAYED, Sound::play(), and PLAYED.
00057 {
00058 if (m_ticksRemainingBeforeCurrentTutorialItemStops == 0 && m_overhead == NOT_PLAYED)
00059 {
00060 Sound::play(Sound::SMPL_TUTORIAL_OVERHEAD, 1.0f);
00061 m_overhead = PLAYED;
00062 const int SAMPLE_LENGTH(25);
00063 const int ONE_SECOND_OF_TICKS(60);
00064 m_ticksRemainingBeforeCurrentTutorialItemStops = SAMPLE_LENGTH * ONE_SECOND_OF_TICKS;
00065 }
00066 }
|
|
|
Definition at line 106 of file Tutorial.cpp. References m_overheadWhileBattle, m_ticksRemainingBeforeCurrentTutorialItemStops, NOT_PLAYED, Sound::play(), and PLAYED. Referenced by Overhead::processOverheadInput().
00107 {
00108 if (m_ticksRemainingBeforeCurrentTutorialItemStops == 0 && m_overheadWhileBattle == NOT_PLAYED)
00109 {
00110 Sound::play(Sound::SMPL_TUTORIAL_OVERHEAD_WHILE_BATTLE, 1.0f);
00111 m_overheadWhileBattle = PLAYED;
00112 const int SAMPLE_LENGTH(10);
00113 const int ONE_SECOND_OF_TICKS(60);
00114 m_ticksRemainingBeforeCurrentTutorialItemStops = SAMPLE_LENGTH * ONE_SECOND_OF_TICKS;
00115 }
00116 }
|
|
|
Definition at line 142 of file Tutorial.cpp. References m_battleCircle, m_battleMode, m_city, m_intro, m_overhead, m_overheadWhileBattle, m_twoBattlesAtOnce, m_unit, PLAYED, Sound::SMPL_TUTORIAL_TWO_BATTLES_AT_ONCE, and Sound::stop(). Referenced by Overhead::overhead_update().
00143 {
00144 for(int i(Sound::SMPL_TUTORIAL_CITIES); i < Sound::SMPL_TUTORIAL_TWO_BATTLES_AT_ONCE; ++i) Sound::stop(i);
00145 m_intro = PLAYED;
00146 m_overhead = PLAYED;
00147 m_battleMode = PLAYED;
00148 m_city = PLAYED;
00149 m_unit = PLAYED;
00150 m_overheadWhileBattle = PLAYED;
00151 m_battleCircle = PLAYED;
00152 m_twoBattlesAtOnce = PLAYED;
00153 }
|
|
|
Definition at line 130 of file Tutorial.cpp. References m_ticksRemainingBeforeCurrentTutorialItemStops, m_twoBattlesAtOnce, NOT_PLAYED, Sound::play(), and PLAYED. Referenced by Overhead::doTutorial().
00131 {
00132 if (m_ticksRemainingBeforeCurrentTutorialItemStops == 0 && m_twoBattlesAtOnce == NOT_PLAYED)
00133 {
00134 Sound::play(Sound::SMPL_TUTORIAL_TWO_BATTLES_AT_ONCE, 1.0f);
00135 m_twoBattlesAtOnce = PLAYED;
00136 const int SAMPLE_LENGTH(15);
00137 const int ONE_SECOND_OF_TICKS(60);
00138 m_ticksRemainingBeforeCurrentTutorialItemStops = SAMPLE_LENGTH * ONE_SECOND_OF_TICKS;
00139 }
00140 }
|
|
|
Definition at line 93 of file Tutorial.cpp. References m_ticksRemainingBeforeCurrentTutorialItemStops, m_unit, NOT_PLAYED, Sound::play(), and PLAYED. Referenced by Overhead::doTutorial().
00094 {
00095 if (m_ticksRemainingBeforeCurrentTutorialItemStops == 0 && m_unit == NOT_PLAYED)
00096 {
00097 Sound::play(Sound::SMPL_TUTORIAL_UNITS, 1.0f);
00098 m_unit = PLAYED;
00099 const int SAMPLE_LENGTH(35);
00100 const int ONE_SECOND_OF_TICKS(60);
00101 m_ticksRemainingBeforeCurrentTutorialItemStops = SAMPLE_LENGTH * ONE_SECOND_OF_TICKS;
00102
00103 }
00104 }
|
|
|
Definition at line 32 of file Tutorial.cpp. References m_ticksRemainingBeforeCurrentTutorialItemStops.
00033 {
00034 if (m_ticksRemainingBeforeCurrentTutorialItemStops > 0) --m_ticksRemainingBeforeCurrentTutorialItemStops;
00035 }
|
|
|
Definition at line 45 of file Tutorial.h. Referenced by battleCircle(), and stopTutorial(). |
|
|
Definition at line 41 of file Tutorial.h. Referenced by battleMode(), and stopTutorial(). |
|
|
Definition at line 42 of file Tutorial.h. Referenced by city(), and stopTutorial(). |
|
|
Definition at line 39 of file Tutorial.h. Referenced by intro(), and stopTutorial(). |
|
|
Definition at line 40 of file Tutorial.h. Referenced by overhead(), and stopTutorial(). |
|
|
Definition at line 44 of file Tutorial.h. Referenced by overheadWhileBattle(), and stopTutorial(). |
|
|
Definition at line 38 of file Tutorial.h. Referenced by battleCircle(), battleMode(), city(), intro(), overhead(), overheadWhileBattle(), twoBattlesAtOnce(), unit(), and update(). |
|
|
Definition at line 46 of file Tutorial.h. Referenced by stopTutorial(), and twoBattlesAtOnce(). |
|
|
Definition at line 43 of file Tutorial.h. Referenced by stopTutorial(), and unit(). |
1.3-rc2