some changes for preparing to refactoring

This commit is contained in:
Andrei Yankovich 2023-08-04 23:30:58 +02:00
parent d1c1d18157
commit dcf74f0bf5
124 changed files with 282 additions and 282 deletions

View File

@ -5,7 +5,7 @@
# of this license document, but changing it is not allowed.
#
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.19)
project(Butterfly LANGUAGES CXX)
if(TARGET ${PROJECT_NAME})
message("The ${PROJECT_NAME} arledy included in main Project")
@ -17,7 +17,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (ANDROID OR IOS)

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -9,7 +9,7 @@
#include "user.h"
#include <Crawl/iitem.h>
namespace CRAWL {
namespace ButterflyEngine {
AvailableLevelsModel::AvailableLevelsModel() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include "baseuserlistmodel.h"
namespace CRAWL {
namespace ButterflyEngine {
class User;
class IItem;

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,7 +11,7 @@
#include "store.h"
#include <Crawl/iitem.h>
namespace CRAWL {
namespace ButterflyEngine {
BaseUserListModel::BaseUserListModel() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include <QAbstractListModel>
namespace CRAWL {
namespace ButterflyEngine {
class User;
class IItem;

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "defaultbackgroundai.h"
#include <QTimer>
namespace CRAWL {
namespace ButterflyEngine {
DefaultBackgroundAI::DefaultBackgroundAI() {
_timer = new QTimer();

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,7 +12,7 @@
#include <Crawl/iai.h>
class QTimer;
namespace CRAWL {
namespace ButterflyEngine {
class DefaultBackgroundAI: public DefaultControl, public IAI {
Q_OBJECT

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -21,7 +21,7 @@
#include "QtConcurrent"
#include "store.h"
namespace CRAWL {
namespace ButterflyEngine {
Engine::Engine(QObject *parent): QObject(parent) {
_store = new Store();

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -14,7 +14,7 @@
#include <Crawl/diff.h>
#include <Crawl/ilevel.h>
namespace CRAWL {
namespace ButterflyEngine {
class IWorld;
class Store;
@ -78,7 +78,7 @@ public:
QObject* world() const;
/**
* @brief currentUser This method return pointer too current user.
* @brief currentUser This method return pointer to current user.
* @return pointer too current user.
*/
User *currentUser() const;

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,7 +12,7 @@
#include <QtConcurrent>
#include <thread>
namespace CRAWL {
namespace ButterflyEngine {
EventServer::EventServer(IWorld *instance) {
debug_assert(instance, "Invalid World pointer in EventServer");

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -15,7 +15,7 @@
#ifndef EVENTSERVER_H
#define EVENTSERVER_H
namespace CRAWL {
namespace ButterflyEngine {
class IWorldItem;
class IWorld;

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -13,7 +13,7 @@
#include <quasarapp.h>
namespace CRAWL {
namespace ButterflyEngine {
MainMenuModel::MainMenuModel(QObject *ptr): QObject (ptr) {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -15,7 +15,7 @@ namespace ViewSolutions {
class ListViewModel;
}
namespace CRAWL {
namespace ButterflyEngine {
class WorldInfo;
class StoreViewModel;

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -9,7 +9,7 @@
#include "store.h"
#include <Crawl/iitem.h>
namespace CRAWL {
namespace ButterflyEngine {
Store::Store()
{

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,7 +11,7 @@
#include "user.h"
namespace CRAWL {
namespace ButterflyEngine {
class IItem;

View File

@ -4,7 +4,7 @@
#include <Crawl/iitem.h>
namespace CRAWL {
namespace ButterflyEngine {
StoreViewModel::StoreViewModel() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include "baseuserlistmodel.h"
namespace CRAWL {
namespace ButterflyEngine {
class Store;
class User;

View File

@ -1,12 +1,12 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "targetdirection.h"
namespace CRAWL {
namespace ButterflyEngine {
TargetDirection::TargetDirection(float velosityMagnitude,
float velosityMagnitudeVariation,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,7 +12,7 @@
#ifndef TARGETDIRECTION_H
#define TARGETDIRECTION_H
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The TargetDirection class.

View File

@ -1,12 +1,12 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "user.h"
namespace CRAWL {
namespace ButterflyEngine {
constexpr float tierMul = 1.2;
constexpr int firstTierCount = 10;

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,7 +11,7 @@
#ifndef USER_H
#define USER_H
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The User class This is internal class for collection all user data and user state.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "vectordirection.h"
namespace CRAWL {
namespace ButterflyEngine {
VectorDirection::VectorDirection(const QVector3D &direction,
const QVector3D &directionValatility,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -13,7 +13,7 @@
#include <QVector3D>
#include "global.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The VectorDirection class.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,12 +1,12 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "autogenerateclaster.h"
namespace CRAWL {
namespace ButterflyEngine {
AutoGenerateClaster::AutoGenerateClaster() {
}

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,12 +10,12 @@
#include "claster.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The AutoGenerateClaster class hs support the registration default claster item class and factory method for the items.
*/
class CRAWL_EXPORT AutoGenerateClaster: public Claster
class BUTTERFLY_ENGINE_EXPORT AutoGenerateClaster: public Claster
{
public:
AutoGenerateClaster();

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -9,7 +9,7 @@
#include "basemotion.h"
#include "Crawl/guiobject.h"
namespace CRAWL {
namespace ButterflyEngine {
BaseMotion::BaseMotion() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -13,7 +13,7 @@
#include <QQuaternion>
namespace CRAWL {
namespace ButterflyEngine {
class GuiObject;
@ -24,7 +24,7 @@ class GuiObject;
* * renderRotation
*
*/
class CRAWL_EXPORT BaseMotion : public virtual IRender
class BUTTERFLY_ENGINE_EXPORT BaseMotion : public virtual IRender
{
public:
BaseMotion();

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include <Crawl/guiobject.h>
#include "cmath"
namespace CRAWL {
namespace ButterflyEngine {
CircularMotion::CircularMotion(const QVector3D *center) {
_center = center;

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,7 +12,7 @@
#include <QVector3D>
namespace CRAWL {
namespace ButterflyEngine {
class GuiObject;
@ -20,7 +20,7 @@ class GuiObject;
* @brief The CircularMotion class. This class contains render function for the moving guiobject by round.
* @note For motion set motion asix and angular velocity
*/
class CRAWL_EXPORT CircularMotion: public BaseMotion
class BUTTERFLY_ENGINE_EXPORT CircularMotion: public BaseMotion
{
public:
CircularMotion(const QVector3D* center);

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "claster.h"
#include "Crawl/singleclasterworlditem.h"
namespace CRAWL {
namespace ButterflyEngine {
Claster::Claster() {}

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include "Crawl/iworlditem.h"
namespace CRAWL {
namespace ButterflyEngine {
class ClasterItem;
@ -20,7 +20,7 @@ class ClasterItem;
* For example snake with 20 points of the snake blocks.
* @note The claster object is extansion for the IWorldItems objects.
*/
class CRAWL_EXPORT Claster
class BUTTERFLY_ENGINE_EXPORT Claster
{
public:
Claster();

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include <math.h>
#include <Crawl/guiobject.h>
namespace CRAWL {
namespace ButterflyEngine {
MovableObject::MovableObject() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -13,7 +13,7 @@
#include <QQuaternion>
#include <QVector3D>
namespace CRAWL {
namespace ButterflyEngine {
class GuiObject;
@ -27,7 +27,7 @@ class GuiObject;
* * **Angular velocity** This property sets spead of the angle moving.
* * **Braking force** This property are delta decriment the Power of the movable vector on time.
*/
class CRAWL_EXPORT MovableObject: public BaseMotion
class BUTTERFLY_ENGINE_EXPORT MovableObject: public BaseMotion
{
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -9,7 +9,7 @@
#include <Crawl/guiobject.h>
namespace CRAWL {
namespace ButterflyEngine {
RotationAroundAxis::RotationAroundAxis(): CircularMotion(nullptr) {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include "circularmotion.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The RotationAroundAxis class This class provide the rotation of our axis

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "affector.h"
namespace CRAWL {
namespace ButterflyEngine {
Affector::Affector(const QString &name,
const QString &viewTempalte,

View File

@ -4,7 +4,7 @@
#include "iworlditem.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The Affector class is an abstract base class of affectors like Gravity3D, Wander3D, and PointRotator3D. By default affectors affect all particles in the system,
@ -37,7 +37,7 @@ namespace CRAWL {
@endcode
*/
class CRAWL_EXPORT Affector : public IWorldItem
class BUTTERFLY_ENGINE_EXPORT Affector : public IWorldItem
{
Q_OBJECT

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "Extensions/claster.h"
#include "clasteritem.h"
namespace CRAWL {
namespace ButterflyEngine {
ClasterItem::ClasterItem(const QString &name,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -13,7 +13,7 @@
#ifndef CLASTERITEM_H
#define CLASTERITEM_H
namespace CRAWL {
namespace ButterflyEngine {
class Claster;
@ -21,7 +21,7 @@ class Claster;
* @brief The ClasterItem class This is item of the claster object. Thi class can be used as a one element of the claster class.
* @note This object invoke the Claster::remove method in destructor.
*/
class CRAWL_EXPORT ClasterItem: public IWorldItem
class BUTTERFLY_ENGINE_EXPORT ClasterItem: public IWorldItem
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -25,7 +25,7 @@
#include "worldstatus.h"
#include "user.h"
namespace CRAWL {
namespace ButterflyEngine {
QByteArray ClientApp::initTheme() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -17,7 +17,7 @@
class QQmlApplicationEngine;
inline void initCrawlResources() { Q_INIT_RESOURCE(Crawl); }
namespace CRAWL {
namespace ButterflyEngine {
class Engine;
@ -29,7 +29,7 @@ class Store;
/**
* @brief The ClientApp class This is main class of the Game engine.
*/
class CRAWL_EXPORT ClientApp : public QObject
class BUTTERFLY_ENGINE_EXPORT ClientApp : public QObject
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -13,7 +13,7 @@
#include "iworlditem.h"
#include "math.h"
namespace CRAWL {
namespace ButterflyEngine {
template <class Sun, class Moon>
@ -26,11 +26,11 @@ template <class Sun, class Moon>
* **Example:**
*
* ```cpp
* CRAWL::WorldRule *World::initWorldRules() {
* ButterflyEngine::WorldRule *World::initWorldRules() {
using Day = CRAWL::Day<CRAWL::Sun, CRAWL::Moon>;
using Day = ButterflyEngine::Day<ButterflyEngine::Sun, ButterflyEngine::Moon>;
return new CRAWL::WorldRule {
return new ButterflyEngine::WorldRule {
{0, {
{registerObject<Day>(), 1},
}

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -7,7 +7,7 @@
#include "dayitem.h"
namespace CRAWL {
namespace ButterflyEngine {
DayItem::DayItem(
const QVector3D* center,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include "iworldlight.h"
#include "Extensions/circularmotion.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The DayItem class This is base class of the sun of moon of anther movable around center objects.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -7,7 +7,7 @@
#include "defaultcontrol.h"
namespace CRAWL {
namespace ButterflyEngine {
DefaultControl::DefaultControl() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,13 +10,13 @@
#include "player.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The DefaultControl class This class contains default implementation of the game menu.
*/
class CRAWL_EXPORT DefaultControl : public Player {
class BUTTERFLY_ENGINE_EXPORT DefaultControl : public Player {
Q_OBJECT
public:
DefaultControl();

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -7,7 +7,7 @@
#include "defaultlight.h"
namespace CRAWL {
namespace ButterflyEngine {
DefaultLight::DefaultLight(): IWorldLight(AUTO_CLASS_NAME) {
setColor("#fff8e7");

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,7 +11,7 @@
#include "iworldlight.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The DefaultLight class This is default implementation of the world light.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "diff.h"
namespace CRAWL {
namespace ButterflyEngine {
QList<int> Diff::getAddedIds() const {
return addedIds;

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,7 +11,7 @@
#include <QList>
#include <QObject>
namespace CRAWL {
namespace ButterflyEngine {
class GuiObject;
@ -30,6 +30,6 @@ public:
};
}
Q_DECLARE_METATYPE(CRAWL::Diff)
Q_DECLARE_METATYPE(ButterflyEngine::Diff)
#endif // DIFF_H

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "dynamicwint.h"
namespace CRAWL {
namespace ButterflyEngine {
DynamicWint::DynamicWint() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,12 +10,12 @@
#define DYNAMICWINT_H
#include "wint.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The DynamicWint class This implementation dynamicly change wint direction and magnituede per day.
*/
class CRAWL_EXPORT DynamicWint : public Wint
class BUTTERFLY_ENGINE_EXPORT DynamicWint : public Wint
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "fire.h"
#include "vectordirection.h"
namespace CRAWL {
namespace ButterflyEngine {
Fire::Fire(): ParticleEffect(AUTO_CLASS_NAME, "qrc:/CrawlModule/particles/Fire.qml") {
@ -27,7 +27,7 @@ Fire::Fire(): ParticleEffect(AUTO_CLASS_NAME, "qrc:/CrawlModule/particles/Fire.q
setFireStrength(100);
}
void CRAWL::Fire::onIntersects(const IWorldItem *) {
void ButterflyEngine::Fire::onIntersects(const IWorldItem *) {
}

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include "particleeffect.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The Fire class This is default implementation of the Fire on game.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#ifndef GAMERESULT_H
#define GAMERESULT_H
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The GameResult struct This is simple structure with game statistic.

View File

@ -4,9 +4,9 @@
#include <QtCore/qglobal.h>
#if defined(CRAWL_LIBRARY)
# define CRAWL_EXPORT Q_DECL_EXPORT
# define BUTTERFLY_ENGINE_EXPORT Q_DECL_EXPORT
#else
# define CRAWL_EXPORT Q_DECL_IMPORT
# define BUTTERFLY_ENGINE_EXPORT Q_DECL_IMPORT
#endif
#endif // QTSECRET_GLOBAL_H

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -9,7 +9,7 @@
#include "groundclaster.h"
#include "iworld.h"
namespace CRAWL {
namespace ButterflyEngine {
GroundClaster::GroundClaster(const QString &name,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,7 +12,7 @@
#include "global.h"
#include "Crawl/iworlditem.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The GroundClaster class This is main control class for background plates of the world.
@ -20,7 +20,7 @@ namespace CRAWL {
*
* @note use This class with child classes of the GroundTile class.
*/
class CRAWL_EXPORT GroundClaster: public IWorldItem, public AutoGenerateClaster {
class BUTTERFLY_ENGINE_EXPORT GroundClaster: public IWorldItem, public AutoGenerateClaster {
Q_OBJECT

View File

@ -1,5 +1,5 @@
#include "groundtile.h"
namespace CRAWL {
namespace ButterflyEngine {
GroundTile::GroundTile(const QString &name,
const QString &viewTempalte,
@ -8,7 +8,7 @@ GroundTile::GroundTile(const QString &name,
}
void CRAWL::GroundTile::render(unsigned int) {
void ButterflyEngine::GroundTile::render(unsigned int) {
}
}

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,14 +11,14 @@
#include "clasteritem.h"
#include "iworlditem.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The GroundTile class It reimplementation of the ClasterItem. The groundTile do not heve own render function because the GroundClaster class control position of this class.
*
* @note use This class with the GroundClaster class.
*/
class CRAWL_EXPORT GroundTile: public ClasterItem
class BUTTERFLY_ENGINE_EXPORT GroundTile: public ClasterItem
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "clasteritem.h"
#include "groupobject.h"
namespace CRAWL {
namespace ButterflyEngine {
GroupObject::GroupObject() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -13,7 +13,7 @@
#include <Crawl/irender.h>
#include <Extensions/claster.h>
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The Localpropertys struct This structure contains local propertys of the all childs object of a GroupObject class object.

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -9,7 +9,7 @@
#include <QVector3D>
namespace CRAWL {
namespace ButterflyEngine {
GuiObject::GuiObject(const QString &name, const QString &viewTempalte, QObject *ptr):

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -20,7 +20,7 @@
*/
#define AUTO_CLASS_NAME typeid(this).name()
namespace CRAWL {
namespace ButterflyEngine {
/**
@ -58,7 +58,7 @@ namespace CRAWL {
* }
* ```
*/
class CRAWL_EXPORT GuiObject: public ViewTemaplateModel, virtual public IRender {
class BUTTERFLY_ENGINE_EXPORT GuiObject: public ViewTemaplateModel, virtual public IRender {
Q_OBJECT
Q_PROPERTY(int guiId READ guiId NOTIFY guiIdChanged)
Q_PROPERTY(QString color READ color WRITE setColor NOTIFY colorChanged)

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -9,7 +9,7 @@
#include "clasteritem.h"
#include <QtMath>
namespace CRAWL {
namespace ButterflyEngine {
Layout::Layout() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,7 +11,7 @@
#include <Crawl/groupobject.h>
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The LayoutType enum Lists the shapes to convert the group object to.
@ -49,13 +49,13 @@ enum LayoutType {
*
* ```cpp
*
* class GroupObjObstacle: public CRAWL::Layout, public CRAWL::IWorldItem {
* class GroupObjObstacle: public ButterflyEngine::Layout, public ButterflyEngine::IWorldItem {
*
* // sets the distance to the object from the center.
* setDistance(20);
*
* // Set the property of grouping objects
* changeLayout(CRAWL::LayoutType::CIRCLE);
* changeLayout(ButterflyEngine::LayoutType::CIRCLE);
*
* for(int i(0); i < 20; i++) {
* add(new BoxItem);

View File

@ -1,12 +1,12 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "moon.h"
namespace CRAWL {
namespace ButterflyEngine {
Moon::Moon(const QVector3D* center):
DayItem(center, AUTO_CLASS_NAME) {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,12 +11,12 @@
#include "Crawl/dayitem.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The Moon class This is default implementation of the moon for the Dat class.
*/
class CRAWL_EXPORT Moon: public DayItem {
class BUTTERFLY_ENGINE_EXPORT Moon: public DayItem {
Q_OBJECT
public:
Moon(const QVector3D *center);

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -9,7 +9,7 @@
#include "particleeffect.h"
#include "targetdirection.h"
#include "vectordirection.h"
namespace CRAWL {
namespace ButterflyEngine {
ParticleEffect::ParticleEffect(const QString &name,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,7 +11,7 @@
#include "iworlditem.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
@ -44,7 +44,7 @@ At least one emitter is required to have particles in the ParticleSystem3D.
@endcode
*/
class CRAWL_EXPORT ParticleEffect : public IWorldItem
class BUTTERFLY_ENGINE_EXPORT ParticleEffect : public IWorldItem
{
Q_OBJECT
/**

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "defaultcontrol.h"
#include "playableobject.h"
namespace CRAWL {
namespace ButterflyEngine {
PlayableObject::PlayableObject(const QString &name,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,7 +12,7 @@
#include "iworlditem.h"
#include "Extensions/movableobject.h"
namespace CRAWL {
namespace ButterflyEngine {
class IControl;
@ -21,7 +21,7 @@ class IControl;
* @brief The PlayableObject class support works withe the IControl child classes.
* **How to is works**? You need to override the PlayableObject::setControl method for adding your own cpntroll classes. By Default This class use The DefaultControl class.
*/
class CRAWL_EXPORT PlayableObject: public IWorldItem, public MovableObject {
class BUTTERFLY_ENGINE_EXPORT PlayableObject: public IWorldItem, public MovableObject {
Q_OBJECT
public:
PlayableObject(const QString& name,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "player.h"
#include <user.h>
namespace CRAWL {
namespace ButterflyEngine {
Player::Player() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,14 +12,14 @@
#include "icontrol.h"
namespace CRAWL {
namespace ButterflyEngine {
class User;
/**
* @brief The Player class is main class of users.
*/
class CRAWL_EXPORT Player: public IControl
class BUTTERFLY_ENGINE_EXPORT Player: public IControl
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "previewcontrol.h"
namespace CRAWL {
namespace ButterflyEngine {
PreviewControl::PreviewControl() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,12 +10,12 @@
#include "icontrol.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The PreviewControl class This is base class of the preview popup control.
*/
class CRAWL_EXPORT PreviewControl: public IControl
class BUTTERFLY_ENGINE_EXPORT PreviewControl: public IControl
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -10,7 +10,7 @@
#include "singleclasterworlditem.h"
#include "quasarapp.h"
namespace CRAWL {
namespace ButterflyEngine {
SingleClasterWorldItem::SingleClasterWorldItem(const QString &name,

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,7 +11,7 @@
#include "clasteritem.h"
namespace CRAWL {
namespace ButterflyEngine {
class Claster;
@ -19,7 +19,7 @@ class Claster;
* @brief The SingleClasterWorldItem class This is wraper of the OWorldOitem for the controll parent clasters.
* This object can belong to only one cluster in one time
*/
class CRAWL_EXPORT SingleClasterWorldItem: public ClasterItem
class BUTTERFLY_ENGINE_EXPORT SingleClasterWorldItem: public ClasterItem
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,7 +12,7 @@
#include <cmath>
#include "iworld.h"
namespace CRAWL {
namespace ButterflyEngine {
Snake::Snake(const QString &name, const QString &viewTempalte, QObject *ptr):
@ -104,7 +104,7 @@ void Snake::onTap() {
setMovableVector(_vectors[_clickIndex++ % 2]);
}
float CRAWL::Snake::getValueFromMap(const QMap<float, float> &map,
float ButterflyEngine::Snake::getValueFromMap(const QMap<float, float> &map,
float position,
float defaultValue) {
auto it = map.cbegin();

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,14 +12,14 @@
#include "playableobject.h"
#include "Extensions/autogenerateclaster.h"
namespace CRAWL {
namespace ButterflyEngine {
class SnakeItem;
/**
* @brief The Snake class This class implement render mehod for snake object.
*/
class CRAWL_EXPORT Snake : public PlayableObject, public AutoGenerateClaster, public IItem
class BUTTERFLY_ENGINE_EXPORT Snake : public PlayableObject, public AutoGenerateClaster, public IItem
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -8,7 +8,7 @@
#include "snake.h"
#include "snakeitem.h"
namespace CRAWL {
namespace ButterflyEngine {
SnakeItem::SnakeItem(const QString &name, const QString &viewTempalte, QObject *ptr):

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -13,10 +13,10 @@
#include "singleclasterworlditem.h"
#include "Extensions/movableobject.h"
namespace CRAWL {
namespace ButterflyEngine {
class CRAWL_EXPORT SnakeItem: public SingleClasterWorldItem, public MovableObject
class BUTTERFLY_ENGINE_EXPORT SnakeItem: public SingleClasterWorldItem, public MovableObject
{
Q_OBJECT
public:

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -7,7 +7,7 @@
#include "startdata.h"
namespace CRAWL {
namespace ButterflyEngine {
StartData::StartData() {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -12,7 +12,7 @@
#ifndef STARTDATA_H
#define STARTDATA_H
namespace CRAWL {
namespace ButterflyEngine {
class User;
class PlayableObject;
@ -20,7 +20,7 @@ class PlayableObject;
/**
* @brief The StartData class This class contains arguments for starting new game session.
*/
class CRAWL_EXPORT StartData
class BUTTERFLY_ENGINE_EXPORT StartData
{
public:
StartData();

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -7,7 +7,7 @@
#include "sun.h"
namespace CRAWL {
namespace ButterflyEngine {
Sun::Sun(const QVector3D* center):
DayItem(center, AUTO_CLASS_NAME) {

View File

@ -1,5 +1,5 @@
//#
//# Copyright (C) 2021-2021 QuasarApp.
//# Copyright (C) 2021-2024 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
@ -11,12 +11,12 @@
#include "Crawl/dayitem.h"
namespace CRAWL {
namespace ButterflyEngine {
/**
* @brief The Sun class This is default implementation of the sun for the Day class.
*/
class CRAWL_EXPORT Sun: public DayItem
class BUTTERFLY_ENGINE_EXPORT Sun: public DayItem
{
Q_OBJECT
public:

Some files were not shown because too many files have changed in this diff Show More