Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
src
object
auto
autohuston.h
1
/*
2
* This file is part of the Colobot: Gold Edition source code
3
* Copyright (C) 2001-2014, Daniel Roux, EPSITEC SA & TerranovaTeam
4
* http://epsiteŃ.ch; http://colobot.info; http://github.com/colobot
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see http://gnu.org/licenses
18
*/
19
20
// autohuston.h
21
22
#pragma once
23
24
25
#include "object/auto/auto.h"
26
#include "
graphics/engine/particle.h
"
27
28
29
30
struct
HustonLens
31
{
32
int
parti;
33
Gfx::ParticleType
type;
34
Math::Vector
pos;
35
float
dim;
36
float
total;
37
float
off;
38
};
39
40
41
const
int
HUSTONMAXLENS = 20;
42
43
44
class
CAutoHuston
:
public
CAuto
45
{
46
public
:
47
CAutoHuston
(
CObject
*
object
);
48
~
CAutoHuston
();
49
50
void
DeleteObject(
bool
bAll=
false
);
51
52
void
Init();
53
void
Start(
int
param);
54
bool
EventProcess(
const
Event
&event);
55
bool
Abort();
56
Error
GetError();
57
58
bool
CreateInterface(
bool
bSelect);
59
60
protected
:
61
62
protected
:
63
float
m_progress;
64
float
m_speed;
65
HustonLens
m_lens[HUSTONMAXLENS];
66
int
m_lensTotal;
67
};
68
Gfx::ParticleType
ParticleType
Definition:
particle.h:60
CAuto
Definition:
auto.h:52
HustonLens
Definition:
autohuston.h:30
Error
Error
Type of error or info message.
Definition:
global.h:32
particle.h
Particle rendering - CParticle class (aka particle)
Math::Vector
3D (3x1) vector
Definition:
vector.h:52
Event
Event sent by system, interface or game.
Definition:
event.h:678
CObject
Definition:
object.h:357
CAutoHuston
Definition:
autohuston.h:44
Generated by
1.8.8