mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
* rulesets/Creator.cpp, server/WorldRouter.cpp, server/WorldRouter.h: Remove obsolete code to handle omnipresent entities. * common/const.h: Remove obsolete flag enabling omnipresent entities. * tests/consttest.cpp: Remove test for omnipresent flag.
68 lines
2.8 KiB
C++
68 lines
2.8 KiB
C++
// Cyphesis Online RPG Server and AI Engine
|
|
// Copyright (C) 2000-2004 Alistair Riddoch
|
|
//
|
|
// 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
|
|
|
|
#ifndef COMMON_CONST_H
|
|
#define COMMON_CONST_H
|
|
|
|
namespace consts {
|
|
|
|
/// \brief Should python code emit thinking ops
|
|
static const int debug_thinking = 0;
|
|
/// \brief Debug level for python code
|
|
static const int debug_level = 0;
|
|
|
|
/// \brief Scale factor for time. The may become non-constant
|
|
static const float time_multiplier = 1.0;
|
|
/// \brief In Real time how many seconds between ticks
|
|
static const float basic_tick = time_multiplier * 3.0;
|
|
/// \brief In Real time how many seconds between movement updates
|
|
static const float move_tick = time_multiplier * 2.0;
|
|
/// \brief Highest possible person velocity
|
|
static const float base_velocity_coefficient = 5.0;
|
|
static const float base_velocity = base_velocity_coefficient/time_multiplier;
|
|
/// \brief Square versions of above, to avoid square roots in calculations
|
|
static const float square_basic_tick = basic_tick * basic_tick;
|
|
static const float square_base_velocity = base_velocity * base_velocity;
|
|
|
|
/// \brief sin() of minimum angle subtended by visible object
|
|
static const float sight_factor = 0.06;
|
|
static const float square_sight_factor = (sight_factor * sight_factor);
|
|
/// \brief What is the minimum size of an object when calculating visibility
|
|
static const float minSqrBoxSize = 0.25f;
|
|
/// \brief What is the minimum size of an object when calculating visibility
|
|
static const float minBoxSize = 0.5f;
|
|
/// \brief Should we use a database
|
|
static const bool enable_database = true;
|
|
/// \brief Should world state be persistent
|
|
static const bool enable_persistence = false;
|
|
|
|
/// \brief Admin password used by admin account
|
|
extern const char * defaultAdminPasswordHash;
|
|
/// \brief Id of root world entity
|
|
extern const char * rootWorldId;
|
|
/// \brief Integer id of root world entity
|
|
extern const long rootWorldIntId;
|
|
/// \brief Version of the software we are running
|
|
extern const char * version;
|
|
/// \brief Time this server was built
|
|
extern const char * buildTime;
|
|
/// \brief Date this server was built
|
|
extern const char * buildDate;
|
|
|
|
}
|
|
|
|
#endif // COMMON_CONST_H
|