Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
object
motion
motionbee.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
// motionbee.h
21
22
#pragma once
23
24
25
#include "object/motion/motion.h"
26
27
28
29
enum
MotionBeeAction
30
{
31
MB_MARCH = 0,
32
MB_SPEC = 1
33
};
34
35
enum
MotionBeeSpecialAction
36
{
37
MBS_HOLD = 0,
38
MBS_BURN = 1,
39
MBS_RUIN = 2
40
};
41
42
43
class
CMotionBee
:
public
CMotion
44
{
45
public
:
46
CMotionBee
(
CObject
*
object
);
47
~
CMotionBee
();
48
49
void
DeleteObject(
bool
bAll=
false
);
50
bool
Create(
Math::Vector
pos,
float
angle,
ObjectType
type,
float
power);
51
bool
EventProcess(
const
Event
&event);
52
53
protected
:
54
void
CreatePhysics();
55
bool
EventFrame(
const
Event
&event);
56
57
protected
:
58
float
m_armMember;
59
float
m_armTimeAbs;
60
float
m_armTimeMarch;
61
float
m_armTimeAction;
62
short
m_armAngles[3*3*3*3*2];
63
int
m_armTimeIndex;
64
int
m_armPartIndex;
65
int
m_armMemberIndex;
66
int
m_armLastAction;
67
bool
m_bArmStop;
68
};
69
CMotionBee
Definition:
motionbee.h:43
ObjectType
ObjectType
Type of game object.
Definition:
object.h:51
CMotion
Definition:
motion.h:48
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
Generated by
1.8.9.1