2016-02-25 08:39:15 -05:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-03-05 15:44:39 -05:00
|
|
|
#ifndef TITANIC_STAR_CONTROL_SUB6_H
|
|
|
|
#define TITANIC_STAR_CONTROL_SUB6_H
|
2016-02-25 08:39:15 -05:00
|
|
|
|
2016-07-16 12:36:02 -04:00
|
|
|
#include "titanic/star_control/fmatrix.h"
|
|
|
|
|
2016-02-25 08:39:15 -05:00
|
|
|
namespace Titanic {
|
|
|
|
|
2017-03-02 21:54:22 -05:00
|
|
|
class CStarControlSub6 : public FMatrix {
|
2016-07-16 18:23:25 -04:00
|
|
|
private:
|
|
|
|
static CStarControlSub6 *_static;
|
|
|
|
public:
|
|
|
|
static void init();
|
|
|
|
static void deinit();
|
2016-07-17 23:18:06 -04:00
|
|
|
public:
|
2017-03-08 22:05:43 -05:00
|
|
|
FVector _vector;
|
2016-03-05 15:44:39 -05:00
|
|
|
public:
|
|
|
|
CStarControlSub6();
|
2016-07-16 18:23:25 -04:00
|
|
|
CStarControlSub6(int mode, double amount);
|
2016-07-17 16:43:53 -04:00
|
|
|
CStarControlSub6(const CStarControlSub6 *src);
|
2016-06-30 13:40:55 -04:00
|
|
|
|
2016-07-16 18:23:25 -04:00
|
|
|
/**
|
2017-03-12 19:55:56 -04:00
|
|
|
* Sets an identity matrix
|
2016-07-16 18:23:25 -04:00
|
|
|
*/
|
2017-03-12 19:55:56 -04:00
|
|
|
void identity();
|
2016-07-16 18:23:25 -04:00
|
|
|
|
2017-03-08 23:27:26 -05:00
|
|
|
/**
|
|
|
|
* Sets up a passed instance from the specified two other ones
|
|
|
|
*/
|
2017-03-11 15:03:34 -05:00
|
|
|
static CStarControlSub6 *setup(CStarControlSub6 *dest, const CStarControlSub6 *s2, const CStarControlSub6 *s3);
|
2017-03-08 23:27:26 -05:00
|
|
|
|
2016-07-16 18:23:25 -04:00
|
|
|
/**
|
|
|
|
* Sets the default data
|
|
|
|
*/
|
|
|
|
void set(int mode, double val);
|
2016-07-17 16:43:53 -04:00
|
|
|
|
|
|
|
void copyFrom(const CStarControlSub6 *src);
|
2017-03-08 23:27:26 -05:00
|
|
|
|
2017-03-11 14:30:31 -05:00
|
|
|
/**
|
|
|
|
* Copy from the specified matrix
|
|
|
|
*/
|
|
|
|
void copyFrom(const FMatrix &src);
|
|
|
|
|
2017-03-08 23:27:26 -05:00
|
|
|
void fn1(CStarControlSub6 *sub6);
|
2016-03-05 15:44:39 -05:00
|
|
|
};
|
2016-02-25 08:39:15 -05:00
|
|
|
|
|
|
|
} // End of namespace Titanic
|
2016-03-05 15:44:39 -05:00
|
|
|
|
|
|
|
#endif /* TITANIC_STAR_CONTROL_SUB6_H */
|