final ports and first fixes
This commit is contained in:
1 parent
77690cbd96
commit
6f3556009a
23 files changed
+2302
-41
No files matched your search
@@ -0,0 +1,87 @@
|
||||
// This file is part of c-evo-evo.
|
||||
//
|
||||
// This software is governed by the CeCILL license under French law and
|
||||
// abiding by the rules of distribution of free software. You can use,
|
||||
// modify and/or redistribute the software under the terms of the CeCILL
|
||||
// license as circulated by CEA, CNRS and INRIA at the following URL
|
||||
// "http://www.cecill.info".
|
||||
//
|
||||
// As a counterpart to the access to the source code and rights to copy,
|
||||
// modify and redistribute granted by the license, users are provided only
|
||||
// with a limited warranty and the software's author, the holder of the
|
||||
// economic rights, and the successive licensors have only limited
|
||||
// liability.
|
||||
//
|
||||
// In this respect, the user's attention is drawn to the risks associated
|
||||
// with loading, using, modifying and/or developing or reproducing the
|
||||
// software by the user in light of its specific status of free software,
|
||||
// that may mean that it is complicated to manipulate, and that also
|
||||
// therefore means that it is reserved for developers and experienced
|
||||
// professionals having in-depth computer knowledge. Users are therefore
|
||||
// encouraged to load and test the software's suitability as regards their
|
||||
// requirements in conditions enabling the security of their systems and/or
|
||||
// data to be ensured and, more generally, to use and operate it in the
|
||||
// same conditions as regards security.
|
||||
//
|
||||
// The fact that you are presently reading this means that you have had
|
||||
// knowledge of the CeCILL license and that you accept its terms.
|
||||
|
||||
#pragma once
|
||||
|
||||
// Start.pas's implementation-section constants, shared by Start.cpp and
|
||||
// Start.Paint.cpp.
|
||||
|
||||
#include <QPoint>
|
||||
|
||||
namespace Cevo {
|
||||
namespace StartLayout {
|
||||
|
||||
// predefined world sizes
|
||||
// attention: lx * ly + 1 must be prime!
|
||||
constexpr int MaxWorldSize = 6;
|
||||
constexpr QPoint WorldSizes[MaxWorldSize] = { QPoint(30, 46), QPoint(40, 52), QPoint(50, 60),
|
||||
QPoint(60, 70), QPoint(75, 82), QPoint(100, 96) };
|
||||
constexpr int DefaultWorldTiles = 4150;
|
||||
constexpr int DefaultWorldSize = 3;
|
||||
constexpr int DefaultLandMass = 30;
|
||||
|
||||
constexpr int nPlOffered = 9;
|
||||
constexpr int yMain = 14;
|
||||
constexpr int xActionIcon = 55;
|
||||
constexpr int xAction = 111;
|
||||
constexpr int yAction = 60;
|
||||
constexpr int ActionPitch = 56;
|
||||
constexpr int ActionSideBorder = 24;
|
||||
constexpr int ActionBottomBorder = 10;
|
||||
constexpr int x0Mini = 437;
|
||||
constexpr int y0Mini = 178;
|
||||
constexpr int xTurnSlider = 346;
|
||||
constexpr int yTurnSlider = 262;
|
||||
constexpr int wTurnSlider = 168;
|
||||
constexpr int yLogo = 74;
|
||||
constexpr int xDefault = 234;
|
||||
constexpr int yDefault = 148;
|
||||
constexpr int x0Brain = 146;
|
||||
constexpr int y0Brain = 148;
|
||||
constexpr int dxBrain = 104;
|
||||
constexpr int dyBrain = 80;
|
||||
constexpr int xBrain[nPlOffered] = { x0Brain, x0Brain, x0Brain + dxBrain, x0Brain + dxBrain, x0Brain + dxBrain,
|
||||
x0Brain, x0Brain - dxBrain, x0Brain - dxBrain, x0Brain - dxBrain };
|
||||
constexpr int yBrain[nPlOffered] = { y0Brain, y0Brain - dyBrain, y0Brain - dyBrain, y0Brain, y0Brain + dyBrain,
|
||||
y0Brain + dyBrain, y0Brain + dyBrain, y0Brain, y0Brain - dyBrain };
|
||||
constexpr int TabOffset = -115;
|
||||
constexpr int TabSize = 159;
|
||||
constexpr int TabHeight = 40;
|
||||
|
||||
// Bit set of the player slots offered for n (1-based) players.
|
||||
constexpr int InitAlive[15] = { 1, 1 + 2, 1 + 2 + 32, 1 + 2 + 8 + 128, 1 + 2 + 8 + 32 + 128,
|
||||
1 + 2 + 8 + 16 + 64 + 128, 1 + 2 + 4 + 16 + 32 + 64 + 256, 511 - 32, 511,
|
||||
511 - 32, 511, 511 - 32, 511, 511 - 32, 511 };
|
||||
// Multi-controlled slots for n = 10..15 players.
|
||||
constexpr int InitMulti[6] = { 256, 256, 256 + 128, 256 + 128, 256 + 128 + 64, 256 + 128 + 64 };
|
||||
|
||||
constexpr int PlayerAutoDiff[5] = { 1, 1, 2, 2, 3 };
|
||||
constexpr int EnemyAutoDiff[5] = { 4, 3, 2, 1, 1 };
|
||||
|
||||
} // namespace StartLayout
|
||||
} // namespace Cevo
|
||||
Reference in new issue
Block a user