~ubuntu-branches/debian/sid/astromenace/sid

« back to all changes in this revision

Viewing changes to AstroMenaceSource/ScriptEngine/Script.h

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-04-09 02:04:25 UTC
  • Revision ID: package-import@ubuntu.com-20130409020425-a7fl9xk4diamw6di
Tags: upstream-1.3.1+repack
Import upstream version 1.3.1+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/************************************************************************************
 
2
 
 
3
        AstroMenace (Hardcore 3D space shooter with spaceship upgrade possibilities)
 
4
        Copyright © 2006-2012 Michael Kurinnoy, Viewizard
 
5
 
 
6
 
 
7
        AstroMenace is free software: you can redistribute it and/or modify
 
8
        it under the terms of the GNU General Public License as published by
 
9
        the Free Software Foundation, either version 3 of the License, or
 
10
        (at your option) any later version.
 
11
 
 
12
        AstroMenace is distributed in the hope that it will be useful,
 
13
        but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
15
        GNU General Public License for more details.
 
16
 
 
17
        You should have received a copy of the GNU General Public License
 
18
        along with AstroMenace. If not, see <http://www.gnu.org/licenses/>.
 
19
 
 
20
 
 
21
        Web Site: http://www.viewizard.com/
 
22
        Project: http://sourceforge.net/projects/openastromenace/
 
23
        E-mail: viewizard@viewizard.com
 
24
 
 
25
*************************************************************************************/
 
26
 
 
27
 
 
28
#ifndef SCRIPT_H
 
29
#define SCRIPT_H
 
30
 
 
31
#include "../Game.h"
 
32
 
 
33
 
 
34
 
 
35
 
 
36
//-----------------------------------------------------------------------------
 
37
// Основной класс сценария
 
38
//-----------------------------------------------------------------------------
 
39
class ScriptEngine
 
40
{
 
41
public:
 
42
 
 
43
        ScriptEngine();
 
44
        ~ScriptEngine();
 
45
 
 
46
        // запустить скрипт на выполнение
 
47
        bool    RunScript(const char *FileName, float InitTime);
 
48
 
 
49
 
 
50
        // проверяем скрипт
 
51
        bool    Update(float Time);
 
52
        // доп. проверка для TimeLine
 
53
        void    UpdateTimeLine();
 
54
        // последнее время выполнения команды
 
55
        float   TimeLastOp;
 
56
        // время старта скрипта
 
57
        float   StartTime;
 
58
        // разность между текущем временем и необходимым, нужно чтобы правильно считать положение при появлении
 
59
        float   TimeOpLag;
 
60
 
 
61
        // основной документ
 
62
        cXMLDocument    *xmlDoc;
 
63
        // текущий элемент
 
64
        cXMLEntry               *xmlEntry;
 
65
 
 
66
        // включен отладочный режим или нет... по умолчанию выключен
 
67
        bool    ShowDebugModeLine;
 
68
 
 
69
 
 
70
 
 
71
 
 
72
        bool NeedCheckSpaceShip;
 
73
        bool NeedCheckGroundObject;
 
74
        float EndDelayMissionComplete;
 
75
        float LastTimeMissionComplete;
 
76
 
 
77
        float AsterQuant;
 
78
        float AsterW;
 
79
        float AsterH;
 
80
        float AsterXPos;
 
81
        float AsterYPos;
 
82
        float AsterZPos;
 
83
        float AsterRealNeed;
 
84
        float AsterMaxSpeed;
 
85
        float AsterMinFastSpeed;
 
86
        float AsterLastTime;
 
87
        int AsterFastCount;
 
88
        bool AsterOn;
 
89
 
 
90
};
 
91
 
 
92
 
 
93
 
 
94
 
 
95
#endif // SCRIPT_H