blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
247
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
4
111
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
58
visit_date
timestamp[ns]date
2015-07-25 18:16:41
2023-09-06 10:45:08
revision_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
committer_date
timestamp[ns]date
1970-01-14 14:03:36
2023-09-06 06:22:19
github_id
int64
3.89k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
25 values
gha_event_created_at
timestamp[ns]date
2012-06-07 00:51:45
2023-09-14 21:58:52
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-08-24 19:49:39
gha_language
stringclasses
159 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
7
10.5M
extension
stringclasses
111 values
filename
stringlengths
1
195
text
stringlengths
7
10.5M
572abe926f50bbb9804cfb2d3050e8abcbd1c094
c7e44ef1de0275c3ebbe12dcbf305c5200a34a16
/Neon-Calculations/grid.h
115c2562c2e707f9d713c01b89d79c09c116a051
[]
no_license
bucinsky/NeverWhere
2aefcd633f2b687733df28eb26f27a348ac67c4b
d74e00fe7745ec30e12c7dbc4b6f3045676069ab
refs/heads/master
2020-12-11T07:18:34.383778
2014-11-06T15:36:53
2014-11-06T15:36:53
null
0
0
null
null
null
null
UTF-8
C++
false
false
524
h
grid.h
#ifndef __grid_H_INCLUDED__ #define __grid_H_INCLUDED__ #include "neon.h" class Grid : Neon { public: int numPoints; int numFnc; void setGrid(int); void unsetGrid(); void setCoord(); void setCoord(int, double, double, double); void calcGrid(); void printGrid(); double getValue(int curFnc, double R); protected: double *xCoord; double *yCoord; double *zCoord; double **gridValue; int getNumFnc(); double getR(int, int); double getValue(int, int); }; #endif
9e30704b2ac12cc9a4c3f7942f80282ec8077fbe
f85eedb5129acf7ed3f930a1dd98c3c7d9922cc3
/WxQuickLoginTool/Softinfo.cpp
167d24978ee44217d178e7e0e74b197f5e0e93cb
[]
no_license
xvsdf100/WxQuickLoginTool
ba71359bb63a24c2933ea35b638b8693f0693a84
5dcc8805f49149f0296c5796e217468a5d24601e
refs/heads/master
2022-10-07T16:51:49.065745
2020-06-07T09:18:55
2020-06-07T09:18:55
270,176,714
0
1
null
null
null
null
GB18030
C++
false
false
5,367
cpp
Softinfo.cpp
// FlieNmae: Softinfo.cpp #include "stdafx.h" #include "Sofinfo.h" CSoftInfo::CSoftInfo() { struct SoftInfo softinfo; HKEY RootKey; // 主键 std::wstring lpSubKey; // 子键名称 HKEY hkResult; // 将要打开键的句柄 HKEY hkRKey; LONG lReturn; // 记录读取注册表是否成功 std::wstring strBuffer; std::wstring strMidReg; DWORD index = 0; TCHAR szKeyName[255] = {0}; // 注册表项名称 TCHAR szBuffer[255] = {0}; DWORD dwKeyLen = 255; DWORD dwNameLen = 255; DWORD dwType = REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_NONE|REG_SZ; RootKey = HKEY_LOCAL_MACHINE; lpSubKey = _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"); lReturn = RegOpenKeyEx(RootKey, lpSubKey.c_str(), 0, KEY_ALL_ACCESS, &hkResult); if (lReturn == ERROR_SUCCESS) { while (ERROR_NO_MORE_ITEMS !=RegEnumKeyEx(hkResult, index, szKeyName, &dwKeyLen, 0, NULL, NULL, NULL)) { index++; strBuffer = szKeyName; if (!strBuffer.empty()) { strMidReg = (std::wstring)lpSubKey +_T("\\") + strBuffer; if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, strMidReg.c_str(), 0, KEY_ALL_ACCESS, &hkRKey)==ERROR_SUCCESS) { RegQueryValueEx(hkRKey, _T("DisplayName"), 0, &dwType, (LPBYTE)szBuffer,&dwNameLen); softinfo.m_strSoftName = szBuffer; dwNameLen = 255; memset(szBuffer, 0, 255); RegQueryValueEx(hkRKey, _T("DisplayVersion"), 0, &dwType, (LPBYTE)szBuffer,&dwNameLen); softinfo.m_strSoftVersion = szBuffer; dwNameLen = 255; memset(szBuffer, 0, 255); RegQueryValueEx(hkRKey, _T("InstallLocation"), 0, &dwType, (LPBYTE)szBuffer,&dwNameLen); softinfo.m_strInstallLocation = szBuffer; dwNameLen = 255; memset(szBuffer, 0, 255); RegQueryValueEx(hkRKey, _T("Publisher"), 0, &dwType, (LPBYTE)szBuffer,&dwNameLen); softinfo.m_strPublisher = szBuffer; dwNameLen = 255; RegQueryValueEx(hkRKey, _T("InstallLocation"), 0, &dwType, (LPBYTE)szBuffer,&dwNameLen); softinfo.m_strMainProPath = szBuffer; dwNameLen = 255; memset(szBuffer, 0, 255); RegQueryValueEx(hkRKey, _T("UninstallString"), 0, &dwType, (LPBYTE)szBuffer,&dwNameLen); softinfo.m_strUninstallPth = szBuffer; dwNameLen = 255; memset(szBuffer, 0, 255); if(!softinfo.m_strSoftName.empty()) { if(strBuffer.at(0) == 'K' && strBuffer.at(1) == 'B') { m_SystemPatchesArr.push_back(softinfo); } else { m_SoftInfoArr.push_back(softinfo); } } } dwKeyLen = 255; memset(szKeyName,0, 255); } } RegCloseKey(hkResult); } else { ::MessageBox(NULL, _T("打开注册表失败!"), NULL, MB_ICONWARNING); } } std::vector<SoftInfo> CSoftInfo::GetSoftInfo (void) const { return m_SoftInfoArr; } void CSoftInfo::GetSoftName (std::vector<std::wstring>& lpszSoftName) { std::vector<SoftInfo>::iterator iter; for (iter = m_SoftInfoArr.begin(); iter != m_SoftInfoArr.end(); iter++) { lpszSoftName.push_back(iter->m_strSoftName); } } void CSoftInfo::GetSoftVersion (std::vector<std::wstring>& lpszSoftVersion) { std::vector<SoftInfo>::iterator iter; for (iter = m_SoftInfoArr.begin(); iter != m_SoftInfoArr.end(); iter++) { if (!(iter->m_strSoftVersion).empty()) { lpszSoftVersion.push_back(iter->m_strSoftVersion); } } } void CSoftInfo::GetInstallLocation (std::vector<std::wstring>& lpszInstallLocation) { std::vector<SoftInfo>::iterator iter; for (iter = m_SoftInfoArr.begin(); iter != m_SoftInfoArr.end(); iter++) { if (!(iter->m_strInstallLocation).empty()) { lpszInstallLocation.push_back(iter->m_strInstallLocation); } } } void CSoftInfo::GetPublisher (std::vector<std::wstring>& lpszPublisher) { std::vector<SoftInfo>::iterator iter; bool bSign; for (iter = m_SoftInfoArr.begin(); iter != m_SoftInfoArr.end(); iter++) { bSign = true; // 初步去重复厂商 std::vector<std::wstring>::iterator itr; for (itr = lpszPublisher.begin(); itr != lpszPublisher.end(); itr++) { if (iter->m_strPublisher == (std::wstring)*itr) { bSign = false; } } if (bSign) { lpszPublisher.push_back(iter->m_strPublisher); } } } void CSoftInfo::GetMainProPath (std::vector<std::wstring>& lpszMainProPath) { std::vector<SoftInfo>::iterator iter; for (iter = m_SoftInfoArr.begin(); iter != m_SoftInfoArr.end(); iter++) { if (!(iter->m_strMainProPath).empty()) { lpszMainProPath.push_back(iter->m_strMainProPath); } } } void CSoftInfo::GetUninstallPth (std::vector<std::wstring>& lpszSoftName) { std::vector<SoftInfo>::iterator iter; for (iter = m_SoftInfoArr.begin(); iter != m_SoftInfoArr.end(); iter++) { if (!(iter->m_strUninstallPth).empty()) { lpszSoftName.push_back(iter->m_strUninstallPth); } } } std::vector<SoftInfo> CSoftInfo::GetSystemPatchesInfo (void) const { return m_SystemPatchesArr; } void CSoftInfo::GetSystemPatchesName (std::vector<std::wstring>& lpszSoftName) { std::vector<SoftInfo>::iterator iter; for (iter = m_SystemPatchesArr.begin(); iter != m_SystemPatchesArr.end(); iter++) { lpszSoftName.push_back(iter->m_strSoftName); } }
f6dd3d1e4026682335c75cd449050284060624a0
7a136333df232ad6f0cee26bfd79b8285b81dd8b
/Game/Logs/ElementsLogs/NoneElementLogs/NoneElementLogs.cpp
468d4702b7aaa03dcd1f28714b3af00ae1a5a22c
[]
no_license
S1ckick/oop_game
842742c2f6544f6072d0e08ffe9711cc90cb2b4d
1535753fe18aedfbebaa993b2f11edb75c07f2c4
refs/heads/master
2023-07-08T00:11:35.820473
2021-08-19T10:09:19
2021-08-19T10:09:19
392,320,793
0
0
null
null
null
null
UTF-8
C++
false
false
258
cpp
NoneElementLogs.cpp
// // Created by Максим on 18.10.2020. // #include "NoneElementLogs.h" using namespace std; void NoneElementLogs::update(ElementTypes elem, std::ostream &stream) { if(elem == NONE) stream << "Предмет: Ничего"<< endl << endl; }
5c6161e0b84767e08ee0f46093c61bf4fae2f5aa
bb01bb8c06ea257f4b6158140c47d05681d926e1
/src/kes_moma_picks_client/PaintingCache.cpp
86fbe3ef7268b4ebaa73d0e25ad6610fa2c79746
[]
no_license
KanoComputing/mercury
43a48caf81cda2b39249b177a43385f0bf080f5d
e16b37ff64a9ac2deb4996a8af0ca024492b44e5
refs/heads/master
2020-05-04T01:47:59.448720
2019-11-07T17:27:16
2019-11-07T19:18:39
178,913,951
1
1
null
2019-12-12T11:51:35
2019-04-01T17:32:55
CMake
UTF-8
C++
false
false
4,441
cpp
PaintingCache.cpp
/** * \file PaintingCache.cpp * * \copyright Copyright (C) 2019 Kano Computing Ltd. * License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2 * * \brief TODO */ #include <parson.h> #include <iostream> #include <list> #include <memory> #include <string> #include "kes_moma_picks_client/internal/Exceptions.h" #include "kes_moma_picks_client/internal/PaintingCache.h" #include "kes_moma_picks_client/IPainting.h" #include "kes_moma_picks_client/IPaintingFactory.h" #include "kes_moma_picks_client/PaintingFactory.h" #include "mercury/utils/Filesystem.h" #include "mercury/utils/Time.h" using std::cerr; using std::endl; using std::list; using std::make_shared; using std::shared_ptr; using std::string; using KESMPC::internal::CorruptedCacheException; using KESMPC::internal::PaintingCache; using KESMPC::IPainting; using KESMPC::IPaintingFactory; using KESMPC::PaintingFactory; PaintingCache::PaintingCache( const string& cacheDir, const shared_ptr<IPaintingFactory>& paintingFactory): cacheDir(cacheDir), paintingFactory(paintingFactory), cacheDataRoot(nullptr), cacheData(nullptr) { // this->cachePath = this->cacheDir + "/" + this->CACHE_FILE; if (this->paintingFactory == nullptr) this->paintingFactory = make_shared<PaintingFactory>(); this->load(); } void PaintingCache::load() { this->cacheDataRoot = shared_ptr<JSON_Value>( json_parse_file(this->cachePath.c_str()), json_value_free); this->setCacheData(); } void PaintingCache::setCacheData() { if (this->cacheDataRoot != nullptr && this->cacheDataRoot.get() != nullptr) { // NOLINT this->cacheData = json_value_get_object(this->cacheDataRoot.get()); } else { this->cacheData = nullptr; } } list<shared_ptr<IPainting>> PaintingCache::getPaintings() { list<shared_ptr<IPainting>> paintings; JSON_Value* paintingData; JSON_Array* paintingsData; // Return immediately if the cache is empty. if (this->isCacheEmpty()) return paintings; if (!json_object_has_value_of_type( this->cacheData, "paintings", JSONArray)) { throw CorruptedCacheException( "paintingsData array is missing: ", this->cacheDataRoot.get()); } paintingsData = json_object_get_array(this->cacheData, "paintings"); // Initialise all paintings with data from the cache and return. for (int i = 0; i < json_array_get_count(paintingsData); i++) { shared_ptr<IPainting> painting = this->paintingFactory->create(); paintingData = json_array_get_value(paintingsData, i); if (!painting->initialise(paintingData)) { throw CorruptedCacheException("For item with data: ", paintingData); // NOLINT } paintings.push_back(painting); } return paintings; } void PaintingCache::update(const list<shared_ptr<IPainting>>& paintings) { // TODO: clear cache entirely? // Serialise all paintings in order to update the cache. shared_ptr<JSON_Value> root = shared_ptr<JSON_Value>( json_value_init_object(), json_value_free); JSON_Object* data = json_value_get_object(root.get()); JSON_Value* paintingsDataRoot = json_value_init_array(); JSON_Array* paintingsData = json_value_get_array(paintingsDataRoot); json_object_set_number(data, "lastUpdated", getTimestamp()); json_object_set_value(data, "paintings", paintingsDataRoot); for (auto &painting : paintings) { json_array_append_value(paintingsData, painting->serialise()); } // Ensure the directory and write all serialised paintings to the cache. create_directories(this->cacheDir); if (json_serialize_to_file_pretty( root.get(), this->cachePath.c_str()) != JSONSuccess) { // TODO: Throw an exception here? cerr << "PaintingCache: update: Could not serialise data to " << this->cachePath << endl; } // Update pointers to the new data. this->cacheDataRoot = root; this->setCacheData(); } double PaintingCache::getLastUpdated() const { if (!this->isCacheEmpty() && json_object_has_value_of_type( this->cacheData, "lastUpdated", JSONNumber)) { return json_object_get_number(this->cacheData, "lastUpdated"); } return -1; } bool PaintingCache::isCacheEmpty() const { return this->cacheData == nullptr; }
63838d6d122b227f5a2e38c081e01dcada2220c6
c3e9f2f91b2c02cee249aa5948ea0f6ef899db7c
/libraries/WS2811Driver/WS2811Driver.cpp
aafbf243c7a45f2a9337317ea30b583f5e92be05
[]
no_license
VincentGijsen/all_energia_stuff
42fae3efded2e76caf6ebc743d871698debc15d0
a4a0154663259aff437fdca3ede1b01a3c2f9ddf
refs/heads/master
2021-01-15T18:09:11.498451
2013-08-08T17:51:48
2013-08-08T17:51:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,440
cpp
WS2811Driver.cpp
/** * WS2811Driver.cpp - driver class implementation for the ws2811 rgb led controller IC. * * Copyright (C) 2012 Rick Kimball rick@kimballsoftware.com * * 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 3 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, see <http://www.gnu.org/licenses/>. * * 11-15-2012: Initial Version 0.1 */ #include "Energia.h" #include "WS2811Driver.h" extern "C" void disableWatchDog(); extern "C" void enableWatchDog(); WS2811Driver::WS2811Driver() : _led_cnt(WS2811_DEFAULT_LEDS) ,_pin_mask(WS2811_BITMASK) { } void WS2811Driver::begin() { WS2811_PORTDIR |= _pin_mask; } void WS2811Driver::end() { WS2811_PORTDIR &= ~_pin_mask; } void WS2811Driver::write(const uint8_t *data, uint16_t len) { disableWatchDog(); write_ws2811_hs(data, len, _pin_mask); enableWatchDog(); } void WS2811Driver::write(const uint8_t *data) { write(data,_led_cnt * 3); }
5a68ac1a59ab93433bc5e4a1f4283c49f1dfe1b2
33421a6a93b932e86e4d650302435d0b4ca9526b
/backend.cpp
209dcb82c7e71acca4904d58433e18481d1a3f0e
[]
no_license
ilnuribat/poputchik
b0c4de358490ebfdafb43cd7e7581634856174c4
2c8d6dca5538fb5fa9d5b14631b460c562146fb6
refs/heads/master
2020-06-04T16:19:01.058439
2015-07-05T11:26:57
2015-07-05T11:26:57
23,212,598
3
0
null
null
null
null
UTF-8
C++
false
false
10,264
cpp
backend.cpp
#include "backend.h" BackEnd::BackEnd(QQuickItem *parent) : QQuickItem(parent) { engine.load(QUrl(QStringLiteral("qrc:///main.qml"))); mainWindow = engine.rootObjects().value(0); engine.rootContext()->setContextProperty("backEnd", this); this->IP = "http://localhost:8080"; //this->IP = "http://194.58.100.50"; qDebug() << this->IP; QObject *loader = mainWindow->findChild<QObject*>("loader"); timer = new QTimer(); timer->start(5000); //Вытаскиваем ID из конфиг файлов. Если его нет, то регистрируем пользователя settings = new QSettings("settings.ini", QSettings::IniFormat); QString currentQMLPage = settings->value("currentQML").toString(); this->HUMAN = settings->value("human").toString(); this->ID = settings->value("ID").toInt(); //Если пассажир зарегестриован if(this->ID > 0) { //Отправляем на loader страницу RegPage loadingRegPage(); //Инициализация глобальных переменных return; } //Если не зарегистрирован, то оправляем на страницу регистрации HelloPage QString helloPageQML = "qrc:/QMLs/HelloPage.qml"; QMetaObject::invokeMethod(loader, "setQML", Q_ARG(QVariant, QVariant::fromValue(helloPageQML))); //В случае, если ни одно время не выбрали //Обновление страницы статуса очереди, в которую мы уже встали //connect(timer, SIGNAL(timeout()), this, SLOT(getQueueInfo())); //Это - стартовая точка. С этого дня будем считать все даты. } //Hello Page void BackEnd::registrationInServer(QString HUMAN, QString phone, QString name) { QNetworkAccessManager *pManager = new QNetworkAccessManager(this); connect(pManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(slotregistrationInServer(QNetworkReply*))); this->HUMAN = HUMAN; QString prepareRequest(IP + "/registration"); QNetworkRequest request(QUrl(prepareRequest.toUtf8())); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded"); QString params("human=" + this->HUMAN); params.append("&name=" + name); params.append("&phone=" + phone); pManager->post(request, params.toUtf8()); qDebug() << this->IP; qDebug() << params; } void BackEnd::slotregistrationInServer(QNetworkReply *reply) { if(this->currentQML != "qrc:/QMLs/HelloPage.qml") { qDebug() << "slotRegistration: hello page is not current"; return; } QObject *sayToAuthor = mainWindow->findChild<QObject*>("sayToAuthor"); if(reply->error()) { qDebug() << "server is down or problems with the internet"; QMetaObject::invokeMethod(sayToAuthor, "callOpen"); return; } QString strID = QString(reply->readAll()); qDebug() << strID << "ID - registration"; this->ID = strID.toInt(); //Записываем значение в файл настроек settings->setValue("ID", strID); settings->setValue("registerred", "true"); settings->setValue("human", this->HUMAN); settings->sync(); this->loadingRegPage(); } //RegPage void BackEnd::loadingRegPage() { //send RegPage.qml to loader.source QObject *loader = mainWindow->findChild<QObject*>("loader"); QString regPageQML = "qrc:/QMLs/RegPage.qml"; qDebug() << "setting RegPage"; QMetaObject::invokeMethod(loader, "setQML", Q_ARG(QVariant, QVariant::fromValue(regPageQML))); } void BackEnd::getSourceTowns() { //Получить список городов QNetworkAccessManager *pManager = new QNetworkAccessManager(this); connect(pManager, SIGNAL(finished(QNetworkReply *)), this, SLOT(slotGotSourceTowns(QNetworkReply *))); QString requestAddres(IP + "/towns"); QNetworkRequest request(QUrl(requestAddres.toUtf8())); pManager->get(request); } void BackEnd::getDestTowns() { if(this->currentQML != "qrc:/QMLs/RegPage.qml") { qDebug() << "RegPage is not loaded" << this->currentQML; return; } //Получить список городов QNetworkAccessManager *pManager = new QNetworkAccessManager(this); connect(pManager, SIGNAL(finished(QNetworkReply *)), this, SLOT(slotGotDestTowns(QNetworkReply *))); //Заглушка QString requestAddres(IP + "/Desttowns?source=" + QString::number(this->townSource) + "&date=0"); //+ QString::number(this->DATE)); QNetworkRequest request(QUrl(requestAddres.toUtf8())); pManager->get(request); } void BackEnd::setExactTime(QString time) { this->TIME = time; } void BackEnd::slotGotSourceTowns(QNetworkReply *reply) { QString JSONtowns(reply->readAll()); QObject *SourceTOWNS = mainWindow->findChild<QObject*>("sourceTowns"); QObject *DestTowns = mainWindow->findChild<QObject*>("sourceTowns"); QMetaObject::invokeMethod(SourceTOWNS, "clearList"); QMetaObject::invokeMethod(DestTowns, "clearList"); QJsonDocument jsonDoc = QJsonDocument::fromJson(JSONtowns.toUtf8()); QJsonArray jsonArr; jsonArr = jsonDoc.array(); QVariantMap map; for(int i = 0; i < jsonArr.size(); i ++) { map.insert("text", jsonArr.at(i).toString()); this->townSourceNames[i] = jsonArr.at(i).toString(); QMetaObject::invokeMethod(SourceTOWNS, "append", Q_ARG(QVariant, QVariant::fromValue(map))); } } void BackEnd::slotGotDestTowns(QNetworkReply *reply) { QString JSONtowns(reply->readAll()); QObject *TOWNS = mainWindow->findChild<QObject*>("destinationTowns"); QMetaObject::invokeMethod(TOWNS, "clearList"); if(!TOWNS) return; QJsonDocument jsonDoc = QJsonDocument::fromJson(JSONtowns.toUtf8()); QJsonArray jsonArr; jsonArr = jsonDoc.array(); QVariantMap map; for(int i = 0; i < jsonArr.size(); i ++) { map.insert("text", jsonArr.at(i).toString()); QMetaObject::invokeMethod(TOWNS, "append", Q_ARG(QVariant, QVariant::fromValue(map))); } qDebug() << "got destination towns"; } void BackEnd::setDestinationTown(int index) { this->townDestination = index; this->directionID = 0; this->getDirection(); QObject *goToTableButton = this->mainWindow->findChild<QObject*>("goToTableButton"); //Замораживаем Кнопку goToTable goToTableButton->setProperty("enabled", "false"); qDebug() << index << "from DestTowns : disabled"; //this->settings->setValue("townNameDest", this->); } void BackEnd::setSourceTown(int index) { qDebug() << "setSourceTown"; this->townSource = index; this->directionID = 0; this->getDirection(); this->getDestTowns(); } void BackEnd::getDirection() { if(this->currentQML != "qrc:/QMLs/RegPage.qml") return; qDebug() << "request for getting direction"; QNetworkAccessManager *pManager = new QNetworkAccessManager(this); connect(pManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(slotGotDirection(QNetworkReply*))); QString requestAddress(IP + "/direction?source=" + QString::number(this->townSource) + "&destination=" + QString::number(this->townDestination)); QNetworkRequest request(QUrl(requestAddress.toUtf8())); pManager->get(request); } void BackEnd::slotGotDirection(QNetworkReply *reply) { this->directionID = QString(reply->readAll()).toInt(); if(this->directionID == 0) return; this->settings->setValue("directionID", this->directionID); QObject *goToTableButton = this->mainWindow->findChild<QObject*>("goToTableButton"); //Размораживаем Кнопку goToTable goToTableButton->setProperty("enabled", "true"); } void BackEnd::setDate(QDate date) { qDebug() << "setting date"; this->DATE = date; this->getDestTowns(); } void BackEnd::setSeatsBooked(int count) { this->SEATS_BOOKED = count; } void BackEnd::goDriversList() { //direction found! //Тут мы должны перевести чувака на TimePage QObject *loader = this->mainWindow->findChild<QObject*>("loader"); QString driversList = "qrc:/QMLs/DrivesrList.qml"; QMetaObject::invokeMethod(loader, "setQML", Q_ARG(QVariant, QVariant::fromValue(driversList))); //Установить там выбранную дату QObject *timeTableTitle = this->mainWindow->findChild<QObject*>("timeTableTitle"); timeTableTitle->setProperty("text", this->chosenDate); } void BackEnd::loadedRegPage() { //Загрузка городов отправления //установка сегодняшней даты //установка количества мест, которые были установлены в предыдущий раз //установка города отправления, который был назначен в предыдущий раз //установка записи в "меню" getSourceTowns(); this->townSource = 1; getDestTowns(); QObject *toolBarText = mainWindow->findChild<QObject*>("toolBarText"); toolBarText->setProperty("text", this->HUMAN == "driver" ? "Создать поездку" : "Найти водителя"); QObject *RegPage = mainWindow->findChild<QObject*>("RegPage"); RegPage->setProperty("human", this->HUMAN); } void BackEnd::loadedHelloPage() { //ничего в приницпе не надо делать } void BackEnd::loadedSignal(QString url) { qDebug() << "handled!\t" << url; this->currentQML = url; //this->settings->setValue("currentQML", url); //this->settings->sync(); if(url == "qrc:/QMLs/RegPage.qml") this->loadedRegPage(); }
66600b21c86c490623fbcb5e955f01a0c903d803
785df77400157c058a934069298568e47950e40b
/TnbVoyage/include/Voyage_ProfileI.hxx
9216c213782a4415ea0abae7db82589704b1c08e
[]
no_license
amir5200fx/Tonb
cb108de09bf59c5c7e139435e0be008a888d99d5
ed679923dc4b2e69b12ffe621fc5a6c8e3652465
refs/heads/master
2023-08-31T08:59:00.366903
2023-08-31T07:42:24
2023-08-31T07:42:24
230,028,961
9
3
null
2023-07-20T16:53:31
2019-12-25T02:29:32
C++
UTF-8
C++
false
false
184
hxx
Voyage_ProfileI.hxx
#pragma once inline Standard_Real tnbLib::Voyage_Profile::Value0() const { return Value(X0()); } inline Standard_Real tnbLib::Voyage_Profile::Value1() const { return Value(X1()); }
ed8c384952272618f911406c6087169dfa63ac4b
caa36d428a2728f004fb23fa371fec4e414f49db
/Win32API/20140612_TA/Ball.h
ab68cf0b92034f0d260dec98c709192727e9282f
[]
no_license
soulpaper/SGA48.3
fc9b7390d9dea024b21d728e2c1418593db8da3d
5d1308aabc8949454efe9026fb1439c7674da8c0
refs/heads/master
2021-01-16T21:59:38.702596
2014-07-10T08:14:43
2014-07-10T08:14:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
663
h
Ball.h
#pragma once #include "BaseType.h" #include "Utility.hpp" #include <sstream> class Ball { public : Ball(); ~Ball(); void Attach(HWND); void Input(DWORD); void Update(DWORD); void Draw(HDC); void SetPosition(const Point& ); void SetSize(const LONG& ); void SetDirection(const Vector& ); int GetCount() const; Vector GetDirection() const; Vector GetPosition() const; LONG GetSize() const; void SetNeedToClean(); bool NeedToClean() const; private : HWND hOwner; Point pos; LONG size; Vector vpos; Vector direction; int count; DWORD update_dt; DWORD update_delay; //! default 50 bool bNeedToClean; int id; static int gid; };
7ea2eaa72fac4f5b5e29d12aaedb7742aa9b3b8b
3e6c08b23d23cd6e234c5a2ea96abe64c3b3b9b2
/Homeworks. Third term/localNet/nettest.h
334399dd311297b43fcd9e81a51fc777ecb0ee13
[]
no_license
AnnaSkachkauskaite/Homeworks
3e25e137864233e13e7285916c06f6d3112bf780
50ab8410eac071c08a4179f98201915ecb0917c7
refs/heads/master
2021-01-10T20:04:48.461402
2015-05-28T15:49:13
2015-05-28T15:49:13
15,389,248
0
0
null
null
null
null
UTF-8
C++
false
false
576
h
nettest.h
#ifndef NETTEST_H #define NETTEST_H #include <QObject> #include <QtTest/QtTest> #include "net.h" class NetTest : public QObject { Q_OBJECT public: explicit NetTest(QObject *parent = 0); signals: private slots: void FirstTest() { net.defaultSystem(); net.setTesting(); net.infectSystem(); result = net.getResult(); QVERIFY(result[0] == 1); QVERIFY(result[1] == 2); QVERIFY(result[2] == 4); QVERIFY(result[3] == 3); } private: Net net; QList<int> result; }; #endif // NETTEST_H
194fda3d069960a23104e288f5fd15e689502d64
a587574aee2c6cb65668cf3abf2cca6ff4e5c871
/Vale/Vale/cGrid.cpp
51467513087a11883168f621474c0d81fd4c3bef
[]
no_license
Hashrap/Vale--DirectX-
5acce818694cd4b117d01fff60fad045e613d908
a6d31976f05d079db6fe44d1112e1401fc9b9ea6
refs/heads/master
2021-03-12T23:36:54.459871
2015-05-20T13:15:04
2015-05-20T13:15:04
31,283,033
0
0
null
null
null
null
UTF-8
C++
false
false
5,743
cpp
cGrid.cpp
// Author: Spencer Corkran #include "StdAfx.h" #include "cGrid.h" #include <algorithm> cGrid::cGrid() { } cGrid::cGrid(int gridW, int gridH, int d, int* _score):dimensions(d), score(_score) { for(int i = 0; i < gridW; i++) { objGrid.push_back( std::vector< GridCell >() ); for(int j = 0; j < gridH; j++) { objGrid[i].push_back(GridCell()); } } } cGrid::~cGrid(void) { } // Every frame, populateGrid() iterates through the list of game objects and // adds a pointer to them to whichever cell their position occupies. Additionally, // each object is given a pointer to the cell it's held in for easier access. void cGrid::populateGrid(std::vector< InteractiveObject* > objs) { VECTOR2 oCell, gCell; for(unsigned int i = 0; i < objs.size(); i++) { // Find which cell the object used to occupy oCell = objs[i]->getCell(); // Find which cell the object occupies gCell = objs[i]->getCenter(); gCell.x = (int)(gCell.x / dimensions); gCell.y = (int)(gCell.y / dimensions); // Add object to cell (renewed every update) full.push_back(gCell); objs[i]->setCell((int)gCell.x, (int)gCell.y); objGrid[gCell.x][gCell.y].bucket.push_back(objs[i]); // Add object to cell (renewed when needed) /*if(oCell != gCell) { objs[i]->setCell(gCell.x, gCell.y); objs[i]->setCellPtr(&(objGrid[gCell.x][gCell.y])); }*/ // Else: we're still in the same cell, nothing to be done } } // When renewing the grid every frame, this function clears it after // collision calculations have been made. This ensures no nasty pointers // are left dangling. void cGrid::depopulateGrid() { for(unsigned int i = 0; i < full.size(); i++) { objGrid[full[i].x][full[i].y].bucket.clear(); } full.clear(); } void cGrid::checkNeighbors(VECTOR2 pos, InteractiveObject* o) { //Check left and right for(int a = -1; a < 2; a++) { //Check up and down for(int b = -1; b < 2; b++) { //Don't check invalid cells like (-1,-1) if(pos.x+a >= 0 && pos.y+b >= 0) { checkBucket(objGrid[pos.x+a][pos.y+b].bucket, o); } } } } void cGrid::checkBucket(std::vector<InteractiveObject*> &bucket, InteractiveObject* o) { //Grab all objects in the cell for(unsigned int i = 0; i < bucket.size(); i++) { InteractiveObject * other = bucket[i]; if(o != other) { // Warden if(o->getFaction() == PLAYER) { Warden* warden = dynamic_cast<Warden*>(o); // Warden v Projectile if(other->getName().compare("Projectile") == 0) { Projectile* projectile = dynamic_cast<Projectile*>(other); if(projectile->getFaction() == RISEN) { if(testGraze(warden, projectile) && !projectile->beenGrazed()) { projectile ->graze(); *score += SCORE_ON_GRAZE; //std::cout << "GRAZE: " << *score << std::endl; } if(testCollision(warden, projectile)) { resolveWardenvRisenP(warden, projectile); } } } //Warden v Heart if((other->getName()).compare("Heart") == 0 && o->getFaction() == PLAYER) { //std::cout << "heart + player"; Warden* warden = dynamic_cast<Warden*>(o); Heart* heart = dynamic_cast<Heart*>(other); heart->heal(warden); } } // Risen if(o->getFaction() == RISEN) { Risen* risen = dynamic_cast<Risen*>(o); if(other->getName().compare("Projectile") == 0) { Projectile* projectile = dynamic_cast<Projectile*>(other); if(projectile->getFaction() == PLAYER) { if(testCollision(risen, projectile)) { resolveRisenvWardenP(risen, projectile); } } } } } } } // Checks cells adjacent to the passed object for collisions void cGrid::checkCollisions(InteractiveObject* o) { VECTOR2 pos = o->getCell(); // Test 9 cells in this order: // Northwest, North, Northeast // West, Center, East, // Southwest, South, Southest checkNeighbors(pos, o); } // Simple primitive test for testing collisions between 2 circle-based objects bool cGrid::testCollision(InteractiveObject* a, InteractiveObject* b) { VECTOR2 dist = a->getCenter() - b->getCenter(); dist.x = dist.x*dist.x; dist.y = dist.y*dist.y; float dist2 = dist.x+dist.y; float radiusSum = a->getRadius() + b->getRadius(); return dist2 <= radiusSum * radiusSum; } bool cGrid::testGraze(Warden* w, Projectile* p) { VECTOR2 dist = w->getCenter() - p->getCenter(); dist.x = dist.x*dist.x; dist.y = dist.y*dist.y; float dist2 = dist.x+dist.y; float radiusSum = (w->getRadius()*2) + (p->getRadius()); return dist2 <= radiusSum * radiusSum; } bool cGrid::testWardenvRisenP(Warden* w, Projectile* p) { // Not implemented yet return false; } bool cGrid::testRisenvWardenP(Risen* r, Projectile* p) { // Not implemented yet return false; } void cGrid::resolveCollisions(InteractiveObject* a, InteractiveObject* b) { // Not implemented yet } void cGrid::resolveWardenvRisenP(Warden* warden, Projectile* projectile) { *score -= SCORE_ON_DAMAGE; //delete if not piercing if(!projectile->isPiercing()) { warden->takeDamage(); projectile->getManager()->killProjectile(projectile); } else { //if it's piercing, make sure we only damage it once if(!projectile->hasPierced(warden)) { warden->takeDamage(); } projectile->pierceTarget(warden); } } void cGrid::resolveRisenvWardenP(Risen* risen, Projectile* projectile) { *score += SCORE_ON_HIT; //delete if not piercing if(!projectile->isPiercing()) { risen->takeDamage(projectile->getDamage()); projectile->getManager()->killProjectile(projectile); } else { //if it's piercing, make sure we only damage it once if(!projectile->hasPierced(risen)) { risen->takeDamage(projectile->getDamage()); *score += projectile->pierceTarget(risen); } } }
b123046d28d0de6811362a9c9bfc9979686891a6
2e718a50b6524d2b819f065ad1664f149994cf6a
/cpp'/cpp'/1002.cpp
4bfd1659b0dd968d065dcf6f7b83762bd9fd08f9
[]
no_license
rabbit0v0/Course-works
37d6d3ad90ef2ffff0183ff6875331da5a3787cf
8fed36f3351c23f2558ebfe9b6b9f7506bc72298
refs/heads/master
2022-04-03T19:37:26.976449
2019-11-28T10:03:14
2019-11-28T10:03:14
87,501,866
0
0
null
null
null
null
UTF-8
C++
false
false
1,040
cpp
1002.cpp
// // 1002.cpp // cpp' // // Created by 施晓钰 on 2017/1/23. // Copyright © 2017年 施晓钰. All rights reserved. // #include <stdio.h> #include <iostream> using namespace std; int main(){ int l, w, n[1005][1005] = {0}, a, b, m = 0; cin >> l >> w; for (int i = 1; i <= l; ++i){ for (int j = 1; j <= w; ++j){ cin >> n[i][j]; } } cin >> a >> b; int amo[1004][1004] = {0}; amo[1][1] = n[1][1]; for (int i = 2; i <= w; ++i){ amo[1][i] = amo[1][i - 1] + n[1][i]; } for (int i = 2; i <= l; ++i){ for (int j = 1; j <= w; ++j){ amo[i][j] = amo[i - 1][j] + amo[i][j - 1] + n[i][j] - amo[i - 1][j - 1]; } } int now; for (int i = a; i <= l; ++i){ for (int j = b; j <= w; ++j){ now = amo[i][j] - amo[i - a][j] - amo[i][j - b] + amo[i - a][j - b]; // cout << amo[i][j] << ' ' << amo[i - a][j] << '\n'; if (now > m) m = now; } } cout << m; }
faaa64e2e400dcaa849f0c2fd5579648506d72a9
05e7a4ce38dc66146a5b87bc82cace5aa9c847c7
/kv/rdouble-nohwround.hpp
eb7351d003e361463f32149bdf2d37f929142247
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
mskashi/kv
8558ed4baf9f0be59cefd0d89679ef76d614e56b
ddb34ed6800005e044dfd9cb9a565f28e12c1ba6
refs/heads/master
2022-10-09T07:24:43.521509
2022-09-16T06:45:53
2022-09-16T06:45:53
77,805,801
82
9
null
null
null
null
UTF-8
C++
false
false
11,153
hpp
rdouble-nohwround.hpp
/* * Copyright (c) 2013-2022 Masahide Kashiwagi (kashi@waseda.jp) */ #ifndef RDOUBLE_NOHWROUND_HPP #define RDOUBLE_NOHWROUND_HPP #include <cfloat> #if !defined(FLT_EVAL_METHOD) || FLT_EVAL_METHOD != 0 #error "rounding emulation of double is not available on this system. If you are using i386 system, try -msse2 -mfpmath=sse compile option." #endif #include <iostream> #include <string> #include <limits> #include <cmath> #include <kv/conv-double.hpp> #ifndef KV_USE_TPFMA #define KV_USE_TPFMA 0 #endif namespace kv { template <> struct rop <double> { static void fasttwosum(const double& a, const double& b, double& x, double& y) { double tmp; x = a + b; tmp = x - a; y = b - tmp; } static void twosum(const double& a, const double& b, double& x, double& y) { double tmp; x = a + b; if (std::fabs(a) > std::fabs(b)) { tmp = x - a; y = b - tmp; } else { tmp = x - b; y = a - tmp; } } static void split(const double& a, double& x, double& y) { static const double sigma = std::ldexp(1., 27) + 1.; double tmp; tmp = a * sigma; x = tmp - (tmp - a); y = a - x; } #if KV_USE_TPFMA == 1 static void twoproduct(const double& a, const double& b, double& x, double& y) { x = a * b; y = fma(a, b, -x); } #else // KV_USE_TPFMA static void twoproduct(const double& a, const double& b, double& x, double& y) { static const double th = std::ldexp(1., 996); static const double c1 = std::ldexp(1., -28); static const double c2 = std::ldexp(1., 28); static const double th2 = std::ldexp(1., 1023); double na, nb, a1, a2, b1, b2; x = a * b; #if 0 if (std::fabs(x) == std::numeric_limits<double>::infinity()) { y = 0.; return; } #endif if (std::fabs(a) > th) { na = a * c1; nb = b * c2; } else if (std::fabs(b) > th) { na = a * c2; nb = b * c1; } else { na = a; nb = b; } split(na, a1, a2); split(nb, b1, b2); if (std::fabs(x) > th2) { y = ((((a1 * 0.5) * b1 - (x * 0.5)) * 2 + a2 * b1) + a1 * b2) + a2 * b2; } else { y = (((a1 * b1 - x) + a2 * b1) + a1 * b2) + a2 * b2; } } #endif // KV_USE_TPFMA // succ and pred by Rump static double succ(const double& x) { static const double th1 = std::ldexp(1., -969); static const double th2 = std::ldexp(1., -1021); static const double c1 = std::ldexp(1., -53) + std::ldexp(1., -105); static const double c2 = std::ldexp(1., -1074); static const double c3 = std::ldexp(1., 53); static const double c4 = std::ldexp(1., -53); double a, c, e; a = std::fabs(x); if (a >= th1) return x + a * c1; if (a < th2) return x + c2; c = c3 * x; e = c1 * std::fabs(c); return (c + e) * c4; } static double pred(const double& x) { static const double th1 = std::ldexp(1., -969); static const double th2 = std::ldexp(1., -1021); static const double c1 = std::ldexp(1., -53) + std::ldexp(1., -105); static const double c2 = std::ldexp(1., -1074); static const double c3 = std::ldexp(1., 53); static const double c4 = std::ldexp(1., -53); double a, c, e; a = std::fabs(x); if (a >= th1) return x - a * c1; if (a < th2) return x - c2; c = c3 * x; e = c1 * std::fabs(c); return (c - e) * c4; } static double add_up(const double& x, const double& y) { double r, r2; twosum(x, y, r, r2); if (r == std::numeric_limits<double>::infinity()) { return r; } else if (r == -std::numeric_limits<double>::infinity()) { if (x == -std::numeric_limits<double>::infinity() || y == -std::numeric_limits<double>::infinity()) { return r; } else { return -(std::numeric_limits<double>::max)(); } } if (r2 > 0.) { return succ(r); } return r; } static double add_down(const double& x, const double& y) { double r, r2; twosum(x, y, r, r2); if (r == std::numeric_limits<double>::infinity()) { if (x == std::numeric_limits<double>::infinity() || y == std::numeric_limits<double>::infinity()) { return r; } else { return (std::numeric_limits<double>::max)(); } } else if (r == -std::numeric_limits<double>::infinity()) { return r; } if (r2 < 0.) { return pred(r); } return r; } static double sub_up(const double& x, const double& y) { double r, r2; twosum(x, -y, r, r2); if (r == std::numeric_limits<double>::infinity()) { return r; } else if (r == -std::numeric_limits<double>::infinity()) { if (x == -std::numeric_limits<double>::infinity() || y == std::numeric_limits<double>::infinity()) { return r; } else { return -(std::numeric_limits<double>::max)(); } } if (r2 > 0.) { return succ(r); } return r; } static double sub_down(const double& x, const double& y) { double r, r2; twosum(x, -y, r, r2); if (r == std::numeric_limits<double>::infinity()) { if (x == std::numeric_limits<double>::infinity() || y == -std::numeric_limits<double>::infinity()) { return r; } else { return (std::numeric_limits<double>::max)(); } } else if (r == -std::numeric_limits<double>::infinity()) { return r; } if (r2 < 0.) { return pred(r); } return r; } static double mul_up(const double& x, const double& y) { double r, r2; double x1, y1; double s, s2, t; static const double th = std::ldexp(1., -969); // -1074 + 106 - 1 static const double c = std::ldexp(1., 537); // 1074 / 2 // if (x == 0. || y == 0.) return x * y; twoproduct(x, y, r, r2); if (r == std::numeric_limits<double>::infinity()) { return r; } else if (r == -std::numeric_limits<double>::infinity()) { if (std::fabs(x) == std::numeric_limits<double>::infinity() || std::fabs(y) == std::numeric_limits<double>::infinity()) { return r; } else { return -(std::numeric_limits<double>::max)(); } } if (std::fabs(r) >= th) { if (r2 > 0.) return succ(r); return r; } else { twoproduct(x * c, y * c, s, s2); t = (r * c) * c; if ( t < s || (t == s && s2 > 0.)) { return succ(r); } return r; } } static double mul_down(const double& x, const double& y) { double r, r2; double x1, y1; double s, s2, t; static const double th = std::ldexp(1., -969); // -1074 + 106 - 1 static const double c = std::ldexp(1., 537); // 1074 / 2 // if (x == 0. || y == 0.) return x * y; twoproduct(x, y, r, r2); if (r == std::numeric_limits<double>::infinity()) { if (std::fabs(x) == std::numeric_limits<double>::infinity() || std::fabs(y) == std::numeric_limits<double>::infinity()) { return r; } else { return (std::numeric_limits<double>::max)(); } } else if (r == -std::numeric_limits<double>::infinity()) { return r; } if (std::fabs(r) >= th) { if (r2 < 0.) return pred(r); return r; } else { twoproduct(x * c, y * c, s, s2); t = (r * c) * c; if ( t > s || (t == s && s2 < 0.)) { return pred(r); } return r; } } static double div_up(const double& x, const double& y) { double r, r2; double xn, yn, d; static const double th1 = std::ldexp(1., -969); // -1074 + 106 - 1 static const double th2 = std::ldexp(1., 918); // 1023 - 105 static const double c1 = std::ldexp(1., 105); // -969 - (-1074) static const double c2 = std::ldexp(1., -1074); if (x == 0. || y == 0. || std::fabs(x) == std::numeric_limits<double>::infinity() || std::fabs(y) == std::numeric_limits<double>::infinity() || x != x || y != y) { return x / y; } if (y < 0.) { xn = -x; yn = -y; } else { xn = x; yn = y; } if (std::fabs(xn) < th1) { if (std::fabs(yn) < th2) { xn *= c1; yn *= c1; } else { if (xn < 0.) return 0.; else return c2; } } d = xn / yn; if (d == std::numeric_limits<double>::infinity()) { return d; } else if (d == -std::numeric_limits<double>::infinity()) { return -(std::numeric_limits<double>::max)(); } twoproduct(d, yn, r, r2); if ( r < xn || ((r == xn) && r2 < 0.)) { return succ(d); } return d; } static double div_down(const double& x, const double& y) { double r, r2; double xn, yn, d; static const double th1 = std::ldexp(1., -969); // -1074 + 106 - 1 static const double th2 = std::ldexp(1., 918); // 1023 - 105 static const double c1 = std::ldexp(1., 105); // -969 - (-1074) static const double c2 = std::ldexp(1., -1074); if (x == 0. || y == 0. || std::fabs(x) == std::numeric_limits<double>::infinity() || std::fabs(y) == std::numeric_limits<double>::infinity() || x != x || y != y) { return x / y; } if (y < 0.) { xn = -x; yn = -y; } else { xn = x; yn = y; } if (std::fabs(xn) < th1) { if (std::fabs(yn) < th2) { xn *= c1; yn *= c1; } else { if (xn < 0.) return -c2; else return 0.; } } d = xn / yn; if (d == std::numeric_limits<double>::infinity()) { return (std::numeric_limits<double>::max)(); } else if (d == -std::numeric_limits<double>::infinity()) { return d; } twoproduct(d, yn, r, r2); if ( r > xn || ((r == xn) && r2 > 0.)) { return pred(d); } return d; } static double sqrt_up(const double& x) { double r, r2, d; static const double th1 = std::ldexp(1., -969); // -1074 + 106 - 1 static const double c1 = std::ldexp(1., 106); // -969 - (-1074) + 1 static const double c2 = std::ldexp(1., 53); // sqrt(c1) d = std::sqrt(x); if (x < th1) { double d2, x2; x2 = x * c1; d2 = d * c2; twoproduct(d2, d2, r, r2); if ( r < x2 || (r == x2 && r2 < 0.)) { return succ(d); } return d; } twoproduct(d, d, r, r2); if ( r < x || (r == x && r2 < 0.)) { return succ(d); } return d; } static double sqrt_down(const double& x) { double r, r2, d; static const double th1 = std::ldexp(1., -969); // -1074 + 106 - 1 static const double c1 = std::ldexp(1., 106); // -969 - (-1074) + 1 static const double c2 = std::ldexp(1., 53); // sqrt(c1) d = std::sqrt(x); if (x < th1) { double d2, x2; x2 = x * c1; d2 = d * c2; twoproduct(d2, d2, r, r2); if ( r > x2 || (r == x2 && r2 > 0.)) { return pred(d); } return d; } twoproduct(d, d, r, r2); if ( r > x || (r == x && r2 > 0.)) { return pred(d); } return d; } static void begin() { } static void end() { } static void print_up(const double& x, std::ostream& s) { char format; if (s.flags() & s.scientific) { if (s.flags() & s.fixed) { format = 'g'; } else { format = 'e'; } } else { if (s.flags() & s.fixed) { format = 'f'; } else { format = 'g'; } } s << conv_double::dtostring(x, s.precision(), format, 1); } static void print_down(const double& x, std::ostream& s) { char format; if (s.flags() & s.scientific) { if (s.flags() & s.fixed) { format = 'g'; } else { format = 'e'; } } else { if (s.flags() & s.fixed) { format = 'f'; } else { format = 'g'; } } s << conv_double::dtostring(x, s.precision(), format, -1); } static double fromstring_up(const std::string& s) { return conv_double::stringtod(s, 1); } static double fromstring_down(const std::string& s) { return conv_double::stringtod(s, -1); } }; } // namespace kv #endif // RDOUBLE_NOHWROUND_HPP
5f27f909ac3848e70e69c1b154dae4bfc8ce618e
690d80bef0fbc273498f65924876edc0f459b355
/02.4.1.3 成员属性设置为私有.cpp
9a1b1c223b8d7e104f4e61a74b3f48b4a6a9eec7
[]
no_license
SKT-Faker-GuaPi666/-
6bc0fc5ca8020fbd5593250c1fb162fec370507b
7533b4856cf21922395ee937d9f250e09172ccdd
refs/heads/master
2022-12-16T10:24:04.609445
2020-09-20T15:59:54
2020-09-20T15:59:54
281,042,223
0
0
null
null
null
null
GB18030
C++
false
false
1,135
cpp
02.4.1.3 成员属性设置为私有.cpp
#include<iostream> using namespace std; //成员属性设为私有; //1.可以自己控制读写权限 //2.对于写权限,可以检测数据的有效性 //设计人类 class Person413 { public: //设置姓名 void setName(string name) { m_Name = name; } //获取姓名 string getName() { return m_Name; } //设置年龄 void setAge(int age) { if (age < 0 || age>150) { m_Age = 0; cout << "狗贼,乱输入!\t给爷重新输!!!" << endl; return; } m_Age = age; } //获取年龄 int getAge() { //m_Age = 0;//初始化为0; return m_Age; } //设置现任 只写 void setLover(string lover) { m_Lover = lover; } private: //姓名 可读可写 string m_Name; //年龄 可读可写 int m_Age; //现任 只写 string m_Lover; }; int main13() { Person13 p; p.setName("张三"); cout << "姓名为:" << p.getName() << endl; p.setLover("刘某"); //cout << "现任为:" << p.getLover() << endl; p.setAge(21); cout << "年龄为:" << p.getAge() << endl; system("pause"); return 0; }
cf3a2e5ab941e8e1cc5cd20af8ec4497b3e41bc7
7886d15aa7a22b841ffa7a6981d4a6460bde156e
/ch3.2.8_shallow_deep_example.cpp
b804c187f12dc96945f733f0f3656d8d6d4bbb8f
[]
no_license
LeeSungje/openCV_practice
70bb8e2cf31ab331545c1f349434dfbd3dde112b
3205d9752fd4d9f1e110749a2544aadd1c9bbc12
refs/heads/master
2021-04-03T08:59:14.041427
2018-05-23T01:09:37
2018-05-23T01:09:37
125,143,490
0
0
null
null
null
null
UTF-8
C++
false
false
535
cpp
ch3.2.8_shallow_deep_example.cpp
#include<opencv2\opencv.hpp> using namespace cv; using namespace std; void main() { Mat A(200, 200, CV_8UC3, Scalar(255, 255, 255)); //Mat B(A); //case 1 /* Mat C; C = A.clone(); */ //case 2 /* Mat D; D = A; */ //case 3 /* Mat E; A.copyTo(E); */ // case4 Point2i point(100, 100); //circle(B, point, 100, 255); //case 1 -> shallow //circle(C, point, 100, 255); //case 2 -> deep //circle(D, point, 100, 255); //case 3 -> shallow //circle(E, point, 100, 255); //case 4 -> deep imshow("test", A); waitKey(0); }
774ef1739e24b6f128a80170aa499e0bb434e5bf
b58fcda98033b296d1f904731048ffd86e8b55dd
/cpp/Projects/tbb/main.cpp
c58882ad3d78c09e87ab83125c69f9dae5a8afdf
[]
no_license
borcun/free
4736f6be7bac39ee9aed50a6b1440b7b9b07a62b
fa5887b01d4bee3a8670519669eb4851f4d78b69
refs/heads/master
2023-02-08T00:58:20.036163
2023-01-28T19:19:19
2023-01-28T19:19:19
21,748,674
4
0
null
null
null
null
UTF-8
C++
false
false
1,336
cpp
main.cpp
/* * main.cpp * * Created on: Nov 2, 2012 * Author: dev01 */ #include <tbb/task_scheduler_init.h> #include <tbb/tbb_thread.h> #include <opencv/cv.h> #include <opencv/cxcore.h> #include <opencv/highgui.h> #include <iostream> using namespace::tbb; using namespace::std; struct cam_att { int wcam; char cname; }; char *intToS(int num) { if( num == 0) return "0"; return "1"; } void showVideo(struct cam_att s) { CvCapture *cap = cvCaptureFromCAM(s.wcam); cvNamedWindow(intToS(s.wcam)); while(true) { cvShowImage(intToS(s.wcam), cvQueryFrame(cap)); if(27 == cvWaitKey(1)) break; } cvDestroyWindow(intToS(s.wcam)); } int main() { cout << "Hello TBB !" << endl; // Automatic startup/shutdown was not implemented because, based on Intel’s experience // in implementing OpenMP, we knew that parts are too problematic on some // operating systems to do it behind the scenes. In particular, always knowing when a // thread shuts down can be quite problematic. task_scheduler_init init(task_scheduler_init::deferred); int nthreads = 2; if(nthreads >= 1) init.initialize(nthreads); if(nthreads >= 1) init.terminate(); struct cam_att s1, s2; s1.wcam = 0; s2.wcam = 1; tbb_thread t1(showVideo, s1); tbb_thread t2(showVideo, s2); t1.join(); t2.join(); return 0; }
24ee964dd7bafc6bb2fb9ffb9d446dbb2450291f
2c9cb79404e78413e5ea02a57151d72384de5b96
/CodeCraft-2019/include/Read_file.h
ff774be3245871e506a142f9c0ce5ddec13a597e
[]
no_license
Sayheyheyhey/Huawei2019
a0aa5ce9d4c51bafa036b75265fe4cb61b5d4642
b9810d30ab0d2185db7a1fd9b8b752b2c259f643
refs/heads/master
2020-05-04T15:38:45.460084
2019-04-03T09:11:22
2019-04-03T09:11:22
179,250,261
0
0
null
null
null
null
UTF-8
C++
false
false
289
h
Read_file.h
#pragma once #include "Car.h" #include "Road.h" #include <map> #include <vector> using namespace std; vector<int> string_2_vector(string str); map<int, Road> read_road(string file_path); map<int, Car> read_car(string file_path); map<int, Cross> read_cross(string file_path);
00da1a1e3e82ce78b7102851bfe8053f209b9404
e7c45d18fa1e4285e5227e5984e07c47f8867d1d
/SMDK/TransCritical/TTechWOR/TTWORFilter.h
fbc672029903fa6f1ecf1859e5d2e92609db2637
[]
no_license
abcweizhuo/Test3
0f3379e528a543c0d43aad09489b2444a2e0f86d
128a4edcf9a93d36a45e5585b70dee75e4502db4
refs/heads/master
2021-01-17T01:59:39.357645
2008-08-20T00:00:29
2008-08-20T00:00:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,573
h
TTWORFilter.h
//================== SysCAD - Copyright Kenwalt (Pty) Ltd =================== // New Precipitation model Transcritical Technologies Pty Ltd Feb 05 // Time-stamp: <2006-06-09 12:18:08 Rod Stephenson Transcritical Pty Ltd> //=========================================================================== #ifndef __MD_HEADERS_H #include "md_headers.h" #endif //#include "batc_bayer\BATCBayerSM.h" #include <string> //--------------------------------------------------------------------------- // Worlsely Model const static int nClasses=25; const static int nKernels=5; class CFilter: public MBaseMethod { public: CFilter(MUnitDefBase *pUnitDef,TaggedObject * pNd); virtual ~CFilter(void); void Init(); void BuildDataFields(); bool ValidateDataFields(); void EvalProducts(); void ClosureInfo(MClosureInfo & CI); void DoFilter(MStream &, MStream &); protected: bool bOnline; bool bVerbose; long iClassMethod; double dTankVol; double m_dCakeSolids; double m_dByPass; double m_dSharp_Index; double m_dCut_Size; double m_dL0; double m_dxS; double L[nClasses+1]; double Lav[nClasses+1]; MStreamI Feed; MStreamI Condensate; bool bCondConnected; // Do we have a condensate stream connected long iPSD; void displayStream(MStream &ms, int scrn); void displayPSD(MStream &ms, int scrn); double dd[7][26]; #ifdef TTDEBUG bool bTTDebug; // TTDbg dbg; #endif //TTDEBUG };
7bd4a767e29a410d69f757bf202328a4ca899325
d136f4c37cb9fb3570c9d04bbb9526cdc8952121
/HTauTau/DataFormats/src/EventProxyHTT.cc
39166db7b46afe3f6d5fa9a5f7e1a6bb889ec397
[]
no_license
akalinow/RootAnalysis
2c7ad32873fc726d9bab09555daebb3812694b98
1ad51b0039f0e80502a2f8be0d2e79a36abfb407
refs/heads/master
2023-08-30T21:25:59.437576
2018-12-05T12:17:53
2018-12-05T12:17:53
16,555,472
1
17
null
2023-08-29T11:55:30
2014-02-05T19:26:22
C++
UTF-8
C++
false
false
2,106
cc
EventProxyHTT.cc
#include "EventProxyHTT.h" #include "TSystem.h" #include <iostream> EventProxyHTT::EventProxyHTT(){} ///////////////////////////////////////////////////////// ///////////////////////////////////////////////////////// EventProxyHTT::~EventProxyHTT(){} ///////////////////////////////////////////////////////// ///////////////////////////////////////////////////////// EventProxyBase* EventProxyHTT::clone() const{ return new EventProxyHTT(); } ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// void EventProxyHTT::init(std::vector<std::string> const& iFileNames){ treeName_ = "HTauTauTree"; EventProxyBase::init(iFileNames); //fChain->SetMakeClass(0); event = 0; pairs = 0; jets = 0; genLeptons = 0; fChain->SetBranchAddress("HTTEvent.",&event); fChain->SetBranchAddress("HTTPairCollection",&pairs); fChain->SetBranchAddress("HTTJetCollection",&jets); fChain->SetBranchAddress("HTTGenLeptonCollection",&genLeptons); fChain->SetBranchStatus("*",0); fChain->SetBranchStatus("HTTEvent*",1); fChain->SetBranchStatus("HTTPairCollection*",1); fChain->SetBranchStatus("HTTJetCollection*",1); fChain->SetBranchStatus("HTTGenLeptonCollection*",1); //fChain->SetBranchStatus("HTTLeptonCollection*",1); } ///////////////////////////////////////////////////////// ///////////////////////////////////////////////////////// void EventProxyHTT::enableBranches(){ fChain->SetBranchStatus("*",1); } ///////////////////////////////////////////////////////// ///////////////////////////////////////////////////////// void EventProxyHTT::disableBranches(){ fChain->SetBranchStatus("*",0); } ///////////////////////////////////////////////////////// ///////////////////////////////////////////////////////// void EventProxyHTT::clear(){ if(event) event->clear(); if(pairs) pairs->clear(); if(jets) jets->clear(); if(genLeptons) genLeptons->clear(); } ///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
6f3af72c7d7cf008e5ed53caba686192d8ffc961
ed3da0a4ef6f6690c0f126f850ff817bf721e4ef
/303.区域和检索.数组不可变.cpp
de3f06bea28f7056d1ad2c10bc7d3d97f62314c0
[]
no_license
xiaoweixiao/LeetCode
701233ce0279da457bf0ce65a8c99714d59aab24
8aecd34c6382eaaa7e1c762c9c2ca69cada3bc2e
refs/heads/master
2020-05-16T03:56:42.938046
2019-06-11T15:08:02
2019-06-11T15:08:02
182,755,945
1
0
null
null
null
null
UTF-8
C++
false
false
405
cpp
303.区域和检索.数组不可变.cpp
class NumArray { public: NumArray(vector<int>& nums):num(nums) { } int sumRange(int i, int j) { int ret=0; for(int x=i;x<=j;x++) ret+=num[x]; return ret; } private: vector<int> num; }; /** * Your NumArray object will be instantiated and called as such: * NumArray* obj = new NumArray(nums); * int param_1 = obj->sumRange(i,j); */
4a3b71d8cccb84b5937a42efe8a5fca53fbe211d
453850cc7a528e8c8494be95c74e689db58f1910
/lib/radmat/utils/aux.h
0ec754c452199ea8b4cbfb93be27a9516a24ee1f
[]
no_license
ChristianShultz/formfactor
609dc45cff82c7b5021f730de32716fba6b21b1b
76d9e21dff58837484849e4902d693ec35238442
refs/heads/master
2021-01-10T18:20:40.204698
2015-11-15T19:21:03
2015-11-15T19:21:03
46,231,687
0
0
null
null
null
null
UTF-8
C++
false
false
1,900
h
aux.h
#ifndef AUX_H_H_GUARD #define AUX_H_H_GUARD #include "pow2assert.h" #include "type_computations.h" #include <string> namespace radmat { template<class T, class U > T downcastAndDeref(const U *ptr) { const T *p = dynamic_cast<const T*>(ptr); // cast POW2_ASSERT(p); // check cast T ret = *p; // make a T return ret; } // stl complex is a pain.. , use this to get some asymetric complex operatons done template<class T,class U> inline typename Promote<T, U>::Type_t convert_stl_type(const T &t) { return typename Promote<T, U>::Type_t(t); } template<typename T, typename U, class BinaryOperator> inline typename Promote<T, U>::Type_t binary_op(const T &t, const U &u, BinaryOperator b_op) { return b_op(convert_stl_type<T,U>(t),convert_stl_type<U,T>(u)); } // this is a useful functor for fake data that gets stuck here since it doesn't really have a home template<typename T, typename U, typename V, T(*ptr)(const U, const V) > struct bind1st_2ParFunction_cc { bind1st_2ParFunction_cc(void) : bound(false) { } void bind1st(const U &par1) { m_par = par1; bound = true; } T operator()(const V &par2) const { POW2_ASSERT(bound); return (*ptr)(m_par,par2); } /* bind1st_2ParFunction_cc(const bind1st_2ParFunction_cc<T,U,V,T(*)(const U, const V) > &o) :m_par(o.m_par) , bound(o.bound) { } bind1st_2ParFunction_cc<T,U,V,T(*)(const U, const V) >& operator=(const bind1st_2ParFunction_cc<T,U,V,T(*)(const U, const V) > &o) { if(this != &o) { m_par = o.m_par; bound = o.bound; } return *this; } */ private: U m_par; bool bound; }; } #endif
6524c38133f4cbeeebcc438d7f34b5f381676125
47b0a2b97e4d829855cc852164963d0f97e60abe
/Source/XsollaStore/Public/XsollaStoreDataModel.h
d225f7dc2d5cda4f70bb36d27e41a5ec8dc02465
[ "Apache-2.0" ]
permissive
xsolla/store-ue4-sdk
d99572deb3ff772a6698a0eec553ad705f48bebb
262ab261215422637cbbffb4a4e31f7b906e257a
refs/heads/master
2023-08-18T14:20:23.104267
2023-07-26T19:58:24
2023-07-26T19:58:24
183,005,031
21
17
Apache-2.0
2023-04-18T12:53:33
2019-04-23T11:58:18
C++
UTF-8
C++
false
false
29,942
h
XsollaStoreDataModel.h
// Copyright 2023 Xsolla Inc. All Rights Reserved. #pragma once #include "XsollaUtilsDataModel.h" #include "XsollaStoreDataModel.generated.h" UENUM(BlueprintType) enum class EXsollaOrderStatus : uint8 { Unknown, New, Paid, Done, Canceled }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FXsollaOrderItem { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Order Item") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Order Item") int32 quantity; UPROPERTY(BlueprintReadOnly, Category = "Order Item") FString is_free; UPROPERTY(BlueprintReadOnly, Category = "Order Item") FXsollaPrice price; FXsollaOrderItem() : quantity(0){}; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FXsollaOrderContent { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Order Content") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Order Content") FXsollaVirtualCurrencyPrice virtual_price; UPROPERTY(BlueprintReadOnly, Category = "Order Content") FString is_free; UPROPERTY(BlueprintReadOnly, Category = "Order Content") TArray<FXsollaOrderItem> items; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FXsollaOrder { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Order") int32 order_id = 0; UPROPERTY(BlueprintReadOnly, Category = "Order") FString status; UPROPERTY(BlueprintReadOnly, Category = "Order") FXsollaOrderContent content; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreBundleContent { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString name; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString type; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString description; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString image_url; UPROPERTY(BlueprintReadOnly, Category = "Bundle") int32 quantity = 0; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Bundle") TArray<FXsollaVirtualCurrencyPrice> virtual_prices; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreItemMediaList { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Virtual Item Media List") FString type; UPROPERTY(BlueprintReadOnly, Category = "Virtual Item Media List") FString url; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreItem { GENERATED_BODY() /* Unique item ID. The SKU may only contain lowercase Latin alphanumeric characters, periods, dashes, and underscores. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FString sku; /* Item name. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FString name; /* Item description. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FString description; /* Type of item: Consumable/Expiration/Permanent/Lootboxes/Physical. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FString type; /* Type of virtual item. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FString virtual_item_type; /* Groups the item belongs to. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") TArray<FXsollaItemGroup> groups; /* If `true`, the item is free. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") bool is_free; /* Item prices */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FXsollaPrice price; /* Virtual prices. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") TArray<FXsollaVirtualCurrencyPrice> virtual_prices; /* Image URL. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FString image_url; /* Defines the inventory item options. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FXsollaItemOptions inventory_options; /* Type off bundle. In this case, it is always `standart`. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item Bundle") FString bundle_type; /* Sum of the bundle content prices. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item Bundle") FXsollaPrice total_content_price; /* Bundle package content. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item Bundle") TArray<FStoreBundleContent> content; /* List of attributes and their values corresponding to the item. Can be used for catalog filtering. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item Bundle") TArray<FXsollaItemAttribute> attributes; /* Item long description. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FString long_description; /* Value that defines arrangement order. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") int32 order; /* List of additional item assets such as screenshots, gameplay video etc.. */ UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") TArray<FStoreItemMediaList> media_list; UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") TArray<FXsollaStoreItemPromotion> promotions; UPROPERTY(BlueprintReadOnly, Category = "Virtual Item") FXsollaStoreItemLimits limits; public: FStoreItem() : is_free(false) , order(0){}; FStoreItem(const FStoreItem& Item) : sku(Item.sku) , name(Item.name) , description(Item.description) , type(Item.type) , virtual_item_type(Item.virtual_item_type) , groups(Item.groups) , is_free(Item.is_free) , price(Item.price) , virtual_prices(Item.virtual_prices) , image_url(Item.image_url) , inventory_options(Item.inventory_options) , bundle_type(Item.bundle_type) , total_content_price(Item.total_content_price) , content(Item.content) , attributes(Item.attributes) , long_description(Item.long_description) , order(Item.order) , media_list(Item.media_list) , promotions(Item.promotions) , limits(Item.limits) { } FStoreItem(const struct FStoreBundle& Bundle); bool operator==(const FStoreItem& Item) const { return sku == Item.sku; } }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreItemsList { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Items List") TArray<FStoreItem> Items; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreItemsData { public: GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Items Data") TArray<FStoreItem> Items; /** All category IDs used by items (calculated locally!). */ UPROPERTY(BlueprintReadOnly, Category = "Items Data") TSet<FString> GroupIds; /** All available item groups infos. */ UPROPERTY(BlueprintReadOnly, Category = "Items Data") TArray<FXsollaItemGroup> Groups; public: FStoreItemsData(){}; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FVirtualCurrency { public: GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FString name; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") TArray<FString> groups; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") TArray<FXsollaItemAttribute> attributes; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FString type; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FString description; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FString image_url; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") bool is_free; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") TArray<FXsollaVirtualCurrencyPrice> virtual_prices; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FXsollaItemOptions inventory_options; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FString long_description; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") int32 order; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") TArray<FStoreItemMediaList> media_list; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") TArray<FXsollaStoreItemPromotion> promotions; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency") FXsollaStoreItemLimits limits; public: FVirtualCurrency() : is_free(false) , order(0){}; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FVirtualCurrencyData { public: GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Data") TArray<FVirtualCurrency> Items; public: FVirtualCurrencyData(){}; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FVirtualCurrencyPackageContent { public: GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package Content") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package Content") FString name; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package Content") FString type; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package Content") FString description; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package Content") FString image_url; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package Content") int32 quantity; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package Content") FXsollaItemOptions inventory_options; public: FVirtualCurrencyPackageContent() : quantity(0){}; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FVirtualCurrencyPackage { public: GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FString name; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FString type; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FString description; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FString image_url; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") TArray<FXsollaItemAttribute> attributes; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") TArray<FXsollaItemGroup> groups; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FString bundle_type; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") bool is_free; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") TArray<FXsollaVirtualCurrencyPrice> virtual_prices; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FVirtualCurrencyPackageContent content; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FString long_description; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") int32 order; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") TArray<FStoreItemMediaList> media_list; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") TArray<FXsollaStoreItemPromotion> promotions; UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Package") FXsollaStoreItemLimits limits; public: FVirtualCurrencyPackage() : is_free(false) , order(0){}; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FVirtualCurrencyPackagesData { public: GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Virtual Currency Packages Data") TArray<FVirtualCurrencyPackage> Items; public: FVirtualCurrencyPackagesData(){}; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreCartItem { GENERATED_BODY() UPROPERTY(BlueprintReadWrite, Category = "Cart Item") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") FString name; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") TArray<FXsollaItemAttribute> attributes; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") TArray<FXsollaItemGroup> groups; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") FString description; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") FString long_description; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") FString type; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") FString virtual_item_type; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") bool is_free; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") bool is_bonus; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") TArray<FXsollaVirtualCurrencyPrice> vc_prices; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") FString image_url; UPROPERTY(BlueprintReadWrite, Category = "Cart Item") int32 quantity; UPROPERTY(BlueprintReadOnly, Category = "Cart Item") FXsollaItemOptions inventory_options; public: FStoreCartItem() : is_free(false) , is_bonus(false) , quantity(0){}; FStoreCartItem(const FStoreItem& Item) : sku(Item.sku) , name(Item.name) , is_free(Item.is_free) , is_bonus(false) , price(Item.price) , image_url(Item.image_url) , quantity(0){}; FStoreCartItem(const FVirtualCurrencyPackage& CurrencyPackage) : sku(CurrencyPackage.sku) , name(CurrencyPackage.name) , is_free(CurrencyPackage.is_free) , is_bonus(false) , price(CurrencyPackage.price) , image_url(CurrencyPackage.image_url) , quantity(0){}; bool operator==(const FStoreCartItem& Item) const { return sku == Item.sku; } /*bool operator==(const FStoreItem& Item) const { return sku == Item.sku; }*/ }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreCart { public: GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Cart Data") FString cart_id; UPROPERTY(BlueprintReadOnly, Category = "Cart Data") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Cart Data") bool is_free; UPROPERTY(BlueprintReadOnly, Category = "Cart Data") TArray<FStoreCartItem> Items; public: FStoreCart() : is_free(false){}; FStoreCart(FString CartId) : cart_id(CartId) , is_free(false){}; // Check if we have the same set of items. bool operator==(const FStoreCart& Cart) const { if (cart_id == Cart.cart_id) { if (Items.Num() == Cart.Items.Num()) { int32 ItemsCount = Items.Num(); for (int32 i = 0; i < ItemsCount; ++i) { if (Items[i].sku == Cart.Items[i].sku) { if (Items[i].quantity != Cart.Items[i].quantity) { return false; } } else { return false; } } return true; } } return false; } }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreBundle { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString name; UPROPERTY(BlueprintReadOnly, Category = "Bundle") TArray<FXsollaItemGroup> groups; UPROPERTY(BlueprintReadOnly, Category = "Bundle") TArray<FXsollaItemAttribute> attributes; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString type; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString bundle_type; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString description; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString image_url; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FString is_free; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FXsollaPrice total_content_price; UPROPERTY(BlueprintReadOnly, Category = "Bundle") TArray<FXsollaVirtualCurrencyPrice> virtual_prices; UPROPERTY(BlueprintReadOnly, Category = "Bundle") TArray<FStoreBundleContent> content; UPROPERTY(BlueprintReadOnly, Category = "Bundle") TArray<FXsollaStoreItemPromotion> promotions; UPROPERTY(BlueprintReadOnly, Category = "Bundle") FXsollaStoreItemLimits limits; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreListOfBundles { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Bundle") TArray<FStoreBundle> items; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreDiscount { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Discount") FString percent; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStorePromocodeRewardData { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Promocode Reward Data") TArray<FXsollaBonusItem> bonus; /** Percent discount. The price of the cart will be decreased by a value calculated by using this percent and then rounded to 2 decimal places. */ UPROPERTY(BlueprintReadOnly, Category = "Promocode Reward Data") FStoreDiscount discount; /** If 'true', the user should choose the bonus before redeeming a promo code. */ UPROPERTY(BlueprintReadOnly, Category = "Promocode Reward Data") bool is_selectable = false; }; inline FStoreItem::FStoreItem(const struct FStoreBundle& Bundle) { this->description = Bundle.description; this->groups = Bundle.groups; this->image_url = Bundle.image_url; this->is_free = Bundle.is_free == "true"; this->name = Bundle.name; this->price = Bundle.price; this->sku = Bundle.sku; this->type = Bundle.type; this->virtual_prices = Bundle.virtual_prices; this->bundle_type = Bundle.bundle_type; this->total_content_price = Bundle.total_content_price; this->content = Bundle.content; this->attributes = Bundle.attributes; } USTRUCT(BlueprintType) struct XSOLLASTORE_API FGameUnitItem { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") FString type; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") bool is_free = false; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") TArray<FXsollaVirtualCurrencyPrice> virtual_prices; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") FString drm_name; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") FString drm_sku; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") bool has_keys = false; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") bool is_pre_order = false; UPROPERTY(BlueprintReadOnly, Category = "Game Unit Item") FString release_date; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FGameKeyItem { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FString name; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FString type; /* Groups the item belongs to. */ UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") TArray<FXsollaItemGroup> groups; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") TArray<FXsollaItemAttribute> attributes; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FString description; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FString image_url; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") bool is_free = false; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FXsollaPrice price; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") TArray<FXsollaVirtualCurrencyPrice> virtual_prices; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FString drm_name; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FString drm_sku; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") bool has_keys = false; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") bool is_pre_order = false; UPROPERTY(BlueprintReadOnly, Category = "Game Key Item") FString release_date; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FGameItem { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Game Item") FString sku; UPROPERTY(BlueprintReadOnly, Category = "Game Item") FString name; UPROPERTY(BlueprintReadOnly, Category = "Game Item") TArray<FXsollaItemGroup> groups; UPROPERTY(BlueprintReadOnly, Category = "Game Item") TArray<FXsollaItemAttribute> attributes; UPROPERTY(BlueprintReadOnly, Category = "Game Item") FString type; UPROPERTY(BlueprintReadOnly, Category = "Game Item") FString unit_type; UPROPERTY(BlueprintReadOnly, Category = "Game Item") FString description; UPROPERTY(BlueprintReadOnly, Category = "Game Item") FString image_url; UPROPERTY(BlueprintReadOnly, Category = "Game Item") TArray<FGameUnitItem> unit_items; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreGamesList { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Game List") TArray<FGameItem> Games; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreGamesData { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Games Data") TArray<FGameItem> Items; /** All category IDs used by games (calculated locally!). */ UPROPERTY(BlueprintReadOnly, Category = "Games Data") TSet<FString> GroupIds; /** All available game groups infos. */ UPROPERTY(BlueprintReadOnly, Category = "Games Data") TArray<FXsollaItemGroup> Groups; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreGameKeysList { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Game Key List") TArray<FGameKeyItem> GameKeys; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FDRMItem { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "DRM Item") FString sku; UPROPERTY(BlueprintReadOnly, Category = "DRM Item") FString name; UPROPERTY(BlueprintReadOnly, Category = "DRM Item") FString image; UPROPERTY(BlueprintReadOnly, Category = "DRM Item") FString link; UPROPERTY(BlueprintReadOnly, Category = "DRM Item") FString redeem_instruction_link; UPROPERTY(BlueprintReadOnly, Category = "DRM Item") int32 drm_id = 0; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FStoreDRMList { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "DRM List") TArray<FDRMItem> drm; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FOwnedGameItem { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Owned Game Item") FString name; UPROPERTY(BlueprintReadOnly, Category = "Owned Game Item") FString description; UPROPERTY(BlueprintReadOnly, Category = "Owned Game Item") int32 project_id = 0; UPROPERTY(BlueprintReadOnly, Category = "Owned Game Item") FString game_sku; UPROPERTY(BlueprintReadOnly, Category = "Owned Game Item") FString drm; UPROPERTY(BlueprintReadOnly, Category = "Owned Game Item") FString image_url; UPROPERTY(BlueprintReadOnly, Category = "Owned Game Item") bool is_pre_order = false; UPROPERTY(BlueprintReadOnly, Category = "Owned Game Item") TArray<FXsollaItemAttribute> attributes; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FOwnedGamesList { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Owned Games List") bool has_more = false; UPROPERTY(BlueprintReadOnly, Category = "Owned Games List") int32 total_items_count = 0; UPROPERTY(BlueprintReadOnly, Category = "Owned Games List") TArray<FOwnedGameItem> items; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionPaystationLink { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription Paystation Link") FString link_to_ps; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionPeriod { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription Period") int32 value = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription Period") FString unit; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionCharge { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription Charge") float amount = 0.f; UPROPERTY(BlueprintReadOnly, Category = "Subscription Charge") float amount_with_promotion = 0.f; UPROPERTY(BlueprintReadOnly, Category = "Subscription Charge") FString currency; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionPlanCharge { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan Charge") float amount = 0.f; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan Charge") float setup_fee = false; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan Charge") FString currency; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionPlanPromotion { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan Promotion") float promotion_charge_amount = 0.f; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan Promotion") float promotion_remaining_charges = 0.f; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionPlan { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") int32 plan_id = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FString plan_external_id; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FString plan_group_id; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FString plan_type; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FString plan_name; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FString plan_description; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FDateTime plan_start_date; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FDateTime plan_end_date; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") int32 trial_period = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FSubscriptionPeriod period; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FSubscriptionPlanCharge charge; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plan") FSubscriptionPlanPromotion promotion; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionPlansList { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription Plans List") TArray<FSubscriptionPlan> items; UPROPERTY(BlueprintReadOnly, Category = "Subscription Plans List") bool has_more = false; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscription { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription") int32 id = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription") int32 plan_id = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FString plan_external_id; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FString plan_name; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FString plan_description; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FDateTime plan_start_date; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FDateTime plan_end_date; UPROPERTY(BlueprintReadOnly, Category = "Subscription") int32 product_id = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FString product_external_id; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FString product_name; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FString product_description; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FString status; UPROPERTY(BlueprintReadOnly, Category = "Subscription") bool is_in_trial = false; UPROPERTY(BlueprintReadOnly, Category = "Subscription") int32 trial_period = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FDateTime date_create; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FDateTime date_next_charge; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FDateTime date_last_charge; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FSubscriptionCharge charge; UPROPERTY(BlueprintReadOnly, Category = "Subscription") FSubscriptionPeriod period; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionsList { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscriptions List") TArray<FSubscription> items; UPROPERTY(BlueprintReadOnly, Category = "Subscriptions List") bool has_more = false; }; USTRUCT(BlueprintType) struct XSOLLASTORE_API FSubscriptionDetails { GENERATED_BODY() UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") int32 id = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") int32 plan_id = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FString plan_external_id; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FString plan_name; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FString plan_description; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FDateTime plan_start_date; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FDateTime plan_end_date; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") int32 product_id = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FString product_external_id; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FString product_name; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FString product_description; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FString status; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") bool is_in_trial = false; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") int32 trial_period = 0; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FDateTime date_create; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FDateTime date_next_charge; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FDateTime date_last_charge; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FSubscriptionCharge charge; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FSubscriptionPeriod period; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") FDateTime date_end; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") bool is_renew_possible = false; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") bool is_change_to_non_renew_possible = false; UPROPERTY(BlueprintReadOnly, Category = "Subscription Details") bool is_change_plan_allowed = false; };
bb67d045797a6960ffa9593ce9f740d0671eea61
187c2f0d83eac13d3fdba74600e5154b89258428
/fs/mtd/mtdcore.cpp
e51bffc01878f594d9945821c83e5ab3b3851bb3
[]
no_license
ZeusJupiter/PowerPC-Demo-OS
5bcbc33be267600cacd3da6dde5367d6e6807725
23f0f10ba21f9f76dd4fb51402c3b237b5a1be2c
refs/heads/master
2020-04-02T01:40:56.799983
2018-10-30T05:49:10
2018-10-30T05:49:10
153,867,626
0
0
null
null
null
null
UTF-8
C++
false
false
7,201
cpp
mtdcore.cpp
/* * File name: mtdcore.cpp * * Created on: 2017年7月27日, 下午1:00:21 * Author: victor * Toolchain: * Language: C/C++ * description: from linux source code */ #include <macros.h> #include <types.h> #include <stdio.h> #include <debug.h> #include <assert.h> #include <string.h> #include <linux/mtd/mtd.h> static struct mtd_info *mtd_table[MAX_MTD_DEVICES]; BEG_EXT_C int add_mtd_device(struct mtd_info *mtd) { int i; assert(mtd->writesize == 0); for (i = 0; i < MAX_MTD_DEVICES; i++) if (!mtd_table[i]) { mtd_table[i] = mtd; mtd->index = i; mtd->usecount = 0; if (mtd->bitflip_threshold == 0) mtd->bitflip_threshold = mtd->ecc_strength; return 0; } return 1; } int del_mtd_device(struct mtd_info *mtd) { int ret; if (mtd_table[mtd->index] != mtd) { ret = -static_cast<sint>(ErrNo::ENODEV); } else if (mtd->usecount) { kformatln("Removing MTD device #%d (%s) with use count %d\n", mtd->index, mtd->name, mtd->usecount); ret = -static_cast<sint>(ErrNo::EBUSY); } else { mtd_table[mtd->index] = nullptr; ret = static_cast<sint>(ErrNo::ENONE); } return ret; } struct mtd_info *get_mtd_device(struct mtd_info *mtd, int num) { struct mtd_info *ret = nullptr; if (num == -1) { for (int i = 0; i < MAX_MTD_DEVICES; i++) if (mtd_table[i] == mtd) ret = mtd_table[i]; } else if (num < MAX_MTD_DEVICES) { ret = mtd_table[num]; if (mtd && mtd != ret) ret = nullptr; } if (ret) ret->usecount++; return ret; } struct mtd_info *get_mtd_device_nm(const char *name) { int i; struct mtd_info *mtd = nullptr; for (i = 0; i < MAX_MTD_DEVICES; i++) { if (mtd_table[i] && !strcmp(name, mtd_table[i]->name)) { mtd = mtd_table[i]; break; } } if (mtd) mtd->usecount++; return mtd; } void put_mtd_device(struct mtd_info *mtd) { int c; c = --mtd->usecount; assert(c < 0); } #if defined(CONFIG_CMD_MTDPARTS_SPREAD) void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset, const uint64_t length, uint64_t *len_incl_bad, int *truncated) { *truncated = 0; *len_incl_bad = 0; if (!mtd->block_isbad) { *len_incl_bad = length; return; } uint64_t len_excl_bad = 0; uint64_t block_len; while (len_excl_bad < length) { if (offset >= mtd->size) { *truncated = 1; return; } block_len = mtd->erasesize - (offset & (mtd->erasesize - 1)); if (!mtd->block_isbad(mtd, offset & ~(mtd->erasesize - 1))) len_excl_bad += block_len; *len_incl_bad += block_len; offset += block_len; } } #endif int mtd_erase(struct mtd_info *mtd, struct erase_info *instr) { if (instr->addr > mtd->size || instr->len > mtd->size - instr->addr) return -static_cast<sint>(ErrNo::EINVAL); if (!(mtd->flags & MTD_WRITEABLE)) return -static_cast<sint>(ErrNo::EROFS); instr->fail_addr = MTD_FAIL_ADDR_UNKNOWN; if (!instr->len) { instr->state = MTD_ERASE_DONE; mtd_erase_callback(instr); return 0; } return mtd->_erase(mtd, instr); } int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, uchar *buf) { if (from < 0 || from > mtd->size || len > mtd->size - from) return -static_cast<sint>(ErrNo::EINVAL); if (!len) return 0; int ret_code = mtd->_read(mtd, from, len, retlen, buf); if (unlikely(ret_code < 0)) return ret_code; if (mtd->ecc_strength == 0) return 0; return ret_code >= mtd->bitflip_threshold ? -static_cast<sint>(ErrNo::EUCLEAN) : 0; } int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const uchar *buf) { *retlen = 0; if (to < 0 || to > mtd->size || len > mtd->size - to) return -static_cast<sint>(ErrNo::EINVAL); if (!mtd->_write || !(mtd->flags & MTD_WRITEABLE)) return -static_cast<sint>(ErrNo::EROFS); if (!len) return 0; return mtd->_write(mtd, to, len, retlen, buf); } int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const uchar *buf) { *retlen = 0; if (!mtd->_panic_write) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (to < 0 || to > mtd->size || len > mtd->size - to) return -static_cast<sint>(ErrNo::EINVAL); if (!(mtd->flags & MTD_WRITEABLE)) return -static_cast<sint>(ErrNo::EROFS); if (!len) return 0; return mtd->_panic_write(mtd, to, len, retlen, buf); } int mtd_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops) { ops->retlen = ops->oobretlen = 0; if (!mtd->_read_oob) return -static_cast<sint>(ErrNo::EOPNOTSUPP); return mtd->_read_oob(mtd, from, ops); } int mtd_get_fact_prot_info(struct mtd_info *mtd, struct otp_info *buf, size_t len) { if (!mtd->_get_fact_prot_info) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (!len) return 0; return mtd->_get_fact_prot_info(mtd, buf, len); } int mtd_read_fact_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, uchar *buf) { *retlen = 0; if (!mtd->_read_fact_prot_reg) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (!len) return 0; return mtd->_read_fact_prot_reg(mtd, from, len, retlen, buf); } int mtd_get_user_prot_info(struct mtd_info *mtd, struct otp_info *buf, size_t len) { if (!mtd->_get_user_prot_info) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (!len) return 0; return mtd->_get_user_prot_info(mtd, buf, len); } int mtd_read_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, uchar *buf) { *retlen = 0; if (!mtd->_read_user_prot_reg) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (!len) return 0; return mtd->_read_user_prot_reg(mtd, from, len, retlen, buf); } int mtd_write_user_prot_reg(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, uchar *buf) { *retlen = 0; if (!mtd->_write_user_prot_reg) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (!len) return 0; return mtd->_write_user_prot_reg(mtd, to, len, retlen, buf); } int mtd_lock_user_prot_reg(struct mtd_info *mtd, loff_t from, size_t len) { if (!mtd->_lock_user_prot_reg) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (!len) return 0; return mtd->_lock_user_prot_reg(mtd, from, len); } int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) { if (!mtd->_lock) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) return -static_cast<sint>(ErrNo::EINVAL); if (!len) return 0; return mtd->_lock(mtd, ofs, len); } int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) { if (!mtd->_unlock) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (ofs < 0 || ofs > mtd->size || len > mtd->size - ofs) return -static_cast<sint>(ErrNo::EINVAL); if (!len) return 0; return mtd->_unlock(mtd, ofs, len); } int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) { if (!mtd->_block_isbad) return 0; if (ofs < 0 || ofs > mtd->size) return -static_cast<sint>(ErrNo::EINVAL); return mtd->_block_isbad(mtd, ofs); } int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) { if (!mtd->_block_markbad) return -static_cast<sint>(ErrNo::EOPNOTSUPP); if (ofs < 0 || ofs > mtd->size) return -static_cast<sint>(ErrNo::EINVAL); if (!(mtd->flags & MTD_WRITEABLE)) return -static_cast<sint>(ErrNo::EROFS); return mtd->_block_markbad(mtd, ofs); } END_EXT_C
39bfefad1e4eb687c8166925e4d6827543054846
6f190b1726f4af8425c9da35813ceb2b0038c9b2
/include/awkward/layoutbuilder/EmptyArrayBuilder.h
42014d00efffe76c88e02d861da04cf0283c4462
[ "BSD-3-Clause" ]
permissive
nsmith-/awkward-1.0
cb505152b1028f1e01812c18f820e94bd7013c3d
f250c34279476ae545e1cd629b97a4013a71ca17
refs/heads/master
2022-01-22T07:06:03.757447
2021-08-16T13:57:47
2021-08-16T13:57:47
237,034,347
0
0
BSD-3-Clause
2020-01-29T16:50:27
2020-01-29T16:50:26
null
UTF-8
C++
false
false
3,444
h
EmptyArrayBuilder.h
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE #ifndef AWKWARD_EMPTYARRAYBUILDER_H_ #define AWKWARD_EMPTYARRAYBUILDER_H_ #include "awkward/common.h" #include "awkward/util.h" #include "awkward/forth/ForthMachine.h" #include "awkward/layoutbuilder/FormBuilder.h" #include <complex> namespace awkward { class EmptyForm; using EmptyFormPtr = std::shared_ptr<EmptyForm>; /// @class EmptyArrayBuilder /// /// @brief class LIBAWKWARD_EXPORT_SYMBOL EmptyArrayBuilder : public FormBuilder { public: /// @brief Creates an EmptyArrayBuilder from a full set of parameters. EmptyArrayBuilder(const EmptyFormPtr& form); /// @brief User-friendly name of this class. const std::string classname() const override; /// @brief Turns the accumulated data into a Content array. const ContentPtr snapshot(const ForthOutputBufferMap& outputs) const override; /// @brief The Form describing the array. const FormPtr form() const override; /// @brief AwkwardForth virtual machine instructions of the data outputs. const std::string vm_output() const override; /// @brief AwkwardForth virtual machine data output key. const std::string vm_output_data() const override; /// @brief AwkwardForth virtual machine instructions of the array builder function. const std::string vm_func() const override; /// @brief The array builder VM function name. const std::string vm_func_name() const override; /// @brief The array builder VM function type. const std::string vm_func_type() const override; /// @brief AwkwardForth virtual machine instructions to retrieve the data from /// the VM stack. const std::string vm_from_stack() const override; /// @brief Error messages in the AwkwardForth virtual machine instructions. const std::string vm_error() const override; /// @brief Adds a boolean value `x` to the accumulated data. void boolean(bool x, LayoutBuilder* builder) override; /// @brief Adds an integer value `x` to the accumulated data. void int64(int64_t x, LayoutBuilder* builder) override; /// @brief Adds a real value `x` to the accumulated data. void float64(double x, LayoutBuilder* builder) override; /// @brief Adds a complex value `x` to the accumulated data. void complex(std::complex<double> x, LayoutBuilder* builder) override; /// @brief Adds an unencoded bytestring `x` in STL format to the /// accumulated data. void bytestring(const std::string& x, LayoutBuilder* builder) override; /// @brief Adds a UTF-8 encoded bytestring `x` in STL format to the /// accumulated data. void string(const std::string& x, LayoutBuilder* builder) override; /// @brief Begins building a nested list. void begin_list(LayoutBuilder* builder) override; /// @brief Ends a nested list. void end_list(LayoutBuilder* builder) override; private: /// @brief EmptyForm that defines the EmptyArray. const EmptyFormPtr form_; /// @brief an output buffer name is /// "part{partition}-{form_key}-{attribute}" const FormKey form_key_; /// @brief An empty command. std::string vm_empty_command_; /// @brief An error message. std::string vm_error_; }; } #endif // AWKWARD_EMPTYARRAYBUILDER_H_
8d690164969f99474a01e4e966b569cdf086ef11
36019e4061e1912e7a0414a01c270abf0d485ed3
/bot.h
f2ffe70345035cd4745a3b759767a40f45de4f21
[]
no_license
motosupamida/sfml_tici_taki_toe
f024bd17a1afad03dab4fe5c2b8b20b349774fa9
f0108d7951f14eb1af6580daf8d02a2f7a8fdc7f
refs/heads/master
2022-10-21T02:23:24.262602
2020-06-13T16:51:15
2020-06-13T16:51:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
70
h
bot.h
#pragma once #include "Player.h" class Bot : public Player { };
41bb39552790c8e957001edb62d42cf14743f292
46c3e4507dad6aa4747eb33f29118c114262663a
/receiver/receiver.ino
5bc318b4fbf5635fdefe4a1ba36a1db8b42c218d
[ "MIT" ]
permissive
david-wirelab/arduino-radio-rf433
4e4704c88bd1a5122c35f38ae11b26030f673e09
20cdc22f5cab38ef52f191c7fc61d691119408c6
refs/heads/master
2020-04-15T06:32:24.542110
2019-01-08T20:45:30
2019-01-08T20:45:30
164,464,334
0
0
MIT
2019-01-08T20:45:32
2019-01-07T17:04:04
C++
UTF-8
C++
false
false
444
ino
receiver.ino
#define datain A0 #define ledPin 4 unsigned int data = 0; const unsigned int upperThreshold = 300; const unsigned int lowerThreshold = 100; void setup() { pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop(){ data=analogRead(datain); if(data<lowerThreshold) { digitalWrite(ledPin, HIGH); Serial.println(data); } else if(data>upperThreshold) { digitalWrite(ledPin, LOW); Serial.println(data); } }
531e5f2ad975d8a1d0428c476cd61615dc20c79c
cfeac52f970e8901871bd02d9acb7de66b9fb6b4
/generated/src/aws-cpp-sdk-appstream/include/aws/appstream/model/EntitledApplication.h
369ed7dcf074c2d8f5d94052084aeae356756fc9
[ "Apache-2.0", "MIT", "JSON" ]
permissive
aws/aws-sdk-cpp
aff116ddf9ca2b41e45c47dba1c2b7754935c585
9a7606a6c98e13c759032c2e920c7c64a6a35264
refs/heads/main
2023-08-25T11:16:55.982089
2023-08-24T18:14:53
2023-08-24T18:14:53
35,440,404
1,681
1,133
Apache-2.0
2023-09-12T15:59:33
2015-05-11T17:57:32
null
UTF-8
C++
false
false
2,767
h
EntitledApplication.h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/appstream/AppStream_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppStream { namespace Model { /** * <p>The application associated to an entitlement. Access is controlled based on * user attributes.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EntitledApplication">AWS * API Reference</a></p> */ class EntitledApplication { public: AWS_APPSTREAM_API EntitledApplication(); AWS_APPSTREAM_API EntitledApplication(Aws::Utils::Json::JsonView jsonValue); AWS_APPSTREAM_API EntitledApplication& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The identifier of the application.</p> */ inline const Aws::String& GetApplicationIdentifier() const{ return m_applicationIdentifier; } /** * <p>The identifier of the application.</p> */ inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; } /** * <p>The identifier of the application.</p> */ inline void SetApplicationIdentifier(const Aws::String& value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier = value; } /** * <p>The identifier of the application.</p> */ inline void SetApplicationIdentifier(Aws::String&& value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier = std::move(value); } /** * <p>The identifier of the application.</p> */ inline void SetApplicationIdentifier(const char* value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier.assign(value); } /** * <p>The identifier of the application.</p> */ inline EntitledApplication& WithApplicationIdentifier(const Aws::String& value) { SetApplicationIdentifier(value); return *this;} /** * <p>The identifier of the application.</p> */ inline EntitledApplication& WithApplicationIdentifier(Aws::String&& value) { SetApplicationIdentifier(std::move(value)); return *this;} /** * <p>The identifier of the application.</p> */ inline EntitledApplication& WithApplicationIdentifier(const char* value) { SetApplicationIdentifier(value); return *this;} private: Aws::String m_applicationIdentifier; bool m_applicationIdentifierHasBeenSet = false; }; } // namespace Model } // namespace AppStream } // namespace Aws
7b9963e162f9173defeb39f12699d93a829d7d93
9f6d0c9e9f0877e0cc954f61e2245c88839918f9
/v8/gen/64/torque-generated/src/builtins/typed-array-entries-tq-csa.h
c6f56e17cbadcdb038f1f7953268d98289917029
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
fibjs/fibjs_vender
c2f4fd35b7ed9e9ea06680d75453b3ee81a25d0d
6aa2431f65e17f9a51b60f12c14a36a8464fad5d
refs/heads/dev
2023-08-03T18:39:02.369823
2023-07-27T14:12:00
2023-07-27T14:12:00
37,327,960
7
24
null
2022-05-18T15:08:24
2015-06-12T14:56:51
C++
UTF-8
C++
false
false
542
h
typed-array-entries-tq-csa.h
#ifndef V8_GEN_TORQUE_GENERATED_SRC_BUILTINS_TYPED_ARRAY_ENTRIES_TQ_CSA_H_ #define V8_GEN_TORQUE_GENERATED_SRC_BUILTINS_TYPED_ARRAY_ENTRIES_TQ_CSA_H_ #include "src/builtins/torque-csa-header-includes.h" namespace v8 { namespace internal { // https://source.chromium.org/chromium/chromium/src/+/main:v8/src/builtins/typed-array-entries.tq?l=8&c=1 const char* kBuiltinNameEntries_0(compiler::CodeAssemblerState* state_); } // namespace internal } // namespace v8 #endif // V8_GEN_TORQUE_GENERATED_SRC_BUILTINS_TYPED_ARRAY_ENTRIES_TQ_CSA_H_
ea216ed430bc4b3b96891fbabbbd4b302e81988b
4371ef96a14e62c97bd898fb9ed425f0206baa4e
/GlitchenSync/syncplan.hpp
451e40b3a9d93dcc5284989e78e3fe0bf49406d3
[]
no_license
thenfour/Archives
e03413ece7b71552a99308c58cc4b76dbf94a000
f7c87afe644989b5e8b3d2c1e30ca4546658138d
refs/heads/master
2020-04-10T06:31:10.444614
2014-02-18T01:51:55
2014-02-18T01:51:55
16,931,568
2
0
null
null
null
null
UTF-8
C++
false
false
104
hpp
syncplan.hpp
#pragma once #include <string> #include <list> #include <map> #include "configuration.h"
97d4bed725eda78900cf72998e378a91ceda28c9
800965a478f1c8d68c25d0837d1a3ffab75b50e9
/Week-02/day-4/08.cpp
12b9912158790a9260a4d938a820866447085d05
[]
no_license
greenfox-zerda-sparta/Ak0s
8ed1eea5a63249cabb58f5de8620884aea7a8503
2f37db6512f6aa7057048ed189ed2259e3ee48ba
refs/heads/master
2021-01-12T18:15:08.523009
2017-02-13T18:06:12
2017-02-13T18:06:12
71,350,507
2
0
null
null
null
null
UTF-8
C++
false
false
1,093
cpp
08.cpp
//============================================================================ // Name : 08.cpp // Author : Ak0s //============================================================================ // Create a function that takes a number and prints a triangle like this: // // * // *** // ***** // ******* // ********* // *********** // // The triangle should have as many lines as the value in the argument #include <iostream> using namespace std; void pyramid(int number); int main() { int number; cout << "The program prints a pyramid made of *-s. How many rows do you want?" << endl; cin >> number; pyramid(number); return 0; } void pyramid(int number) { int i, j, k; k = number - 1; for (i = 1; i <= number; i++) { for (j = 1; j <= k; j++) { cout << " "; } k--; for (j = 1; j <= 2*i-1; j++) { cout << "*"; } cout << endl; } } // first for: makes new lines after filling the rows // second for: makes space equal to the number of line -1 (last line don't need space) // third for: makes the stars after the spaces
a55559abd23413ce5ca626ef9222a5596a28cb23
032618dab4b2f9a557571b0e06149bec8ee7af88
/Codeup/《算法笔记》2.8小节/1303.cpp
14ff895160bf4f6c14c7b3d662f9e69310779962
[]
no_license
YilK/Programming_exercise
abd7c61e6b2557b8ba20c101ecdce83bd4b1f4f2
98dd9dd2804aeb8e4e18207aee116c168908e9b1
refs/heads/master
2020-11-29T11:29:21.226738
2020-05-03T07:29:01
2020-05-03T07:29:01
230,103,559
0
0
null
null
null
null
UTF-8
C++
false
false
419
cpp
1303.cpp
#include <iostream> #include <string> using namespace std; struct node { string name; int count; }leader[3]={"Li", 0, "Zhang", 0, "Fun", 0}; int main() { int n; cin>>n; string s; for(int i=0;i<n;i++) { cin>>s; if(s=="Li") leader[0].count++; else if(s=="Zhang") leader[1].count++; else leader[2].count++; } for(int i=0;i<3;i++) cout<<leader[i].name<<':'<<leader[i].count<<endl; return 0; }
33589e7c7860924b9ad6bf1956fc6db1835dd58a
581d96e72cf7608ada7564db5fad3fde78f3644c
/torch/csrc/api/src/imethod.cpp
20cdb3569c3e4d63d42def331f4a02df8348fbf6
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
heitorschueroff/pytorch
dee92c2d2991f2ee0821c438a245dc704eb52b10
6f95850127e4659f857116c8205f03f66ab5a711
refs/heads/master
2023-08-11T11:47:06.710438
2021-08-02T17:24:37
2021-08-02T17:26:54
350,848,572
1
0
NOASSERTION
2021-03-23T20:29:19
2021-03-23T20:29:18
null
UTF-8
C++
false
false
309
cpp
imethod.cpp
#include <torch/imethod.h> namespace torch { const std::vector<std::string>& IMethod::getArgumentNames() { // TODO(jwtan): Deal with empty parameter list. if (!argumentNames_.empty()) { return argumentNames_; } setArgumentNames(argumentNames_); return argumentNames_; } } // namespace torch
f91c0b575a9b194b8900d51c83be981370759c00
11acd67a90e2aa038a4d21d1fd442c9eb1e7b35d
/C-and-CPP/char_print_at_zero.cpp
c4aaecf29a5061077156fe71f2c57acbca174320
[]
no_license
vinothcse123/WeirdProgrammingFacts
a5e4d4dd8cbf7604f72d6280415a27f343337699
9899d3df2d88d3f6e34c6ed72d632f0d94b1e07c
refs/heads/master
2021-05-31T20:12:10.636259
2016-03-15T14:05:17
2016-03-15T14:05:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
100
cpp
char_print_at_zero.cpp
#include<iostream> int main() { using namespace std; printf("\n :: %c ", 0 ); return 0; }
797935f3f80cf1b1ae14080f85fc524640451e81
ac9fd76c91a8de1e32cd99d30c3374bb48be3a0d
/options/OptionsTabWidget.cpp
12e402ea9eebdffdbeb20aa650ddcd528a8590b5
[ "BSD-3-Clause" ]
permissive
bendalab/NixView
89d1c1dbf8246c218c221779031d07d433f38e54
62d45409d9ee9bd7612b5f3e7742a35e3202bbda
refs/heads/master
2020-04-09T07:32:30.207858
2019-12-21T15:32:43
2019-12-21T15:32:43
41,813,337
9
6
null
2018-04-10T19:00:39
2015-09-02T16:39:48
C++
UTF-8
C++
false
false
132
cpp
OptionsTabWidget.cpp
#include "OptionsTabWidget.hpp" OptionsTabWidget::OptionsTabWidget() : QTabWidget() { setTabPosition(QTabWidget::West); }
6fa6a7391cb3b2428ae53e476b938a63a87bd4f2
4749b64b52965942f785b4e592392d3ab4fa3cda
/chrome/renderer/chrome_render_frame_observer.h
643533d446543f37e28a1da8fed584cb5c9ab53b
[ "BSD-3-Clause" ]
permissive
crosswalk-project/chromium-crosswalk-efl
763f6062679727802adeef009f2fe72905ad5622
ff1451d8c66df23cdce579e4c6f0065c6cae2729
refs/heads/efl/crosswalk-10/39.0.2171.19
2023-03-23T12:34:43.905665
2014-12-23T13:44:34
2014-12-23T13:44:34
27,142,234
2
8
null
2014-12-23T06:02:24
2014-11-25T19:27:37
C++
UTF-8
C++
false
false
1,165
h
chrome_render_frame_observer.h
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ #define CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_ #include "base/basictypes.h" #include "content/public/renderer/render_frame_observer.h" namespace gfx { class Size; } // This class holds the Chrome specific parts of RenderFrame, and has the same // lifetime. class ChromeRenderFrameObserver : public content::RenderFrameObserver { public: explicit ChromeRenderFrameObserver(content::RenderFrame* render_frame); virtual ~ChromeRenderFrameObserver(); private: // RenderFrameObserver implementation. virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; // IPC handlers void OnSetIsPrerendering(bool is_prerendering); void OnRequestThumbnailForContextNode( int thumbnail_min_area_pixels, const gfx::Size& thumbnail_max_size_pixels); void OnPrintNodeUnderContextMenu(); DISALLOW_COPY_AND_ASSIGN(ChromeRenderFrameObserver); }; #endif // CHROME_RENDERER_CHROME_RENDER_FRAME_OBSERVER_H_
209cf7ae1827f5b2a0b9a3bdd043007aa91791ce
babb4079f81b5284584b05b327219016c8f05795
/Arbol.h
16c87524996b0a6b3af3423d1aa56b15fdd2d315
[]
no_license
Mellandd/Proyecto-AED-Quacker
9f0b56597d38e52ae11ad8e51d867922a4d7e4de
ec18ab63b9263dcc1568fc39f3e351d5d94f8bfe
refs/heads/master
2020-04-11T04:12:24.356332
2018-12-12T15:09:16
2018-12-12T15:09:16
161,504,644
0
0
null
null
null
null
UTF-8
C++
false
false
1,098
h
Arbol.h
// Modulo Diccionario #ifndef _MODULO_ARBOL #define _MODULO_ARBOL #include "Cuac.h" #include "Fecha.h" #include <list> using namespace std; class Nodo { friend class Arbol; private: Nodo *hijoIzquierdo; Nodo *hijoDerecho; Fecha fecha; list<Cuac*> *lista; int altura; int alturaNodo(); public: Nodo (); ~Nodo () { delete hijoIzquierdo; delete hijoDerecho; delete lista; } void actualizarAltura(); int last(int n, int& m); void date (Fecha f1, Fecha f2, int& m); }; class Arbol { private: Nodo *raiz; void insertar (Cuac *ref, Nodo *&nodo); void RSI (Nodo *&nodo) const ; void RSD (Nodo *&nodo) const ; void RDI (Nodo *&nodo) const ; void RDD (Nodo *&nodo) const ; public: Arbol (); ~Arbol () { delete raiz; } void rebalance(Nodo *&nodo); void insertar (Cuac *ref); void last (int N); void date (Fecha f1, Fecha f2); }; #endif
04b3881226fc05ad3a9ee1ede96111b60392a64e
b8760af7bac668492ff171432667cd787d1ccedb
/Game2016O/Temp/MeshBase.cpp
4422ed4cebeb221f57e9a6a4b94926cd583c1495
[]
no_license
pacomendez12/Game2016O
47e1ed40176fcfb4f29d409309ccbff3ea6c9256
d29828adbac22344857dfc87c6421ad1431a6102
refs/heads/master
2021-01-12T17:55:25.699463
2016-12-05T08:58:18
2016-12-05T08:58:18
71,302,334
0
1
null
null
null
null
ISO-8859-1
C++
false
false
13,955
cpp
MeshBase.cpp
#include "StdAfx.h" #include "MeshBase.h" #include "Matrix4d.h" CMeshBase::CMeshBase(void) { m_lIBID=0; m_lVBID=0; } CMeshBase::~CMeshBase(void) { } bool CMeshBase::RayIntersect(VECTOR4D& vSrc,VECTOR4D& vRay,multimap<float,unsigned int>& mmapOutIntersectedFaces,ATTRIBUTE_RANGE& Range) { VECTOR4D Ray=vRay; VECTOR4D Point; Normalize(Ray,vRay); unsigned long ulFace=Range.ulFaceStart; unsigned long ulIndex=Range.ulFaceStart*3; VECTOR4D A,B,Plane; for(unsigned ulFaceCount=Range.ulFaceCount;ulFaceCount;ulIndex+=3,ulFace++,ulFaceCount--) { VECTOR4D &V0=m_vecVertices[Range.ulVertexStart+m_vecIndices[ulIndex]].V; VECTOR4D &V1=m_vecVertices[Range.ulVertexStart+m_vecIndices[ulIndex+1]].V; VECTOR4D &V2=m_vecVertices[Range.ulVertexStart+m_vecIndices[ulIndex+2]].V; Sub(V1,V0,A); Sub(V2,V0,B); Cross3(A,B,Plane); Normalize(Plane,Plane); Plane.w=-Dot(Plane,V0); float fn,fd; RayCastOnPlane(Plane,vRay,vSrc,&fn,&fd); if(fabs(fd)<0.00001) continue; fn=-fn/fd; if(fn<0) continue; ComputeIntersectionPoint(vSrc,Ray,fn,Point); if(PointInTriangleBarycentric(V0,V1,V2,Point)) mmapOutIntersectedFaces.insert(make_pair(fn,ulFace)); } return mmapOutIntersectedFaces.size()>0; } bool CMeshBase::Serialize(CStream& io,bool bSave,CObjectFactory& Factory) { unsigned long ulCount=0; if(bSave) { ulCount=m_vecVertices.size(); io.write((char*)&ulCount,sizeof(unsigned long)); io.write((char*)&m_vecVertices[0],ulCount*sizeof(VERTEX)); ulCount=m_vecIndices.size(); io.write((char*)&ulCount,sizeof(unsigned long)); io.write((char*)&m_vecIndices[0],ulCount*sizeof(unsigned long)); ulCount=m_vecAttributes.size(); io.write((char*)&ulCount,sizeof(unsigned long)); io.write((char*)&m_vecAttributes[0],ulCount*sizeof(ATTRIBUTE_RANGE)); ulCount=m_vecMaterials.size(); io.Write(ulCount); for(auto itM=m_vecMaterials.begin();itM!=m_vecMaterials.end();itM++) { io.write(&(*itM),sizeof(MATERIAL)); io.Write(itM->lShaderID); ulCount=itM->vecTexturesFileNames.size(); io.Write(ulCount); for(auto itT=itM->vecTexturesFileNames.begin();itT!=itM->vecTexturesFileNames.end();itT++) io.Write(*itT); } } else { m_vecVertices.clear(); m_vecIndices.clear(); m_vecMaterials.clear(); m_vecAttributes.clear(); unsigned long ulMaterials; m_vecVertices.clear(); m_vecIndices.clear(); io.read((char*)&ulCount,sizeof(unsigned long)); m_vecVertices.resize(ulCount); io.read((char*)&m_vecVertices[0],ulCount*sizeof(VERTEX)); io.read((char*)&ulCount,sizeof(unsigned long)); m_vecIndices.resize(ulCount); io.read((char*)&m_vecIndices[0],ulCount*sizeof(unsigned long)); io.read((char*)&ulCount,sizeof(unsigned long)); m_vecAttributes.resize(ulCount); io.read((char*)&m_vecAttributes[0],ulCount*sizeof(ATTRIBUTE_RANGE)); io.Read(ulMaterials); m_vecMaterials.resize(ulMaterials); for(unsigned long m=0;m<ulMaterials;m++) { XMATERIAL& M=m_vecMaterials[m]; io.read(&M,sizeof(MATERIAL)); io.Read(M.lShaderID); io.Read(ulCount); M.vecTexturesFileNames.resize(ulCount); for(unsigned long i=0;i<ulCount;i++) { string strTextureFileName; io.Read(strTextureFileName); M.vecTexturesFileNames[i]=strTextureFileName; } } } return true; } bool CMeshBase::CalcBoundingBox(vector<ATTRIBUTE_RANGE>& vecInAttributeRanges,VECTOR4D& Min,VECTOR4D& Max) { CMeshBase* pBox=0; if(!vecInAttributeRanges.size()) return false; //No hay atributos que procesar. //Extraer el la muestra inicial ATTRIBUTE_RANGE* pRange=&vecInAttributeRanges[0]; //Desde el primer atributo en el contenedor tomaremos la muestra inicial de posición Min=Max=m_vecVertices[pRange->ulVertexStart+m_vecIndices[pRange->ulFaceStart*3+0]].V; //Ya tenemos la muestra ahora podemos comparar en búsqueda de máximos y mínimos. for(unsigned int uiAttID=0;uiAttID<vecInAttributeRanges.size();uiAttID++) { //Por cada cara en el rango pRange=&vecInAttributeRanges[uiAttID]; unsigned int uiBaseVertex=pRange->ulVertexStart; unsigned int uiBaseIndex=pRange->ulFaceStart*3; for(unsigned int uiFace=pRange->ulFaceCount;uiFace;uiFace--) { for(int i=0;i<3;i++) { VECTOR4D& Position=m_vecVertices[uiBaseVertex+m_vecIndices[uiBaseIndex++]].V; Max.x=max(Max.x,Position.x); Max.y=max(Max.y,Position.y); Max.z=max(Max.z,Position.z); Min.x=min(Min.x,Position.x); Min.y=min(Min.y,Position.y); Min.z=min(Min.z,Position.z); } } } return true; } CMeshBase* CMeshBase::CreateBox(VECTOR4D& Min,VECTOR4D& Max) { CMeshBase* pMesh=new CMeshBase; static unsigned long CubeIndex[]= { 0,3,1, 1,3,2, 3,7,2, 2,7,6, 7,4,6, 6,4,5, 2,6,1, 1,6,5, 1,5,0, 0,5,4, 0,4,3, 3,4,7 }; pMesh->m_vecIndices.resize(3*12); memcpy(&pMesh->m_vecIndices[0],CubeIndex,sizeof(CubeIndex)); pMesh->m_vecVertices.resize(8); memset(&pMesh->m_vecVertices[0],0,sizeof(VERTEX)*8); pMesh->m_vecVertices[0].V=VECTOR4D(Min.x,Min.y,Min.z,1); pMesh->m_vecVertices[1].V=VECTOR4D(Min.x,Min.y,Max.z,1); pMesh->m_vecVertices[2].V=VECTOR4D(Max.x,Min.y,Max.z,1); pMesh->m_vecVertices[3].V=VECTOR4D(Max.x,Min.y,Min.z,1); pMesh->m_vecVertices[4].V=VECTOR4D(Min.x,Max.y,Min.z,1); pMesh->m_vecVertices[5].V=VECTOR4D(Min.x,Max.y,Max.z,1); pMesh->m_vecVertices[6].V=VECTOR4D(Max.x,Max.y,Max.z,1); pMesh->m_vecVertices[7].V=VECTOR4D(Max.x,Max.y,Min.z,1); //0.5773f -0.5773f pMesh->m_vecVertices[0].N=VECTOR4D(-0.5773f,-0.5773f,-0.5773f,0); pMesh->m_vecVertices[1].N=VECTOR4D(-0.5773f,-0.5773f,0.5773f,0); pMesh->m_vecVertices[2].N=VECTOR4D(0.5773f,-0.5773f,0.5773f,0); pMesh->m_vecVertices[3].N=VECTOR4D(0.5773f,-0.5773f,-0.5773f,0); pMesh->m_vecVertices[4].N=VECTOR4D(-0.5773f,0.5773f,-0.5773f,0); pMesh->m_vecVertices[5].N=VECTOR4D(-0.5773f,0.5773f,0.5773f,0); pMesh->m_vecVertices[6].N=VECTOR4D(0.5773f,0.5773f,0.5773f,0); pMesh->m_vecVertices[7].N=VECTOR4D(0.5773f,0.5773f,-0.5773f,0); pMesh->m_vecVertices[0].u=0; pMesh->m_vecVertices[0].v=0; pMesh->m_vecVertices[1].u=1; pMesh->m_vecVertices[1].v=0; pMesh->m_vecVertices[2].u=1; pMesh->m_vecVertices[2].v=1; pMesh->m_vecVertices[3].u=0; pMesh->m_vecVertices[3].v=1; pMesh->m_vecVertices[6].u=0; pMesh->m_vecVertices[6].v=0; pMesh->m_vecVertices[7].u=1; pMesh->m_vecVertices[7].v=0; pMesh->m_vecVertices[4].u=1; pMesh->m_vecVertices[4].v=1; pMesh->m_vecVertices[5].u=0; pMesh->m_vecVertices[5].v=1; ATTRIBUTE_RANGE Range; Range.ulAttribID=0; Range.ulFaceCount=12; Range.ulFaceStart=0; Range.ulVertexStart=0; Range.ulVertexCount=8; pMesh->m_vecAttributes.push_back(Range); XMATERIAL XMat; XMat.vAmbient=VECTOR4D(0.7f,0.7f,0.7f,1); XMat.vDiffuse=VECTOR4D(0.7f,0.7f,0.7f,1); XMat.vEmissive=VECTOR4D(0,0,0,0); XMat.vSpecular=VECTOR4D(1,1,1,1); XMat.fPower=20; pMesh->m_vecMaterials.push_back(XMat); return pMesh; } void CMeshBase::BuildTangentSpaceFromTexCoordsIndexed(void) { vector<int> Histogram; m_vecXVertices.clear(); m_vecXVertices.resize(m_vecVertices.size()); Histogram.resize(m_vecVertices.size()); memset(&Histogram[0],0,sizeof(int)*Histogram.size()); for(unsigned int i=0;i<m_vecVertices.size();i++) { memcpy(&m_vecXVertices[i],&m_vecVertices[i],sizeof(VERTEX)); m_vecXVertices[i].vNormal=VECTOR4D(0,0,0,0); m_vecXVertices[i].vTangent=VECTOR4D(0,0,0,0); m_vecXVertices[i].vBinormal=VECTOR4D(0,0,0,0); } for(unsigned long ulSubset=0;ulSubset<m_vecAttributes.size();ulSubset++) { ATTRIBUTE_RANGE Att=m_vecAttributes[ulSubset]; XVERTEX * pXVertices=&m_vecXVertices[Att.ulVertexStart]; unsigned long* pIndices=&m_vecIndices[Att.ulFaceStart*3]; int* pHistogram=&Histogram[Att.ulVertexStart]; for(unsigned int i=0;i<Att.ulFaceCount*3;i+=3) { VECTOR4D V0,V1,V2,T0,T1,T2,T,B; MATRIX4D InvS,Mq,Mt; MATRIX4D::Identity(InvS); MATRIX4D::Identity(Mq); //Tomar un triangulo V0=pXVertices[pIndices[i]].V; V1=pXVertices[pIndices[i+1]].V; V2=pXVertices[pIndices[i+2]].V; //y sus coordenadas de textura para formar la base ortornormal en espacio de vértice (espacio tangente) T0=VECTOR4D(pXVertices[pIndices[i]].u,pXVertices[pIndices[i]].v,0,0); T1=VECTOR4D(pXVertices[pIndices[i+1]].u,pXVertices[pIndices[i+1]].v,0,0); T2=VECTOR4D(pXVertices[pIndices[i+2]].u,pXVertices[pIndices[i+2]].v,0,0); Sub(V1,V0,(VECTOR4D&)Mq.vec[0]); Sub(V2,V0,(VECTOR4D&)Mq.vec[1]); Sub(T1,T0,(VECTOR4D&)InvS.vec[0]); Sub(T2,T0,(VECTOR4D&)InvS.vec[1]); float det=MATRIX4D::Inverse(InvS,InvS); Mt=InvS*Mq; for(int j=0;j<3;j++) { VECTOR4D temp1; VECTOR4D N=(VECTOR4D&)pXVertices[pIndices[i+j]].N; //Normal de vértice VECTOR4D T=(VECTOR4D&)Mt.vec[0]; VECTOR4D B=(VECTOR4D&)Mt.vec[1]; //Ortogonalización con respecto a la normal de vértice Normalize(N,N); Sub(T,MulS(N,Dot(N,T),temp1),T); Normalize(T,T); VECTOR4D temp2; Sub(B,MulS(N,Dot(N,B),temp1),temp2); Sub(temp2,MulS(T,Dot(T,B),temp1),B); Normalize(B,B); Add(pXVertices[pIndices[i+j]].vNormal,N,pXVertices[pIndices[i+j]].vNormal); Add(pXVertices[pIndices[i+j]].vBinormal,B,pXVertices[pIndices[i+j]].vBinormal); Add(pXVertices[pIndices[i+j]].vTangent,T,pXVertices[pIndices[i+j]].vTangent); pHistogram[pIndices[i+j]]++; } } for(unsigned int i=0;i<Att.ulVertexCount;i++) { float invFreq=1.0f/pHistogram[i]; MulS(pXVertices[i].vNormal,invFreq,pXVertices[i].vNormal); MulS(pXVertices[i].vTangent,invFreq,pXVertices[i].vTangent); MulS(pXVertices[i].vBinormal,invFreq,pXVertices[i].vBinormal); Normalize(pXVertices[i].vNormal,pXVertices[i].vNormal); Normalize(pXVertices[i].vTangent,pXVertices[i].vTangent); Normalize(pXVertices[i].vBinormal,pXVertices[i].vBinormal); } } } CMeshBase* CMeshBase::Join(MATRIX4D& XA,CMeshBase* pMeshA,MATRIX4D& XB, CMeshBase* pMeshB) { CMeshBase* pC=new CMeshBase; //Collect Materials pC->m_vecMaterials.resize(pMeshA->m_vecMaterials.size()+pMeshB->m_vecMaterials.size()); pC->m_vecAttributes.resize(pMeshA->m_vecAttributes.size()+pMeshB->m_vecAttributes.size()); pC->m_vecVertices.resize(pMeshA->m_vecVertices.size()+pMeshB->m_vecVertices.size()); pC->m_vecIndices.resize(pMeshA->m_vecIndices.size()+pMeshB->m_vecIndices.size()); unsigned long ulVertexOffset; unsigned long ulIndexOffset; unsigned long ulMaterialOffset; unsigned long ulAttributeOffset; ulVertexOffset=pMeshA->m_vecVertices.size(); ulIndexOffset=pMeshA->m_vecIndices.size(); ulMaterialOffset=pMeshA->m_vecMaterials.size(); ulAttributeOffset=pMeshA->m_vecAttributes.size(); //Transfer Attrubute sets for(unsigned long i=0;i<pMeshA->m_vecAttributes.size();i++) pC->m_vecAttributes[i]=pMeshA->m_vecAttributes[i]; for(unsigned long i=0;i<pMeshB->m_vecAttributes.size();i++) { ATTRIBUTE_RANGE Attribute=pMeshB->m_vecAttributes[i]; Attribute.ulAttribID+=ulMaterialOffset; Attribute.ulFaceStart+=ulIndexOffset/3; Attribute.ulVertexStart+=ulVertexOffset; pC->m_vecAttributes[i+ulAttributeOffset]=Attribute; } //Transfer Materials for(unsigned long i=0;i<pMeshA->m_vecMaterials.size();i++) pC->m_vecMaterials[i]=pMeshA->m_vecMaterials[i]; for(unsigned long i=0;i<pMeshB->m_vecMaterials.size();i++) pC->m_vecMaterials[i+ulMaterialOffset]=pMeshB->m_vecMaterials[i]; //Transfer geometry memcpy(&pC->m_vecIndices[0],&pMeshA->m_vecIndices[0],sizeof(unsigned long)*pMeshA->m_vecIndices.size()); memcpy(&pC->m_vecIndices[ulIndexOffset],&pMeshB->m_vecIndices[0],sizeof(unsigned long)*pMeshB->m_vecIndices.size()); memcpy(&pC->m_vecVertices[0],&pMeshA->m_vecVertices[0],sizeof(VERTEX)*pMeshA->m_vecVertices.size()); memcpy(&pC->m_vecVertices[ulVertexOffset],&pMeshB->m_vecVertices[0],sizeof(VERTEX)*pMeshB->m_vecVertices.size()); //Transform geometry for(unsigned long i=0;i<pMeshA->m_vecVertices.size();i++) { pC->m_vecVertices[i].V=pC->m_vecVertices[i].V*XA; pC->m_vecVertices[i].N=pC->m_vecVertices[i].N*XA; Normalize(pC->m_vecVertices[i].N,pC->m_vecVertices[i].N); } for(unsigned long i=ulVertexOffset ; i<(ulVertexOffset+pMeshB->m_vecVertices.size()); i++) { pC->m_vecVertices[i].V=pC->m_vecVertices[i].V*XB; pC->m_vecVertices[i].N=pC->m_vecVertices[i].N*XB; Normalize(pC->m_vecVertices[i].N,pC->m_vecVertices[i].N); } return pC; } void CMeshBase::RemoveTriangle(unsigned long ulFace) { for(unsigned long ulAtt=0;ulAtt<m_vecAttributes.size();ulAtt++) { ATTRIBUTE_RANGE& Att=m_vecAttributes[ulAtt]; if(ulFace < Att.ulFaceStart ) { Att.ulFaceStart--; } else if((ulFace >= Att.ulFaceStart )&&(ulFace < (Att.ulFaceStart+Att.ulFaceCount))) { Att.ulFaceCount--; } } m_vecIndices.erase(m_vecIndices.begin()+ulFace*3,m_vecIndices.begin()+ulFace*3+3); } unsigned long CMeshBase::RemoveNearToZeroTriangles(float fEpsilon) { //Eliminar triángulos cuya area se cercana a cero unsigned long ulRemovedFaces=0; unsigned long ulIndex=0; unsigned long ulFaces=m_vecIndices.size()/3; while(ulFaces--) { VECTOR4D A,B,V0,V1,V2,N; unsigned ulVertexStart=GetVertexStart(ulIndex/3); V0=m_vecVertices[ulVertexStart+m_vecIndices[ulIndex]].V; V1=m_vecVertices[ulVertexStart+m_vecIndices[ulIndex+1]].V; V2=m_vecVertices[ulVertexStart+m_vecIndices[ulIndex+2]].V; Sub(V1,V0,A); Sub(V2,V0,B); Cross3(A,B,N); if(sqrtf(SquareMag(N))<fEpsilon) { RemoveTriangle(ulIndex/3); ulRemovedFaces++; } else ulIndex+=3; } m_vecIndices.shrink_to_fit(); return ulRemovedFaces; } unsigned long CMeshBase::GetVertexStart(unsigned long ulFace) { for(unsigned long i=0;i<m_vecAttributes.size();i++) { ATTRIBUTE_RANGE& Att=m_vecAttributes[i]; if((ulFace >= Att.ulFaceStart) && (ulFace <( Att.ulFaceStart+Att.ulFaceCount))) return Att.ulVertexStart; } return -1; } bool CMeshBase::BuildIndex16Buffer(void) { if(this->m_vecVertices.size()<65534) { m_vecIndices16.resize(m_vecIndices.size()); for(unsigned int i=0;i<m_vecIndices16.size();i++) { m_vecIndices16[i]=(unsigned short)m_vecIndices[i]; } return true; } return false; }
184133af655496fa2559037664c36e7c6236f5d8
99d26dbfaf00b613eff6aa6548a8e35026f8cde0
/Advanced Rendering/Advanced Rendering ACW/Texture.h
5b746dfcbf77f7a5a47584686c747653b599edeb
[]
no_license
BenMarshall98/Advanced-Rendering
d50a201c5700b2898759c2c7a2df43ffa8482d19
0e70a258f12102398d1aa18c89c9b4dbfb2eb13b
refs/heads/master
2022-04-10T19:17:03.279127
2020-03-23T12:00:41
2020-03-23T12:00:41
236,472,374
0
0
null
null
null
null
UTF-8
C++
false
false
1,049
h
Texture.h
#pragma once #include <string> #include <d3d11.h> #include <wrl/client.h> #include "..\Common\DirectXHelper.h" #include "..\Common\DeviceResources.h" namespace Advanced_Rendering { class Texture { Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> mTexture = nullptr; std::string mTextureFile; public: Texture(const std::string & pTextureFile); ~Texture(); Texture(const Texture &) = delete; Texture(Texture &&) = delete; Texture & operator= (const Texture &) = delete; Texture & operator= (Texture &&) = delete; void Load(std::shared_ptr<DX::DeviceResources> pDeviceResources); void UseTexture(std::shared_ptr<DX::DeviceResources> pDeviceResources, unsigned int pIndex) const; void ReleaseTexture(std::shared_ptr<DX::DeviceResources> pDeviceResources, unsigned int pIndex) const; void UseDomainTexture(std::shared_ptr<DX::DeviceResources> pDeviceResources, unsigned int pIndex) const; void ReleaseDomainTexture(std::shared_ptr<DX::DeviceResources> pDeviceResources, unsigned int pIndex) const; void Reset(); }; }
f3a7e048bf5a078a9caceb65e0e3babbf9780e01
21c8020f3f3b2fd37e860eb4a2b79212ccf55aed
/surf.cpp
50c9c8526bf69cf3f52537b6930904a4a12aeec2
[]
no_license
raouiyounes/ph
0cda9fedc8198dfdf2829f0f576d02b8a82616f7
8d3104b095e21efec6c8abd97fe9f6efe5cd75ec
refs/heads/master
2021-01-17T07:01:54.801682
2016-05-18T15:06:28
2016-05-18T15:06:28
30,808,234
0
0
null
null
null
null
UTF-8
C++
false
false
1,242
cpp
surf.cpp
int Image::SURFExtractor(IplImage* frame,int nb_of_features){ // Mat img_1 = image_data; //-- Step 1: Detect the keypoints using SURF Detector int minHessian = 400; SurfFeatureDetector detector( minHessian ); int Threshl=40; int Octaves=2; float PatternScales=1.0f; CvMat* prevgray = 0, *image = 0, *gray =0; //IplImage* frame=cvLoadImage("test_image.jpg"); image = cvCreateMat(frame->height, frame->width, CV_8UC1); CvMemStorage* storage = cvCreateMemStorage(0); cvCvtColor(frame, image, CV_BGR2GRAY); //Define sequence for storing surf keypoints and descriptors CvSeq *imageKeypoints = 0, *imageDescriptors = 0; int i,j; ofstream file("surf.txt"); vector<double> descriptor_row; CvSURFParams params = cvSURFParams(500, 1); cvExtractSURF( image, 0, &imageKeypoints, &imageDescriptors, storage, params ); for( i = 0; i < imageDescriptors->total; i++ ) { float* r = (float*)cvGetSeqElem( imageDescriptors, i); j=0; int dim=50; // changer dim pour obtenir plus de features while(j<nb_of_features){ descriptor_row.push_back(*r); r++; j++; file<<*r<<" "; } file<<"\n"; descriptor_vect.push_back(descriptor_row); number_of_line++; descriptor_row.clear(); } return 0; }
fffe445f79e893b99acd8db993ecb5d9112a4238
60a15a584b00895e47628c5a485bd1f14cfeebbe
/comps/misc/neuro/ClassifyNeuro.cpp
2bef1225de98a14d8870157cfd5c8129e2f85414
[]
no_license
fcccode/vt5
ce4c1d8fe819715f2580586c8113cfedf2ab44ac
c88049949ebb999304f0fc7648f3d03f6501c65b
refs/heads/master
2020-09-27T22:56:55.348501
2019-06-17T20:39:46
2019-06-17T20:39:46
null
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
23,105
cpp
ClassifyNeuro.cpp
#include "stdafx.h" #include "ClassifyNeuro.h" #include "math.h" #include <stdio.h> #include "measure5.h" #include "alloc.h" #include "class_utils.h" #include "inifile.h" #include "matrix.h" _ainfo_base::arg CClassifyNeuroInfo::s_pargs[] = { {"ClassifyInfo",szArgumentTypeString, "", true, false }, {"ObjectList", szArgumentTypeObjectList, 0, true, true }, {0, 0, 0, false, false }, }; _ainfo_base::arg CTeachNeuroInfo::s_pargs[] = { {"LearningInfo",szArgumentTypeString, "", true, false }, {"ClassifyInfo",szArgumentTypeString, "", true, false }, {0, 0, 0, false, false }, }; #define RSF(x) if(!(x)) { dbg(); return 0; }; static char *CutToken(char *pBuf, char cDelimiter) { // отрезает слово -возвращает указатель на то, что после разделителя, // а вместо разделителя ставит '\0' // если наткнемся на CR/LF - оформим его, как конец строки char *pRet=pBuf; while (*pRet) { if(*pRet=='\r' || *pRet=='\n') { *pRet=0; break; } if(*pRet == cDelimiter) { *pRet=0; pRet++; break; } pRet++; } return pRet; } static int GetIntArray(char *pBuf, int *pVal, int nMaxVals, char cDelimiter=',') { // подгружает серию чисел, разделенных запятыми, из строки // возвращает, сколько чисел прочли for(int n=0; (n<nMaxVals) && (*pBuf!=0); n++) { char *p = pBuf; pBuf = CutToken(pBuf, cDelimiter); pVal[n]=atoi(p); } return n; } static int GetDoubleArray(char *pBuf, double *pVal, int nMaxVals, char cDelimiter=',') { // подгружает серию чисел, разделенных запятыми, из строки // возвращает, сколько чисел прочли for(int n=0; (n<nMaxVals) && (*pBuf!=0); n++) { char *p = pBuf; pBuf = CutToken(pBuf, cDelimiter); pVal[n]=atof(p); } return n; } ///////////////////////////////////////////////////////////////////////////// #define BIGBUFSIZE 65536 #define BIGBUFTHRESHOLD 60000 static bool DoClassify(IUnknownPtr punkObjList, char *sz_ini) { sptrINamedDataObject2 sptrN(punkObjList); // Object list if(sptrN==0) return 0; CNet net; CIniFile ini; ini.Open(sz_ini); RF (net.LoadIni(&ini)); int nclass = net.m_Y[net.m_nLayers].m_size; int nkeys = net.m_Y[0].m_size; if (nclass == 0 || nkeys == 0) return 0; _ptr_t2<int> keys(nkeys); _ptr_t2<char> big_buf(BIGBUFSIZE); ini.GetVal("Classifier","Keys",big_buf,BIGBUFTHRESHOLD); RF( nkeys == GetIntArray(big_buf,keys,nkeys,' ') ); smart_alloc(in_shift,double,nkeys); smart_alloc(in_scale,double,nkeys); ini.GetVal("Calibration","Shift",big_buf,BIGBUFTHRESHOLD); RF( nkeys == GetDoubleArray(big_buf,in_shift,nkeys,' ') ); ini.GetVal("Calibration","Scale",big_buf,BIGBUFTHRESHOLD); RF( nkeys == GetDoubleArray(big_buf,in_scale,nkeys,' ') ); ini.GetVal("Calibration","OutScale",big_buf,BIGBUFTHRESHOLD); long lOutScale = atoi(big_buf); ini.Close(); long lObjCount=0; sptrN->GetChildsCount(&lObjCount); CVector in; in.Alloc(nkeys); //double GarbageThreshold=GetValueDouble // (GetAppUnknown(), "\\CellClassify", "GarbageThreshold", 5.0 ); TPOS pos; sptrN->GetFirstChildPosition((TPOS*)&pos); while (pos) { TPOS pos1 = pos; IUnknownPtr sptr; sptrN->GetNextChild((TPOS*)&pos, &sptr); ICalcObjectPtr sptrObj = ICalcObjectPtr(sptr); if(sptrObj!=0) //ну мало ли объекты какие-нибудь не такие... { for (int j = 0; j < nkeys; j++) { double val=0; sptrObj->GetValue( keys[j], &val ); in.m_ptr[j] = (val-in_shift[j])/max(in_scale[j],1e-100); } CVector *out = net.Process(in); int i_best=0; for (int i = 0; i < nclass; i++) { if(out->m_ptr[i]>out->m_ptr[i_best]) i_best=i; } //if(out->m_ptr[i_best]<0.0) i_best=-1; if(i_best>=0) i_best/=lOutScale; set_object_class(sptrObj, i_best); } } return true; } ///////////////////////////////////////////////////////////////////////////// CClassifyNeuro::CClassifyNeuro() {} CClassifyNeuro::~CClassifyNeuro() {} bool CClassifyNeuro::InvokeFilter() { // Find object list IUnknownPtr punkObjList(GetDataArgument()); if(punkObjList==0) return false; _bstr_t iniName=GetArgString("ClassifyInfo"); if(iniName==_bstr_t("")) { //имя инишки не задано - берем из shell.data char sz_ini[MAX_PATH]; local_filename(sz_ini, "Classes.ini", sizeof(sz_ini)); //получим имя файла ClassifyInfo.ini strcpy( sz_ini, (const char*)::GetValueString(GetAppUnknown(), "\\Classes", "ClassFile", sz_ini )); iniName=sz_ini; } { CIniFile ini; ini.Open(iniName); char sz_tmp[128]; //Проверить, что инишка - нашего типа ini.GetVal("General","ClassifyProgID",sz_tmp, sizeof(sz_tmp)); RF(_stricmp(sz_tmp,"Neuro.NeuroClassifier")==0); } // Process classification itself. DoClassify(punkObjList, iniName); // Now all OK. Redraw document. INamedDataObject2Ptr NDO(punkObjList); IUnknown *punk = NULL; HRESULT hr = NDO->GetData(&punk); if (SUCCEEDED(hr) && punk) { long l = cncReset; INotifyControllerPtr sptr(punk); sptr->FireEvent(_bstr_t(szEventChangeObjectList), NULL, NDO, &l, 0); punk->Release(); } SetModified(true); return true; } ///////////////////////////////////////////////////////////////////////////// CTeachNeuro::CTeachNeuro() {} CTeachNeuro::~CTeachNeuro() {} #define BIGBUFSIZE 65536 #define BIGBUFTHRESHOLD 60000 #define MAXKEYS 1024 static double sqr(double x) {return x*x;} class CFile { public: CFile(FILE *f) : m_file(f) {}; ~CFile() { Close(); }; void Close() { if(m_file) { fclose(m_file); m_file=0; } } FILE *m_file; operator FILE*() { return m_file; }; }; HRESULT CTeachNeuro::DoInvoke() { _bstr_t iniName=GetArgString("ClassifyInfo"); if(iniName==_bstr_t("")) { //имя инишки не задано - берем из shell.data char sz_ini[MAX_PATH]; local_filename(sz_ini, "ClassifyInfo.net", sizeof(sz_ini)); //получим имя файла ClassifyInfo.ini strcpy( sz_ini, (const char*)::GetValueString(GetAppUnknown(), "\\Classes", "ClassFile", sz_ini )); iniName=sz_ini; } CIniFile ini; ini.Open(iniName); char sz_tmp[128]; //Проверить, что инишка - нашего типа ini.GetVal("General","ClassifyProgID",sz_tmp, sizeof(sz_tmp)); RF(_stricmp(sz_tmp,"Neuro.NeuroClassifier")==0); _bstr_t iniLearning=GetArgString("LearningInfo"); if(iniLearning==_bstr_t("")) { //имя инишки не задано - берем из ClassifyInfo char sz_ini2[MAX_PATH]; ini.GetVal("Classes","LearningInfo",sz_ini2, sizeof(sz_ini2)); iniLearning=sz_ini2; if(iniLearning==_bstr_t("")) { //имя инишки и там не задано - берем из shell.data char sz_ini2[MAX_PATH]; local_filename(sz_ini2, "LearningInfo.ini", sizeof(sz_ini2)); //получим имя файла LearningInfo.ini strcpy( sz_ini2, (const char*)::GetValueString(GetAppUnknown(), "\\Classes", "LearningInfo", sz_ini2 )); iniLearning=sz_ini2; //ini.SetVal("Classes","LearningInfo",sz_ini); } def_filename( sz_ini2, "Classes", short_filename(iniLearning), sizeof(sz_ini2) ); iniLearning = sz_ini2; } long lHiddenNeurons = 9; ini.GetVal("NeuroSettings","HiddenNeurons",sz_tmp, sizeof(sz_tmp)); if(sz_tmp[0]!=0) lHiddenNeurons = atoi(sz_tmp); lHiddenNeurons = min(1024, max(1,lHiddenNeurons)); int nMaxEpoch = 1000; ini.GetVal("NeuroSettings","MaxEpoch",sz_tmp, sizeof(sz_tmp)); if(sz_tmp[0]!=0) nMaxEpoch = atoi(sz_tmp); nMaxEpoch = min(1000000, max(10,nMaxEpoch)); long lOutScale = 1; ini.GetVal("NeuroSettings","OutScale",sz_tmp, sizeof(sz_tmp)); if(sz_tmp[0]!=0) lOutScale = atoi(sz_tmp); lOutScale = min(8, max(1,lOutScale)); //long lHiddenNeurons = ::GetValueInt(GetAppUnknown(), "\\neuro", "HiddenNeurons", 9); //long lOutScale = ::GetValueInt(GetAppUnknown(), "\\neuro", "OutScale", 1); CFile f( fopen(iniLearning,"r") ); RF(f); smart_alloc(buf,char,BIGBUFSIZE); RF(buf!=0); smart_alloc(keys,int,MAXKEYS); RF(keys!=0); char section[128]; _ptr_t2 <CVector> in; _ptr_t2 <CVector> out; CVector out_count; int npat=0, ninp=0, nout=0; while(1) { //пока хоть что-то читается if( ! fgets(buf,BIGBUFSIZE,f) ) break; char *name=buf; char *val=CutToken(buf,'='); //val - то, что после '=', и ограничим name if('['==name[0]) { // если метка секции - запомнить strncpy(section,name,sizeof(section)); name[0]=0; } if(0==_stricmp("[LearningInfo]", section)) { if(0==_stricmp("ObjectsCount", name)) npat=atoi(val); if(0==_stricmp("Keys", name)) ninp=GetIntArray(val,keys,MAXKEYS); if(0==_stricmp("ClassCount", name)) { nout=atoi(val); out_count.Alloc(nout); for(int j=0; j<nout; j++) out_count.m_ptr[j] = 0; } int n = atoi(name)-1; if(n>=0 && n<npat) { if(in.size()!=npat) in.alloc(npat); if(out.size()!=npat) out.alloc(npat); in[n].Alloc(ninp); RF(ninp==in[n].m_size); out[n].Alloc(nout*lOutScale); RF(nout*lOutScale==out[n].m_size); char *val1 = CutToken(val,':'); int nclass = atoi(val)-1; int nn=GetDoubleArray(val1,in[n].m_ptr,in[n].m_size); RF(nn==ninp); if(nclass>=0 && nclass<nout) { // увеличим счетчик для класса out_count.m_ptr[nclass] ++ ; } for(int j=0; j<nout*lOutScale; j++) out[n].m_ptr[j] = ((j/lOutScale)==nclass) ? 1 : -1; } } } f.Close(); out_count.m_size += 0; int npat1=npat; smart_alloc(in_min,double,ninp); smart_alloc(in_max,double,ninp); smart_alloc(in_avg,double,ninp); smart_alloc(in_dis,double,ninp); for(int j=0; j<ninp; j++) { in_max[j] = -1e200; in_min[j] = 1e200; in_avg[j] = 0; in_dis[j] = 0; } for(int i=0; i<npat; i++) { // произведем калибровку, попутно проверим список на пустые/неверные строки RF(in[i].m_size==ninp); RF(out[i].m_size==nout*lOutScale); for(int j=0; j<ninp; j++) { if(in_max[j]<in[i].m_ptr[j]) in_max[j] = in[i].m_ptr[j]; if(in_min[j]>in[i].m_ptr[j]) in_min[j] = in[i].m_ptr[j]; in_avg[j] += in[i].m_ptr[j]; in_dis[j] += sqr(in[i].m_ptr[j]); } } smart_alloc(in_shift,double,ninp); smart_alloc(in_scale,double,ninp); for(int j=0; j<ninp; j++) { in_avg[j] /= max(npat,1); in_dis[j] /= max(npat,1); in_dis[j] = sqrt(max(1e-20,in_dis[j] - sqr(in_avg[j]))); //in_shift[j] = in_avg[j]; //in_scale[j] = in_dis[j]; in_shift[j] = (in_min[j]+in_max[j])/2; in_scale[j] = (in_max[j]-in_min[j])/2; in_scale[j] = max(in_scale[j], 1e-100); } for(int i=0; i<npat; i++) { // отнормируем данные for(int j=0; j<ninp; j++) { in[i].m_ptr[j] = (in[i].m_ptr[j]-in_shift[j]) / in_scale[j]; } } //переупорядочим { CVector tmp_in(ninp), tmp_out(nout); for(int i=0; i<npat; i++) { int j = rand() % npat; RF( tmp_in.Set(in[i]) ); RF( tmp_out.Set(out[i]) ); RF( in[i].Set(in[j]) ); RF( out[i].Set(out[j]) ); RF( in[j].Set(tmp_in) ); RF( out[j].Set(tmp_out) ); } } CNet net(ninp,lHiddenNeurons,nout*lOutScale); //int nMaxEpoch = 1000; int nNotifyFreq=max(nMaxEpoch/100,1); StartNotification(nMaxEpoch+nNotifyFreq,1,1); for(int epoch=0; epoch<nMaxEpoch; epoch+=nNotifyFreq) { double d = 0.1; if(epoch>=200*nMaxEpoch/1000) d=0.1; if(epoch>=700*nMaxEpoch/1000) d=0.1; if(epoch==200*nMaxEpoch/1000 || epoch==400*nMaxEpoch/1000 || epoch==600*nMaxEpoch/1000) { net.Learn(in, out, npat, 0.2, 1); } net.Learn(in, out, npat, d, nNotifyFreq); Notify(epoch+nNotifyFreq); } FinishNotification(); //net.Save(".\\test.net"); //CIniFile ini; //ini.Open(iniName); net.SaveIni(&ini); int buf_pos=0; for(int j=0; j<ninp; j++) { buf_pos += sprintf(buf+buf_pos, "%i ", keys[j]); RF(buf_pos<BIGBUFTHRESHOLD); } ini.SetVal("Classifier","Keys",buf); // сдублируем ту же инфу в Максовом формате buf_pos=0; buf_pos += sprintf(buf+buf_pos, "%i", keys[0]); RF(buf_pos<BIGBUFTHRESHOLD); for(int j=1; j<ninp; j++) { buf_pos += sprintf(buf+buf_pos, ",%i", keys[j]); RF(buf_pos<BIGBUFTHRESHOLD); } ini.SetVal(ID_SECT_KEY_INFO,ID_ENTR_KEYS_ENUM,buf); buf_pos=0; for(int j=0; j<ninp; j++) { buf_pos += sprintf(buf+buf_pos, "%g ", in_shift[j]); RF(buf_pos<BIGBUFTHRESHOLD); } ini.SetVal("Calibration","Shift",buf); buf_pos=0; for(int j=0; j<ninp; j++) { buf_pos += sprintf(buf+buf_pos, "%g ", in_scale[j]); RF(buf_pos<BIGBUFTHRESHOLD); } ini.SetVal("Calibration","Scale",buf); _itoa(lOutScale, buf, 100); ini.SetVal("Calibration","OutScale",buf); // Для совместимости с Максом ini.SetVal("General","ClassifyName","Neural Classifier (MLP)"); ini.SetVal("General","ClassifyProgID","Neuro.NeuroClassifier"); ini.Close(); return true; } ////////////////////////////////////////////////////////////////////// CNeuroClassifier::CNeuroClassifier(void) { } CNeuroClassifier::~CNeuroClassifier(void) { } IUnknown *CNeuroClassifier::DoGetInterface( const IID &iid ) { if( iid == IID_IClassifyParams ) return (IClassifyParams *)this; else if( iid == IID_IClassifyProxy ) return (IClassifyProxy *)this; return ComObjectBase::DoGetInterface( iid ); } HRESULT CNeuroClassifier::Start() { long lClassCount = 0; GetClasses( 0, &lClassCount ); if( !lClassCount ) return S_FALSE; m_Classes.alloc(lClassCount); if( m_Classes==0 ) return S_FALSE; long *pClasses=m_Classes; GetClasses( &pClasses, &lClassCount ); long lKeyCount = 0; GetKeys( 0, &lKeyCount ); if( !lKeyCount ) return S_FALSE; m_Params.alloc(lKeyCount); if( m_Params==0 ) return S_FALSE; long *pParams=m_Params; GetKeys( &pParams, &lKeyCount ); return __super::Start(); } HRESULT CNeuroClassifier::Load( /*[in]*/ BSTR bstrFile ) { __super::Load(bstrFile); CIniFile ini; ini.Open(_bstr_t(bstrFile)); RF (m_net.LoadIni(&ini)); int nclass = m_net.m_Y[m_net.m_nLayers].m_size; int nkeys = m_net.m_Y[0].m_size; if (nclass == 0 || nkeys == 0) return 0; _ptr_t2<int> keys(nkeys); _ptr_t2<char> big_buf(BIGBUFSIZE); ini.GetVal("Classifier","Keys",big_buf,BIGBUFTHRESHOLD); RF( nkeys == GetIntArray(big_buf,keys,nkeys,' ') ); m_in_shift.alloc(nkeys); m_in_scale.alloc(nkeys); ini.GetVal("Calibration","Shift",big_buf,BIGBUFTHRESHOLD); RF( nkeys == GetDoubleArray(big_buf,m_in_shift,nkeys,' ') ); ini.GetVal("Calibration","Scale",big_buf,BIGBUFTHRESHOLD); RF( nkeys == GetDoubleArray(big_buf,m_in_scale,nkeys,' ') ); ini.GetVal("Calibration","OutScale",big_buf,BIGBUFTHRESHOLD); m_lOutScale = atoi(big_buf); ini.Close(); CVector in; in.Alloc(nkeys); //double GarbageThreshold=GetValueDouble // (GetAppUnknown(), "\\CellClassify", "GarbageThreshold", 5.0 ); return S_OK; } HRESULT CNeuroClassifier::Process( /*[in]*/ IUnknown *punkObject ) { /* XObjectItem item; item.sptrObject = punkObject; item.guidKey = ::GetKey( punkObject ); */ ICalcObjectPtr sptrObject = punkObject; if( sptrObject == 0 ) return S_FALSE; int nParams=m_Params.size(); if(nParams<1) return S_FALSE; smart_alloc(fParamsValues,double,nParams); for(int i=0; i<nParams; i++) { fParamsValues[i]=0; sptrObject->GetValue(m_Params[i],&(fParamsValues[i])); } long lClass=-1; RealProcess(nParams, fParamsValues, punkObject, &lClass); XObjectItem* pitem = new XObjectItem; pitem->sptrObject = punkObject; pitem->lClass = lClass; pitem->guidKey = ::GetKey( punkObject ); m_arObjectList.set( pitem, &pitem->guidKey ); //m_arObjectList.add_tail( item ); return S_OK; } bool CNeuroClassifier::RealProcess( /*in*/ long nParams, double *pfParams, IUnknown *punkObject, /*out*/ long *plClass ) { if(m_net.m_nLayers<1) return false; int nclass = m_net.m_Y[m_net.m_nLayers].m_size; int nkeys = m_net.m_Y[0].m_size; if(nkeys!=nParams) return false; CVector in; in.Alloc(nkeys); for (int j = 0; j < nkeys; j++) { in.m_ptr[j] = (pfParams[j]-m_in_shift[j])/max(m_in_scale[j],1e-100); } CVector *out = m_net.Process(in); int i_best=0; for (int i = 0; i < nclass; i++) { if(out->m_ptr[i]>out->m_ptr[i_best]) i_best=i; } //if(out->m_ptr[i_best]<0.0) i_best=-1; if(i_best>=0) i_best /= m_lOutScale; *plClass=i_best; return true; } HRESULT CNeuroClassifier::Teach() { _bstr_t iniName="";//GetArgString("ClassifyInfo"); if(iniName==_bstr_t("")) { //имя инишки не задано - берем из shell.data char sz_ini[MAX_PATH]; local_filename(sz_ini, "ClassifyInfo.net", sizeof(sz_ini)); //получим имя файла ClassifyInfo.ini strcpy( sz_ini, (const char*)::GetValueString(GetAppUnknown(), "\\Classes", "ClassFile", sz_ini )); iniName=sz_ini; } _bstr_t iniLearning="";//GetArgString("LearningInfo"); if(iniLearning==_bstr_t("")) { //имя инишки не задано - берем из shell.data char sz_ini[MAX_PATH]; local_filename(sz_ini, "LearningInfo.ini", sizeof(sz_ini)); //получим имя файла LearningInfo.ini strcpy( sz_ini, (const char*)::GetValueString(GetAppUnknown(), "\\Classes", "LearningInfo", sz_ini )); iniLearning=sz_ini; } CIniFile ini; ini.Open(iniName); char sz_tmp[128]; //Проверить, что инишка - нашего типа ini.GetVal("General","ClassifyProgID",sz_tmp, sizeof(sz_tmp)); RSF(_stricmp(sz_tmp,"Neuro.NeuroClassifier")==0); long lHiddenNeurons = 9; ini.GetVal("NeuroSettings","HiddenNeurons",sz_tmp, sizeof(sz_tmp)); if(sz_tmp[0]!=0) lHiddenNeurons = atoi(sz_tmp); lHiddenNeurons = min(1024, max(1,lHiddenNeurons)); long lOutScale = 1; ini.GetVal("NeuroSettings","OutScale",sz_tmp, sizeof(sz_tmp)); if(sz_tmp[0]!=0) lOutScale = atoi(sz_tmp); lOutScale = min(8, max(1,lOutScale)); //long lHiddenNeurons = ::GetValueInt(GetAppUnknown(), "\\neuro", "HiddenNeurons", 9); //long lOutScale = ::GetValueInt(GetAppUnknown(), "\\neuro", "OutScale", 1); CFile f( fopen(iniLearning,"r") ); RSF(f); smart_alloc(buf,char,BIGBUFSIZE); RSF(buf!=0); smart_alloc(keys,int,MAXKEYS); RSF(keys!=0); char section[128]; _ptr_t2 <CVector> in; _ptr_t2 <CVector> out; CVector out_count; int npat=0, ninp=0, nout=0; while(1) { //пока хоть что-то читается if( ! fgets(buf,BIGBUFSIZE,f) ) break; char *name=buf; char *val=CutToken(buf,'='); //val - то, что после '=', и ограничим name if('['==name[0]) { // если метка секции - запомнить strncpy(section,name,sizeof(section)); name[0]=0; } if(0==_stricmp("[LearningInfo]", section)) { if(0==_stricmp("ObjectsCount", name)) npat=atoi(val); if(0==_stricmp("Keys", name)) ninp=GetIntArray(val,keys,MAXKEYS); if(0==_stricmp("ClassCount", name)) { nout=atoi(val); out_count.Alloc(nout); for(int j=0; j<nout; j++) out_count.m_ptr[j] = 0; } int n = atoi(name)-1; if(n>=0 && n<npat) { if(in.size()!=npat) in.alloc(npat); if(out.size()!=npat) out.alloc(npat); in[n].Alloc(ninp); RSF(ninp==in[n].m_size); out[n].Alloc(nout*lOutScale); RSF(nout*lOutScale==out[n].m_size); char *val1 = CutToken(val,':'); int nclass = atoi(val)-1; int nn=GetDoubleArray(val1,in[n].m_ptr,in[n].m_size); RSF(nn==ninp); if(nclass>=0 && nclass<nout) { // увеличим счетчик для класса out_count.m_ptr[nclass] ++ ; } for(int j=0; j<nout*lOutScale; j++) out[n].m_ptr[j] = ((j/lOutScale)==nclass) ? 1 : -1; } } } f.Close(); out_count.m_size += 0; int npat1=npat; smart_alloc(in_min,double,ninp); smart_alloc(in_max,double,ninp); smart_alloc(in_avg,double,ninp); smart_alloc(in_dis,double,ninp); for(int j=0; j<ninp; j++) { in_max[j] = -1e200; in_min[j] = 1e200; in_avg[j] = 0; in_dis[j] = 0; } for(int i=0; i<npat; i++) { // произведем калибровку, попутно проверим список на пустые/неверные строки RSF(in[i].m_size==ninp); RSF(out[i].m_size==nout*lOutScale); for(int j=0; j<ninp; j++) { if(in_max[j]<in[i].m_ptr[j]) in_max[j] = in[i].m_ptr[j]; if(in_min[j]>in[i].m_ptr[j]) in_min[j] = in[i].m_ptr[j]; in_avg[j] += in[i].m_ptr[j]; in_dis[j] += sqr(in[i].m_ptr[j]); } } smart_alloc(in_shift,double,ninp); smart_alloc(in_scale,double,ninp); for(int j=0; j<ninp; j++) { in_avg[j] /= max(npat,1); in_dis[j] /= max(npat,1); in_dis[j] = sqrt(max(1e-20,in_dis[j] - sqr(in_avg[j]))); //in_shift[j] = in_avg[j]; //in_scale[j] = in_dis[j]; in_shift[j] = (in_min[j]+in_max[j])/2; in_scale[j] = (in_max[j]-in_min[j])/2; in_scale[j] = max(in_scale[j], 1e-100); } for(int i=0; i<npat; i++) { // отнормируем данные for(int j=0; j<ninp; j++) { in[i].m_ptr[j] = (in[i].m_ptr[j]-in_shift[j]) / in_scale[j]; } } //переупорядочим { CVector tmp_in(ninp), tmp_out(nout); for(int i=0; i<npat; i++) { int j = rand() % npat; RSF( tmp_in.Set(in[i]) ); RSF( tmp_out.Set(out[i]) ); RSF( in[i].Set(in[j]) ); RSF( out[i].Set(out[j]) ); RSF( in[j].Set(tmp_in) ); RSF( out[j].Set(tmp_out) ); } } CNet net(ninp,lHiddenNeurons,nout*lOutScale); int nMaxEpoch=1000; int nNotifyFreq=50; //StartNotification(nMaxEpoch+1,1,1); for(int epoch=0; epoch<nMaxEpoch; epoch+=nNotifyFreq) { double d = 0.1; if(epoch>=200) d=0.1; if(epoch>=700) d=0.1; if(epoch==200 || epoch==400 || epoch==600) { net.Learn(in, out, npat, 0.2, 1); } net.Learn(in, out, npat, d, nNotifyFreq); //Notify(epoch+nNotifyFreq); } //FinishNotification(); //net.Save(".\\test.net"); //CIniFile ini; //ini.Open(iniName); net.SaveIni(&ini); int buf_pos=0; for(int j=0; j<ninp; j++) { buf_pos += sprintf(buf+buf_pos, "%i ", keys[j]); RSF(buf_pos<BIGBUFTHRESHOLD); } ini.SetVal("Classifier","Keys",buf); // сдублируем ту же инфу в Максовом формате buf_pos=0; buf_pos += sprintf(buf+buf_pos, "%i", keys[0]); RSF(buf_pos<BIGBUFTHRESHOLD); for(int j=1; j<ninp; j++) { buf_pos += sprintf(buf+buf_pos, ",%i", keys[j]); RSF(buf_pos<BIGBUFTHRESHOLD); } ini.SetVal(ID_SECT_KEY_INFO,ID_ENTR_KEYS_ENUM,buf); buf_pos=0; for(int j=0; j<ninp; j++) { buf_pos += sprintf(buf+buf_pos, "%g ", in_shift[j]); RSF(buf_pos<BIGBUFTHRESHOLD); } ini.SetVal("Calibration","Shift",buf); buf_pos=0; for(int j=0; j<ninp; j++) { buf_pos += sprintf(buf+buf_pos, "%g ", in_scale[j]); RSF(buf_pos<BIGBUFTHRESHOLD); } ini.SetVal("Calibration","Scale",buf); _itoa(lOutScale, buf, 100); ini.SetVal("Calibration","OutScale",buf); // Для совместимости с Максом ini.SetVal("General","ClassifyName","Neural Classifier (MLP)"); ini.SetVal("General","ClassifyProgID","Neuro.NeuroClassifier"); ini.Close(); return S_OK; }
76f276497a18df39832023c5950cdd36506c7f37
2160fd4cc5cb24bb8427ec78ef9b2d3a9549c2c5
/include/cyng/store/slot.h
4c3452327ee699e1c79f0fc387cc8dd150147e6e
[ "MIT" ]
permissive
solosTec/cyng
7e698487ef57f050fc2b3e287aa79463b2debc9f
a55fc9a7566254cb8e60a51b9884b40f19f866b9
refs/heads/master
2023-07-25T11:49:07.089159
2022-10-21T15:17:13
2022-10-21T15:17:13
115,027,279
0
2
MIT
2022-10-21T15:17:14
2017-12-21T16:46:54
C++
UTF-8
C++
false
false
1,180
h
slot.h
/* * The MIT License (MIT) * * Copyright (c) 2021 Sylko Olzscher * */ #ifndef CYNG_STORE_SLOT_H #define CYNG_STORE_SLOT_H #include <cyng/store/slot_interface.h> #include <cyng/task/channel.h> namespace cyng { class slot : public slot_interface { public: explicit slot(channel&); explicit slot(channel_ptr); explicit slot(channel_weak); slot(slot const&) = default; /** * insert event */ virtual bool forward(table const* , key_t const& , data_t const& , std::uint64_t , boost::uuids::uuid) override; /** * modify event */ virtual bool forward(table const* tbl , key_t const& key , attr_t const& attr , data_t const& , std::uint64_t gen , boost::uuids::uuid tag) override; /** * remove event */ virtual bool forward(table const* tbl , key_t const& key , data_t const& data , boost::uuids::uuid tag) override; virtual bool forward(table const* , boost::uuids::uuid) override; virtual bool forward(table const* , bool) override; private: channel_weak channel_; }; slot_ptr make_slot(channel&); slot_ptr make_slot(channel_ptr); slot_ptr make_slot(channel_weak); } #endif
68e902c920d7f4f0c5b46ed4378c32238b39b0f8
cc8f6dd6f67058d3389b90ca0c7ddfe7e8916289
/Chapter9/MoneyFactory.cpp
f78c043a11e5565b32125996f4a9abc397817ed4
[]
no_license
zhb94430/TDD-Part1
ef6f050e60a4a6cb050c1a258b139c7a3bc9e772
ca009d3bfdce927018b12fc17adda36587a1e14b
refs/heads/main
2023-06-03T22:38:56.717677
2021-06-18T20:22:19
2021-06-18T20:22:19
373,364,841
0
0
null
null
null
null
UTF-8
C++
false
false
183
cpp
MoneyFactory.cpp
#include "MoneyFactory.h" Money* MoneyFactory::dollar(int amount) { return new Dollar(amount, "USD"); } Money* MoneyFactory::franc(int amount) { return new Franc(amount, "CHF"); }
948be2ecc67d27506351492106ea7dc5cc562f7d
d736fddaff5c13e5a520d0e97d8b057d7fae2521
/8TilesProblem/Includes.h
6ec2eea3b65ebaede7d3aacf9b6e7a609afba89d
[]
no_license
StephenThomas1987/8Tile
69794ca02f9302de0bbb15c39fab2802b582dff7
6b3de9bcbf4417c01e6666e8918006e124957038
refs/heads/master
2021-01-13T06:13:55.143151
2017-06-20T14:52:04
2017-06-20T14:52:04
94,902,898
0
0
null
null
null
null
UTF-8
C++
false
false
292
h
Includes.h
#pragma once //STL includes #include <iostream> #include <time.h> #include <fstream> #include <string> //SFML and graphics includes #include <SFML/Graphics.hpp> #include <SFML/OpenGL.hpp> #include <GL/GLU.h> //header files #include "Animation.h" #include "EightTile.h" using namespace std;
1f694e0e6526f17f3e4f2f7db56e722878da36ca
93aa54535beca6865818e04a50659ca35fd0fa7c
/include/mgpcl/URL.h
3cc56af2625c161de92fa4a9e92704def598cf3d
[ "MIT" ]
permissive
montoyo/mgpcl
cef9e9f401340cdcbd3bd6a812d748b5bc174ad2
8e65d01e483124936de3650154e0e7e9586d27c0
refs/heads/master
2021-01-21T15:00:35.612965
2020-02-05T13:37:00
2020-02-05T13:37:00
95,368,396
0
0
null
null
null
null
UTF-8
C++
false
false
4,294
h
URL.h
/* Copyright (C) 2018 BARBOTIN Nicolas * * Permission is hereby granted, free of charge, to any person obtaining a copy of this * software and associated documentation files (the "Software"), to deal in the Software * without restriction, including without limitation the rights to use, copy, modify, * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit * persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies * or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE * OR OTHER DEALINGS IN THE SOFTWARE. */ #pragma once #include "String.h" #include <cstdint> namespace m { enum URLParseError { kUPE_NoError = 0, kUPE_MissingProtocol, kUPE_MissingHost, kUPE_InvalidPort, kUPE_InvalidCharacter, kUPE_SourceInvalid, //Only valid for URL::parseRelative() kUPE_InvalidFormat }; //NOTE: This class was designed to handle HTTP(S) URLs // and thus does not entierely follow RFC 3986 // For instance, it won't parse URLs like proto:data // because it's missing slashes after the protocol // separator class URL { public: URL() { m_port = 0; } URL(const String &url) { m_port = 0; parse(url); } URL(const String &proto, const String &host, uint16_t port, const String &loc) { m_proto = proto; m_host = host; m_port = port; m_location = loc; } URLParseError parse(const String &url); URLParseError parseRelative(const URL &src, const String &url); String toString() const; static String encode(const String &u); static bool decode(const String &u, String &dst); void setProtocol(const String &proto) { m_proto = proto; } void setHost(const String &host) { m_host = host; } void setPort(uint16_t port) { m_port = port; } void setLocation(const String &loc) { m_location = loc; } const String &protocol() const { return m_proto; } const String &host() const { return m_host; } uint16_t port() const { return m_port; } const String &location() const { return m_location; } bool operator == (const URL &src) const { //NOTE: Case sensitive host and percent encoding return m_proto == src.m_proto && m_host == src.m_host && m_port == src.m_port && m_location == src.m_location; } bool operator != (const URL &src) const { //NOTE: Case sensitive host and percent encoding return m_proto != src.m_proto || m_host != src.m_host || m_port != src.m_port || m_location != src.m_location; } bool isValid() const { return !m_proto.isEmpty() && !m_host.isEmpty() && m_port != 0; } bool operator ! () const { return m_proto.isEmpty() || m_host.isEmpty() || m_port == 0; } URL operator / (const String &str) const { URL ret; ret.parseRelative(*this, str); return ret; } //TODO: Encode/decode arguments private: static bool hexDecode(char &c); static bool checkStringRange(const String &str, int a, int b, bool dotOk); String m_proto; String m_host; uint16_t m_port; String m_location; }; }
38cc468f9c6cb709e9c038add67d7214075e3dcf
d7007d37e263166c3ed4804bd4e9c678fd161bc2
/part4/TwoDayPackage.cpp
bbef00a96a3f221d1057fcc4f1bc440da88608e3
[]
no_license
annamcmahon/lab3
ca23ad87980f1a89dbaa7876c401c36e4b896685
abe5d9aedd7b137bc2cd283a3a28b69c70bc0bdc
refs/heads/master
2020-04-09T05:52:06.563249
2015-02-10T04:37:54
2015-02-10T04:37:54
null
0
0
null
null
null
null
UTF-8
C++
false
false
904
cpp
TwoDayPackage.cpp
//Katie Quinn & Anna McMahon //CSE 20212 Lab 3 //2-8-15 // //Implementation for two day package // inherits from Package.h (base class) // #include "TwoDayPackage.h" //include both header files #include "Package.h" #include <iostream> using namespace std; TwoDayPackage:: TwoDayPackage(){ //default constructor additCost = 5; //additional cost of 5 dollars } TwoDayPackage:: TwoDayPackage(double cost, double weight, double addit) : Package(weight,cost) { // calling the constructor for Package additCost = addit; //non default value } double TwoDayPackage:: calculateCost() { // Package::CalculateCost calls base class calc cost function return ( (Package::calculateCost()) + additCost); //adding set value } //specific calculate cost function void TwoDayPackage::print(){ cout << "Type: 2 day"<<endl<<"weight: "<< Package::getWeight()<<endl<<"cost: "<<calculateCost() <<endl; cout<<endl; }
ea24251d9374d5d7f21af6b18b4bc6acac53d436
7148007b1c30715db40b68586c099e22b87524c1
/INSERTEL.CPP
d8ee655e224d66b66a03baa64bb5a8ff7a64bac7
[ "Apache-2.0" ]
permissive
Parthis1833/DS-
18de5a8238754256c976c075f804d9d80d2cf800
2378447f44f47a4008372c80bef15bddba60426d
refs/heads/main
2023-09-03T22:28:31.766966
2021-10-18T14:11:49
2021-10-18T14:11:49
418,515,494
0
0
null
null
null
null
UTF-8
C++
false
false
420
cpp
INSERTEL.CPP
#include<stdio.h> #include<conio.h> void main(){ int LA[]= {1,3,5,7,8}; int item=10,k=3,n=5; int i=0,j=n; printf("The original array elements are:\n"); for(i=0;i<n;i++){ printf("LA[%d]=%d\n",i,LA[i]); } n=n+1; while(j>=k){ LA[j+1]=LA[j]; j=j-1; } LA[k]=item; printf("The array elements after insertion :\n"); for(i=0;i<n;i++){ printf("LA[%d]=%d\n",i,LA[i]); } getch(); clrscr(); }
2945dd636845495152e7eabce9d61ae1405c8e1c
4c5e72b705ae439882b03e61f6465d14ee55a4b0
/unittest/matrix.cpp
e202c572b878aca945885092100de509e225f1dc
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
stack-of-tasks/eigenpy
a745bd9be52808724c5f2bcfe60a4c0d196c9fdb
df207c6db9c597bc37dd467f9642199cc81df93c
refs/heads/master
2023-08-04T06:20:25.443715
2023-07-31T16:11:29
2023-07-31T16:11:29
21,867,994
143
38
BSD-2-Clause
2023-09-12T08:12:26
2014-07-15T16:55:01
C++
UTF-8
C++
false
false
6,107
cpp
matrix.cpp
/* * Copyright 2014-2022 CNRS INRIA */ #include <iostream> #include "eigenpy/eigenpy.hpp" template <typename Scalar> Eigen::Matrix<Scalar, Eigen::Dynamic, 1> vector1x1(const Scalar& value) { typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> ReturnType; return ReturnType::Constant(1, value); } template <typename Scalar> Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> matrix1x1( const Scalar& value) { typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> ReturnType; return ReturnType::Constant(1, 1, value); } template <typename Scalar> void matrix1x1_input(const Eigen::Matrix<Scalar, 1, 1>& mat) { std::cout << mat << std::endl; } Eigen::VectorXd emptyVector() { Eigen::VectorXd vec; vec.resize(0); return vec; } Eigen::MatrixXd emptyMatrix() { return Eigen::MatrixXd(0, 0); } Eigen::MatrixXd naturals(int R, int C, bool verbose) { Eigen::MatrixXd mat(R, C); for (int r = 0; r < R; ++r) for (int c = 0; c < C; ++c) mat(r, c) = r * C + c; if (verbose) std::cout << "EigenMat = " << mat << std::endl; return mat; } Eigen::VectorXd naturals(int R, bool verbose) { Eigen::VectorXd mat(R); for (int r = 0; r < R; ++r) mat[r] = r; if (verbose) std::cout << "EigenMat = " << mat << std::endl; return mat; } Eigen::Matrix3d naturals(bool verbose) { Eigen::Matrix3d mat; for (int r = 0; r < 3; ++r) for (int c = 0; c < 3; ++c) mat(r, c) = r * 3 + c; if (verbose) std::cout << "EigenMat = " << mat << std::endl; return mat; } template <typename MatType> Eigen::MatrixXd reflex(const MatType& M, bool verbose) { if (verbose) std::cout << "EigenMat = " << M << std::endl; return Eigen::MatrixXd(M); } template <typename MatrixDerived> MatrixDerived base(const Eigen::MatrixBase<MatrixDerived>& m) { return m.derived(); } template <typename MatrixDerived> MatrixDerived plain(const Eigen::PlainObjectBase<MatrixDerived>& m) { return m.derived(); } template <typename Scalar> Eigen::Matrix<Scalar, 6, 6> matrix6(const Scalar& value) { typedef Eigen::Matrix<Scalar, 6, 6> ReturnType; return ReturnType::Constant(value); } template <typename Scalar> Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> generateRowMajorMatrix(const Eigen::DenseIndex rows, const Eigen::DenseIndex cols) { typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> RowMajorMatrix; RowMajorMatrix A(rows, cols); typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> Vector; Eigen::Map<Vector>(A.data(), A.size()) = Vector::LinSpaced(A.size(), 1, static_cast<Scalar>(A.size())); std::cout << "Matrix values:\n" << A << std::endl; return A; } template <typename Scalar> Eigen::Matrix<Scalar, 1, Eigen::Dynamic, Eigen::RowMajor> generateRowMajorVector(const Eigen::DenseIndex size) { typedef Eigen::Matrix<Scalar, 1, Eigen::Dynamic, Eigen::RowMajor> RowMajorVector; RowMajorVector A(size); A.setLinSpaced(size, 1, static_cast<Scalar>(size)); std::cout << "Vector values: " << A.transpose() << std::endl; return A; } template <typename Scalar> Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> generateColMajorMatrix( const Eigen::DenseIndex rows, const Eigen::DenseIndex cols) { typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> ColMajorMatrix; ColMajorMatrix A(rows, cols); typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> Vector; Eigen::Map<Vector>(A.data(), A.size()) = Vector::LinSpaced(A.size(), 1, static_cast<Scalar>(A.size())); std::cout << "Matrix values:\n" << A << std::endl; return A; } template <typename Scalar> Eigen::Matrix<Scalar, 1, Eigen::Dynamic> generateColMajorVector( const Eigen::DenseIndex size) { typedef Eigen::Matrix<Scalar, 1, Eigen::Dynamic> ColMajorVector; ColMajorVector A(size); A.setLinSpaced(size, 1, static_cast<Scalar>(size)); std::cout << "Vector values: " << A.transpose() << std::endl; return A; } template <typename Matrix, typename ReturnMatrix> ReturnMatrix copy(const Eigen::MatrixBase<Matrix>& mat) { return mat; } BOOST_PYTHON_MODULE(matrix) { using namespace Eigen; namespace bp = boost::python; eigenpy::enableEigenPy(); // Square matrix typedef Eigen::Matrix<double, 6, 6> Matrix6; eigenpy::enableEigenPySpecific<Matrix6>(); // Non-square matrix typedef Eigen::Matrix<double, 4, 6> Matrix46; eigenpy::enableEigenPySpecific<Matrix46>(); Eigen::MatrixXd (*naturalsXX)(int, int, bool) = naturals; Eigen::VectorXd (*naturalsX)(int, bool) = naturals; Eigen::Matrix3d (*naturals33)(bool) = naturals; bp::def("vector1x1", vector1x1<double>); bp::def("matrix1x1", matrix1x1<double>); bp::def("matrix1x1", matrix1x1_input<double>); bp::def("matrix1x1_int", matrix1x1_input<int>); bp::def("naturals", naturalsXX); bp::def("naturalsX", naturalsX); bp::def("naturals33", naturals33); bp::def("reflex", reflex<Eigen::MatrixXd>); bp::def("reflexV", reflex<Eigen::VectorXd>); bp::def("reflex33", reflex<Eigen::Matrix3d>); bp::def("reflex3", reflex<Eigen::Vector3d>); bp::def("emptyVector", emptyVector); bp::def("emptyMatrix", emptyMatrix); bp::def("base", base<VectorXd>); bp::def("base", base<MatrixXd>); bp::def("plain", plain<VectorXd>); bp::def("plain", plain<MatrixXd>); bp::def("matrix6", matrix6<double>); bp::def("generateRowMajorMatrix", generateRowMajorMatrix<double>); bp::def("generateRowMajorVector", generateRowMajorVector<double>); bp::def("generateColMajorMatrix", generateColMajorMatrix<double>); bp::def("generateColMajorVector", generateColMajorVector<double>); typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> RowMajorMatrixXd; bp::def("asRowMajorFromColMajorMatrix", copy<Eigen::MatrixXd, RowMajorMatrixXd>); bp::def("asRowMajorFromColMajorVector", copy<Eigen::VectorXd, Eigen::RowVectorXd>); bp::def("asRowMajorFromRowMajorMatrix", copy<RowMajorMatrixXd, RowMajorMatrixXd>); bp::def("asRowMajorFromRowMajorVector", copy<Eigen::RowVectorXd, Eigen::RowVectorXd>); }
98d2779af2d9c4c37b393b5c067ce2eab4580f95
3adedbb47efa4f571ed0788f7e7b8b9007c7b406
/ouster_ros/test/test_convert.cpp
cdc12e0420c51569e71219afb421313d1fa1bece
[ "BSD-3-Clause" ]
permissive
AutoModality/ouster_example
054d0d63b660eafa5d6564c0540cface4848d824
23875e63e5184a182469810c271864a6e5960057
refs/heads/master
2021-07-23T05:31:18.350765
2020-03-14T13:24:51
2020-03-14T13:24:51
157,585,151
0
0
BSD-3-Clause
2020-03-14T13:24:53
2018-11-14T17:23:26
C++
UTF-8
C++
false
false
4,693
cpp
test_convert.cpp
#include <gtest/gtest.h> #include <iostream> #include <ros/ros.h> #include <ros/console.h> #include <log4cxx/logger.h> #include <ouster_ros/os1_ros.h> #include <string> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> using CloudOS1 = ouster_ros::OS1::CloudOS1; namespace OS1 = ouster::OS1; void filter_pointcloud(CloudOS1 &incloud, CloudOS1 &out_pc) { assert(out_pc.height == 16 ); int count = 0; for(size_t w = 0 ; w < incloud.width; w ++) { // for(size_t height = 2; height < 64; height+=4) for ( size_t h = 2 ; h < incloud.height; h +=4 ) { int from_index = w * 64 + h; int to_index = w * 16 + h / 4; if(incloud.points[from_index].x == 0 && incloud.points[from_index].y == 0 && incloud.points[from_index].z == 0) { out_pc.points[to_index].x = std::numeric_limits<double>::quiet_NaN(); out_pc.points[to_index].y = std::numeric_limits<double>::quiet_NaN(); out_pc.points[to_index].z = std::numeric_limits<double>::quiet_NaN(); } else { out_pc.points[to_index] = incloud.points[from_index]; } count++; } } // return out_pc; } CloudOS1 *filter_pointcloud(CloudOS1 &incloud, uint32_t width, uint32_t height) { CloudOS1 *out_pc = new CloudOS1{width,height}; // CloudOS1 *out_pc(new CloudOS1); int count = 0; for(size_t w = 0 ; w < incloud.width; w++) { // for(size_t height = 2; height < 64; height+=4) for ( size_t h = 2 ; h < incloud.height; h +=4 ) { int from_index = w * 64 + h; int to_index = w * 16 + h / 4; if(incloud.points[from_index].x == 0 && incloud.points[from_index].y == 0 && incloud.points[from_index].z == 0) { out_pc->points[to_index].x = std::numeric_limits<double>::quiet_NaN(); out_pc->points[to_index].y = std::numeric_limits<double>::quiet_NaN(); out_pc->points[to_index].z = std::numeric_limits<double>::quiet_NaN(); } else { out_pc->points[to_index] = incloud.points[from_index]; } count++; } } return out_pc; } struct PCLFixture : public ::testing::Test { pcl::PointCloud<ouster_ros::OS1::PointOS1>::Ptr cloud; PCLFixture() : cloud(new pcl::PointCloud<ouster_ros::OS1::PointOS1>) { std::cout <<"Setting up \n"; } virtual void SetUp(std::string file_name) { if (pcl::io::loadPCDFile<ouster_ros::OS1::PointOS1>(file_name, *cloud) == -1) { ROS_ERROR_STREAM("Couldn't read file " << file_name << "\n"); } std::cout << "Loaded " << cloud->width * cloud->height << " data points from test_pcd.pcd with the following fields: " << std::endl; // for (std::size_t i = 0; i < cloud->points.size (); ++i) // std::cout << " " << cloud->points[i].x // << " " << cloud->points[i].y // << " " << cloud->points[i].z << std::endl; } virtual void TearDown() { std::cout << "TEARING DOWN"; } }; TEST_F(PCLFixture,Test) { SetUp("flightops.pcd"); CloudOS1 *ncloud = filter_pointcloud( *cloud, cloud->width, cloud->height / 4 ); // if (pcl::io::loadPCDFile<ouster_ros::OS1::PointOS1>(file_name, *cloud) == -1) { // ROS_ERROR_STREAM("Couldn't read file " << file_name << "\n"); // } // for (std::size_t i = 0; i < ncloud->points.size (); ++i) // std::cout << " " << ncloud->points[i].x // << " " << ncloud->points[i].y // << " " << ncloud->points[i].z << std::endl; pcl::io::savePCDFileASCII("out.pcd", *ncloud); ASSERT_EQ(1,1); } TEST_F(PCLFixture,Test2) { SetUp("flightops.pcd"); CloudOS1 ncloud{512,16}; filter_pointcloud( *cloud, ncloud ); // CloudOS1 *ncloud = filter_pointcloud( *cloud, cloud->width, cloud->height / 4 ); // if (pcl::io::loadPCDFile<ouster_ros::OS1::PointOS1>(file_name, *cloud) == -1) { // ROS_ERROR_STREAM("Couldn't read file " << file_name << "\n"); // } // for (std::size_t i = 0; i < ncloud.points.size (); ++i) // std::cout << " " << ncloud.points[i].x // << " " << ncloud.points[i].y // << " " << ncloud.points[i].z << std::endl; pcl::io::savePCDFileASCII("out.pcd", ncloud); ASSERT_EQ(1,1); } int main(int argc, char *argv[]) { testing::InitGoogleTest(&argc, argv); ros::init(argc, argv, "delaystats" ); return RUN_ALL_TESTS(); }
1953abef064bb68d3ff517a16fd27f5d1da5ce16
3edec563d15a983cf3920e3f8cbd1a2c1782bb35
/dungeon-and-dragons/Map/Map.cpp
66fe75ea2ed2055ef10e4d9f887258e1b78285f2
[]
no_license
lancelafontaine/Dungeons-and-Dragons
6b1f7fb132148e918f52ad7e797b745628b93aca
f8f571ef9e8125e0e53d55bb6e838a94f1c1f1ae
refs/heads/master
2020-06-12T19:28:56.563772
2017-03-18T04:18:30
2017-03-18T04:18:30
75,764,383
1
1
null
2016-12-06T19:33:51
2016-12-06T19:33:50
null
UTF-8
C++
false
false
10,762
cpp
Map.cpp
//! @file //! @brief Implementation file for the Map class //! #include <algorithm> #include <iostream> #include <vector> #include <string> #include <tuple> #include "Map.h" using std::cout; using std::endl; using std::find; using std::make_pair; using std::pair; using std::string; using std::make_tuple; using std::vector; //! Implementation of the Map class default constructor, creates a map grid based on default size values Map::Map() { // Default map size is 4x4 this->mapWidth = 4; this->mapLength = 4; setMapData(" "); } //! Implementation of a Map class non-default constructor, creates a map grid based on provided size values //! @param width: an integer value of horizontal size of the map's grid //! @param length: an integer value of vertical size of the map's grid Map::Map(int width, int length, string placement) { // Default map size is 5x5 this->mapWidth = width; this->mapLength = length; setMapData(placement); } //! Implementation of is beside, checks if a specific cell is adjacent (top/left/bottom/right) to a specific cell type. //! @param x: an integer value of horizontal index of the map's grid //! @param y: an integer value of vertical index of the map's grid //! @return bool value, true if there is a the cell type adjacent to the specific cell chosen bool Map::isBeside(int x, int y, char type) { //check top left cell if (x == 0 && y == 0) { return this->checkRight(x, y, type) || this->checkDown(x, y, type); } //check top right cell else if (x == 0 && y == this->getMapLength()-1) { return this->checkLeft(x, y, type) || this->checkDown(x, y, type); } //check bottom left cell else if (x == this->getMapWidth()-1 && y == 0) { return this->checkUp(x, y, type) || this->checkRight(x, y, type); } //check bottom right cell else if (x == this->getMapWidth() - 1 && y == this->getMapLength() - 1) { return this->checkLeft(x, y, type) || this->checkUp(x, y, type); } //check left edge else if (y == 0) { return this->checkUp(x, y, type) || this->checkRight(x, y, type) || this->checkDown(x, y, type); } //check right edge else if (y == this->getMapLength()-1) { return this->checkUp(x, y, type) || this->checkLeft(x, y, type) || this->checkDown(x, y, type); } //check upper edge else if (x == 0) { return this->checkRight(x, y, type) || this->checkLeft(x, y, type) || this->checkDown(x, y, type); } //check bottom edge else if (x == this->getMapWidth()-1) { return this->checkRight(x, y, type) || this->checkLeft(x, y, type) || this->checkUp(x, y, type); } //middle cells else { return this->checkRight(x, y, type) || this->checkLeft(x, y, type) || this->checkUp(x, y, type) || this->checkDown(x, y, type); } } bool Map::checkUp(int x, int y, char type) { if (x == 0) return false; return this->getCell(x - 1, y) == type; } bool Map::checkDown(int x, int y, char type) { if (x == this->getMapWidth() - 1) return false; return this->getCell(x + 1, y) == type; } bool Map::checkLeft(int x, int y, char type) { if (y == 0) return false; return this->getCell(x, y - 1) == type; } bool Map::checkRight(int x, int y, char type) { if (y == this->getMapLength() - 1) return false; return this->getCell(x, y + 1) == type; } //! Implementation of the map verification //! @return bool value, true of the map is valid (there is at least one clear path between the mandatory begin and end cell). bool Map::validatePath() { // Map sure map is large enough. We are using mapWidth>3 and mapLength>3 if (mapLength < 4 || mapWidth < 4) { cout << "INVALID: Map size too small" << endl; return false; } // Find start and end cells vector<pair<int,int>> startCells, endCells; for (int i = 0; i < mapWidth; i++) { for (int j = 0; j < mapWidth; j++) { if (map[i][j] == 'S') { startCells.push_back(make_pair(i,j)); } if (map[i][j] == 'E') { endCells.push_back(make_pair(i,j)); } } } //check if start and exist if (startCells.size() == 0 || endCells.size() == 0) { cout << "INVALID: Ensure you have one 'Start' cell and at least one 'Exit' cell." << endl; return false; } //check if multiple starts if (startCells.size() > 1) { cout << "INVALID: Ensure you only have one 'Start' cell." << endl; return false; } //check if the wall is enclosed. for (int k = 0; k < this->getMapWidth(); k++) { for (int l = 0; l < this->getMapLength(); l++) { if (this->getCell(k, l) == 87) { if (!(isBeside(k, l, 87) || isBeside(k, l, 83) || isBeside(k, l, 69))) { cout << "INVALID: Ensure the wall is enclosed (diagonal is not valid)." << endl; return false; } } } } // Start cell must be next to walls bool bStartBesideWall = false; bStartBesideWall = isBeside(startCells[0].first, startCells[0].second, 'W'); bool bEndBesideWall = false; for (size_t i = 0; i < startCells.size(); i++) { bEndBesideWall = isBeside(endCells[i].first, endCells[i].second, 'W'); } if (!bStartBesideWall || !bEndBesideWall) { cout << "INVALID: Ensure that all start and end cells are next to walls." << endl; return false; } return true; } //! Implementation of fill cell, set any cell to anything it might eventually contain //! @param x: an integer value of horizontal index of the map's grid //! @param y: an integer value of vertical index of the map's grid //! @param obj: a character value of object that fills the cell void Map::setCell(int x, int y, char obj) { string objName; //Human Character has reached the exit, need to be logged correctly //if (map[x][y] == 'E' && obj == 'S') //{ //objName = getLetterType(obj); //UpdateLog("Map", "setCell", objName + " has moved or set to cell " + to_string(x) + "," + to_string(y)); //} //Set obj to x,y location this->map[x][y] = obj; //Only logging Character movements in the map //if (obj == 'S' || obj == 'O' || obj == 'C') { //objName = getLetterType(obj); //UpdateLog("Map", "setCell", objName + " has moved or set to cell " + to_string(x) + "," + to_string(y)); //} } //! Implementation of fill cell, set any cell to anything it might eventually contain //! @param x: an integer value of horizontal index of the map's grid //! @param y: an integer value of vertical index of the map's grid //! @param obj: a character value of object that fills the cell char Map::getCell(int x, int y) { return this->map[x][y]; } //! Implementation occupation of a cell, check if a cell is occupied //! @param x: an integer value of horizontal index of the map's grid //! @param y: an integer value of vertical index of the map's grid //! @return : a boolean true if the cell is occupeid false otherwise bool Map::isOccupied(int x, int y) { if (this->map[x][y] != ' '){ return true; } return false; } //! Implementation of getMapWidth, provides information on map horizontal size. //! @return : an integer value representing the map grid's width int Map::getMapWidth() { return this->mapWidth; } //! Implementation of getMapLength, provides information on map vertical size. //! @return : an integer value representing the map grid's length int Map::getMapLength() { return this->mapLength; } //! Implementation of getMapWidth, provides information on map horizontal size. //! @return : an integer value representing the map grid's width void Map::setMapWidth(int mw) { this->mapWidth = mw; } //! Implementation of getMapLength, provides information on map vertical size. //! @return : an integer value representing the map grid's length void Map::setMapLength(int ml) { this->mapLength = ml; } //! Implementation of getMapdata //@return map data in the form of a vector of vector of chars. string Map::getMapData() { string placement; for(int i = 0; i < this->mapWidth; i++) { for(int j = 0; j < this->mapLength; j++) { placement += this->map[i][j]; } } return placement; } //! Implementation of setMapdata void Map::setMapData(string placement) { //It relies on this->mapWidth and this->mapLength being previously set! int i = 0; int j = 0; // Preventing segfaults here this->map = {{}}; this->map.resize(this->mapWidth, {}); for (int z = 0; z < this->mapWidth; z++) { this->map[z].resize(this->mapLength,' '); } for(string::size_type k = 0; k < placement.size(); k++) { this->map[i][j] = placement[k]; j++; if (j == this->mapLength) { i++; j = 0; } if (i == this->mapWidth) { // map was badly configured, truncating here break; } } } //! Implementation of the display method. Prints an ASCII map to the console. ///////////////////////////////////////////////////////////// // SHOULD NO LONGER BE NEEDED WHEN BENNY MERGES HIS LOGGER // ///////////////////////////////////////////////////////////// void Map::display() { cout << string(mapWidth+2,'#') << endl; for (int i = 0; i < (int)map.size(); i++) { cout << "#"; for (int j = 0; j < (int)map[i].size(); j++) { cout << map[i][j]; } cout << "#" << endl; } cout << string(mapWidth+2,'#') << endl; } string Map::getLetterType(char obj) { string objName; if (obj == 'S') objName = "Human Character"; if (obj == 'C') objName = "Friendly Character"; if (obj == 'O') objName = "Aggressor Character"; return objName; } void Map::clearCell(int x, int y){ map[x][y] = ' '; } //! Implementation of the getAllCharacterPositions method. This allows for the eventual construction of Character objects that correspond to letters on the map grid. // @return a vector of tuples, which contain the character type and its position on the map. vector<tuple<char,int,int>> Map::getAllCharacterPositions() { vector<tuple<char,int,int>> characterPositions; for(int i = 0; i < this->mapWidth; i++) { for(int j = 0; j < this->mapLength; j++) { if (map[i][j] == 'S' || map[i][j] == 'C' || map[i][j] == 'O') { characterPositions.push_back(make_tuple(map[i][j], i ,j)); } } } return characterPositions; } //! Implementation of the getHumanPosition method. This returns a empty vector if no start character/position is found (technically an invalid map), and a vector 2 ints corresponding to the start position if one is found // @return a vector of ints corresponding to the start position vector<int> Map::getHumanPosition() { vector<int> humanPosition = {}; for(int i = 0; i < this->mapWidth; i++) { for(int j = 0; j < this->mapLength; j++) { if (map[i][j] == 'S') { humanPosition.push_back(i); humanPosition.push_back(j); return humanPosition; } } } return humanPosition; }
6f5100b5eaadf8b5285e7284b07aa0c2a8255ef7
83ad52d9d6e06fa3f158e401d8d2717eff3ad7f3
/src/nfc-lib/lib-gl/gl-engine/src/main/cpp/widget/BoxWidget.cpp
f9cd23f0a05fb87ce8b65824344a55597a43da95
[ "MIT" ]
permissive
chertoGUN/nfc-laboratory
3526bbf4c6200e335a6f218ff22433c298458fa7
0e7bd9a5674f6da477c32b02ac349d337f378872
refs/heads/master
2023-08-27T07:34:46.954341
2021-10-28T05:59:05
2021-10-28T05:59:05
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,761
cpp
BoxWidget.cpp
/* Copyright (c) 2021 Jose Vicente Campos Martinez - <josevcm@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <rt/Logger.h> #include <gl/engine/Buffer.h> #include <gl/engine/Geometry.h> #include <gl/shader/GeometryShader.h> #include <gl/widget/BoxWidget.h> namespace gl { struct BoxWidget::Impl { rt::Logger log {"BoxWidget"}; Buffer vertex; Buffer index; }; BoxWidget::BoxWidget(Color color) : widget(new Impl) { widget->log.debug("create AxisWidget"); Vertex vertex[] { {{-1, -1, -1}, color}, {{1, -1, -1}, color}, {{1, 1, -1}, color}, {{-1, 1, -1}, color}, {{-1, -1, 1}, color}, {{1, -1, 1}, color}, {{1, 1, 1}, color}, {{-1, 1, 1}, color}}; unsigned int index[] { 5, 4, 0, 1, 5, 0, 6, 5, 1, 2, 6, 1, 7, 6, 2, 3, 7, 2, 4, 7, 3, 0, 4, 3, 6, 7, 4, 5, 6, 4, 1, 0, 3, 2, 1, 3 }; widget->vertex = Buffer::createArrayBuffer(sizeof(vertex), vertex, sizeof(vertex) / sizeof(Vertex), sizeof(Vertex)); widget->index = Buffer::createElementBuffer(sizeof(index), index, sizeof(index) / sizeof(unsigned int), sizeof(unsigned int)); } BoxWidget::~BoxWidget() { delete widget; } void BoxWidget::draw(Device *device, Program *shader) const { if (auto geometryShader = dynamic_cast<GeometryShader *>(shader)) { geometryShader->setMatrixBlock(*this); geometryShader->setVertexPoints(widget->vertex, offsetof(Vertex, point)); geometryShader->setVertexColors(widget->vertex, offsetof(Vertex, color)); geometryShader->drawTriangles(widget->index, widget->index.elements()); } } }
463430fdfdd78d82cb51272733f734a1103d719c
7c3e35c4492b3c8d8f66b27acb9bf7416b53c605
/4202.cpp
2245a9f89f04c58c81a829ce090974406c15c28e
[]
no_license
scarletea/SDUT
ce218ad157c6d8137c88a46e806ce548c04abcdc
f1c4367b088070b515f59012b94519a5098e25b0
refs/heads/master
2020-09-25T22:15:54.951815
2020-02-07T09:16:55
2020-02-07T09:16:55
226,099,477
0
0
null
null
null
null
UTF-8
C++
false
false
512
cpp
4202.cpp
#include<iostream> using namespace std; int main() { int n; while(scanf("%d",&n)!=EOF) { int w1[5010],w2[5010],w3[5010]; double sum[5010]; int max = -1; int f = 0; for(int i = 0;i<n;i++) { cin>>w1[i]>>w2[i]>>w3[i]; sum[i] = (double)w1[i]*0.7+w2[i]*0.2+w3[i]*0.1; if(max<sum[i]) { max = sum[i]; f = i; } } cout<<f<<endl; } return 0; }
c87901437de1bf0fe47f075164555e2dd143874b
bc9b61f82f479e857f267e92e81ddbebec74cc2d
/student management system/Ktlt/StudentMenu.h
fc72fe9d2e6a601a72b7f14bc881b3f808611b4e
[ "MIT" ]
permissive
IceIce1ce/Student-Management-System-HCMUS
51fc18108485eb2ab28a76309ef0f58b12dbd364
b909227078ca2e7266f3ad0402c48f2dc6a407a7
refs/heads/master
2023-05-01T03:33:00.447257
2021-05-23T07:13:29
2021-05-23T07:13:29
273,660,698
0
0
null
null
null
null
UTF-8
C++
false
false
976
h
StudentMenu.h
#pragma once #include <iostream> #include <windows.h> #include <string> #include <conio.h> #include <fstream> #include <ctime> #include "honganh.h" using namespace std; #define _CRT_SECURE_NO_WARNINGS #define CONSOLE_WIDTH 120 #define CONSOLE_HEIGHT 40 #define X 100 /*struct checkin { string No, id, w1, w2, w3, w4, w5, w6; };*/ void StudentMenu(string *Menu, int * MenuLines); void showStudentMenu(string *splashData, int * lines, string * mainMenu, int * mainMenuLines, int * menuCurrent); void Schedules(string *TKB, int * TKBLines); void showSchedules(string *TKB, int * TKBLines); int loadCheckin(checkin check[], int &max); void showCheckin(checkin check[],string mssv, int max); void saveCheckin(checkin check[], string mssv, int max); void loadScore(scores s[], int &max); void showScore(scores s[], string mssv, int max); //void editGrade(scores s[], int max, string mssv); //void showScoreBoard(scores s[], int max); int StudentMenu();
50c105970e0109614c2f148461e7da68029b4938
3cbfefd3bddb459aae5d3c8f24c868b718b6ceac
/Raumverwaltung.h
9132d447557a125e1376813912154605a7b1b1e5
[]
no_license
ScreaminSteve/OOAD_Stuffs
83d56baa2482effb644eb97377d9199b3395e99b
eda69920bb131ab387e5b32af64e658c4d68d62a
refs/heads/master
2021-09-04T01:03:59.214302
2018-01-13T19:09:29
2018-01-13T19:09:29
116,279,907
0
0
null
null
null
null
UTF-8
C++
false
false
555
h
Raumverwaltung.h
/** * @(#) Raumverwaltung.h */ #ifndef RAUMVERWALTUNG_H_H #define RAUMVERWALTUNG_H_H #include "Raum.h" #include <vector> #include <fstream> #include <iostream> using namespace std; class Raumverwaltung { public: Raumverwaltung(); void addRoom( ); //ADMIN: neue Räume zu Liste hinzufügen void readRoomConfig( ); //InitialisierungsFunktion void setRoom(int,int); //Set Room Availability to false (Raum buchen) void printRoomList(); void setRoom(); //private: vector<Raum*> raumvect; }; #endif
0f53db64e4b48797a281fe787f8f6ac3322850f9
8a8996da56c7cce8ddf50cbb49f64be6e8c566e0
/ICs/Projects/ArduinoAnalogMoistureSensorWMultiplexer/ArduinoAnalogMoistureSensorWMultiplexer.ino
3be04a72625a7526f05619252d620e4c9834c7d4
[]
no_license
shaddow1201/MicrocontrollerProjects
f7de131f35573641459e472560e584aa3fa1c9f3
656219d0f8770a5f4ee39d4f5c2aa229c3386b71
refs/heads/master
2023-01-27T23:59:28.117016
2023-01-20T13:40:12
2023-01-20T13:40:12
132,782,368
8
0
null
null
null
null
UTF-8
C++
false
false
878
ino
ArduinoAnalogMoistureSensorWMultiplexer.ino
#define SensorPin A2 #define LEDPin 13 // MUX Select lines const byte muxPinA = 9; const byte muxPinB = 10; const byte muxPinC = 11; void setup() { // LED SETUP pinMode(LEDPin, OUTPUT); pinMode(muxPinA, OUTPUT); pinMode(muxPinB, OUTPUT); pinMode(muxPinC, OUTPUT); Serial.begin (9600); } int readSensor (const byte port){ // select correct MUX channel digitalWrite (muxPinA, (port & 1) ? HIGH : LOW); digitalWrite (muxPinB, (port & 2) ? HIGH : LOW); digitalWrite (muxPinC, (port & 4) ? HIGH : LOW); // now read the sensor return analogRead (SensorPin); } float voltage = 0.0; void loop() { for (byte i = 0; i < 7; i++){ if(i < 3){ Serial.print ("Sensor "); Serial.print (i); Serial.print (" reads: "); voltage = readSensor(i) * (5.0 /1023.0); Serial.println (voltage); delay(500); } } delay(1000); }
98058119df6185c523af612e003736ed75f3a959
f4a113d063e8a53302936784cadb264992cb7c42
/Projects/Dijkstra/Dijkstra/GrDB.h
01a14b9c0cb9463aa2e10e9d3f9655e10a7d3d23
[]
no_license
ARUNMANNURU/cplusplusalgo
46f6ad5e21552da5f8473d8a31b625a7ac55267f
77151003776796fbe94bcadee7b9d8515c655190
refs/heads/master
2021-01-01T17:35:50.607399
2017-07-23T16:05:14
2017-07-23T16:05:14
98,109,284
0
0
null
null
null
null
UTF-8
C++
false
false
1,087
h
GrDB.h
#ifndef GRDB_INCL_HDR #define GRDB_INCL_HDR #include "Vertex.h" #include <vector> class GrDB { enum { ME_PER_NODE = 50 }; enum { NUM_NODES = 2000 }; enum { MAX_WEIGHT = 450 }; enum { SEED = 1982 }; int iArr[NUM_NODES + MAX_WEIGHT]; // // The array // of Car objects. // vector<const Vertex * const> vArray; void loadV ( const int min, //lowest value in draw pool const int m, // size of draw pool const int ne, // number of elements const int ix, // exclude this value VDt& d // the vector to load. ); const int getRand(const int b, const int r); public: GrDB(); ~GrDB(); // // Return the // ith record. // const Vertex& getAt(const int i) const; // // Return number // of items. // inline const int nI() const { return NUM_NODES; } }; #endif
5ae40f322bfad0443b25e5ecaf47b0eff9c01670
982ece5e570bbf460cb36787437ea81b89b62593
/learncpp_quizzes/2/x/q1_3/io.cpp
42398fd15aa808819897317ecaebe7223b1ec9e9
[]
no_license
adidiner/learncpp
369f0d2e3c482b2907368b0a87cde86dbcd1ac6c
e5ef6e99e6a59aebd8e0c0ae02a36a0a73bda177
refs/heads/master
2023-04-01T12:07:08.656791
2021-04-13T17:07:46
2021-04-13T17:07:46
349,992,530
0
0
null
null
null
null
UTF-8
C++
false
false
185
cpp
io.cpp
#include "io.h" #include <iostream> int read_number() { int input{}; std::cin >> input; return input; } void write_answer(int answer) { std::cout << answer << '\n'; }
04f751823e22f99698b4c457a2d823c36ad14934
6fe7ecd63379ff2f40fd3f51432a8832ca8a91a4
/Qt/LANClient/LANClient/View/CustomLabel.cpp
725f8c04041b27233385c9933735a35ba2a1ac20
[]
no_license
ha-hia/Study
3d9f5ff7798de6c6a613d47a48a83a2e4ee53b38
4e587f6b33ba2e88bba2aac4d4fba4cfd42fc700
refs/heads/main
2023-07-21T22:48:51.956382
2021-09-07T03:30:43
2021-09-07T03:30:43
361,381,511
0
0
null
null
null
null
UTF-8
C++
false
false
750
cpp
CustomLabel.cpp
#include "CustomLabel.h" #include <QMouseEvent> CustomLabel::CustomLabel(QWidget *parent) : QLabel(parent) { QPalette pa; pa.setColor(QPalette::WindowText, Qt::darkGreen); setPalette(pa); } CustomLabel::CustomLabel(const QString& text, QWidget *parent) : QLabel(parent) { this->setText(text); } CustomLabel::~CustomLabel() { } void CustomLabel::mousePressEvent(QMouseEvent *ev) { if(Qt::LeftButton == ev->button()) { emit clicked(); } } void CustomLabel::enterEvent(QEvent *event) { QPalette pa; pa.setColor(QPalette::WindowText, Qt::green); setPalette(pa); } void CustomLabel::leaveEvent(QEvent *event) { QPalette pa; pa.setColor(QPalette::WindowText, Qt::black); setPalette(pa); }
f98742c07135d3a03ba75dd0ce5948a109118e42
743b74447316b66c7475c8b0f5952df9475b5aa6
/NMS.cpp
346dc125012a10fd0e85c38b255e04bcaa0087c8
[]
no_license
xu188618861886/AI_axu
e710704f438475e09cf13fb97d7853860b81be47
a8dcfd9773109fe753c5fde371603626af8b1477
refs/heads/master
2022-11-30T23:45:16.178692
2020-08-13T12:47:17
2020-08-13T12:47:17
284,360,762
0
0
null
null
null
null
UTF-8
C++
false
false
1,212
cpp
NMS.cpp
#include<vector> float iou(int x1, int x2, int y1, int y2, int x1_, int x2_, int y1_, int y2_) { int X1 = std::max(x1, x1_); int Y1 = std::max(y1, y1_); int X2 = std::min(x2, x2_); int Y2 = std::min(y2, y2_)); float I_area = (X2 - X1) * (Y2 - Y1); float U_area = ( (x2 - x1) * (y2 - y1) + (x2_ - x1_) * (y2_ - y1_) - I_area); float iou = I_area / U_area; return iou; } bool sort_cmp(std::vector n1, std::vector n2) { return (n1[4] > n2[4]); } vector<vector <float>> NMS(vector<vector <float>> lists, float thre) { // lists[0:4]: x1, x2, y1, y2; lists[4]: score vector<vector <float>> results; while(lists.size() > 0) { std::sort(lists.begin() ,lists.end(), sort_cmp); results.push_back(lists[0]); for(int i =0; i < lists.size()-1; i++) { float iou_value =iou(lists[0][0], lists[0][1], lists[0][2], lists[0][3], lists[i+1][0], lists[i+1][1], lists[i+1][2], lists[i+1][3]); if (iou_value > thre) { lists.erase(lists[i+1]); } } lists.erase(vec_boxs[0]); } return results; }
8b42927588ebc7b63799ea2eef62144795b319b7
bfedce9f22914651c6c53f2a2e103f5097838a6e
/add.cpp
ea3a8871fa0eb822f86c2d58c57fb55c9dccf2b0
[]
no_license
jinay1991/ld_preload
c3d619b271e8e225de2f235cd480e98465a553a6
e0901a9ac1fbd4de59329eccb9af4d085a3ff93b
refs/heads/master
2020-03-21T22:05:42.766602
2018-06-29T05:11:03
2018-06-29T05:11:03
139,103,424
0
0
null
null
null
null
UTF-8
C++
false
false
138
cpp
add.cpp
#include "test.h" int addition(int a, int b) { printf(" -- %s() is adding %d and %d -- \n", __FUNCTION__, a, b); return a + b; }
e2737629277d41a2ce6ebcaad61cf862b04a7a2f
75f7dc4df2fbfd3dab6dadeef114fd167f6e0820
/exile_server_config/CfgBuildings.hpp
6c30e297b2e6e5c4d48f977f4585a358e185c114
[]
no_license
maemo5/Server
7f42254fb4567da8807f4116c4d5859d115acfaa
8b524454faf34f3c6e06e1237751a1aa0d610313
refs/heads/master
2020-06-29T03:33:31.480299
2018-03-02T00:13:26
2018-03-02T00:13:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
251,152
hpp
CfgBuildings.hpp
class CfgBuildings { /////////////////////////////////////////////////////////////////////////// // Castles & Lighthouses & Life Guard Towers /////////////////////////////////////////////////////////////////////////// class Land_LifeguardTower_01_F { table = "Tourist"; positions[] = {{-0.498047, -0.222656, 1.13312}}; }; class Land_LightHouse_F { table = "Tourist"; positions[] = {{-5.74805, 11.0859, -3.75002}, {0.789063, -2.94336, -11.0953}, {1.07813, -2.83008, 5.39755}}; }; class Land_Lighthouse_small_F { table = "Tourist"; positions[] = {{-0.369141, 1.18555, -3.39546}, {4.32617, -0.462891, -3.39546}}; }; class Land_Castle_01_tower_F { table = "Tourist"; positions[] = {{-1.66602, 0.603516, 7.94255}, {-1.99023, -1.70508, -1.0866}, {-2.14453, 2.73633, -3.95897}, {0.164063, 1.33203, -9.47995}, {1.14844, -1.18359, 7.94255}, {2.06641, 2.66992, -6.67494}, {2.15039, -1.89063, 1.70487}, {2.27344, 2.70703, 4.42336}}; }; /////////////////////////////////////////////////////////////////////////// // Military /////////////////////////////////////////////////////////////////////////// //"Land_Airport_center_F" //"Land_Airport_left_F" //"Land_Airport_right_F" // TODO: "Land_Cargo_House_V2_F", class Land_A_Stationhouse_ep1 { table = "Military"; positions[] = {{19.0209, -5.7395, -9.47202}, {16.7513, 3.28735, -9.47202}, {14.0314, 3.93994, -9.03299}, {9.3335, 3.96997, -8.64666}, {1.01471, 3.65112, -9.47202}, {0.404907, 1.25293, -8.63941}, {0.74707, -6.83618, -9.47202}, {-4.60101, -7.17944, -9.4079}, {-1.67505, -8.69727, -9.01744}, {-3.33313, -8.67749, -8.64173}, {-1.70569, 7.59937, -9.47202}, {-1.58685, -3.33496, -9.47202}, {-5.97522, 6.75415, -8.73244}, {-10.0822, 9.12817, -9.47202}, {-12.0148, 7.07153, -8.75149}, {-11.9564, 4.28149, -8.73263}, {-5.93555, 3.89233, -8.7504}, {-12.4189, 1.75732, -9.47202}, {-5.61304, -3.66504, -9.47202}, {-5.96051, -7.17871, -9.47202}, {-17.1072, 7.89624, -9.47202}, {-13.8837, -6.65552, -9.47202}, {-17.0098, 0.157715, -9.47202}, {-15.9949, -6.35913, -6.78029}, {-17.185, 8.4729, -6.78029}, {-11.1655, 7.98413, -6.43271}, {-7.11829, 7.12036, -6.4654}, {-4.08429, 8.74146, -6.42953}, {-9.29156, -3.51782, -6.78029}, {-1.6189, -3.56763, -6.78029}, {-14.3339, 7.38989, -3.28933}, {-10.617, 8.70972, -3.27586}, {-7.70233, 8.03345, -3.265}, {-3.40198, 8.00415, -3.27977}, {-5.8479, -3.53638, -3.65596}, {-9.33948, -3.54175, -3.65596}, {-16.8631, -6.36938, -3.65596}, {-3.78613, -5.90918, -4.65034}, {-0.975159, -8.49658, -4.65034}, {-0.728088, -7.99512, 0.0349712}, {-4.26587, -8.46289, -0.0452251}, {-0.936523, -5.29565, 4.40995}, {-4.25696, -8.59521, 4.40995}, {-16.1082, -6.11743, -0.509346}, {-4.30585, -2.94507, -0.509346}, {-12.7886, 2.89697, -0.509346}, {-4.25641, 7.57935, -0.509346}, {4.42712, 2.71704, -0.509346}, {18.3603, 1.9834, -4.50935}, {16.3883, -5.25464, -4.50935}, {2.10931, -5.67554, -4.50948}, {8.24115, 1.45923, -4.50957}, {1.94507, -0.338135, -4.5096}, {-8.82959, -5.35693, -6.78029}, {6.6795, -7.2854, -9.47202}, {13.0309, -7.1958, -9.47202}, {9.89313, -2.29419, -9.47202}, {-1.35828, -7.72314, 8.49065}, {-3.96436, -5.15967, 8.49065}}; }; class Land_a_stationhouse { table = "Military"; positions[] = {{19.0913, -6.01221, -9.47202}, {16.7511, 3.2876, -9.47202}, {14.0043, 3.64575, -9.03299}, {9.30591, 3.66943, -8.64666}, {1.44348, 3.08887, -9.47202}, {0.453369, 0.94751, -8.63941}, {0.746826, -6.83594, -9.47202}, {-4.62518, -7.57349, -9.4079}, {-1.66559, -9.04297, -9.01744}, {-3.34991, -9.02588, -8.64173}, {-1.70593, 7.59961, -9.47202}, {-1.5871, -3.33472, -9.47202}, {-5.97546, 6.75439, -8.73244}, {-10.1082, 8.79053, -9.47202}, {-12.0254, 6.73877, -8.75149}, {-12.0671, 3.92993, -8.73263}, {-5.93579, 3.89258, -8.7504}, {-12.4191, 1.75757, -9.47202}, {-5.61328, -3.66479, -9.47202}, {-5.96075, -7.17847, -9.47202}, {-17.1075, 7.89648, -9.47202}, {-13.884, -6.65527, -9.47202}, {-17.0101, 0.157959, -9.47202}, {-15.9952, -6.35889, -6.78029}, {-17.1852, 8.47314, -6.78029}, {-11.1657, 7.98438, -6.43271}, {-7.11853, 7.12061, -6.4654}, {-4.08453, 8.7417, -6.42953}, {-9.29181, -3.51758, -6.78029}, {-1.61914, -3.56738, -6.78029}, {-14.3604, 7.03906, -3.28933}, {-10.5968, 8.73096, -3.31832}, {-7.70258, 8.03369, -3.33201}, {-3.40222, 8.00439, -3.32757}, {-5.8847, -3.74585, -3.65596}, {-9.48169, -3.54688, -3.65596}, {-16.8633, -6.36914, -3.65596}, {-3.78638, -5.90894, -4.65034}, {-0.985352, -8.69849, -4.65034}, {-0.720276, -8.29492, 0.0349712}, {-4.20526, -8.62329, -0.0452251}, {-0.936768, -5.29541, 4.40995}, {-4.2572, -8.59497, 4.40995}, {-16.1084, -6.11719, -0.509346}, {-4.30609, -2.94482, -0.509346}, {-12.7888, 2.89722, -0.509346}, {-4.25665, 7.57959, -0.509346}, {4.42688, 2.71729, -0.509346}, {18.36, 1.98364, -4.50935}, {16.3881, -5.25439, -4.50935}, {2.10907, -5.67529, -4.50948}, {8.24091, 1.45947, -4.50957}, {1.94482, -0.337891, -4.5096}, {-8.82983, -5.35669, -6.78029}, {6.67926, -7.28516, -9.47202}, {13.0314, -7.46387, -9.47202}, {9.89288, -2.29395, -9.47202}, {-1.35852, -7.7229, 8.49065}, {-3.9646, -5.15942, 8.49065}}; }; class Land_Mil_ControlTower { table = "Military"; positions[] = {{9.46533, 5.76465, -9.63838}, {0.398071, 5.90405, -9.63014}, {10.1575, 2.40112, -9.64023}, {9.69159, -2.8186, -9.64103}, {-0.363342, -3.83154, -9.65911}, {5.53015, -1.55981, -8.84823}, {1.59338, 1.08521, -8.83845}, {-10.13, -1.88452, -8.8626}, {-2.8205, -3.58521, -9.64001}, {-2.59937, 0.215088, -9.64213}, {9.92224, 3.55933, -7.44014}, {9.92908, 5.8606, -7.44014}, {5.30939, 3.91431, -5.53403}, {0.283936, 5.60083, -5.53549}, {10.0601, -0.0090332, -5.53872}, {9.9494, -2.89453, -5.51676}, {2.92603, 2.09521, -5.54191}, {-0.139099, -3.00562, -5.53174}, {5.01105, -2.99292, -5.52024}, {5.64484, 3.75317, -1.09768}, {7.63867, 2.41992, -0.300084}, {4.78333, -1.74268, -0.294509}, {1.73053, 2.33325, -1.07014}, {7.24982, -1.77246, -1.07014}, {-0.1073, -3.25049, -1.1022}, {9.69989, -3.82031, -1.09159}, {9.75226, 3.59351, -1.13438}, {4.69312, 5.60571, -1.16568}, {2.47882, -1.17798, 2.79082}, {7.52069, 3.36182, 2.68534}}; }; class Land_Mil_ControlTower_EP1 { table = "Military"; positions[] = {{9.46539, 5.76416, -9.63838}, {0.398132, 5.90356, -9.63014}, {10.1575, 2.40063, -9.64023}, {9.69165, -2.81909, -9.64103}, {-0.363281, -3.83203, -9.65911}, {5.53021, -1.5603, -8.84823}, {1.59344, 1.08472, -8.83845}, {-10.1299, -1.88501, -8.8626}, {-2.82043, -3.58569, -9.64001}, {-2.5993, 0.2146, -9.64213}, {9.9223, 3.55884, -7.44014}, {9.92914, 5.86011, -7.44014}, {5.30945, 3.91382, -5.53403}, {0.283997, 5.60034, -5.53549}, {10.0602, -0.00952148, -5.53872}, {9.94946, -2.89502, -5.51676}, {2.92609, 2.09473, -5.54191}, {-0.139038, -3.0061, -5.53174}, {5.01111, -2.99341, -5.52024}, {5.6449, 3.75269, -1.09768}, {7.63873, 2.41943, -0.300084}, {4.78339, -1.74316, -0.294509}, {1.73059, 2.33276, -1.07014}, {7.24988, -1.77295, -1.07014}, {-0.107239, -3.25098, -1.1022}, {9.69995, -3.8208, -1.09159}, {9.75232, 3.59302, -1.13438}, {4.69318, 5.60522, -1.16568}, {2.47888, -1.17847, 2.79082}, {7.52075, 3.36133, 2.68534}}; }; class Land_A_MunicipalOffice { table = "Military"; positions[] = {{-4.3382, -6.45337, -18.4304}, {3.75366, -6.55371, -18.4304}, {0.0794067, -5.22168, -18.4304}, {1.21783, -9.77905, -18.726}, {-1.67712, -10.1963, -18.8904}, {-10.4322, -6.49121, -3.69902}, {-9.85913, 10.4502, -3.79047}, {9.63336, 10.3462, -3.79047}, {9.78638, -5.54053, -3.79047}}; }; class Land_TentHangar_V1_F { table = "Military"; positions[] = {{-8.1582, -2.20703, -4.08853}, {-8.1582, 6.85547, -4.08853}, {-8.52734, -7.57227, -4.08853}, {7.76953, -7.64453, -4.08853}, {8.16016, 1.89453, -4.08853}, {8.57617, 7.48438, -4.08853}}; }; class Land_Hangar_F { table = "Military"; positions[] = {{-11.6641, 20.9063, -5.38129}, {-12.1133, 9.19336, -5.38129}, {-12.1543, -3.90625, -5.38129}, {-12.1816, -16.8906, -5.38129}, {1.75, 20.9688, -5.38129}, {11.3711, -19.2734, -5.38129}, {12.0469, -5.7168, -5.38129}, {12.7305, 6.83203, -5.38129}, {13.7285, 18.1602, -5.38129}}; }; class Land_Ss_hangar { table = "Military"; positions[] = {{-14.6025, -20.4792, -5.87397}, {-13.2937, -4.17896, -5.87397}, {-13.7384, 21.9553, -5.87397}, {13.0846, 21.4031, -5.87397}, {13.4246, -18.8103, -5.87397}, {10.0846, -1.04761, -5.87397}, {-0.833008, 10.2383, -5.87397}, {-3.77185, -9.6416, -5.87397}, {4.26062, -10.1243, -5.87397}}; }; class Land_Airport_Tower_F { table = "Military"; positions[] = {{-0.363281, 6.25586, -10.4415}, {-0.636719, -2.08203, -1.4408}, {-0.638672, 2.21875, -4.44063}, {-0.705078, 1.94336, -7.44128}, {-0.751953, 5.2793, 1.55464}, {-1.10742, -4.67578, 2.25613}}; }; class Land_Army_hut3_long { table = "Military"; positions[] = {{-2.83057, -5.18506, -1.27535}, {-0.430908, -3.41406, -0.580416}, {1.71399, -3.44263, -1.27533}, {-2.81299, -1.37573, -0.852946}, {-1.78235, 0.912109, -0.851719}, {1.52209, -2.06299, -1.27533}, {-1.6499, 2.79199, -0.858645}, {-1.76257, 5.00684, -0.867063}, {1.74146, 4.92456, -0.874578}}; }; class Land_Cargo_House_V1_F { table = "Military"; positions[] = {{-1.38281, 3.12109, 0.040287}, {1.24805, 2.54102, 0.0402873}}; }; class Land_Cargo_House_V3_F { table = "Radiation"; positions[] = {{-1.65576, 3.10742, 0.0388474}, {2.01123, 3.59961, 0.0388479}, {2.03613, 0.693115, -0.097188}, {-2.18311, 0.675781, -0.097188}, {-0.03125, 3.63818, 0.0388479}}; }; class Land_Cargo_HQ_V1_F { table = "Military"; positions[] = {{-0.294922, -3.42188, -3.27229}, {-1.46484, 3.26172, -3.27229}, {-2.02734, -2.62891, -0.747443}, {4.24609, 1.51758, -0.747443}, {4.98633, 3.64844, -3.27229}}; }; class Land_Cargo_HQ_V2_F { table = "Military"; positions[] = {{-1.25586, 1.48828, -0.747442}, {-1.50391, -2.52148, -3.27229}, {-1.50391, 2.67773, -3.27229}, {-1.9043, -4.61133, -0.747442}, {5.35156, 1.64648, -0.747442}, {5.5332, 3.30859, -3.27229}}; }; class Land_Cargo_HQ_V3_F { table = "Radiation"; positions[] = {{-2.22998, 3.21924, -0.748883}, {-3.00146, -4.48926, -0.748883}, {0.518555, -3.81372, -0.748883}, {6.03662, 5.28564, -0.780303}, {7.28613, -1.68823, -0.748883}, {-1.85352, -0.595459, -0.748883}, {3.31348, 0.650391, -0.748883}, {2.71973, -4.29004, -0.673725}, {8.05273, -1.67627, -3.15331}, {6.36572, 5.63281, -3.15331}, {2.79395, 5.32642, -3.15331}, {8.16113, 3.34229, -3.15331}, {2.76367, 0.415039, -3.27373}, {2.64307, 3.07861, -3.27373}, {0.472656, 3.68237, -3.27373}, {-3.49658, 3.6272, -3.27373}, {-4.83398, 0.790527, -3.15331}, {0.662598, -5.88623, -3.15331}, {-3.44287, -5.95166, -3.15331}, {4.72656, -4.59595, -3.27373}, {-1.28369, -0.530029, -3.27373}}; }; class Land_u_Barracks_V2_F { table = "Military"; // There are broken? //positions[] = {{-0.505859, 3.2168, 0.605521}, {-0.601563, 3.07617, 3.9395}, {-11.0234, -2.65625, 0.60552}, {-11.1328, -3.58398, 3.9395}, {-12.377, 0.271484, 3.9395}, {-2.39453, -3.92773, 0.605342}, {-5.09766, -4.89844, 3.93943}, {-8.69922, 3.24414, 3.9395}, {-9.12695, 3.73047, 0.60552}, {10.3711, 3.51367, 0.605521}, {10.6484, 2.85156, 3.9395}, {13.0684, -3.30469, 0.605521}, {13.1934, -3.42383, 3.9395}, {3.28711, -3.98633, 0.605521}, {3.4707, -3.55469, 3.9395}, {6.22852, 3.50391, 3.9395}, {6.39258, 3.05664, 0.605521}}; positions[] = {{-8.00537, -2.83154, 0.527566}, {-12.6563, 0.0644531, 0.531685}, {-12.3823, 2.62939, 0.532742}, {-2.0293, -3.99219, 0.533281}, {0.377441, -2.26807, 2.06341}, {6.96777, -2.77246, 0.508157}, {9.46387, -3.66699, 0.508949}, {13.9761, 3.92383, 0.492033}, {9.53027, 2.22656, 0.503988}, {3.06885, 2.07715, 0.507658}, {-5.18457, 2.06787, 0.53496}, {1.06885, 4.03223, 0.490987}, {-8.13379, -2.01953, 3.84351}, {-12.8076, -3.85205, 3.8357}, {-13.1045, -0.303223, 3.84661}, {-12.8442, 2.01563, 3.85739}, {-7.84521, 3.86572, 3.83274}, {0.723145, 4.09814, 3.87804}, {2.5083, 1.84814, 3.84448}, {13.7632, 3.82275, 3.8356}, {9.40625, -3.82324, 3.85752}, {7.34033, -1.75977, 3.85018}, {-2.77344, -4.8125, 3.86333}, {2.44482, 0.758301, 3.88475}, {-1.63721, -0.570801, 0.526668}, {11.731, 0.658691, 0.545222}, {-12.4619, 5.73779, 3.85243}, {-2.3208, 5.80713, 3.85243}, {15.6611, 3.36523, 3.85228}}; }; class Land_i_Barracks_V2_F { table = "Military"; positions[] = {{-8.00537, -2.83154, 0.527567}, {-12.6563, 0.0644531, 0.531686}, {-12.3823, 2.62939, 0.532743}, {-2.0293, -3.99219, 0.533282}, {0.377441, -2.26807, 2.06342}, {6.96777, -2.77246, 0.508158}, {9.46387, -3.66699, 0.508950}, {13.9761, 3.92383, 0.492034}, {9.53027, 2.22656, 0.503989}, {3.06885, 2.07715, 0.507659}, {-5.18457, 2.06787, 0.53497}, {1.06885, 4.03223, 0.490988}, {-8.13379, -2.01953, 3.84352}, {-12.8076, -3.85205, 3.8358}, {-13.1045, -0.303223, 3.84662}, {-12.8442, 2.01563, 3.85740}, {-7.84521, 3.86572, 3.83275}, {0.723145, 4.09814, 3.87805}, {2.5083, 1.84814, 3.84449}, {13.7632, 3.82275, 3.8357}, {9.40625, -3.82324, 3.85753}, {7.34033, -1.75977, 3.85019}, {-2.77344, -4.8125, 3.86334}, {2.44482, 0.758301, 3.88476}, {-1.63721, -0.570801, 0.526669}, {11.731, 0.658691, 0.545223}, {-12.4619, 5.73779, 3.85244}, {-2.3208, 5.80713, 3.85244}, {15.6611, 3.36523, 3.85229}}; }; class Land_i_Barracks_V1_F { table = "Radiation"; positions[] = {{-8.00537, -2.83154, 0.527565}, {-12.6563, 0.0644531, 0.531684}, {-12.3823, 2.62939, 0.532741}, {-2.0293, -3.99219, 0.533280}, {0.377441, -2.26807, 2.06340}, {6.96777, -2.77246, 0.508156}, {9.46387, -3.66699, 0.508948}, {13.9761, 3.92383, 0.492032}, {9.53027, 2.22656, 0.503987}, {3.06885, 2.07715, 0.507657}, {-5.18457, 2.06787, 0.53495}, {1.06885, 4.03223, 0.490986}, {-8.13379, -2.01953, 3.84350}, {-12.8076, -3.85205, 3.8356}, {-13.1045, -0.303223, 3.84660}, {-12.8442, 2.01563, 3.85738}, {-7.84521, 3.86572, 3.83274}, {0.723145, 4.09814, 3.87803}, {2.5083, 1.84814, 3.84447}, {13.7632, 3.82275, 3.8355}, {9.40625, -3.82324, 3.85751}, {7.34033, -1.75977, 3.85017}, {-2.77344, -4.8125, 3.86332}, {2.44482, 0.758301, 3.88474}, {-1.63721, -0.570801, 0.526667}, {11.731, 0.658691, 0.545221}, {-12.4619, 5.73779, 3.85242}, {-2.3208, 5.80713, 3.85242}, {15.6611, 3.36523, 3.85227}}; }; class Land_Cargo_Patrol_V1_F { table = "Military"; positions[] = {{-1.6875, -1.03906, -0.55952}, {1.73828, -1.17383, -0.55952}}; }; class Land_Cargo_Patrol_V2_F { table = "Military"; positions[] = {{-1.01953, -1.0918, -0.55952}, {1.82031, -0.695313, -0.55952}}; }; class Land_Cargo_Patrol_V3_F { table = "Radiation"; positions[] = {{2.26563, -0.739746, -0.560959}, {-1.98486, -1.19043, -0.560958}, {-2.01514, 1.35083, -0.764956}, {1.94775, 0.791016, -2.9121}, {0.0410156, -1.80078, -0.560959}}; }; class Land_Cargo_Tower_V1_F { table = "Military"; positions[] = {{-3.54785, -3.01758, 2.47987},{-3.15625, -0.837891, 5.00472},{-2.0498, -3.29883, -0.120125},{4.55957, 4.39258, -0.120125},{-4.42383, 2.45117, -0.120125},{-2.87598, 2.20898, -4.2958},{-2.88281, 4.14258, 5.00472},{0.235352, -1.19727, 5.07987},{3.58105, 4.11719, 2.47988},{1.27441, 3.17773, -8.24333},{2.50488, 0.0625, 5.00472}}; }; class Land_Cargo_Tower_V1_No1_F { table = "Military"; positions[] = {{-2.4668, -4.10156, 5.00471}, {-2.7168, 1.0625, -0.120123}, {-2.83984, -2.95313, 2.47987}, {-3.06641, -2.66992, -0.120123}, {-3.12109, 2.42773, -4.2958}, {-3.16211, 4.51563, 5.00471}, {1.26367, 2.49609, -8.24333}, {2.25195, 4.30664, -0.120123}, {3.34766, 3.33203, 2.47987}, {3.66797, 1.8457, 5.00471}}; }; class Land_Cargo_Tower_V1_No2_F { table = "Military"; positions[] = {{-2.71289, 3.0957, -0.120123}, {-2.83203, 5.06445, 5.00472}, {-3.48633, 2.28906, -4.2958}, {-3.64844, -2.87891, 2.47988}, {-3.77344, -3.32617, 5.00472}, {-3.80664, -1.75977, -0.120123}, {0.0625, -0.287109, 5.07988}, {1.58984, -2.11523, -0.120123}, {2.13672, 2.20703, -8.24332}, {3.57422, 4.22461, 2.47988}, {3.75, 1.31055, 5.00472}, {4.98633, 3.90625, -0.120123}}; }; class Land_Cargo_Tower_V1_No3_F { table = "Military"; positions[] = {{-0.214844, -0.460938, 5.07988}, {-2.33203, -2.96094, -0.120119}, {-2.89648, -4.0625, 5.00472}, {-3.08008, -2.8125, 2.47988}, {-3.28711, 2.60352, -4.2958}, {-3.61328, 4.44141, 5.00472}, {-4.01758, 1.86133, -0.120119}, {1.54688, 2.61133, -8.24332}, {3.52734, 3.8418, 2.47988}, {3.5332, -0.386719, 5.00472}, {4.88477, 4.18945, -0.120119}}; }; class Land_Cargo_Tower_V1_No4_F { table = "Military"; positions[] = {{-2.68555, -3.07031, -0.120119}, {-2.93359, -4.27148, 5.00472}, {-3.22461, 4.84375, 5.00472}, {-3.6543, 1.57227, -4.2958}, {-3.70508, -3.0332, 2.47988}, {-4.26367, 0.980469, -0.120119}, {2.1543, 2.08789, -8.24332}, {3.46289, 2.25781, 2.47988}, {3.62305, 2.16797, 5.00472}, {5.10156, 4.20898, -0.120119}}; }; class Land_Cargo_Tower_V1_No5_F { table = "Military"; positions[] = {{-2.25781, -2.77344, -0.120119}, {-2.375, -4.45508, 5.00472}, {-2.41602, 5.18164, 5.00472}, {-2.94922, 2.4082, -4.2958}, {-3.89648, -2.7832, 2.47988}, {-4.03906, 1.43945, -0.120119}, {0.0410156, -0.8125, 5.07988}, {1.62305, 2.55664, -8.24332}, {2.97461, -0.335938, 5.00472}, {3.90039, 3.68555, 2.47988}, {4.80859, 3.57422, -0.120117}}; }; class Land_Cargo_Tower_V1_No6_F { table = "Military"; positions[] = {{-1.6875, -2.5918, -0.120119}, {-3.16992, -3.74219, 5.00472}, {-3.41797, 1.87305, -0.120119}, {-3.49805, 2.06836, -4.2958}, {-3.81055, 4.59766, 5.00472}, {-3.92969, -2.12109, 2.47988}, {1.92578, 2.27344, -8.24332}, {3.50195, 2.76563, 2.47988}, {3.64258, 0.0078125, 5.00472}, {5.19141, 4.45117, -0.120119}}; }; class Land_Cargo_Tower_V1_No7_F { table = "Military"; positions[] = {{-2.59766, -3.14063, -0.120119}, {-2.7832, 1.94531, -4.2958}, {-2.83203, 1.58594, -0.120119}, {-3.20508, 4.62891, 5.00472}, {-3.29883, -2.90234, 5.00472}, {-3.87891, -3.11914, 2.47988}, {0.228516, -1.05273, 5.07988}, {1.65234, 2.58594, -8.24332}, {3.40039, 3.05859, 2.47988}, {4.18164, 0.246094, 5.00472}, {4.42578, 3.99805, -0.120119}}; }; class Land_Cargo_Tower_V2_F { table = "Military"; positions[] = {{4.29492, 3.70508, -0.120117}, {-2.5293, -3.10742, 2.47988}, {-2.6543, 2.01172, -4.2958}, {-2.66797, -3.4707, 5.00472}, {-2.67773, 4.97461, 5.00472}, {-3.06836, 1.80273, -0.120117}, {-3.25586, -3.56445, -0.120117}, {0.611328, 0.0214844, 5.07988}, {2.46094, 1.92383, -8.24332}, {2.61328, -0.296875, 2.47988}, {3.07422, 4.14063, 2.47988}, {3.50195, 1.22656, 5.00472}}; }; class Land_Cargo_Tower_V3_F { table = "Radiation"; positions[] = {{-3.85449, 3.51733, -4.29724}, {-2.28467, 1.25879, -4.29724}, {5.05029, 4.31299, -0.121563}, {1.20605, 2.82056, -0.121563}, {-5.15674, 4.76831, -0.121563}, {-1.0542, 1.59009, -0.121563}, {-4.604, -2.90723, -0.121563}, {1.5498, -3.57202, -0.121563}, {1.59814, -0.333496, -0.121563}, {5.2085, -3.40063, -0.121563}, {1.34521, -2.56226, 2.47844}, {5.15039, -0.786133, 2.47844}, {5.11572, 4.19873, 2.47844}, {-0.960938, -5.01929, 2.61447}, {-4.93799, -5.60815, 2.61447}, {-2.89746, -1.44287, 2.47844}, {-1.22119, 5.67114, 2.61447}, {-4.55566, 5.60571, 2.61447}, {-5.05029, 2.85474, 2.47844}, {0.0239258, 1.64746, 2.47844}, {-0.261719, 1.82642, 5.07844}, {0.630859, -1.19922, 5.07844}, {-2.74121, -0.460205, 5.00328}, {-1.95215, -5.38037, 4.90572}, {4.18457, -2.93628, 5.00328}, {4.19873, 4.03027, 5.00328}, {-4.60205, 4.39258, 5.00328}, {2.38525, 0.748535, 5.00328}, {-1.85205, 5.2002, 5.00328}}; }; class Land_MilOffices_V1_F { table = "Military"; positions[] = {{-11.6309, -5.04492, -2.86675}, {-15.1172, 9.07617, -2.86675}, {-15.123, 2.19336, -2.86675}, {-15.5938, -4.07227, -2.86675}, {-3.46484, -3.22266, -2.86675}, {-4.10352, 9.33398, -2.86675}, {-7.09766, -2.95898, -2.86675}, {-8.6582, 9.02344, -2.86675}, {0.794922, -3.08594, -2.86675}, {1.45703, 8.60156, -2.86675}, {13.9258, 0.492188, -2.86675}, {15.3613, 8.10742, -2.86675}, {8.54883, 8.01563, -2.86675}, {8.61133, -4.3125, -2.86675}, {8.68359, -1.73438, -2.86675}}; }; class Land_Radar_F { table = "Military"; positions[] = {{-10.1797, -9.80859, -6.00412}, {-9.61719, 10.4219, -6.00412}, {11.6211, 1.06641, -6.00412}, {2.81445, 12.2578, -7.78305}}; }; /////////////////////////////////////////////////////////////////////////// // Medical /////////////////////////////////////////////////////////////////////////// //"Land_Hospital_main_F", //"Land_Hospital_side1_F", //"Land_Hospital_side2_F", class Land_Medevac_house_V1_F { table = "Medical"; positions[] = {{-1.25, 1.01367, -0.105749}, {1.38281, 2.82227, 0.0302868}}; }; class Land_Medevac_HQ_V1_F { table = "Medical"; positions[] = {{-0.896484, 2.24219, -3.26622}, {-1.45898, -3.75391, -3.26622}, {-1.54297, 1.05469, -0.741375}, {5.17578, 2.66992, -3.26622}, {5.6875, 1.63477, -0.741374}}; }; /////////////////////////////////////////////////////////////////////////// // Garages / Vehicle /////////////////////////////////////////////////////////////////////////// class Land_FuelStation_Build_F { table = "VehicleService"; positions[] = {{-1.02344, -0.509766, -1.33601}, {2.07617, 0.580078, -1.3361}}; }; class Land_i_Garage_V1_F { table = "VehicleService"; positions[] = {{-0.925781, 2.05469, -0.0974805}, {-1.52539, -1.99805, -0.0974805}, {3.80273, -0.939453, -0.0974805}}; }; class Land_i_Garage_V2_F { table = "VehicleService"; positions[] = {{-0.00585938, -1.24609, -0.0974801}, {-2.16016, 1.54492, -0.0974798}, {1.60547, 2.11719, -0.0974803}, {3.2832, -1.51953, -0.0974796}}; }; class Land_CarService_F { table = "VehicleService"; positions[] = {{-0.964844, 1.77148, -1.25606}, {-3.15625, 7.39844, -1.25606}, {-4.54688, 4, -1.25606}, {0.492188, 2.8457, -1.25606}, {3.50781, -0.113281, -1.25606}, {3.74414, 6.12891, -1.25606}}; }; /////////////////////////////////////////////////////////////////////////// // Civillian Lower Class /////////////////////////////////////////////////////////////////////////// // TODO: "Land_u_Addon_02_V1_F", // TODO: "Land_i_Addon_02_V1_F", // TODO: "Land_i_Addon_03mid_V1_F", class Land_Chapel_Small_V1_F { table = "CivillianLowerClass"; positions[] = {{0.482422, 0.65625, -0.867858}, {3.08984, -1.2832, -0.867858}}; }; class Land_Chapel_Small_V2_F { table = "CivillianLowerClass"; positions[] = {{0.556641, -0.966797, -0.867857}, {3.54297, 0.486328, -0.867857}}; }; class Land_Chapel_V1_F { table = "CivillianLowerClass"; positions[] = {{-3.22852, -3.4043, -2.80848}, {-3.65625, 2.8418, -2.80848}, {-6.47266, -2.20703, -2.80848}, {3.98438, 2.72852, -2.80848}, {4.73242, -2.59375, -2.80848}, {9.35938, -0.285156, -2.60848}}; }; class Land_Chapel_V2_F { table = "CivillianLowerClass"; positions[] = {{-2.36523, 2.46289, -2.80848}, {-3.06445, -2, -2.80848}, {-6.61328, -1.54688, -2.80848}, {4.75781, 3.67383, -2.80848}, {4.82813, -2.96484, -2.80848}, {9.03711, 0.316406, -2.60848}}; }; class Land_Church_01_V1_F { table = "CivillianLowerClass"; positions[] = {{-4.36719, -5.81055, -5.46942}, {-4.46875, -2.23633, -5.74363}, {-4.54492, 1.57422, -5.74363}, {-4.8125, 5.58789, -5.49442}, {3.00781, -5.92969, -6.44017}, {4.19141, 5.77148, -6.44865}}; }; class Land_i_Addon_03_V1_F { table = "CivillianLowerClass"; positions[] = {{-2.98828, -0.244141, -0.0501008}, {3.53711, -0.578125, -0.0501013}}; }; class Land_i_Addon_04_V1_F { table = "CivillianLowerClass"; positions[] = {{-1.25, 0.0175781, 0.0796976}}; }; class Land_u_Addon_01_V1_F { table = "CivillianLowerClass"; positions[] = {{1.69727, 3.04102, 0.0627024}, {4.28125, 1.1543, 0.0627022}}; }; class Land_i_Windmill01_F { table = "CivillianLowerClass"; positions[] = {{-0.585938, 0.908203, -3.53162}}; }; class Land_d_Windmill01_F { table = "CivillianLowerClass"; positions[] = {{-0.935547, 0.259766, -2.2985}, {-1.65039, 0.365234, 0.947132}}; }; class Land_Slum_House01_F { table = "CivillianLowerClass"; positions[] = {{0.767578, 0.773438, -1.07847}}; }; class Land_Slum_House02_F { table = "CivillianLowerClass"; positions[] = {{1.13867, 2.50391, -0.798099}, {1.59375, -0.0566406, -0.798099}}; }; class Land_Slum_House03_F { table = "CivillianLowerClass"; positions[] = {{-1.29688, 0.566406, -1.07377}, {2.27148, 1.125, -1.07377}}; }; class Land_cargo_house_slum_F { table = "CivillianLowerClass"; positions[] = {{-3.04688, -0.306641, -0.36025}}; }; class Land_i_Stone_HouseBig_V1_F { table = "CivillianLowerClass"; positions[] = {{-0.777344, 2.19922, 1.21893}, {-1.33789, 0.355469, -1.65434}, {1.58594, -0.576172, 1.21893}, {3.7793, 1.48828, -1.64097}}; }; class Land_i_Stone_HouseBig_V2_F { table = "CivillianLowerClass"; positions[] = {{-0.207031, 2.62305, 1.21893}, {-1.26953, 0.136719, -1.65416}, {2.55078, -0.556641, 1.21893}, {4.26367, 1.48828, -1.63971}}; }; class Land_i_Stone_HouseBig_V3_F { table = "CivillianLowerClass"; positions[] = {{-0.484375, 2.57617, 1.21893}, {-0.759766, 0.404297, -1.65283}, {2.29102, -1.02539, 1.21893}, {4.02734, 1.1543, -1.64032}}; }; class Land_i_Stone_HouseSmall_V1_F { table = "CivillianLowerClass"; positions[] = {{-3.47656, 2.25195, -0.627007}, {-6.96094, 3.02539, -0.619827}, {3.27148, 2.02734, -0.611488}, {6.61914, 2.50977, -0.596566}}; }; class Land_i_Stone_HouseSmall_V2_F { table = "CivillianLowerClass"; positions[] = {{-2.41992, 1.76758, -0.632064}, {-7.00391, 1.83594, -0.633547}, {3.77148, 2.05664, -0.609262}, {7.33008, 2.02539, -0.593399}}; }; class Land_i_Stone_HouseSmall_V3_F { table = "CivillianLowerClass"; positions[] = {{-2.68945, 2.05664, -0.628867}, {-7.74023, 3.45313, -0.615288}, {3.60938, 1.61328, -0.609982}, {6.83984, 3.07227, -0.595582}}; }; class Land_i_Stone_Shed_V1_F { table = "CivillianLowerClass"; positions[] = {{-2.63867, 1.96484, -0.100502}, {1.19141, 2.16992, -0.100502}}; }; class Land_i_Stone_Shed_V2_F { table = "CivillianLowerClass"; positions[] = {{-2.12305, 1.86914, -0.100502}, {1.78125, 1.625, -0.100502}}; }; class Land_i_Stone_Shed_V3_F { table = "CivillianLowerClass"; positions[] = {{-2.3125, 2.05469, -0.100502}, {1.79297, 1.93359, -0.100502}}; }; class Land_u_House_Big_01_V1_F { table = "CivillianLowerClass"; positions[] = {{-1.89648, 6.0332, 0.855065}, {-2.35742, 5.4082, -2.56494}, {-2.89648, -3.33203, 0.855065}, {-3.0957, -0.896484, -2.65494}, {1.25, -1.31445, -2.56494}, {2.0293, -0.521484, 0.855065}, {2.36523, 5.47461, -2.56493}, {2.95117, 5.49609, 0.855065}, {2.99023, -5.02734, 0.855065}, {3.58789, -4.98828, -2.56494}}; }; class Land_u_House_Big_02_V1_F { table = "CivillianLowerClass"; positions[] = {{-2.43164, 2.83008, 0.965823}, {-2.70703, -2.07422, 0.965824}, {-2.88281, 1.88086, -2.54418}, {0.871094, -1.66016, -2.54418}, {2.41602, 3.00977, 0.965824}, {3.66992, -5.79883, -2.10418}, {3.9082, 3.56055, -2.54418}}; }; class Land_u_House_Small_01_V1_F { table = "CivillianLowerClass"; positions[] = {{-1.18359, 3.63281, -0.904629}, {-1.7793, -2.59961, -0.903945}, {3.25195, 3.44531, -0.904572}}; }; class Land_u_House_Small_02_V1_F { table = "CivillianLowerClass"; positions[] = {{-0.916016, -2.17969, -0.71971}, {-1.49609, 0.962891, -0.714579}, {3.83203, 1.15234, -0.713537}, {5.80469, -1.7207, -0.710968}}; }; /////////////////////////////////////////////////////////////////////////// // Civillian Upper Class /////////////////////////////////////////////////////////////////////////// class Land_Church_03 { table = "CivillianUpperClass"; positions[] = {{9.04382, -0.0163574, -12.7185}, {10.5294, -4.87354, -13.7553}, {10.2625, 4.5481, -13.764}, {5.56738, -7.72192, -14.2907}, {-2.07813, -7.89331, -14.3075}, {5.45789, 7.6897, -14.2893}, {-1.93726, 8.02051, -14.3339}, {-8.34717, 4.50342, -14.2983}, {-8.49561, -4.52344, -14.3241}, {6.13843, 1.48804, -13.7677}, {4.88293, -1.43433, -13.8058}, {2.61755, 3.54321, -13.7204}, {1.14941, -1.62842, -13.766}, {-1.03979, -3.5752, -13.7581}, {-2.63367, 1.3291, -13.7561}, {5.46875, -3.42603, -14.3291}, {-0.261963, 1.83228, -14.2909}, {-2.15198, -1.74243, -14.3238}}; }; class Land_Offices_01_V1_F { table = "Military"; positions[] = {{11.9434, -0.838379, -7.06043}, {6.90137, 7.21533, -7.06041}, {-6.80078, 4.84229, -7.06043}, {-15.4966, 4.88477, -7.06043}, {-0.285156, -6.0498, -7.06043}, {-1.20947, -6.67285, -3.16043}, {6.66699, -6.51611, -3.16082}, {6.75928, 3.18506, -3.16097}, {4.04688, -5.85352, 0.739818}, {0.175293, 3.04736, 0.752482}, {7.23291, -0.124512, 0.748944}, {0.0366211, -6.38867, 4.66071}, {10.668, -6.04346, 4.66404}, {10.7764, -1.25635, 4.66407}, {6.71484, 3.23291, 4.66426}, {11.2349, -5.78125, 9.84457}, {-4.19434, -9.03076, 9.84457}, {-15.603, -9.78271, 9.84457}, {-8.56738, -0.461426, 9.84457}, {-14.4678, 6.48828, 9.84457}, {10.5264, 6.01611, 9.84457}}; }; class Land_i_House_Big_01_V1_F { table = "CivillianUpperClass"; positions[] = {{-2.21484, 5.46875, -2.56493}, {-3.24023, -1.5918, -2.65493}, {0.558594, -0.640625, 0.855072}, {1.24023, -1.98828, -2.56493}, {1.66602, -5.2832, 0.855072}, {2.19531, 5.19922, -2.56493}, {2.4375, 5.01172, 0.855076}, {2.87305, -5.01758, -2.56493}}; }; class Land_i_House_Big_01_V2_F { table = "CivillianUpperClass"; positions[] = {{-2.05078, 5.41016, 0.855071}, {-2.11133, 5.51758, -2.56493}, {-3.19531, -1.45117, -2.65493}, {0.328125, 0.283203, -2.56493}, {0.759766, -1.29688, 0.855071}, {1.27539, -5.21484, 0.855071}, {2.25195, -4.56445, -2.56493}, {3.68359, 5.18359, 0.855071}}; }; class Land_i_House_Big_01_V3_F { table = "CivillianUpperClass"; positions[] = {{-2.78125, 5.69336, -2.56493}, {-2.7832, 5.31055, 0.855072}, {-2.78906, 0.654297, 0.855072}, {-3.03906, -1.11133, -2.65493}, {0.675781, -1.29883, -2.56493}, {1.61133, -0.865234, 0.855072}, {2.51758, 5.85938, 0.855072}, {2.65625, -4.94531, -2.56493}, {2.99414, -5.15625, 0.855073}, {3.16211, 5.16406, -2.56493}}; }; class Land_i_House_Big_02_V1_F { table = "CivillianUpperClass"; positions[] = {{-1.69141, -2.51172, 0.784063}, {-2.58789, 3.63672, 0.784063}, {-2.86914, 2.97266, -2.62327}, {1.15234, -1.65625, -2.62327}, {2.55273, 1.625, 0.784063}, {3.08203, 2.11914, -2.62327}, {3.33594, -5.625, -2.28594}}; }; class Land_i_House_Big_02_V2_F { table = "CivillianUpperClass"; positions[] = {{-2.08789, -2.46484, 0.784063}, {-2.54688, 2.53906, -2.62327}, {-3.01758, 3.12109, 0.784063}, {1.11328, -1.46289, -2.62327}, {2.68945, 2.03711, 0.784063}, {3.02734, 2.27344, -2.62327}, {3.26367, -5.55273, -2.28594}}; }; class Land_i_House_Big_02_V3_F { table = "CivillianUpperClass"; positions[] = {{-2.50391, -2.10742, -2.62327}, {-3.00781, 3.68164, 0.784063}, {-3.0957, 2.57227, -2.62327}, {-3.31055, -2.88867, 0.784063}, {1.26953, -1.73438, -2.62327}, {2.40234, 2.26953, -2.62327}, {2.89844, 2.11719, 0.784064}, {3.26758, -5.52734, -2.28594}}; }; class Land_i_House_Small_01_V1_F { table = "CivillianUpperClass"; positions[] = {{-1.2207, 3.05078, -1.0419}, {-2.74414, -0.560547, -1.04199}, {3.06641, -1.90234, -1.0404}, {3.35547, 2.94336, -1.04187}}; }; class Land_i_House_Small_01_V2_F { table = "CivillianUpperClass"; positions[] = {{-2.53711, -1.80664, -1.0418}, {-3.90625, 3.26367, -1.04239}, {3.31836, -1.31641, -1.04058}, {3.38672, 3.78906, -1.04213}}; }; class Land_i_House_Small_01_V3_F { table = "CivillianUpperClass"; positions[] = {{-0.738281, 3.17578, -1.04194}, {-2.46094, -2.16992, -1.04174}, {-2.68359, -1.76563, -1.04187}, {-2.76563, 3.31641, -1.04232}, {3.07422, -1.27539, -1.04059}, {3.08398, 3.04883, -1.0419}, {3.41406, 3.10547, -1.04192}, {3.61719, -0.394531, -1.04086}}; }; class Land_i_House_Small_02_V1_F { table = "CivillianUpperClass"; positions[] = {{-1.08008, -2.11133, -0.709651}, {-1.18945, 0.785156, -0.705689}, {2.64258, -2.09766, -0.704848}, {5.95313, 0.556641, -0.700583}}; }; class Land_i_House_Small_02_V2_F { table = "CivillianUpperClass"; positions[] = {{-1.29688, 1.06641, -0.704727}, {-1.56836, -1.83789, -0.710279}, {2.85352, -1.52148, -0.704572}, {2.88086, 1.76367, -0.702332}, {5.21289, 0.935547, -0.701534}}; }; class Land_i_House_Small_02_V3_F { table = "CivillianUpperClass"; positions[] = {{-1.35352, 0.873047, -0.705387}, {-1.5, -2.00781, -0.710184}, {3.49219, -1.16602, -0.703744}, {5.61328, 1.51367, -0.70101}}; }; class Land_i_House_Small_03_V1_F { table = "CivillianUpperClass"; positions[] = {{-3.89648, -0.134766, -0.371629}, {0.419922, 2.68555, -0.371629}, {3.59961, 2.0918, -0.371629}, {3.70703, -4.19727, -0.371629}}; }; class Land_Panelak2_Grey { table = "CivillianUpperClass"; positions[] = {{-5.34497, -8.02881, 0.482607}, {-5.24878, -6.77539, 0.482548}, {-4.37378, -3.77148, 0.482412}, {-4.20288, -0.0512695, 0.482472}, {-4.36401, 0.97168, 0.482497}, {-1.92017, 2.89551, 0.482442}, {-0.961426, -4.12988, 0.482422}, {1.17896, -7.33691, 0.482666}, {1.1936, -5.24756, 0.482666}, {3.88794, -4.91016, 0.482666}, {2.14575, -7.91602, 0.482666}, {1.87427, 0.00634766, 0.482666}, {4.46924, 1.10156, 0.482666}, {7.22949, 2.78809, 0.482666}, {4.3689, -4.05371, 0.482666}, {5.51831, -0.101074, 0.482666}, {5.3584, -5.05615, 0.482666}, {5.42896, -8.06006, 0.482666}, {-0.0864258, 2.03271, 1.77412}, {-1.14502, -4.13232, 3.16656}, {1.33691, -6.72412, 3.16656}, {1.2832, -5.26611, 3.16656}, {4.16895, -7.75439, 3.16656}, {5.37476, 0.853027, 3.16656}, {5.07324, -6.71875, 3.16656}, {5.03271, -2.77295, 3.16656}, {-4.58008, 1.2583, 3.16656}, {-4.71753, -3.90967, 3.16656}, {-5.42114, -6.375, 3.16656}, {-3.82642, -5.26074, 3.16656}, {-2.10254, -7.75195, 3.16656}, {-1.16602, -6.66357, 3.16656}, {-1.07813, -5.16211, 3.16656}, {-0.00488281, 1.71436, 4.52637}, {0.987305, -3.94775, 5.9086}, {3.33936, -4.2251, 5.9086}, {1.50732, -6.62354, 5.9086}, {1.48218, -5.23242, 5.9086}, {3.42944, -0.133789, 5.9086}, {4.90991, 1.00439, 5.9086}, {4.29492, -3.70996, 5.9086}, {5.36108, 0.00439453, 5.9086}, {5.23193, -4.92725, 5.9086}, {-4.74414, 0.866699, 5.9086}, {-4.77197, -3.91895, 5.9086}, {-5.35425, -6.72852, 5.9086}, {-1.20264, -6.56445, 5.9086}, {-1.18433, -5.26563, 5.9086}, {0.0544434, 1.78613, 7.22737}, {-3.3855, -0.0581055, 8.5378}, {-4.63501, 0.897461, 8.5378}, {-4.3855, -3.8125, 8.5378}, {-5.30029, -6.68457, 8.5378}, {4.79297, 0.911621, 8.5378}, {4.14087, -3.99365, 8.5378}, {5.35889, -6.79932, 8.5378}, {-1.14282, -6.56104, 8.5378}, {-1.13745, -5.09619, 8.5378}}; }; class Land_Panelak3_Grey { table = "CivillianUpperClass"; positions[] = {{-5.41895, -5.3999, 1.845}, {-5.32275, -4.14648, 1.845}, {-4.44775, -1.14258, 1.845}, {-4.27686, 2.57764, 1.845}, {-4.43799, 3.60059, 1.845}, {-1.99414, 5.52441, 1.845}, {-1.0354, -1.50098, 1.845}, {1.10498, -4.70801, 1.84506}, {1.11963, -2.61865, 1.84506}, {3.81396, -2.28125, 1.84506}, {2.07178, -5.28711, 1.84506}, {1.80029, 2.63525, 1.84506}, {4.39526, 3.73047, 1.84506}, {7.15552, 5.41699, 1.84506}, {4.29492, -1.4248, 1.84506}, {5.44434, 2.52783, 1.84506}, {5.28442, -2.42725, 1.84506}, {5.35498, -5.43115, 1.84506}, {-0.1604, 4.66162, 3.13651}, {-1.21899, -1.50342, 4.52896}, {1.26294, -4.09521, 4.52896}, {1.20923, -2.63721, 4.52896}, {4.09497, -5.12549, 4.52896}, {5.30078, 3.48193, 4.52896}, {4.99927, -4.08984, 4.52896}, {4.95874, -0.144043, 4.52896}, {-4.65405, 3.88721, 4.52896}, {-4.7915, -1.28076, 4.52896}, {-5.49512, -3.74609, 4.52896}, {-3.90039, -2.63184, 4.52896}, {-2.17651, -5.12305, 4.52896}, {-1.23999, -4.03467, 4.52896}, {-1.1521, -2.5332, 4.52896}, {-0.0788574, 4.34326, 5.88876}, {0.91333, -1.31885, 7.271}, {3.26538, -1.59619, 7.271}, {1.43335, -3.99463, 7.271}, {1.4082, -2.60352, 7.271}, {3.35547, 2.49512, 7.271}, {4.83594, 3.6333, 7.271}, {4.22095, -1.08105, 7.271}, {5.28711, 2.6333, 7.271}, {5.15796, -2.29834, 7.271}, {-4.81812, 3.49561, 7.271}, {-4.84595, -1.29004, 7.271}, {-5.42822, -4.09961, 7.271}, {-1.27661, -3.93555, 7.271}, {-1.2583, -2.63672, 7.271}, {-0.0195313, 4.41504, 8.58976}, {-3.45947, 2.5708, 9.9002}, {-4.70898, 3.52637, 9.9002}, {-4.45947, -1.18359, 9.9002}, {-5.37427, -4.05566, 9.9002}, {4.71899, 3.54053, 9.9002}, {4.06689, -1.36475, 9.9002}, {5.28491, -4.17041, 9.9002}, {-1.2168, -3.93213, 9.9002}, {-1.21143, -2.46729, 9.9002}, {-5.3186, -3.01367, 12.649}, {-4.63037, -0.866211, 12.649}, {-4.41699, 3.6626, 12.649}, {-2.88184, -0.826172, 12.649}, {-0.140625, 4.16602, 11.2066}, {-0.891357, -1.38232, 12.649}, {1.2478, -2.7583, 12.649}, {1.30737, -4.26807, 12.649}, {4.03784, -5.02393, 12.649}, {3.29272, 2.35303, 12.649}, {4.81665, 3.45703, 12.649}, {4.5061, -0.96582, 12.649}, {5.0271, -4.38721, 12.649}, {-1.3877, -4.09668, 12.649}, {-1.32935, -2.85889, 12.649}, {3.93164, 0.486816, 15.4978}, {7.03369, 4.98682, 15.4978}, {-5.17261, 3.6001, 15.4978}, {-5.63892, -3.3042, 15.4978}, {2.79419, -3.45654, 15.4978}}; }; class Land_Panelak3 { table = "CivillianUpperClass"; positions[] = {{-5.41919, -5.39941, 1.845}, {-5.323, -4.146, 1.845}, {-4.448, -1.14209, 1.845}, {-4.2771, 2.57813, 1.845}, {-4.43823, 3.60107, 1.845}, {-1.99438, 5.5249, 1.845}, {-1.03564, -1.50049, 1.845}, {1.10474, -4.70752, 1.84506}, {1.11938, -2.61816, 1.84506}, {3.81372, -2.28076, 1.84506}, {2.07153, -5.28662, 1.84506}, {1.80005, 2.63574, 1.84506}, {4.39502, 3.73096, 1.84506}, {7.15527, 5.41748, 1.84506}, {4.29468, -1.42432, 1.84506}, {5.44409, 2.52832, 1.84506}, {5.28418, -2.42676, 1.84506}, {5.35474, -5.43066, 1.84506}, {-0.160645, 4.66211, 3.13651}, {-1.21924, -1.50293, 4.52896}, {1.2627, -4.09473, 4.52896}, {1.20898, -2.63672, 4.52896}, {4.09473, -5.125, 4.52896}, {5.30054, 3.48242, 4.52896}, {4.99902, -4.08936, 4.52896}, {4.9585, -0.143555, 4.52896}, {-4.6543, 3.8877, 4.52896}, {-4.79175, -1.28027, 4.52896}, {-5.49536, -3.74561, 4.52896}, {-3.90063, -2.63135, 4.52896}, {-2.17676, -5.12256, 4.52896}, {-1.24023, -4.03418, 4.52896}, {-1.15234, -2.53271, 4.52896}, {-0.0791016, 4.34375, 5.88876}, {0.913086, -1.31836, 7.271}, {3.26514, -1.5957, 7.271}, {1.43311, -3.99414, 7.271}, {1.40796, -2.60303, 7.271}, {3.35522, 2.49561, 7.271}, {4.83569, 3.63379, 7.271}, {4.2207, -1.08057, 7.271}, {5.28687, 2.63379, 7.271}, {5.15771, -2.29785, 7.271}, {-4.81836, 3.49609, 7.271}, {-4.84619, -1.28955, 7.271}, {-5.42847, -4.09912, 7.271}, {-1.27686, -3.93506, 7.271}, {-1.25854, -2.63623, 7.271}, {-0.0197754, 4.41553, 8.58976}, {-3.45972, 2.57129, 9.9002}, {-4.70923, 3.52686, 9.9002}, {-4.45972, -1.18311, 9.9002}, {-5.37451, -4.05518, 9.9002}, {4.71875, 3.54102, 9.9002}, {4.06665, -1.36426, 9.9002}, {5.28467, -4.16992, 9.9002}, {-1.21704, -3.93164, 9.9002}, {-1.21167, -2.4668, 9.9002}, {-5.31885, -3.01318, 12.649}, {-4.63062, -0.865723, 12.649}, {-4.41724, 3.66309, 12.649}, {-2.88208, -0.825684, 12.649}, {-0.140869, 4.1665, 11.2066}, {-0.891602, -1.38184, 12.649}, {1.24756, -2.75781, 12.649}, {1.30713, -4.26758, 12.649}, {4.0376, -5.02344, 12.649}, {3.29248, 2.35352, 12.649}, {4.81641, 3.45752, 12.649}, {4.50586, -0.965332, 12.649}, {5.02686, -4.38672, 12.649}, {-1.38794, -4.09619, 12.649}, {-1.32959, -2.8584, 12.649}, {3.9314, 0.487305, 15.4978}, {7.03345, 4.9873, 15.4978}, {-5.17285, 3.60059, 15.4978}, {-5.63916, -3.30371, 15.4978}, {2.79395, -3.45605, 15.4978}}; }; class Land_House_C_10_EP1 { table = "CivillianUpperClass"; positions[] = {{-4.07178, -5.50635, 2.47052}, {1.51636, -6.99951, 2.47052}, {-3.36694, 7.37939, 2.47052}, {4.00879, 3.26514, 2.47052}, {1.04956, 7.73584, 5.22619}, {2.84155, 5.5293, 2.47052}, {-0.308594, 9.06934, 1.13488}, {3.24365, 8.75293, -0.0913401}, {1.3252, 7.47119, -0.869967}, {4.38403, 0.870117, -0.87022}, {3.47192, -9.06152, -0.870255}, {0.736572, -1.71338, -0.870794}, {-1.58398, -2.95117, -0.0234938}, {0.256836, -5.22607, -0.870883}, {-4.93213, -1.48584, -0.552486}, {-3.75, 4.17822, 0.0649014}, {-1.61743, 8.60352, -0.869646}, {-2.20361, 1.26807, -0.87044}, {-2.98364, 0.835938, -4.18448}, {-1.36963, 9.22852, -4.1166}, {0.259521, 9.27832, -3.7956}, {-1.78979, 9.29639, -3.43683}, {0.6521, 9.32861, -3.1145}, {0.9375, 4.90527, -3.23977}, {2.41919, 8.28955, -4.16604}, {-0.0422363, -1.1582, -4.18734}, {-0.0961914, -6.19922, -4.19232}, {1.40479, -6.73877, -4.18752}}; }; class Land_House_C_10_dam_EP1 { table = "CivillianUpperClass"; positions[] = {{-4.07178, -5.50635, 4.4381}, {1.51636, -6.99951, 4.4381}, {-3.36694, 7.37939, 4.4381}, {4.00879, 3.26514, 4.4381}, {1.04956, 7.73584, 7.19376}, {2.84155, 5.5293, 4.4381}, {-0.308594, 9.06934, 3.10246}, {3.24365, 8.75293, 1.87624}, {1.3252, 7.47119, 1.09761}, {4.38403, 0.870117, 1.09735}, {3.47192, -9.06152, 1.09732}, {0.736572, -1.71338, 1.09678}, {-1.58398, -2.95117, 1.94408}, {0.256836, -5.22607, 1.09669}, {-4.93213, -1.48584, 1.41509}, {-3.75, 4.17822, 2.03248}, {-1.61743, 8.60352, 1.09793}, {-2.20361, 1.26807, 1.09713}, {-2.98364, 0.835938, -2.2169}, {-1.36963, 9.22852, -2.14903}, {0.259521, 9.27832, -1.82802}, {-1.78979, 9.29639, -1.46925}, {0.6521, 9.32861, -1.14692}, {0.9375, 4.90527, -1.27219}, {2.41919, 8.28955, -2.19846}, {-0.0422363, -1.1582, -2.21977}, {-0.0961914, -6.19922, -2.22474}, {1.40479, -6.73877, -2.21994}}; }; class Land_Garaz_s_tankem { table = "Military"; positions[] = {{-6.75684, -1.44336, -2.59567}, {-2.55835, -4.68359, -2.59567}, {2.60181, -4.77734, -2.59567}, {6.38037, -1.33301, -2.59567}, {7.39697, 4.61572, 3.46826}, {-7.71899, 4.69629, 3.46826}, {-6.43701, -0.065918, 3.46826}, {0.323242, 0.414551, 3.46826}, {0.169922, 4.95264, 3.46826}, {7.32983, 0.465332, 3.46826}}; }; /////////////////////////////////////////////////////////////////////////// // Shops /////////////////////////////////////////////////////////////////////////// class Land_i_Shop_01_V1_F { table = "Shop"; positions[] = {{-0.863281, 6.10938, -2.76158}, {-1.2168, 0.232422, -2.76158}, {-1.2832, -0.884766, 1.10984}, {-2.28516, 6.1875, 1.10975}}; }; class Land_i_Shop_01_V2_F { table = "Shop"; positions[] = {{-1.17969, 5.32813, -2.76158}, {-18.127, 16.7285, -2.74088}, {-2.39258, 5.51563, 1.10978}, {-2.53906, 0.253906, -2.76158}, {-2.70703, -1.4707, 1.10992}, {-24.2051, 3.65039, 1.25308}, {1.15625, 1.20313, 1.10906}}; }; class Land_i_Shop_01_V3_F { table = "Shop"; positions[] = {{-1.5918, 5.35156, -2.76158}, {-2.39258, -0.544922, -2.76158}, {-2.73242, -1.03906, 1.10991}, {-2.98242, 5.80664, 1.10999}, {1.66016, 1.70508, 1.10901}}; }; class Land_i_Shop_02_V1_F { table = "Shop"; positions[] = {{-0.824219, 1.10742, -2.67036}, {-4.04883, -3.18555, 1.2386}, {-4.43359, -1.98242, -2.69136}, {0.78125, -2.35547, -2.66928}, {2.27734, 1.0957, 1.2386}}; }; class Land_i_Shop_02_V2_F { table = "Shop"; positions[] = {{-0.171875, -1.43359, -2.66855}, {-2.57422, -4.19336, 1.23859}, {-4.51758, 2.74023, -2.66855}, {1.61523, 0.28125, 1.23859}}; }; class Land_i_Shop_02_V3_F { table = "Shop"; positions[] = {{-1.01953, 0.71875, -2.66924}, {-2.86719, -3.83594, 1.23859}, {-4.25195, 3.58789, -2.66855}, {1.56641, 0.509766, 1.23859}}; }; class Land_u_Shop_01_V1_F { table = "Shop"; positions[] = {{-1.14258, 1.23438, -2.88084}, {-2.32422, 3.14648, 0.9905}, {-3.31836, 5.81836, 0.990853}, {0.808594, -0.544922, 0.990474}, {2.58789, 5.81641, -2.88084}}; }; class Land_u_Shop_02_V1_F { table = "Shop"; positions[] = {{-3.46484, -1.625, 1.23859}, {-3.9082, 3.0957, -2.66855}, {0.751953, -3.26563, -2.66855}, {1.71484, 0.486328, 1.23859}}; }; class Land_Kiosk_blueking_F { table = "Shop"; positions[] = {{-1.62109, 0.341797, -1.76588}, {1.36328, -0.908203, -1.76588}}; }; class Land_Kiosk_gyros_F { table = "Shop"; positions[] = {{-1.20898, -1.07813, -1.97606}, {1.26758, -0.128906, -1.97606}}; }; class Land_Kiosk_redburger_F { table = "Shop"; positions[] = {{-1.07617, -0.335938, -2.87051}, {1.42188, -0.373047, -2.87051}}; }; /////////////////////////////////////////////////////////////////////////// // Industrial /////////////////////////////////////////////////////////////////////////// class Land_Hangar_2 { table = "Industrial"; positions[] = {{-13.2468, 10.3247, -2.56462}, {-13.4949, -8.43701, -2.56462}, {-2.78198, -8.31201, -2.56462}, {2.66211, -8.34717, -2.56462}, {13.5496, -8.75342, -2.56462}, {13.6201, 10.4448, -2.56462}, {4.41382, 9.98682, -2.56462}, {-3.80713, 8.96094, -2.56462}, {8.98486, -0.339355, -2.56462}, {-8.06396, 1.7666, -2.56462}, {1.90723, -0.224121, -2.56462}}; }; class Land_Unfinished_Building_01_F { table = "Industrial"; positions[] = {{-0.158203, 3.50391, 1.19791}, {-2.34375, 4.20898, -2.29709}, {-2.51563, 0.337891, 1.19791}, {-3.25391, 0.0351563, -2.29709}, {2.45508, -0.144531, -2.29709}, {3.10742, -2.34766, 1.19791}}; }; class Land_Unfinished_Building_02_F { table = "Industrial"; positions[] = {{-0.890625, -3.35742, 0.976167}, {-2.31055, -1.57227, -2.48553}, {-6.36523, 2.20898, 0.976168}, {-6.58398, 3.67383, -2.50139}, {3.58008, 3.13281, -2.49362}, {4.33594, 3.00391, 0.976168}}; }; class Land_WIP_F { table = "Factories"; positions[] = {{-10.0645, -4.58398, 8.3499}, {-12.5254, 10.1191, 8.348}, {-13.3496, 9.04883, 12.3173}, {-14.3477, -2.64844, 0.392311}, {-15.1621, 9.90039, 0.407514}, {-15.9004, -9.26367, 12.3304}, {-16.0352, -2.52734, 4.32572}, {-16.0996, 4.24023, 0.444829}, {-16.4004, 8.88672, 4.32572}, {-16.7813, -8.80078, 0.347982}, {-17.0195, -8.72852, 4.32572}, {-3.60156, -14.6484, 4.32041}, {-4.18359, -1.03516, 0.386505}, {-6.93359, -0.988281, 12.1457}, {-7.66016, 9.24414, 0.417827}, {-7.77344, -10.4785, 0.359629}, {-8.33008, -14.7305, 12.3244}, {-8.73242, 9.51953, 4.32572}, {-8.88867, -13.3887, 0.355543}, {11.9922, -7.99219, 12.2546}, {12.9023, 9.91797, 0.448912}, {18.0801, -9.25781, 4.32428}, {19.5586, -7.8457, 8.33803}, {2.11719, 9.48438, 0.337147}, {20.6309, -9.31445, 0.329187}, {22.334, -2.5332, 4.32572}, {24.0859, -0.179688, 8.29181}, {3.30859, 6.66602, 8.36808}, {3.99219, -8.87891, 8.34295}, {4.74414, -8.89063, 4.32432}, {6.0332, -8.34961, 0.384681}, {7.08984, 10.4727, 4.32572}, {8.53906, 8.4082, 0.415831}, {9.10742, -1.40625, 0.431863}, {9.64844, 6.28906, 12.3112}}; }; class Land_A_BuildingWIP { table = "Factories"; positions[] = {{-3.93164, 15.0801, -6.51976}, {-10.0093, 9.56934, -6.47901}, {3.03857, 11.2241, -6.45739}, {12.2271, -4.1377, -6.51794}, {11.4546, 5.40967, -6.46377}, {10.6128, 0.248535, -6.49699}, {-13.7876, 2.2583, -5.80086}, {-15.9854, -5.42578, -6.50804}, {-15.9233, -6.7373, -6.50705}, {-15.8071, -8.2041, -6.50576}, {-15.7285, -10.1216, -6.50436}, {-10.2979, -8.19922, -6.46596}, {-9.9707, -9.96826, -6.48124}, {-7.22363, -6.01318, -6.57646}, {-1.66943, -6.23828, -5.66722}, {14.7339, -2.15234, -6.53027}, {6.84961, 11.6948, -6.41719}, {10.6255, -9.47363, -6.52058}, {20.0894, 1.47949, -6.53309}, {21.4551, 1.23633, -4.52755}, {20.98, -4.43848, -2.53424}, {14.8252, -13.0952, -2.53867}, {3.479, -10.0933, -2.53571}, {-5.13672, -5.47412, -2.53334}, {-12.4629, -9.39844, -2.53608}, {-24.2549, -10.062, -2.53316}, {-20.1006, -0.150391, -2.53316}, {-24.6235, 1.99023, -2.53316}, {-19.5815, 12.02, -2.53316}, {-18.7915, 0.449219, -2.53316}, {-14.0981, 12.373, -2.53316}, {-7.14844, 11.9404, -2.53316}, {-0.333008, 7.43652, -2.53316}, {8.21729, 7.76611, -2.53316}, {15.2412, 1.62598, -2.53316}, {20.5586, 1.66211, -0.517589}, {14.3018, -1.08838, 1.34033}, {-8.63525, 6.13281, 1.50492}, {-7.27441, 12.1563, 1.50696}, {-23.791, 12.0063, 1.48213}, {-23.4575, -0.490234, 1.48263}, {-11.0298, -3.31738, 1.49101}, {-3.17871, -9.61475, 1.48088}, {-15.3721, -12.2505, 1.47935}, {-20.4634, -17.0288, 5.49639}, {-14.2993, -13.2695, 5.46549}, {-24.2935, -9.30225, 5.47506}, {-24.2422, 11.8618, 5.47167}, {-7.85693, -2.83203, 5.35427}, {-12.1812, 5.08887, 5.34299}, {8.47852, -7.39844, 5.34018}, {-19.7598, 8.74805, -6.42275}, {-20.0366, 2.22412, -6.43951}, {-24.2061, 6.31592, -6.4322}, {-24.7261, 0.10791, -6.41637}, {-24.6733, -5.86182, -6.47929}, {-20.2036, -5.77832, -6.51456}, {-19.8809, -12.7344, -6.51998}, {-14.7598, -15.8853, -6.51639}, {-8.47314, -11.7754, -2.53744}}; }; class Land_A_BuildingWIP_EP1 { table = "Factories"; positions[] = {{2.66748, 10.3086, -6.45583}, {-15.9595, -5.96045, -6.5081}, {-15.856, -10.4375, -6.50514}, {-15.6089, -8.77148, -6.50516}, {-15.9175, -7.21094, -6.50723}, {-10.2651, -10.4175, -6.48127}, {-10.377, -8.80273, -6.46725}, {-15.3276, 4.71143, -6.45995}, {-13.7856, 1.31885, -5.73168}, {4.05518, -4.43604, -5.43197}, {11.7197, 0.893555, -5.79356}, {8.34814, 9.53906, -6.39426}, {14.3208, 8.75635, -6.45705}, {14.1313, -9.05762, -6.5296}, {-7.60889, -9.78711, -6.47753}, {-3.57813, -6.73682, -5.69619}, {15.437, -1.2666, -6.53127}, {19.7798, 1.00049, -6.53348}, {20.4551, 1.09619, -4.52718}, {21.3047, -5.08887, -2.53435}, {12.7671, -8.3999, -2.5345}, {4.88965, -10.0591, -1.5156}, {-2.28223, -6.6543, -1.7032}, {-12.3208, -9.91748, -2.53625}, {-14.2573, -10.2988, -2.53642}, {-24.2754, -10.5435, -2.53326}, {-20.4746, -7.0127, -1.47717}, {-24.4297, -2.62744, -1.74799}, {-19.9395, 5.20654, -2.53326}, {-24.1421, 11.2378, -2.53326}, {-14.6567, 11.1084, -2.53326}, {-18.8027, -0.664551, -2.53326}, {-7.28906, 11.1636, -2.53326}, {-0.658691, 6.82324, -2.53326}, {9.97949, 7.72461, -1.85302}, {-8.56592, -13.1392, -2.53794}, {14.9243, -13.6875, -2.53905}, {-15.418, -16.2222, -6.51544}, {-20.6978, -16.9492, -2.53297}, {-18.1021, 11.1841, -6.43594}, {-24.7134, 11.5732, -6.48057}, {-20.5039, 7.55859, -5.74924}, {-22.8154, 2.49268, -5.43436}, {-24.9414, -0.304688, -6.41227}, {-24.6328, -6.56934, -6.4804}, {-14.3086, -12.3784, -6.49895}, {-17.2061, -0.0249023, -6.47327}, {-3.80957, 9.08301, -6.51507}, {-10.7632, 14.4863, -6.47317}, {-24.0723, 11.2017, 5.46605}, {-24.2925, -10.3188, 5.47458}, {-11.3809, 4.40674, 6.38768}, {-8.81787, -2.63867, 6.38975}, {8.4126, -7.94434, 5.33892}, {-14.7339, -11.4819, 5.4655}, {-14.3447, -14.0986, 5.46539}, {-20.6812, -18.0679, 5.48813}, {17.2148, -1.44434, 1.44657}, {14.9478, -3.16895, 2.4332}, {7.26025, 9.08301, 1.46255}, {4.29102, -1.08789, 2.08437}, {5.29834, -2.21191, 2.05778}, {-6.39063, 10.8262, 2.50573}, {-7.79346, 4.10449, 2.51196}, {-9.77734, -3.48047, 2.15998}, {-2.1958, -5.7373, 2.04236}, {-24.7144, 11.3218, 1.48047}, {-24.2061, -2.67773, 2.1629}, {-17.7441, -13.3882, 1.47924}, {-9.8623, -10.2397, 1.48112}}; }; class Land_dp_smallTank_F { table = "Industrial"; positions[] = {{-0.0898438, -1.58203, 5.32797}}; }; class Land_Ind_Garage01 { table = "Industrial"; positions[] = {{2.94629, 2.5166, -1.13767}, {1.33398, 3.63428, -1.16954}, {-1.22998, 3.35547, -1.22468}, {-1.25977, -2.23877, -1.2365}, {1.36133, 3.59033, 0.0089097}}; }; class Land_Ind_Garage01_EP1 { table = "Industrial"; positions[] = {{3.14502, 3.01172, -1.36441}, {1.53271, 4.12939, -1.39628}, {-1.03125, 3.85059, -1.45142}, {-1.06104, -1.74365, -1.46324}, {1.56006, 4.08545, -0.217831}}; }; class Land_dp_bigTank_F { table = "Industrial"; positions[] = {{-1.54102, -1.93359, 3.59794}, {-5.79883, -0.496094, 3.59794}, {5.9707, -1.84375, 3.59794}}; }; class Land_u_Shed_Ind_F { table = "Industrial"; positions[] = {{-2.41211, 4.91602, -1.40862}, {-6.54688, -0.166016, -1.40862}, {10.6914, 2.14648, -1.40862}}; }; class Land_Metal_Shed_F { table = "Industrial"; positions[] = {{-3.34375, -1.80273, -1.343}, {3.52539, -2.15625, -1.343}}; }; class Land_i_Shed_Ind_F { table = "Industrial"; positions[] = {{-2.66797, -0.576172, -1.40977}, {-2.85547, 6.49023, -1.40977}, {-5.78906, 0.158203, -1.40977}, {14.1348, 6.31445, -1.40977}, {5.70508, 0.423828, -1.40977}, {6.49609, 6.5625, -1.40977}}; }; class Land_Research_house_V1_F { table = "Industrial"; positions[] = {{-1.28516, 2.89258, 0.0302877}, {1.12305, 2.04492, -0.0384929}}; }; class Land_Research_HQ_F { table = "Industrial"; positions[] = {{-1.03125, 2.60547, -3.26622}, {-2.25195, -2.75586, -0.741376}, {-2.28711, -3.94141, -3.26622}, {4.69336, 4.01172, -3.26622}, {6.06445, 3.50391, -0.741376}}; }; /////////////////////////////////////////////////////////////////////////// // Factories /////////////////////////////////////////////////////////////////////////// class Land_Factory_Main_F { table = "Factories"; positions[] = {{-8.51953,13.5698,-6.45422}, {-8.75,10.9609,-6.41479}}; }; class Land_dp_smallFactory_F { table = "Factories"; positions[] = {{-1.97266, 3.14844, 2.62608}, {-6.49609, -4.92773, 2.82442}, {5.32422, -3.69531, 2.95848}, {9.49805, -4.71094, 1.21193}, {9.95898, 1.41211, 1.21193}}; }; class Land_dp_mainFactory_F { table = "Factories"; positions[] = {{-12.8477, -4.8457, -4.45162}, {-15.4961, 6.70703, -4.45162}, {-6.36133, -2.13477, 1.18268}, {-6.91211, -15.3555, 1.18268}, {0.736328, 8.16406, 1.18268}, {1.25391, -10.5801, 1.18268}, {12.8926, 7.0332, -5.51301}, {13.0332, -3.95117, -4.22302}, {13.1719, 4.60742, -4.22302}, {13.2676, 0.710938, -4.22302}, {14.793, -16.8613, -4.08302}, {18.1406, -9.24023, -4.08302}, {19.0566, 5.17969, -7.61482}, {19.0996, -5.68555, -5.51301}, {19.3535, 2.14844, -5.51301}, {3.43555, -2.94141, 1.18268}, {8.82617, -7.33008, -0.280016}, {8.92773, -13.9453, -0.280016}, {9.13281, 8.58203, -0.280016}}; }; /////////////////////////////////////////////////////////////////////////// // Ghost Hotel /////////////////////////////////////////////////////////////////////////// class Land_GH_Gazebo_F { table = "Radiation"; positions[] = {{-5.93945, 2.15894, -1.77238},{-5.90332, -0.724121, -1.77238},{5.104, 2.22534, -1.77238},{5.26807, -0.790771, -1.77238}}; }; class Land_GH_House_1_F { table = "Radiation"; positions[] = {{-3.49902, -6.07056, 1.39883},{-3.23633, 0.0153809, 1.39883},{3.36963, 0.337891, 1.39883},{3.39404, -5.21753, 1.39883},{-3.65332, -3.97876, -2.10117},{-3.35889, 0.632324, -2.10117},{3.23438, -5.31934, -2.10117}}; }; class Land_GH_House_2_F { table = "Radiation"; positions[] = {{3.26563, -5.11426, -0.336174},{-3.23242, -5.51929, -0.336174},{-3.59033, 0.983643, -0.336174},{3.69287, 0.738281, -0.336174}}; }; class Land_GH_House_ruins_F { table = "Radiation"; positions[] = {{3.16553, -1.15942, 5.97215},{-3.26416, -0.868408, 5.97215}}; }; class Land_GH_MainBuilding_entry_F { table = "Radiation"; positions[] = {{-3.65039, -17.2097, -0.152101},{-0.499023, -14.7449, -0.152101},{4.09717, -17.7261, -0.152101}}; }; class Land_GH_MainBuilding_left_F { table = "Radiation"; positions[] = {{-6.44043, 2.63159, -1.05388},{-6.40381, -2.12085, -1.05388},{6.74365, -5.78149, -1.05388},{-0.207031, -7.60864, -1.05388},{2.12793, -10.2429, -1.05388},{5.5249, -15.4812, -1.05388},{-0.98291, -18.1379, -1.05387},{-2.06543, 5.00342, -1.05388},{4.94092, 11.8662, -1.05389},{-1.63135, -1.71094, -1.05388},{9.74365, 1.61304, -1.05389},{4.88525, 6.50024, -1.05389},{14.9434, 3.5686, -1.05389},{13.2563, 8.73413, -1.0539},{17.2432, -4.43799, 3.39144},{13.584, 4.49951, 3.39144},{15.5112, -1.00366, 3.39144},{9.44727, 2.41968, 3.39144},{2.64893, 5.43433, 3.39144},{-0.672363, -6.15454, 3.39144},{1.25537, 0.418213, 3.39144},{-5.28076, -6.47534, 3.39144},{-6.63867, -1.47412, 3.39144},{-7.39063, 4.22949, 3.39144}}; }; class Land_GH_MainBuilding_middle_F { table = "Radiation"; positions[] = {{-0.408203, 2.26978, 0.538373},{-12.1367, 1.58447, 0.538378},{-2.14014, -7.85303, 1.25473},{-14.9414, -4.22363, 0.538417},{-16.2109, -8.05908, 0.538444},{-4.00293, -17.3718, 0.538503},{11.3765, -5.7373, 0.538428},{15.5952, -9.00879, 0.53845},{14.1016, -3.40771, 0.538412},{0.957031, 11.2915, 2.76766},{9.70215, 6.27051, 4.98464},{13.7354, -1.34595, 4.98465},{2.89844, -14.8083, 4.98466},{-9.37158, -11.5811, 4.98465},{-14.1709, 1.90674, 4.98465},{-10.71, 6.09961, 4.98464}}; }; class Land_GH_MainBuilding_right_F { table = "Radiation"; positions[] = {{11.9268, -18.7073, 3.82813},{2.43213, -14.093, 3.81848},{6.94629, 2.26904, -1.05388},{7.02637, -1.66724, -1.05387},{-1.81201, -9.91284, -1.05388},{-0.240723, -7.5647, -1.05388},{-5.69873, -6.15967, -1.05388},{3.89648, -11.2732, -1.05387},{1.15527, 3.63159, -1.05388},{2.70215, 9.94263, -1.05389},{-10.3442, 0.716309, -1.05389},{-4.8833, 5.8147, -1.05389},{-7.16406, 1.28369, -1.05389},{-14.3013, 3.41919, -1.05389},{-12.9961, 8.2854, -1.0539},{-11.1431, 13.0371, -1.0539},{-15.7705, -0.219971, -1.05389},{-16.3779, -4.63135, 3.39144},{-14.043, 3.26343, 3.39144},{-6.1499, 6.17603, 3.39144},{-7.31689, 1.0271, 3.39144},{-0.897461, -4.72583, 3.39144},{-1.25635, 1.18457, 3.39144},{1.7832, -4.39404, 3.39144},{7.21973, 3.79077, 3.39144},{5.69287, -1.56128, 3.39144},{5.80078, -6.55884, 3.39144}}; }; class land_1 { table = "Industrial"; positions[] = {{14.0977, 9.27832, -5.30631},{-6.3584, 8.4375, -5.30632},{-14.2788, 8.0957, -5.30632}}; }; class land_2 { table = "Industrial"; positions[] = {{-8.04541, 6.65527, 4.21223},{-10.0181, -6.0498, 4.38565},{-2.16016, -6.75195, 3.90532},{11.9395, -2.30762, 4.40326}}; }; class Land_A_Crane_02a { table = "Industrial"; positions[] = {{3.62939, -0.0185547, 1.38779},{-0.175293, 1.78906, 3.10723},{-2.67627, -0.696289, 3.10723}}; }; class Land_A_Crane_02b { table = "Industrial"; positions[] = {{-8.95557, 1.5498, -7.84474},{-8.51416, -1.5332, -7.84474},{-7.96924, -0.438477, -4.98164}}; }; class Land_A_CraneCon { table = "Industrial"; positions[] = {{-9.64795, 1.52246, 5.78629},{-7.19531, -0.521484, 5.78629},{-9.91992, -1.56641, 5.78629}}; }; class Land_A_Office01 { table = "Shop"; positions[] = {{-15.188, 1.48926, -4.528},{-7.47803, 5.30859, -4.528},{4.396, 0.104492, -4.528},{-0.0356445, 6.66504, -4.528},{1.77539, 3.48145, -4.528},{14.061, -3.15625, -4.528},{0.368164, 6.94727, -2.028},{2.23096, 3.60547, -2.028},{7.13672, -3.03906, -2.028},{9.97021, -1.15332, -2.028},{15.1084, 3.43457, -2.028},{12.9458, 6.34961, -2.028},{-2.69482, 3.47754, 0.472004},{-11.3599, 2.30469, 0.472008},{13.3257, -1.92188, 0.472},{9.39404, 5.50488, 0.472},{4.56396, -3.01855, 6.2049},{-2.58252, -0.799805, 6.20491},{0.802734, 2.69922, 6.20491}}; }; class Land_A_GeneralStore_01a { table = "Shop"; positions[] = {{14.0612, -4.59131, -1.20257}, {14.1102, 0.121094, -1.20257}, {10.0297, -1.09131, -1.20257}, {14.6475, -2.27002, -0.755447}, {8.18188, -1.45117, -1.12948}, {6.3822, -3.16895, -0.379449}, {4.06604, -3.12305, -1.13509}, {4.70654, -5.06006, -0.736456}, {0.680542, -5.07813, -1.11876}, {-4.08984, -1.35596, -1.1212}, {-5.7074, -1.36719, -0.343591}, {-7.43054, -1.77393, -1.20257}, {-0.143066, -1.35938, -0.356713}, {1.97888, -1.38086, -0.742445}, {3.64868, -1.34033, -0.353237}, {-0.431519, -3.1875, -0.751089}, {-1.62048, -5.04932, -1.10177}, {7.75635, -0.208984, -1.20257}, {1.07886, -0.323242, -1.20257}, {-7.66748, -0.0317383, -1.20257}, {-0.220215, 0.996094, -0.654932}, {1.76233, 0.999512, -0.630699}, {3.70789, 1.01416, -0.644403}, {5.72876, 1.021, -0.624902}, {7.77393, 0.972168, -0.642438}, {-0.134521, 3.70459, -0.306029}, {-0.545776, 6.33252, -1.03212}, {1.88062, 6.44971, 0.0318856}, {2.65967, 3.70361, -0.691638}, {4.18542, 3.69971, -1.01851}, {4.70972, 6.33984, -0.696584}, {7.36377, 6.40771, 0.0330362}, {7.54236, 6.72803, -1.04015}, {3.92834, 6.67188, -0.303448}, {2.92676, 6.24902, -1.04417}, {-0.527344, 6.63037, 0.0441117}, {5.20728, 3.43115, 0.0192261}, {1.50439, 3.3999, -0.308934}, {-0.138306, 3.40869, -0.671616}, {-4.5686, 4.37695, -0.197094}, {-3.53271, 6.65918, -0.232339}, {-7.91125, 8.4585, -1.20257}, {13.7649, 8.32227, -1.20257}, {11.897, 6.65869, -1.04665}, {11.8844, 3.27539, -1.02069}, {11.8527, 4.88721, 0.055512}, {12.21, 4.02637, -0.304598}, {12.2333, 5.63672, 0.0506568}, {12.2213, 7.01025, -0.679298}}; }; class Land_GeneralStore_01a_PMC { table = "Shop"; positions[] = {{14.0612, -4.59131, -1.20257}, {14.1102, 0.121094, -1.20257}, {10.0297, -1.09131, -1.20257}, {14.6475, -2.27002, -0.755447}, {8.18188, -1.45117, -1.12948}, {6.3822, -3.16895, -0.379449}, {4.06604, -3.12305, -1.13509}, {4.70654, -5.06006, -0.736456}, {0.680542, -5.07813, -1.11876}, {-4.08984, -1.35596, -1.1212}, {-5.7074, -1.36719, -0.343591}, {-7.43054, -1.77393, -1.20257}, {-0.143066, -1.35938, -0.356713}, {1.97888, -1.38086, -0.742445}, {3.64868, -1.34033, -0.353237}, {-0.431519, -3.1875, -0.751089}, {-1.62048, -5.04932, -1.10177}, {7.75635, -0.208984, -1.20257}, {1.07886, -0.323242, -1.20257}, {-7.66748, -0.0317383, -1.20257}, {-0.220215, 0.996094, -0.654932}, {1.76233, 0.999512, -0.630699}, {3.70789, 1.01416, -0.644403}, {5.72876, 1.021, -0.624902}, {7.77393, 0.972168, -0.642438}, {-0.134521, 3.70459, -0.306029}, {-0.545776, 6.33252, -1.03212}, {1.88062, 6.44971, 0.0318856}, {2.65967, 3.70361, -0.691638}, {4.18542, 3.69971, -1.01851}, {4.70972, 6.33984, -0.696584}, {7.36377, 6.40771, 0.0330362}, {7.54236, 6.72803, -1.04015}, {3.92834, 6.67188, -0.303448}, {2.92676, 6.24902, -1.04417}, {-0.527344, 6.63037, 0.0441117}, {5.20728, 3.43115, 0.0192261}, {1.50439, 3.3999, -0.308934}, {-0.138306, 3.40869, -0.671616}, {-4.5686, 4.37695, -0.197094}, {-3.53271, 6.65918, -0.232339}, {-7.91125, 8.4585, -1.20257}, {13.7649, 8.32227, -1.20257}, {11.897, 6.65869, -1.04665}, {11.8844, 3.27539, -1.02069}, {11.8527, 4.88721, 0.055512}, {12.21, 4.02637, -0.304598}, {12.2333, 5.63672, 0.0506568}, {12.2213, 7.01025, -0.679298}}; }; class Land_A_Office02 { table = "Shop"; positions[] = {{-0.581543, -5.67871, -8.15104},{5.14258, -5.7793, -8.15111},{2.02979, -4.74805, -8.15053},{-21.2427, 2.1748, 5.38394},{-11.4209, 0.0673828, 5.38394},{-1.84033, 2.02246, 5.38394},{9.21729, 3.43066, 5.38395},{18.8926, 6.28613, 5.38394},{20.4136, -1.30469, 5.38394},{6.00049, -2.12695, 5.38394},{-17.3633, 1.19434, 8.71684},{-19.123, 3.86719, 8.71684}}; }; class land_AII_last_floor { table = "Military"; positions[] = {{-1.42236, 5.96289, 4.6129},{-4.45508, 3.43555, 5.46183},{-9.89795, 16.1748, 4.61091},{-14.2314, 22.249, 4.61073},{-23.418, -7.18457, 5.45109},{-10.5127, -16.2051, 5.44856},{4.02783, -21.3271, 5.51657},{5.60254, -11.5703, 6.08711},{-10.6987, 10.3369, 5.43586}}; }; class land_AII_middle_floor { table = "Military"; positions[] = {{-13.688, 8.02148, 0.513981},{-10.0068, 5.15332, 0.51099},{-13.0356, -0.71875, 0.520344},{-8.25098, 2.8584, 0.513554},{-4.39795, 2.17383, 0.513092},{-6.1333, 8.2168, 0.513794},{-7.30713, 5.61621, 0.520306}}; }; class land_AII_upper_part { table = "Military"; positions[] = {{-0.750488, -3.58496, -2.31057},{-1.50635, -1.92773, -2.32196},{-3.05322, 2.05176, -2.32196},{0.378418, 3.15332, -2.58292}}; }; class land_b_small1 { table = "Industrial"; positions[] = {{-2.86816, -0.407227, -1.50034},{-0.739258, -4.81543, -1.50034},{-0.48291, -1.04102, -1.50034}}; }; class Land_Barn_Metal { table = "Factories"; positions[] = {{-8.25391, 21.9849, -5.44357}, {9.72546, 21.978, -5.44357}, {0.587646, 17.7925, -5.44357}, {-0.0531006, 7.33252, -5.44357}, {9.31201, -24.1812, -5.44357}, {-8.87659, -24.4258, -5.44357}, {0.336792, -14.6191, -5.44357}, {-6.51477, -5.70557, -5.44357}, {8.40857, 4.55273, -5.44357}, {9.95911, -14.9468, -5.44357}, {0.605713, -25.0132, -5.44357}, {5.43127, -26.9204, 0.572758}, {10.5773, -25.0439, 5.58806}, {-1.23047, -25.2271, 5.50366}, {-9.50037, -23.0259, 5.57713}, {-9.5636, -3.14307, 5.59609}, {2.94739, -3.26025, 5.44712}, {10.6387, -10.0435, 5.61697}, {10.6318, 9.34863, 5.61872}, {10.6637, 22.7173, 5.6026}, {1.73621, 22.6138, 5.57867}, {-9.65442, 22.4043, 5.62226}, {-9.54663, 12.4761, 5.56913}}; }; class Land_Sara_stodola { table = "Industrial"; positions[] = {{4.60883, -1.51587, -2.23557}, {-4.85181, 4.03833, -2.25015}, {-4.92157, -1.30273, -2.24323}, {5.14618, 3.64136, -2.23999}, {4.92114, 0.711914, -1.3118}}; }; class Land_Hut_old02 { table = "Industrial"; positions[] = {{4.95221, -6.62061, -3.03452}, {4.76575, -1.51099, -3.03452}, {4.46252, 6.05396, -3.03452}, {-7.34637, 8.34131, -3.03452}, {0.290344, 6.58496, -3.03452}, {-3.74359, 2.51245, -3.03452}, {-4.05292, -2.49414, -3.03452}, {1.68848, -7.40796, -3.03452}, {-5.59692, 0.268066, -2.10794}, {-7.35638, -6.68115, -3.03452}, {-5.24933, -4.18213, -3.03452}}; }; class Land_Sara_stodola2 { table = "Industrial"; positions[] = {{4.78088, -2.82471, -2.14564}, {4.745, 2.76929, -2.13422}, {-5.70825, -2.29468, -2.1253}, {-5.89532, 3.47241, -2.13339}, {-0.947205, 0.838867, -2.13421}}; }; class Land_Barn_W_01 { table = "Industrial"; positions[] = {{0.299316, 22.208, -3.1789},{1.85938, 18.2881, -2.66324},{-5.40625, 8.97754, -2.66161},{-6.14551, -9.7207, -2.65836},{5.95947, 9.42578, -2.66169},{5.79053, -9.96973, -2.65831},{-1.08643, -18.0977, -2.65689},{-6.2373, -14.7119, -2.65749},{6.45264, 14.4609, -2.66257},{8.18018, 14.6631, -3.03774},{-8.12012, -14.8809, -2.98197}}; }; class Land_Barn_W_02 { table = "Industrial"; positions[] = {{-5.48572, -6.20166, -2.31087}, {3.87195, -6.10986, -2.30313}, {-0.973633, -0.597656, -2.31316}, {-4.67651, 4.50635, -2.30823}, {4.29272, 6.38623, -2.31588}, {0.671753, -8.83643, -2.69359}, {-2.33374, -8.92676, -2.71816}, {1.05603, 9.10156, -2.67156}, {-2.59961, 9.00684, -2.64609}, {-5.4436, 1.88184, -2.30844}, {4.23328, 0.25293, -2.31351}}; }; class Land_Bouda2_vnitrek { table = "Military"; positions[] = {{-2.98834, 2.05884, -0.611947}, {-0.920959, -1.24292, -0.611946}, {0.933044, 1.19849, -0.611946}, {-0.512329, 2.41821, -0.611946}}; }; class land_bud2 { table = "CivillianLowerClass"; positions[] = {{-2.3623, -1.00586, -1.79023},{1.80273, -0.383789, -1.78249}}; }; class Land_budova4_winter { table = "Military"; positions[] = {{-8.83984, 2.3584, -1.09823},{5.0708, -1.40625, -1.09823},{6.57959, -0.0283203, -0.934856},{1.56201, -2.17383, -1.09823},{2.6377, -0.046875, -1.09823},{-1.71045, -1.25293, -1.09823},{-0.383789, -0.00976563, -1.09823},{-4.86865, -1.00879, -1.09823},{-9.05322, -2.32129, -1.09823},{-8.2124, -0.428711, -1.09823}}; }; class Land_Budova4 { table = "Military"; positions[] = {{5.86401, -2.33203, -1.88867}, {6.7439, 2.63965, -1.88867}, {3.68677, 1.40381, -1.88867}, {0.14563, 3.00928, -1.88867}, {-3.27698, 1.43994, -1.88867}, {-6.97131, 2.94775, -1.88867}, {-7.13477, 0.0463867, -1.88867}, {-3.9436, -2.45801, -1.58868}, {-1.56836, -2.61108, -0.921971}, {1.27612, -2.80396, -1.88867}, {0.502686, -0.0319824, -1.88867}, {4.33081, -0.192871, -1.88867}, {-3.73645, 0.0578613, -1.88867}}; }; class Land_Budova4_in { table = "Military"; positions[] = {{5.86426, -2.33179, -1.88867}, {6.74414, 2.63989, -1.88867}, {3.68701, 1.40405, -1.88867}, {0.145874, 3.00952, -1.88867}, {-3.27673, 1.44019, -1.88867}, {-6.97107, 2.948, -1.88867}, {-7.13452, 0.0466309, -1.88867}, {-3.94336, -2.45776, -1.58868}, {-1.56812, -2.61084, -0.921971}, {1.27637, -2.80371, -1.88867}, {0.50293, -0.0317383, -1.88867}, {4.33105, -0.192627, -1.88867}, {-3.73621, 0.0581055, -1.88867}}; }; class Land_Budova3 { table = "Military"; positions[] = {{-3.03662, 2.51343, -1.91427}, {2.68701, 2.41992, -1.91904}, {2.20178, -2.35791, -1.89331}, {-2.54858, -2.37817, -1.90097}, {-0.351563, 0.157715, -1.917}}; }; class WarfareBAirport { table = "Military"; positions[] = {{-14.6022, -20.479, -5.87397}, {-13.2933, -4.17871, -5.87397}, {-13.738, 21.9556, -5.87397}, {13.085, 21.4033, -5.87397}, {13.4249, -18.8101, -5.87397}, {10.085, -1.04736, -5.87397}, {-0.832642, 10.2385, -5.87397}, {-3.77148, -9.64136, -5.87397}, {4.26099, -10.124, -5.87397}}; }; class Land_Ss_hangard { table = "Military"; positions[] = {{-14.6025, -20.4792, -5.87397}, {-13.2937, -4.17896, -5.87397}, {-13.7384, 21.9553, -5.87397}, {13.0846, 21.4031, -5.87397}, {13.4246, -18.8103, -5.87397}, {10.0846, -1.04761, -5.87397}, {-0.833008, 10.2383, -5.87397}, {-3.77185, -9.6416, -5.87397}, {4.26062, -10.1243, -5.87397}}; }; class land_bunka { table = "Shop"; positions[] = {{2.44971, 1.91992, -1.51244},{-1.84717, 2.53125, -1.51244},{0.172363, 2.63086, -1.51244}}; }; class land_cast1 { table = "Factories"; positions[] = {{-4.93311, -10.6875, -4.38392},{-3.57178, 5.57813, -4.38391},{1.57617, 6.61328, -4.38392},{-3.64893, 10.7246, -4.38392},{-0.235352, 16.6797, -4.38392},{-4.97949, 17.1348, -4.38392},{1.07129, -0.219727, -1.06585}}; }; class land_cast2 { table = "Factories"; positions[] = {{1.37793, 13.9932, -4.38393},{-3.45752, 9.15234, -4.38393},{-1.4082, 1.34863, -4.38393},{-4.85156, -8.19824, -4.38392},{1.20654, -10.6094, -4.35677}}; }; class land_chat_tr { table = "CivillianLowerClass"; positions[] = {{-2.32764, -2.27051, -2.43594},{-2.16992, 2.02734, -2.44564},{1.8208, 1.6084, -2.43839},{1.31689, -2.08301, -2.42417}}; }; class land_dlouhy1 { table = "CivillianUpperClass"; positions[] = {{5.70068, -2.35059, -9.5115},{5.49121, 3.41992, -9.51136},{0.822266, -2.20508, -9.50821},{-1.96729, -5.15625, -9.61368},{-6.39014, -0.860352, -9.50334},{-13.3608, -5.13965, -9.63223},{-15.8569, 0.00292969, -9.49695},{-15.5884, 2.50098, -9.49713},{-3.16211, 2.76758, -9.50551},{-16.2661, 5.7041, -9.49667},{-13.0146, 11.2822, -9.64676},{-11.2837, 9.32715, -9.50003},{-6.62061, 8.62012, -9.50318},{-2.92334, 11.3408, -9.6426},{-6.5415, 6.89844, -9.50323},{-1.61914, 8.95215, -9.50656},{-3.27881, 5.42578, -9.50544},{7.02686, 9.4043, -4.98993},{3.95801, 9.46191, -4.98993},{4.04297, -1.94531, -4.98993},{4.23047, -3.57031, -4.98993},{7.09863, -3.58887, -4.98993},{-2.54053, -2.91406, -4.9898},{-1.96533, -5.15332, -4.99091},{-2.11963, -0.246094, -4.98847},{-9.86523, -1.53223, -4.98911},{-13.3618, -5.04688, -4.99086},{-16.5234, -3.20801, -4.98994},{-15.563, 0.476563, -4.98811},{-15.835, 2.96875, -4.98687},{-8.98828, 2.89844, -4.9869},{-16.7842, 8.56934, -4.98408},{-21.0645, 9.25879, -5.083},{-21.124, -2.26172, -9.49339},{-13.2056, 11.2344, -4.98275},{-11.3857, 9.54883, -4.98359},{-11.3604, 6.49414, -4.98511},{-6.69189, 6.5332, -4.98509},{-3.00049, 11.5479, -4.98259},{-1.6626, 9.27246, -4.98373},{-3.08301, 4.99023, -4.98586},{-3.1626, 2.7666, -4.98697},{11.1074, -1.90234, -4.98936},{13.8535, 2.19141, -4.98732},{16.3271, -2.69238, -4.98975},{24.4204, -2.52832, -4.98967},{26.0439, -5.43164, -4.99111},{28.8101, -0.598633, -4.9887},{18.2666, -0.443359, -4.98863},{11.2856, 2.38184, -4.98722},{11.2876, 6.40527, -4.98521},{11.2593, 9.49609, -4.98367},{14.6904, 9.21094, -4.98382},{15.7583, 11.3447, -4.98275},{19.2959, 9.25195, -4.9838},{19.1582, 6.39746, -4.98522},{19.207, 2.26758, -4.98728},{14.8828, 6.12207, -4.98535},{26.2935, 2.10645, -4.98736},{22.2964, 1.99121, -4.98742},{22.1465, 5.72754, -4.98555},{22.1973, 9.5625, -4.98368},{26.4482, 9.35254, -4.98378},{26.3408, 11.5605, -4.98265},{29.5107, 9.34082, -4.98375}}; }; class land_dlouhy2 { table = "CivillianLowerClass"; positions[] = {{-0.71875, 5.58789, -9.31654},{1.06543, 0.354492, -9.32137},{-0.845215, -4.54883, -9.31622}}; }; class land_domek_podhradi_1 { table = "CivillianLowerClass"; positions[] = {{-5.3335, 3.54102, -2.75047},{-5.79199, -3.52637, -2.75047},{3.40527, -3.37891, -2.75047},{0.533203, -0.389648, -2.73914},{4.92871, 2.75391, -2.73911},{0.484375, 3.87695, -2.73909}}; }; class land_dr_1 { table = "CivillianLowerClass"; positions[] = {{0.147461, -0.493164, -1.07508},{-0.343262, 1.92383, -1.08438},{-2.8457, 1.74316, -1.08788},{-2.74463, -0.714844, -1.08217}}; }; class land_dr_2 { table = "CivillianLowerClass"; positions[] = {{-2.56934, 1.46094, -0.997974},{-0.309082, 1.42676, -0.994301},{4.38867, 1.53711, -0.98571},{3.71338, -1.39453, -0.973618},{-0.55957, -2.23242, -0.978878}}; }; class Land_dulni_bs { table = "CivillianLowerClass"; positions[] = {{1.97559, 2.6582, -1.75205},{2.45703, -1.08691, -1.75204},{0.107422, -2.83008, -1.75204}}; }; class Land_dum_ras { table = "CivillianLowerClass"; positions[] = {{2.5542, 3.49805, -2.66958},{-0.300781, 0.151367, -2.66957},{-0.5625, -2.03125, -2.66957},{-0.710938, -2.58398, 0.272606},{1.75391, 3.47266, 0.272602},{-0.166504, 1.93457, 0.272606}}; }; class Land_dum_zboreny { table = "CivillianLowerClass"; positions[] = {{-2.14941, -4.11914, -2.37675},{1.11865, -0.722656, -2.37675},{6.43115, -3.39746, -2.37675},{-5.66455, 4.21875, 1.40812},{-2.62988, -3.42188, 1.40902},{1.98584, -0.769531, 1.39545},{-5.13135, -3.81738, 1.41562}}; }; class Land_dum_zboreny_total { table = "CivillianLowerClass"; positions[] = {{-4.48975, -2.46582, -2.23949},{-4.82227, 2.27539, -2.31548},{4.70947, 2.34668, -2.33912}}; }; class land_f_b1 { table = "VehicleService"; positions[] = {{-4.71436, -0.746094, -2.21533},{-4.91309, -5.07813, -2.21533},{-2.38477, -3.29785, -2.21533}}; }; class land_f_b2 { table = "VehicleService"; positions[] = {{-6.93359, 0.602539, -4.96382},{-4.69922, -2.65625, -4.96382},{-1.76318, 3.53906, -4.97872},{0.286133, -0.306641, -4.21184},{2.08838, -3.16602, -4.21183}}; }; class Land_Fuel_tank_stairs { table = "Industrial"; positions[] = {{2.56934, -0.169922, 0.806641}}; }; class land_fuelstation_w { table = "VehicleService"; positions[] = {{-0.119141, 1.2666, -2.28589},{4.01611, -3.81641, -2.25437}}; }; class land_garaze { table = "VehicleService"; positions[] = {{-3.1582, -3.11328, -1.56419},{2.4375, -3.86035, -2.11892},{0.065918, -6.53613, -1.67742},{5.46143, -6.25977, -2.119},{4.94287, 0.117188, -2.11902},{3.23438, 5.73242, -2.119},{0.188477, 3.70508, -1.88765}}; }; class land_hala1 { table = "Industrial"; positions[] = {{-0.166504, -5.2832, -4.00997},{-0.201172, -0.611328, -4.00996},{0.69873, 4.97949, -4.00997},{5.45996, -3.13867, -3.98352},{-5.16455, 1.19238, -3.98352}}; }; class land_hlaska { table = "Military"; positions[] = {{-0.668945, 0.740234, 3.77092}}; }; class Land_Hlidac_budka { table = "Military"; positions[] = {{2.3418, 0.675781, -0.783619},{-1.77197, 1.92773, -0.783619}}; }; class land_hotel_p1 { table = "Shop"; positions[] = {{-11.0967, -3.02246, -4.65403},{-4.54248, -0.703125, -4.65404},{-10.0791, 3.53125, -4.65403},{-1.21143, -1.64648, -4.65403},{13.8491, 8.28711, -1.13431},{13.6074, 0.416016, -1.12066},{13.8945, -7.89648, -1.13431}}; }; class land_hotel_p2 { table = "Shop"; positions[] = {{7.14795, -1.11133, -7.29951},{4.04053, 2.56152, -7.29951},{-0.273926, -0.673828, -7.29951},{-2.74609, 2.04883, -7.29951},{-6.66553, -10.8359, -0.670689},{-3.03906, -25.0195, 1.31509},{-8.25732, 14.0684, -0.188686},{-3.71631, 23.1865, 1.03674},{1.09277, -19.2598, 6.06893},{6.76172, -14.2334, 6.06892},{4.73926, -6.79785, 6.06892},{8.39941, 6.44238, 6.06893},{0.0703125, 6.85352, 6.06892},{-2.85303, 18.458, 6.06893},{6.24023, 17.0322, 6.06893},{1.46582, -0.719727, 6.06893},{4.34424, -2.07324, 6.06893}}; }; class Land_HouseV2_01B { table = "CivillianUpperClass"; positions[] = {{-4.14014, -2.57031, -5.18788}}; }; class Land_HouseV2_05 { table = "CivillianLowerClass"; positions[] = {{5.28125, 6.9873, -2.65818},{-3.33643, -0.25, -2.7924}}; }; class Land_HouseV_3I1 { table = "CivillianLowerClass"; positions[] = {{5.29248, -1.86719, -2.02602}}; }; class Land_hut06 { table = "CivillianLowerClass"; positions[] = {{0.513672, 1.83301, -1.55149},{-0.552246, -0.0419922, -1.54668}}; }; class Land_hut_old01 { table = "CivillianLowerClass"; positions[] = {{-2.82275, 2.26172, -3.0186},{2.39307, -7.42383, -2.96946},{-4.6665, -1.7959, -3.01507},{1.85352, 4.6543, -3.01839},{-6.62744, 6.87695, -3.02645},{-7.50293, -7.14453, -3.01511},{-3.08691, -2.10938, -3.01197}}; }; class Land_Ind_Expedice_1 { table = "Factories"; positions[] = {{12.3125, -19.4453, -5.74528}, {7.11133, -13.0151, -5.73374}, {3.22119, -20.5103, -3.51501}, {-11.1914, -18.3765, -3.50602}, {-10.96, -3.85693, -3.47908}, {-4.11523, -7.40186, -3.49713}, {2.18018, -3.91992, -3.49716}, {3.26465, 4.21191, -5.66397}, {0.54541, 13.0532, -5.66222}, {3.2085, 18.0313, -5.66197}, {1.47803, 7.25684, -3.44646}, {1.21484, 13.3687, -3.51846}, {3.85449, 17.7368, -3.49196}, {-0.389648, 16.3223, 9.71004}, {-0.419922, 10.1162, 9.57764}, {-0.387695, 4.45117, 9.59625}, {0.460938, -0.372559, -12.9662}, {-3.36816, 7.57471, -12.9662}, {4.72363, 13.8594, -12.9079}, {0.54834, 20.3545, -12.9662}, {-6.21631, -22.9482, -12.9662}, {-9.1626, -22.3628, -12.9662}, {12.7876, -12.8501, -5.73049}}; }; class Land_Ind_IlluminantTower { table = "Military"; positions[] = {{1.17822, -0.277344, 10.3513},{-0.855957, -0.0869141, 10.3513}}; }; class Land_Ind_MalyKomin { table = "Industrial"; positions[] = {{-0.993652, -0.308594, -7.69932},{2.1958, -0.422852, -7.69932}}; }; class Land_Ind_Pec_03a { table = "Industrial"; positions[] = {{11.75, 14.8037, 5.76025},{8.36865, 4.24121, 5.76025},{11.6655, -8.36719, 5.76025},{6.96191, -15.7451, 5.76025},{-1.96777, -22.3271, 5.76025},{-4.75537, -5.51563, 5.76025},{-1.86182, 2.5752, 5.76025},{-4.34082, 13.0742, 5.76025},{3.19287, 20.251, 4.02583},{-1.06396, 24.501, 4.02583}}; }; class Land_Ind_Pec_03b { table = "Industrial"; positions[] = {{2.96289, 25.8848, 4.02583},{-1.07227, 21.6309, 4.02583},{-4.0791, 14.9619, 5.76025},{-0.356934, 4.58594, 5.76025},{-4.32617, -9.64941, 5.76025},{-0.961914, -16.7637, 5.76025},{3.42822, -24.7012, 5.76025},{10.2559, -19.7666, 5.76025},{7.74023, -10.6123, 5.76025},{10.7046, -1.34668, 5.76025},{10.647, 11.499, 5.76025}}; }; class Land_Ind_Quarry { table = "Industrial"; positions[] = {{-6.91357, 15.0264, -7.47989},{-7.28711, 7.63184, -7.47989},{-6.74414, -1.58301, -7.47989},{-3.35791, -10.8428, -7.47989},{5.45654, 4.74609, -7.47989},{8.17725, 9.01172, -7.47989},{6.17969, 11.9297, -7.47989},{0.290039, 17.2236, 5.29451},{-4.20117, 16.5439, 5.29451},{-4.28516, 8.84277, 5.29451},{-4.30713, -6.3457, 5.29452},{-4.07617, 0.918945, 5.29451}}; }; class Land_Ind_SawMill { table = "Industrial"; positions[] = {{-4.646, 10.0225, -5.80637},{-4.36963, -2.53516, -5.7921},{3.31152, -11.4541, -5.72437},{10.5, -4.90137, -5.72056},{10.5283, -1.49023, -5.74226},{10.7983, 5.6123, -5.78193}}; }; class Land_Ind_Stack_Big { table = "Industrial"; positions[] = {{-2.78027, -1.78809, -23.2495},{0.44873, 5.12207, -6.00286},{-3.02539, 5.07227, -6.00286},{-3.05664, 2.21484, -6.00286},{3.35107, -4.76074, -28.4986}}; }; class Land_Ind_Workshop01_01 { table = "Industrial"; positions[] = {{-0.940918, 0.477051, -1.32673}, {-0.75415, 2.13672, -0.830717}, {1.77258, -3.37939, -0.731255}, {2.19775, -2.01074, -1.31573}, {-1.59448, 0.0185547, -0.749197}}; }; class Land_Ind_Workshop01_02 { table = "Industrial"; positions[] = {{0.170044, -0.48584, -1.47095}, {-1.28064, -0.973633, -1.47099}, {1.61951, 0.72998, -1.47098}, {-1.37146, 1.37256, -1.43832}}; }; class Land_Ind_Workshop01_04 { table = "Industrial"; positions[] = {{-0.314331, 1.89893, -1.46829}, {1.63782, 4.75439, -1.51947}, {-2.05762, 4.63574, -1.52424}, {-1.96985, -6.83789, -1.51676}, {-1.48523, -3.03516, -1.45702}, {1.47803, -3.36914, -1.5316}}; }; class Land_Ind_Workshop01_L { table = "Industrial"; positions[] = {{0.669312, -1.48145, -1.23675}, {4.54822, -5.31738, -1.33082}, {4.5885, -1.84424, -1.32682}, {0.483521, -4.17871, -1.31704}, {0.125977, 5.06543, -1.25009}, {-1.85437, 1.875, -1.33066}, {-3.39661, 4.88184, -1.3317}}; }; class land_jzd_4silka { table = "Industrial"; positions[] = {{-3.3916, 0.258789, -1.17006}}; }; class land_jzd_bezstrechy { table = "CivillianLowerClass"; positions[] = {{7.93115, 2.51367, -5.22504},{6.21924, -3.71387, -5.22504},{-0.757813, -3.27246, -5.22504},{-10.3262, -1.87891, -5.22504},{-5.85791, 2.8252, -5.22504},{1.70557, 2.6582, -5.22504},{0.855957, 2.20313, -0.404762}}; }; class land_jzd_kr1 { table = "Industrial"; positions[] = {{-4.60498, -16.6143, -6.34966},{-0.616211, -11.9746, -6.26657},{2.00879, 0.411133, -6.26657},{-2.75879, 7.97363, -6.34966},{3.2373, 12.166, -6.34966},{2.22852, 3.82227, -6.26657},{4.25293, -7.25391, -6.34966},{-3.63916, 12.5576, -2.14675},{3.32227, 7.34863, -2.14675},{-3.50049, -1.67871, -2.14676},{0.86377, -8.74902, -2.14675},{-1.79688, -15.4854, -2.14675},{4.17969, -16.0742, -2.14675},{1.33887, -6.41699, 1.31637}}; }; class land_jzd_kr2 { table = "Industrial"; positions[] = {{4.33154, 23.5986, -2.38598},{-7.01855, 22.6494, -6.3362},{3.06006, 15.4053, -2.34158},{-3.38916, 8.94141, -2.07983},{5.90381, 10.1426, -2.07984},{-0.131836, 3.41992, -2.07984},{-2.67334, -4.22363, -2.07983},{7.01074, -4.36426, -2.07984},{2.15918, -9.3125, -2.07983},{6.0249, -15.4023, -2.07984},{2.06885, -12.9785, -2.07984},{-2.85889, -15.7559, -2.07984},{2.05176, -18.6699, -2.07983},{2.04688, -24.3594, -0.117252},{-7.77246, 20.3125, -6.33621},{4.08887, 20.2959, -6.33621},{1.78662, 12.8369, -6.3362},{1.87793, 9.47168, -6.19965},{1.9082, 5.69531, -6.19965},{1.83447, -3.8584, -6.19965},{1.72021, -9.01953, -6.19965},{1.78711, -13.3994, -6.19965},{2.20703, -16.7363, -6.19965},{2.53027, -23.6309, -6.233},{-2.64941, 8.58203, -6.2563},{-2.64307, -12.1484, -6.2563},{6.21387, -3.83008, -6.2563}}; }; class land_jzd_silo_tes { table = "Factories"; positions[] = {{-2.88379, -1.75977, -16.0503},{17.8921, -6.25586, -15.9365},{24.4775, -0.426758, -15.9552},{18.7129, 5.69043, -16.0179}}; }; class land_jzd_stodola1 { table = "CivillianLowerClass"; positions[] = {{0.400879, -13.5039, -2.0262},{-3.86035, -9.13281, -2.0262},{-0.871582, -1.84473, -2.0262},{-3.12207, 6.1543, -2.0262},{1.37891, 14.0986, -2.0262}}; }; class land_jzd_stodola2 { table = "CivillianLowerClass"; positions[] = {{6.86377, -5.91699, -2.0262},{3.77734, -12.7139, -2.0262},{-0.95459, -1.85254, -2.0262},{-5.56543, 3.05859, -2.0262},{7.41016, 5.45703, -2.0262},{2.16113, 7.55273, -2.0262},{3.38037, 12.7236, -2.0262},{7.05078, 14.0605, -2.0262},{1.06689, 1.17383, 1.31123}}; }; class land_jzd_vodojem { table = "Industrial"; positions[] = {{-0.27002, 0.380859, -6.83972}}; }; class Land_KBud { table = "Tourist"; positions[] = {{0.0415039, -0.40625, -1.04616}}; }; class Land_komin { table = "Industrial"; positions[] = {{1.4082, 0.291992, 12.4562},{-1.29688, 1.70313, 12.4562}}; }; class land_kontejner_des { table = "Industrial"; positions[] = {{-0.90625, -0.110352, -0.604759}}; }; class land_kostelik_final_2122 { table = "CivillianLowerClass"; positions[] = {{-0.694336, 3.57324, -5.57918},{1.99854, 3.09668, -5.57919},{4.07324, -0.552734, -5.57918},{-0.619141, -6.96094, -5.57918},{2.00195, -6.27051, -5.57918},{-2.23291, -2.90137, -5.57918},{2.39404, 8.44238, -5.55285},{-1.03955, 8.20215, -5.01875},{1.06689, 7.79492, 1.55624},{-0.308594, 7.52832, 1.55565},{0.831543, -1.79492, -5.57918}}; }; class Land_kulna { table = "CivillianLowerClass"; positions[] = {{-0.358887, 2.14551, -1.1406}}; }; class land_lodenice { table = "CivillianLowerClass"; positions[] = {{-3.89795, 1.52051, -2.83267},{-1.83301, -5.40625, -2.01773},{-4.23145, -12.6211, -1.10887},{-0.587891, -12.7275, -1.0997}}; }; class land_marsh1 { table = "CivillianLowerClass"; positions[] = {{4.64844, 3.49316, -3.95897},{1.33008, 4.81934, -3.95897},{3.98535, 6.78223, -3.95897},{2.28564, -0.0136719, -3.95897},{3.98193, -3.84277, -3.95897},{0.0605469, -5.29004, -3.95897},{-0.55127, 0.425781, -3.95897},{-2.35938, 4.36133, -3.99553}}; }; class land_marsh2 { table = "CivillianLowerClass"; positions[] = {{-6.88477, -1.49512, -0.265942},{0.22998, 9.88281, -0.541714},{2.99219, 10.4424, -0.73275},{5.43848, 9.24902, -0.941872}}; }; class Land_Mil_Barracks_i { table = "Military"; positions[] = {{0.431396, 1.26807, -1.09967}, {-8.86133, 2.58594, -1.09967}, {-2.85413, 1.19116, -1.09967}, {6.51196, -2.56616, -0.991094}, {0.875, -2.51172, -1.09967}, {2.94067, -1.92847, -0.707223}, {3.13049, -0.905762, 0.0942998}, {-2.34802, -2.67749, -1.09967}, {-0.464233, -0.975586, -0.699027}, {-0.259766, -2.10254, 0.0775399}, {-3.4353, -2.09424, -0.70066}, {-3.47937, -1.00464, 0.0826755}, {-5.48596, -2.4895, -1.09969}, {-9.04053, -2.53296, -1.09966}, {-6.83899, -0.975342, -0.674618}, {-6.69885, -1.96533, 0.10816}, {4.89612, 2.62891, -1.09968}}; }; class Land_Ammostore2 { table = "Military"; positions[] = {{0.565308, 5.24438, -2.02628}, {2.28333, 3.53076, -2.02077}, {-1.49146, 4.4707, -2.04811}, {-2.41248, 3.09473, -2.43958}, {2.24426, 0.593018, -2.43958}}; }; class Land_Mil_Barracks { table = "Military"; positions[] = {{4.46155, -2.70605, -1.46437}, {1.1134, -3.87891, -1.4655}, {-2.02539, -3.41626, -1.47586}, {-5.1438, -2.69336, -1.46848}, {-7.22742, 3.4939, -1.94031}, {-7.41492, -1.27295, -1.94031}, {-4.93896, 2.76685, -1.49529}, {-1.84973, 4.09351, -1.48083}, {1.34668, 2.78784, -1.48539}, {4.39966, 3.896, -1.47103}, {6.69995, -3.46094, -1.94031}, {1.92761, -0.172852, -1.94031}}; }; class Land_Misc_Cargo1Ao { table = "Industrial"; positions[] = {{-0.20459, 1.27539, -1.09225}}; }; class Land_Misc_Cargo1Bo { table = "Industrial"; positions[] = {{0.0966797, 0.678711, -1.09225}}; }; class Land_Misc_deerstand { table = "Military"; positions[] = {{-0.0947266, -0.667969, 1.08539}}; }; class Land_Misc_PowerStation { table = "VehicleService"; positions[] = {{4.16992, -4.13574, -1.26852},{4.09131, 1.93164, -1.26783},{3.86328, 6.91992, -1.2674}}; }; class land_molovabud1 { table = "Industrial"; positions[] = {{-9.02637, -1.52637, 1.41187},{-8.70215, 6.33398, 1.41187},{-3.35205, 1.04004, 1.41187},{1.27637, 5.45605, 1.41425},{-1.12793, 0.734375, 5.07722}}; }; class Land_Nasypka { table = "Industrial"; positions[] = {{-1.35791, -0.119141, 6.56824}}; }; class Land_Tovarna2 { table = "Industrial"; positions[] = {{-6.62939, 7.03125, -5.55933},{-4.0459, 4.9707, -5.55933},{-8.83398, 7.84668, -5.55933},{-13.0425, 6.48438, -5.55933},{-11.5796, 3.19824, -5.55933},{-13.1543, -2.66602, -5.55933},{-11.6787, -7.64844, -5.56399},{-4.72412, -1.37012, -5.5772},{-2.51611, 7.9873, -5.55933},{1.68555, 6.6582, -5.5697},{-11.1611, 2.30566, -2.23135},{-12.6118, 8.00586, -2.23135},{-4.28418, 5.01758, -2.23156},{-6.14355, 8.34375, -2.23156},{-13.0337, 2.28418, 1.66661},{-12.2842, 7.39453, 1.66661},{-9.30322, 7.27148, 1.66661},{-4.25, 4.77344, 1.62174},{-6.52637, 8.47266, 1.62174},{-3.7959, 8.35742, 1.62174},{-3.75586, 0.200195, 3.42429},{-9.74365, 0.180664, 3.42429},{-13.1099, -2.29199, 3.4243},{-13.0254, -7.99414, 3.4243},{-6.33496, -8.81641, 3.4243},{0.432129, -8.81445, 3.4243},{2.3584, -4.66992, 3.4243},{2.29883, 5.5752, 3.42429},{5.64795, -4.23926, -4.61871}}; }; class land_trubice { table = "Industrial"; positions[] = {{-3.31152, 2.16504, 2.59439},{1.09229, 2.82227, 2.59438},{5.39551, 0.498047, 2.59438}}; }; class Land_vez { table = "Military"; positions[] = {{-0.266602, 1.36523, 1.36331}}; }; class land_vstup { table = "Industrial"; positions[] = {{-12.4053, -2.3916, -4.57601},{-5.09863, -0.53418, -4.56671},{2.9541, -2.67383, -4.53907},{7.39893, -1.62695, -4.52592}}; }; class Land_vys_budova_p2 { table = "CivillianLowerClass"; positions[] = {{-6.41992, 3.33789, -0.702797},{-2.60352, -2.88379, -0.702797},{-6.21973, -3.98438, -0.702797},{-0.716309, -2.80957, 0.694061}}; }; class Land_Vysilac_FM { table = "Military"; positions[] = {{1.62988, -0.418945, 8.39022}}; }; class land_vysoky2 { table = "CivillianUpperClass"; positions[] = {{1.23291, 0.397461, -15.4928},{3.23291, -2.34375, -15.5683},{6.66016, 4.94141, -15.6088},{6.50146, -5.2373, -15.6088},{3.46826, -13.1758, -15.5678},{9.36914, -10.8037, -15.5851}}; }; class land_x_nadrz { table = "Industrial"; positions[] = {{-0.677734, 2.68262, 1.44318}}; }; class land_x_skladiste_low_te { table = "Industrial"; positions[] = {{-13.2363, -9.30371, -2.8418},{-14.231, 3.10449, -2.84105},{-2.57813, 8.91992, -1.61393},{0.682617, 6.83594, -2.84118},{13.1919, 6.2959, 0.106834},{9.46045, -1.61426, -2.58824},{10.0454, -6.80762, -2.58824},{1.45361, -5.36816, -2.58824},{-6.55615, -9.5127, -2.84166},{-15.5264, -11.1084, 4.04656},{4.94336, -12.0215, 4.04781},{16.9888, -3.24316, 4.04781},{16.814, 10.458, 4.04665},{10.6865, 6.64941, 6.17473}}; }; class land_x_vetraci_komin { table = "Industrial"; positions[] = {{3.07617, -0.651367, 14.9767},{-0.126953, -0.155273, 14.9466}}; }; class land_x_vez_te { table = "CivillianLowerClass"; positions[] = {{1.37744, -0.333008, -4.60751},{-0.855469, 2.38574, -4.58929},{0.958984, 2.96875, -4.58572},{1.19434, -0.387695, -0.273819},{0.800781, 2.80176, -0.272766},{-2.59912, 2.79102, -0.272377},{-2.41211, 0.592773, -0.273094},{-4.83057, -3.3623, -0.274063}}; }; class land_zd_1 { table = "CivillianLowerClass"; positions[] = {{-1.92969, 3.09961, -3.67255},{2.68896, 3.86426, -3.67256},{2.27881, -1.89551, -3.67255},{-0.723145, -2.45215, -3.67255},{-4.57813, -1.90918, -4.04225}}; }; class land_zd_2 { table = "CivillianLowerClass"; positions[] = {{-2.1416, -0.546875, -1.82467},{-0.318848, 2.48145, -1.82467},{1.85205, 1.12793, -1.82467}}; }; class Land_HouseV2_03 { table = "CivillianUpperClass"; positions[] = {{18.3115, 1.0625, -5.62046},{10.0884, -9.37305, -5.60065},{-18.4453, 2.13477, -5.90977},{-18.1553, 0.09375, -5.88095}}; }; class land_seb_nasypka { table = "Industrial"; positions[] = {{2.58789, -3.42188, -4.24763},{4.24707, 9.42383, -6.46843},{7.66113, 8.33203, -6.49762},{8.46094, 3.88672, -6.50448},{10.937, 0.0751953, -6.52561},{5.90869, -2.25098, -6.90967},{8.9917, -9.40332, -0.134293},{8.97705, -3.41602, -0.134289},{6.27197, -2.44629, 1.30363},{6.06689, 4.19922, 1.30363},{4.11523, 8.49805, 1.30363},{7.87158, 6.61621, 1.30363},{5.11279, 4.30566, 3.86848},{7.66943, 1.15723, 3.12964},{5.90625, 9.59668, 3.27484},{2.71143, -6.04297, -0.134289}}; }; class land_seb_near_fac { table = "Factories"; positions[] = {{-23.6338, -19.4893, -2.74704},{-23.417, -23.2939, -5.23791}}; }; class land_seb_residental { table = "CivillianLowerClass"; positions[] = {{4.65283, 6.66699, -3.97305},{-5.93555, 9.76367, -3.71556},{-0.84375, 2.00195, -3.69101},{-6.8833, -8.72266, -3.65704},{-6.19385, -0.334961, -3.6836},{-0.363281, 4.80273, -3.69986},{-2.65723, 7.20898, 0.527275},{-6.62402, 5.46777, 0.535892},{-2.62891, 2.04199, 0.552792},{-1.87891, -2.06543, 0.573109},{-6.69287, -3.84863, 0.581905},{-1.95313, -7.14258, 0.448582},{-6.7876, -7.85156, 0.403408}}; }; class land_seb_rozvodna { table = "Industrial"; positions[] = {{-0.746582, 3.18555, 0.582798}}; }; class land_seb_vod_vez { table = "Industrial"; positions[] = {{0.291992, 0.31543, 15.0059},{2.41504, -0.685547, 15.0589}}; }; class land_senik { table = "CivillianLowerClass"; positions[] = {{-1.24219, -0.173828, -4.08134},{-0.446777, 2.09375, -4.07665},{0.0864258, -3.96973, -4.08918},{-3.14014, -7.28711, -4.09602},{-7.97656, -3.49707, -4.0882},{-17.2642, -3.91504, -4.08906},{-17.3037, 0.610352, -4.07971},{-13.439, 4.39355, -4.07189},{-7.9624, -0.228516, -4.08143},{-4.69238, 3.64551, -4.07343}}; }; class Land_Shed_Ind02 { table = "Industrial"; positions[] = {{2.48096, 8.94629, -4.62599},{3.07715, 1.91211, -4.62599},{2.68262, -6.92383, -4.62599},{-2.57568, -1.43359, -4.62599},{4.72559, -5.57227, -1.27567},{4.71387, 4.27734, -1.28024},{-1.03467, 9.94043, -1.27845},{-1.34961, 11.8389, -1.27658},{-3.92725, 3.22363, -1.28432},{-4.08496, -7.4834, -1.28736}}; }; class Land_Shed_W01 { table = "CivillianLowerClass"; positions[] = {{-1.46973, -0.0566406, -1.40097}}; }; class land_sklad2 { table = "CivillianLowerClass"; positions[] = {{-3.17139, -2.12988, -2.38225},{2.39063, -3.15625, -2.38225},{3.30371, 1.88281, -2.38225},{-2.32568, 3.64844, -2.38225}}; }; class land_st_vez { table = "Military"; positions[] = {{0.0141602, -4.40625, -3.31476},{-5.08496, -2.78223, -3.31476},{-4.76514, 2.26953, -3.31476},{-0.228516, 3.75, -3.31476},{-1.03857, -2.08105, 6.40833},{-4.41309, 0.394531, 6.40833},{-1.98145, 2.73926, 6.40833}}; }; class Land_stodola_old_open { table = "Industrial"; positions[] = {{-3.37061, 4.97363, -5.0819}, {-1.76465, 7.19775, -4.14049}, {4.56055, 10.4849, -5.0819}, {0.664551, 8.18066, -4.15625}, {-3.4043, 11.2568, -5.08189}, {4.16846, -7.16943, -4.12179}, {2.24219, -7.76611, -4.15127}, {3.71533, -9.54688, -4.16988}, {5.01367, -11.1206, -5.0819}, {-3.05029, -4.61426, -5.0819}, {-3.23389, -11.127, -5.0819}, {-2.51172, -5.87891, -1.02183}, {4.66357, -7.70264, -0.998755}, {3.74512, -4.83887, -1.00342}, {3.64697, -5.51367, -0.0595894}, {-2.92725, -10.7534, -1.00023}, {4.83936, -11.0796, -0.997864}, {3.1875, -10.4673, 2.96308}, {-1.0459, -10.6895, 2.96308}, {4.67139, 3.56641, -0.994866}, {-2.43994, 5.59229, -0.994866}, {-2.57471, 10.3018, -0.994864}, {4.95898, 10.8423, -0.970182}, {-1.39258, 10.6348, 2.96308}, {2.96094, 10.79, 2.96308}, {2.48486, 7.8667, 0.467994}, {4.16357, 7.50488, -5.08192}, {0.830078, -3.66504, -4.13911}, {6.896, -1.87207, -5.12886}, {-4.86914, -1.15869, -5.12886}}; }; class Land_Ind_Vysypka { table = "Factories"; positions[] = {{5.65234, -19.9497, -4.99678}, {9.97656, -15.0142, -5.00554}, {5.27539, -8.85693, -4.95456}, {9.1377, 2.09326, -4.94785}, {5.37305, 9.63428, -4.97647}, {8.59961, 18.8911, -4.98071}, {1.40918, 30.1426, -4.95083}, {-6.50732, 26.6465, -4.99233}, {-8.73389, 22.5938, -4.94414}, {1.60547, 13.2627, -5.00037}, {-8.91309, 9.77979, -4.99231}, {1.77148, 6.6001, -4.99055}, {0.534668, -1.62158, -4.98623}, {-8.68408, -9.01904, -4.98076}, {0.656738, -16.1909, -4.98929}, {-1.27051, -7.9458, -4.96695}, {-8.68506, -22.1079, -4.98529}, {-6.44092, -28.0098, -5.67477}}; }; class Land_stodola_open { table = "Industrial"; positions[] = {{1.88086, 5.7959, -4.1124},{-2.96338, 6.39355, -4.10798},{-0.639648, -1.17383, -4.20508},{-3.59912, -6.5332, -3.18184},{-4.01416, 1.04297, -4.11878}}; }; class Land_Farm_Cowshed_a { table = "Industrial"; positions[] = {{9.73413, 3.31738, -3.08908}, {9.72888, -2.67627, -3.08908}, {-1.53625, -5.59961, -3.08908}, {9.77148, -5.64453, -3.08908}, {2.86096, 3.17969, -3.08908}, {-1.28076, 5.79932, -3.08908}, {9.1637, 5.79346, -3.08908}, {4.44666, 5.96289, -3.08908}, {-2.08691, 0.335449, -3.08908}, {-9.1134, 0.336914, -3.08908}, {-9.66809, 3.72461, -3.08908}}; }; class Land_Farm_Cowshed_b { table = "Factories"; positions[] = {{8.84302, -3.04541, -3.10254}, {9.64258, 3.08252, -3.10254}, {6.81116, 0.117676, -3.10254}, {2.64673, 0.0170898, -3.10254}, {2.62183, -2.91455, -3.02473}, {-2.54382, 3.05225, -3.02539}, {-4.95801, -3.11523, -3.04945}, {-10.1313, 3.01514, -3.10254}, {-10.6824, -2.74219, -3.10253}, {4.87769, 3.40234, -3.03365}, {-8.48181, 0.148926, -3.10254}}; }; class Land_Farm_Cowshed_c { table = "Industrial"; positions[] = {{2.81543, 3.00684, -3.12728}, {-2.37146, 2.90479, -3.12728}, {-2.88123, -3.74365, -3.12728}, {3.26685, -3.23193, -3.07122}, {0.384888, 0.0849609, -3.12728}}; }; class land_syp_r { table = "CivillianLowerClass"; positions[] = {{-0.782715, 0.944336, -6.54317},{1.80078, -0.692383, -6.53119}}; }; class Land_Nav_Boathouse { table = "CivillianLowerClass"; positions[] = {{5.39844, -0.183594, 3.73029},{2.88184, 7.22168, 3.72778},{-3.04541, 7.42578, 3.73394},{-5.12012, -0.625977, 3.73032},{0.262207, -4.09375, 3.64116}}; }; class Land_Nav_Boathouse_PierL { table = "CivillianLowerClass"; positions[] = {{4.73975, 0.168945, 5.88749},{-1.41748, -0.195313, 5.88749}}; }; class Land_Nav_Boathouse_PierR { table = "CivillianLowerClass"; positions[] = {{-4.71875, -2.78027, 5.87571},{-0.0219727, -2.75391, 5.87571}}; }; class Land_HouseBlock_A1 { table = "CivillianUpperClass"; positions[] = {{-3.05566, 4.54395, -8.81795}, {-4.58936, 2.10669, -8.80454}, {-3.30933, -0.567383, -8.81573}, {-4.98651, -3.12402, -8.80107}}; }; class Land_HouseBlock_A1_1 { table = "CivillianUpperClass"; positions[] = {{-3.0553, 4.5437, -4.75435}, {-4.58899, 2.10645, -4.74094}, {-3.30896, -0.567627, -4.75213}, {-4.98615, -3.12427, -4.73746}}; }; class Land_HouseBlock_A3 { table = "CivillianUpperClass"; positions[] = {{0.983215, 4.50806, -5.42659}, {-0.550476, 2.0708, -5.41318}, {0.729553, -0.603271, -5.42437}, {-0.947632, -3.15991, -5.4097}}; }; class Land_HouseBlock_B6 { table = "CivillianUpperClass"; positions[] = {{-3.01624, 3.48462, -7.6203}, {-4.54993, 1.04736, -7.6203}, {-3.2699, -1.62671, -7.6203}, {-4.94708, -4.18335, -7.6203}}; }; class Land_A_Pub_01 { table = "CivillianUpperClass"; positions[] = {{-4.43958, 1.0752, -5.74766}, {-6.95233, -1.84253, -5.74766}, {-3.54663, -3.96069, -5.76513}, {-7.51666, -6.36377, -5.75874}, {-0.751892, -4.24487, -5.74765}, {3.32367, -2.00171, -4.76907}, {2.91028, -6.29419, -5.74765}, {6.45203, -1.69336, -5.00955}, {6.0506, 2.80737, -5.77231}, {1.28925, 5.35303, -5.00968}, {-0.524109, 7.62378, -5.74766}, {0.238159, 2.55103, -5.78869}, {-2.27527, 0.784668, -1.80511}, {-0.825989, -3.47949, -1.78494}, {-7.35809, -6.23999, -1.79607}, {-5.85687, -2.73535, -1.83439}, {-3.81616, 0.85376, -1.7901}, {3.92865, 0.477295, -1.80775}, {3.14063, -4.2666, -1.8057}, {5.05634, -4.77759, -1.8202}, {6.32269, 3.6875, -1.81114}, {2.66833, 2.04639, -1.8087}, {-0.238953, 2.17358, -1.795}, {1.87097, 6.50293, -1.34435}, {6.78931, 7.823, -1.79862}}; }; class Land_Cihlovej_Dum_in { table = "CivillianUpperClass"; positions[] = {{0.834473, 2.58984, -5.27732}, {1.91754, -1.70776, -5.27732}, {-2.71466, 2.4939, -5.27732}, {-1.86475, 2.50024, -1.81614}, {-2.53705, -2.02393, -1.81615}, {1.78992, -2.07007, -1.81615}, {2.5083, 2.73486, -1.81615}}; }; class Land_Afbarabizna { table = "CivillianUpperClass"; positions[] = {{-0.460083, 0.507813, -4.22261}, {6.54462, 2.01221, -4.22261}, {6.85712, -3.91846, -4.22261}, {7.26312, 4.20166, -4.22261}, {1.33844, 4.20825, -4.22261}, {-4.89233, 6.17065, -4.22261}, {-2.85681, 2.55664, -4.22261}, {-4.65271, -3.87646, -4.22261}, {1.23932, 2.43481, -2.10356}, {-4.35828, 2.29248, -0.169522}, {-4.20135, 5.31665, -0.169555}, {0.800659, 5.22998, -0.169702}, {5.83154, 5.45044, -0.169702}, {6.6842, 2.71118, -0.169702}, {4.42139, -2.06396, -0.169702}, {-2.71759, -3.47998, -0.169702}, {-0.0638428, 1.00488, -0.16965}}; }; class Land_Hotel { table = "CivillianUpperClass"; positions[] = {{-18.2435, -17.7102, -7.74816}, {-12.3669, -17.7153, -7.74816}, {-8.93616, -3.66821, -7.74816}, {-5.10577, -4.35864, -7.74816}, {-4.85791, -8.60498, -7.74816}, {-9.15692, -18.0767, -7.74816}, {7.65997, -18.5227, -7.74816}, {6.02557, -14.0154, -7.74816}, {-2.82678, -17.3975, -7.74816}, {17.4018, -17.0322, -7.74816}, {11.8637, -16.5872, -7.74816}, {9.53394, -3.32251, -7.74816}, {10.2894, 15.1575, -7.74816}, {17.6103, 11.7771, -7.74814}, {2.97534, 18.2849, -7.74816}, {6.34479, 8.79004, -7.74816}, {-1.01996, 9.00488, -7.74816}, {0.516663, 17.9651, -7.74816}, {-17.0988, 18.0266, -7.79048}, {-8.9223, 0.407715, -7.74816}, {0.191345, 0.39624, -7.74816}, {5.3374, -3.23608, -7.76279}, {5.78351, -6.0271, 1.1137}, {-2.30853, -0.424316, 2.73938}, {5.75079, -2.83936, 4.59999}, {-1.38062, -0.114746, 6.24341}, {4.29785, 4.90942, 6.24341}, {-15.7447, 16.741, 6.24341}, {14.9627, 15.6453, 6.24341}, {14.2133, -13.2661, 6.24341}, {-11.5961, -14.5911, 6.24341}, {-8.92969, -0.0568848, 6.24341}, {-20.6451, -3.64014, 2.73913}, {-20.7547, -6.48755, -0.760873}, {-21.199, -8.15845, -4.26087}, {-20.5897, -15.8469, -0.760873}, {-20.0141, -18.302, 2.73913}, {-15.9423, -15.1887, 2.73938}, {-13.3456, -5.36792, 2.73938}, {-17.1971, 5.03247, 2.73938}, {-7.3175, 2.67871, 2.73938}, {-8.88959, -15.8821, 2.73938}, {-17.3284, 11.2983, 2.73938}, {-15.9634, 20.3547, 2.73913}, {-7.90717, 20.7634, 2.73913}, {-10.5158, 20.5925, -0.760873}, {-3.66846, 20.7493, -4.26087}, {-17.7359, 20.7, -4.26087}, {-3.16138, 11.9446, 2.73938}, {0.274597, 17.8855, 2.73938}, {13.9158, 13.7649, 2.73938}, {20.3719, 14.6829, 2.73913}, {20.4142, 5.55371, -0.760873}, {20.574, 14.0256, -4.26087}, {13.5671, 6.35718, 2.73938}, {12.3538, -5.87085, 2.73938}, {18.1491, -12.8921, 2.73938}, {16.6547, -20.3577, 2.73913}, {5.72693, -20.387, 2.73913}, {9.46576, -20.1902, -0.760873}, {15.6987, -20.4189, -4.26087}, {3.58221, -16.5813, 2.73938}, {-5.40356, -12.1162, 2.73938}, {-12.274, -17.8071, -4.26087}, {-12.4336, -3.84253, -4.26087}, {-12.6262, 5.3064, -4.26087}, {-18.7351, 9.23462, -4.26087}, {-17.6768, 16.3088, -4.26087}, {-4.17883, 12.9895, -4.26087}, {2.83643, 15.0398, -4.26087}, {9.30762, 18.3767, -4.26087}, {11.6584, 17.7405, -4.26087}, {12.5674, 3.65308, -4.26087}, {18.0711, -5.57861, -4.26087}, {18.4395, -8.89063, -4.26087}, {18.4078, -12.677, -4.26087}, {3.04871, -11.8176, -4.26087}, {-1.54669, -17.3108, -4.26087}, {-9.05518, -18.5356, -4.26087}}; }; class Land_Sara_Dum_podloubi03rovny { table = "CivillianUpperClass"; positions[] = {{-4.98767, -2.42358, -3.42441}, {-0.273926, -1.22656, -3.43498}, {2.22571, -3.36865, -3.46527}, {5.18042, -1.08765, -3.41489}}; }; class Land_Sara_domek_rosa { table = "CivillianUpperClass"; positions[] = {{5.04865, -2.60498, -3.82174}, {0.246948, -2.7207, -0.749431}}; }; class Land_Sara_Dum_podloubi03klaster { table = "CivillianUpperClass"; positions[] = {{-3.9104, -9.8252, -3.41936}, {-6.09589, -6.13721, -3.41936}, {-4.05048, 2.44971, -3.41936}, {1.79736, 5.48242, -3.41936}, {5.49188, 5.20605, -3.41936}, {9.03131, 3.40332, -3.41936}}; }; class Land_Sara_domek_vilka { table = "CivillianUpperClass"; positions[] = {{-5.48309, -0.784424, -4.17502}, {4.23175, 5.34399, -4.16134}, {0.293152, 5.57544, -4.16134}, {0.613098, 7.57349, -4.16134}, {-5.40179, -4.75317, -5.32747}}; }; class Land_Dum_mesto_in { table = "CivillianUpperClass"; positions[] = {{-1.80115, 1.50781, -4.26474}, {-5.40045, 3.85254, -4.26474}, {-5.11975, -2.71533, -4.26474}, {-3.98773, 1.69141, -4.26474}, {-0.109192, -3.23877, -4.26562}, {2.23566, 3.01318, -4.26562}, {3.85321, 5.03662, -4.26562}, {3.88324, -2.69946, -4.26562}, {0.306396, 4.30664, -2.75705}, {4.87939, 4.79199, -1.28238}, {5.24481, -1.59155, -1.28238}, {0.396973, -2.86914, -1.28238}, {-5.28748, 4.854, -1.27726}, {-1.79199, 2.20898, -1.27726}, {-5.52069, -4.16138, -1.17773}, {-1.84985, -4.05615, -1.17773}}; }; class Land_Sara_Domek_sedy { table = "CivillianUpperClass"; positions[] = {{4.96649, -0.512695, -1.22294}, {5.68219, 3.53394, -2.1434}, {4.16827, 4.27417, -2.1434}, {0.825378, 4.19263, -2.1434}, {0.77887, -0.516602, -2.1434}, {-5.31665, 3.98218, -2.1434}, {-1.26086, -0.2854, -2.1434}, {-5.43848, -0.483643, -2.1434}}; }; class Land_Sara_zluty_statek_in { table = "CivillianUpperClass"; positions[] = {{6.26666, -2.17017, -2.91453}, {1.90344, -1.97095, -2.90627}, {4.35138, 5.9541, -2.88379}, {2.33582, 0.661133, -2.90226}, {6.13257, 0.374023, -2.90622}, {8.98773, 2.81494, -1.90074}, {9.25861, 5.86328, -2.88785}, {0.22522, 0.21582, -2.89799}, {-4.8197, 0.986328, -2.88866}, {0.563904, 5.55713, -2.89074}, {-3.03699, 4.04004, -2.88711}, {-5.93335, 6.0874, -2.87411}, {-8.91016, 0.371582, -2.88405}, {-8.23444, 5.43115, -2.87703}}; }; class Land_Sara_domek_zluty { table = "CivillianUpperClass"; positions[] = {{7.1344, -0.354736, -2.43511}, {7.13495, 1.53638, -2.43516}, {2.67719, 3.65845, -2.43516}, {-0.128906, 3.55981, -2.43517}, {-0.653198, -0.374023, -2.4354}, {-6.95294, -0.619385, -2.43501}, {-6.49622, 3.30542, -2.43486}, {-3.27979, 1.91626, -2.43495}, {-6.96375, -3.87061, -2.43513}, {-2.66211, -3.83643, -2.43524}}; }; class Land_House_y { table = "CivillianUpperClass"; positions[] = {{-3.87677, -5.57861, -1.4084}, {-1.22754, -2.3125, -1.40832}, {2.20007, 0.22998, -1.40832}, {4.57941, -3.09521, -1.40832}, {4.75507, 3.89502, -1.40832}, {-4.71014, 3.7749, -1.40832}, {-4.88898, 1.41895, -0.635979}, {-2.42358, -0.730469, -1.40832}}; }; class Land_Dum_rasovna { table = "CivillianUpperClass"; positions[] = {{2.95148, 3.76758, -2.72664}, {2.53265, -0.129395, -2.72664}, {-1.36041, 2.92773, -2.72664}, {3.01337, -4.27246, -2.72664}, {-0.940552, -2.02588, -2.72664}, {0.195313, -3.69629, 0.227549}, {-0.660339, 3.79395, 0.227549}, {3.12024, 2.01318, 0.227549}}; }; class Land_Hruzdum { table = "CivillianUpperClass"; positions[] = {{2.29346, 3.6543, -4.73174}, {-2.28088, 1.79688, -4.75149}, {-1.11102, -1.24805, -4.75149}, {2.87299, 3.47217, -1.16409}, {-2.36639, -1.13916, -1.16409}, {1.47192, -0.425781, -1.16409}, {-1.78741, -0.992676, 1.59177}, {-2.0094, 3.17676, 1.59177}, {2.1806, 1.94336, 1.59177}, {-2.83881, 0.407227, 2.34624}}; }; class Land_Church_01 { table = "CivillianUpperClass"; positions[] = {{-7.14636, -0.160156, -6.4693}, {-6.96228, -0.0385742, -4.21825}, {4.13367, -3.81348, -6.21291}}; }; class Land_Sara_zluty_statek { table = "CivillianUpperClass"; positions[] = {{-8.87866, -2.33887, -2.9048}, {-0.166748, -2.33984, -2.90648}, {1.88782, -2.32959, -2.90613}, {6.02271, -2.29541, -2.91307}, {7.64685, -4.61963, -2.92023}}; }; class Land_Sara_domek03 { table = "CivillianUpperClass"; positions[] = {{5.37408, 2.95947, -0.685174}, {3.57147, -1.80078, -0.685174}, {-1.32697, 8.36475, -3.8638}, {5.62671, -1.88574, -0.685174}}; }; class Land_Sara_domek05 { table = "CivillianUpperClass"; positions[] = {{0.162476, -1.07178, -2.96398}, {-2.86328, -0.587891, -2.96398}, {-2.9187, 2.64893, -2.96398}, {5.66016, 2.52002, -2.96398}, {1.55768, -2.87451, -2.96398}, {-5.84717, -2.73438, -2.96398}, {-5.90753, 2.74365, -2.96398}, {5.28162, -0.975586, -1.98155}}; }; class Land_Majak { table = "CivillianUpperClass"; positions[] = {{1.10547, 0.217041, -8.07446}, {-0.98584, 1.09082, -8.07446}, {1.08203, 1.75171, 1.72104}, {-0.0587158, -0.817383, 1.72104}, {-1.71912, 1.20947, 1.72104}}; }; class Land_Majak2 { table = "CivillianUpperClass"; positions[] = {{1.20667, -0.476074, -8.07446}, {-1.06641, 1.42676, -8.07446}, {-0.165161, -1.25928, 1.72104}, {-1.72925, 1.47388, 1.72104}, {1.80774, 0.92749, 1.72104}}; }; class Land_NAV_Lighthouse2 { table = "CivillianUpperClass"; positions[] = {{-0.0512695, 0.853027, -6.91918}, {-0.48584, -0.399902, -6.91918}, {-0.00634766, -1.13428, 2.41768}, {-1.90686, -0.137207, 2.41768}, {0.359985, 1.74902, 2.41768}, {-0.026123, -1.82471, -7.28684}}; }; class Land_NAV_Lighthouse { table = "CivillianUpperClass"; positions[] = {{-0.0513916, 0.852539, -6.91918}, {-0.485962, -0.400391, -6.91918}, {-0.00646973, -1.13477, 2.41768}, {-1.90698, -0.137695, 2.41768}, {0.359863, 1.74854, 2.41768}, {-0.0262451, -1.8252, -7.28684}}; }; class Land_Hospoda_mesto { table = "CivillianUpperClass"; positions[] = {{0.68689, -6.3374, -5.20344}, {3.42285, -2.06787, -5.19577}, {1.61731, -1.06787, -5.31746}, {6.89258, -3.87451, -4.37564}, {6.90417, -1.75488, -4.39138}, {6.8855, 2.03613, -4.37701}, {6.84473, 0.0566406, -4.37297}, {6.19067, 5.01465, -4.36058}, {6.07678, 7.09375, -4.37861}, {3.87378, 6.38965, -4.35908}, {3.07397, 3.3335, -5.192}, {4.79175, -1.90234, -4.21544}}; }; class Land_Panelak { table = "CivillianUpperClass"; positions[] = {{0.828125, 2.60571, -1.22343}, {-0.581055, -1.83789, 0.0699835}, {-3.41846, -5.52197, 0.0699835}, {-0.662476, -6.16235, 0.0699835}, {-0.735962, -3.72217, 0.0699835}, {-6.177, -4.4353, 0.0699835}, {-5.46411, -6.70923, 0.0699835}, {-4.55859, -2.2522, 0.0699835}, {-4.52502, 2.56543, 0.404551}, {0.717773, -3.76025, 0.0699835}, {0.827759, -6.13354, 0.0699835}, {3.9574, -5.97192, 0.0699835}, {2.00769, 1.11914, 0.0699835}, {4.85608, 2.64258, 0.7421}, {4.67725, -2.00708, 0.0699835}, {5.4364, -4.30957, 0.364707}, {5.48474, -6.63281, 0.0699835}, {0.0406494, 2.85498, 1.39626}, {0.552246, -1.93604, 2.77001}, {-0.800171, -6.03052, 2.77001}, {-0.611694, -3.64893, 2.77}, {-3.58594, -6.03394, 2.77001}, {-4.50305, -2.2793, 2.77001}, {-5.4071, -4.2644, 3.08056}, {-4.4447, 2.49854, 3.08999}, {-2.12122, 4.35522, 2.77001}, {-3.3092, -1.18164, 2.77001}, {2.59497, 3.28638, 2.77001}, {4.92371, 2.58643, 3.40833}, {4.44641, -1.85791, 2.77001}, {5.99512, -4.32031, 2.77001}, {5.59558, -6.51001, 2.77001}, {-4.38525, -5.2522, 5.62442}, {-5.43372, 1.72119, 5.62442}, {1.20923, 1.01392, 5.62442}, {4.48157, -4.59277, 5.62442}}; }; class Land_Panelak1_Grey { table = "CivillianUpperClass"; positions[] = {{0.827637, 2.60596, -1.22343}, {-0.581543, -1.83765, 0.0699835}, {-3.41895, -5.52173, 0.0699835}, {-0.662964, -6.16211, 0.0699835}, {-0.73645, -3.72192, 0.0699835}, {-6.17749, -4.43506, 0.0699835}, {-5.4646, -6.70898, 0.0699835}, {-4.55908, -2.25195, 0.0699835}, {-4.52551, 2.56567, 0.404551}, {0.717285, -3.76001, 0.0699835}, {0.827271, -6.1333, 0.0699835}, {3.95691, -5.97168, 0.0699835}, {2.0072, 1.11938, 0.0699835}, {4.85559, 2.64282, 0.7421}, {4.67676, -2.00684, 0.0699835}, {5.43591, -4.30933, 0.364707}, {5.48425, -6.63257, 0.0699835}, {0.0401611, 2.85522, 1.39626}, {0.551758, -1.93579, 2.77001}, {-0.800659, -6.03027, 2.77001}, {-0.612183, -3.64868, 2.77}, {-3.58643, -6.03369, 2.77001}, {-4.50354, -2.27905, 2.77001}, {-5.40759, -4.26416, 3.08056}, {-4.44519, 2.49878, 3.08999}, {-2.1217, 4.35547, 2.77001}, {-3.30969, -1.1814, 2.77001}, {2.59448, 3.28662, 2.77001}, {4.92322, 2.58667, 3.40833}, {4.44592, -1.85767, 2.77001}, {5.99463, -4.32007, 2.77001}, {5.59509, -6.50977, 2.77001}, {-4.38574, -5.25195, 5.62442}, {-5.4342, 1.72144, 5.62442}, {1.20874, 1.01416, 5.62442}, {4.48108, -4.59253, 5.62442}}; }; class land_nav_pier_c { table = "Industrial"; positions[] = {{-8.15576, -16.2305, 23.0037},{-7.75244, -1.47949, 23.0037},{-7.90234, 15.5029, 23.0037},{-7.47852, 8.41309, 23.0037},{-8.00391, -9.05273, 23.0037}}; }; class land_nav_pier_c2 { table = "Industrial"; positions[] = {{14.0571, 6.25684, 23.8614},{6.81982, 7.10059, 23.8614},{-0.686523, 7.44629, 23.8614},{-7.65723, 7.83301, 23.8614},{-17.3403, 7.67871, 23.8614}}; }; class land_nav_pier_c2_end { table = "Industrial"; positions[] = {{6.6377, -4.05078, 23.8614},{1.34473, -3.78223, 23.8614},{-6.92529, -3.66504, 23.8614},{-2.79932, -3.23047, 23.8614}}; }; class land_nav_pier_c_90 { table = "Industrial"; positions[] = {{-7.7085, -8.63867, 24.0014},{-7.34619, -3.86133, 24.0014},{-7.38965, 1.01465, 24.0014},{-7.5083, 6.71191, 24.0014},{0.339355, 7.0293, 24.0014},{6.40283, 7.0957, 24.0014}}; }; class Land_aif_tovarna1 { table = "Factory"; positions[] = {{3.84583, -8.51514, -6.33144}, {3.50281, 3.44873, -6.33144}, {-11.7762, 3.09277, -6.33144}, {-6.47217, -8.65479, -6.33144}, {-7.8208, -1.15479, -6.33144}, {-0.182495, -3.24805, -6.33144}, {-12.1385, 6.62549, -6.33144}, {-1.97192, 9.3999, -6.33144}, {4.08923, 5.28223, -6.33144}, {-10.9369, -3.70117, -3.09346}, {-12.218, -8.59375, -0.353701}, {-12.1842, 3.22852, -0.353701}, {-2.27991, 3.44287, -0.353701}, {4.08984, 0.989258, -0.353701}, {3.91882, -6.10547, -0.353701}, {-3.34094, -8.53955, -0.353701}, {-9.64453, -4.81201, 2.39638}, {-4.09521, -6.51172, 2.39638}, {-4.28052, 1.09961, 2.39638}, {-1.37024, 2.33008, 2.39638}, {3.7146, 3.13867, 2.39638}, {0.416626, -6.86182, 2.39638}, {-12.1975, 2.90723, 2.39638}, {-1.77844, -3.40625, 5.31134}, {-5.93274, -6.03125, 5.31118}, {1.55334, -6.29639, 5.31116}, {0.571655, 1.40723, 5.31117}, {-9.27161, 0.635742, 5.31114}, {0.0698242, 5.30811, -0.353701}, {5.90015, 3.92041, -0.353701}}; }; class Land_MBG_Warehouse { table = "Factory"; positions[] = {{-15.2041, 16.2598, -6.14489}, {20.0955, 17.144, -6.14489}, {20.3879, -5.18018, -6.14489}, {19.5022, 4.48584, -6.14489}, {4.09058, 16.3311, -6.14489}, {-12.7335, 0.150879, -6.14489}, {6.38806, 3.92969, -6.14489}, {12.1599, -12.3862, -6.14489}, {-3.93274, -12.8359, -6.14489}, {-12.0145, -6.90918, -6.14489}, {-4.74536, 6.979, -6.14489}, {4.79822, -3.78857, -6.14489}, {21.4939, -13.4639, -6.14489}, {16.2109, -12.1948, -6.14489}, {18.3367, -9.34814, -6.14489}, {15.2875, -9.84521, -2.84489}, {21.048, -13.501, -2.84489}, {17.4938, -9.7583, -2.84489}, {17.8235, 1.22852, -2.84489}, {21.2297, -7.58447, -2.84489}, {20.0811, -3.36426, -2.84489}, {18.0602, 5.14258, -2.84489}, {20.8036, 14.52, -2.84489}, {17.3766, 17.8345, -2.84489}, {9.1543, 17.9595, -2.81989}, {-1.61414, 17.8374, -2.81989}, {-14.3276, 17.7676, -2.81989}, {-18.8661, 18.8169, -2.84489}, {-18.2942, 18.6787, 0.455113}, {-18.8348, 17.105, 5.15511}, {-15.0194, 17.895, 5.15511}, {-15.5154, 6.49414, 5.15511}, {-15.0842, -8.41602, 5.15511}, {-6.87646, -0.711914, 5.15511}, {-11.7275, -2.40332, 5.15511}, {1.55151, -9.99414, 5.15511}, {2.34534, 0.869629, 5.15511}, {7.73828, 1.8916, 5.15511}, {2.53186, 13.1978, 5.15511}, {19.488, 16.0244, 5.15511}, {18.1626, -11.1987, 5.15511}, {-11.7656, -12.9746, 5.15511}, {-4.82629, -7.9502, 5.15511}, {16.5488, 4.4668, 5.15511}, {14.7506, -5.07324, 5.15511}}; }; class Land_MBG_Garage_Single_A { table = "Industrial"; positions[] = {{1.06714, 1.78613, -1.04109}, {-0.995728, 0.102051, -1.04109}, {-0.580688, 3.77686, -1.04109}}; }; class Land_MBG_Garage_Single_B { table = "Industrial"; positions[] = {{1.06714, 1.78613, -1.04109}, {-0.995728, 0.102051, -1.04109}, {-0.580688, 3.77686, -1.04109}}; }; class Land_MBG_Garage_Single_C { table = "Industrial"; positions[] = {{1.06714, 1.78613, -1.04109}, {-0.995728, 0.102051, -1.04109}, {-0.58sa0688, 3.77686, -1.04109}}; }; class Land_MBG_Garage_Single_D { table = "Industrial"; positions[] = {{1.06714, 1.78613, -1.04109}, {-0.995728, 0.102051, -1.04109}, {-0.580688, 3.77686, -1.04109}}; }; class Land_nav_pier_m_2 { table = "CivillianLowerClass"; positions[] = {{15.189, -2.6123, 23.4414},{6.021, -2.7207, 23.4414},{-2.30273, -2.72461, 23.4414},{-15.8667, -2.66699, 23.4414},{-9.52539, 2.48828, 23.4414},{0.265625, 2.66113, 23.4414},{9.00732, 2.63965, 23.4414}}; }; class land_nav_pier_m_end { table = "CivillianLowerClass"; positions[] = {{1.65039, -4.83789, 23.4414},{-3.99854, -5.31445, 23.4414},{-4.5835, -0.269531, 23.4414},{-5.29102, 4.99023, 23.4414},{-0.487793, 5.88281, 23.4414}}; }; class Land_ns_jbad_A_GeneralStore_01 { table = "CivillianUpperClass"; positions[] = {{-1.95898, 3.79395, -1.20155},{0.864746, 3.93359, -1.20155},{3.40576, 3.81543, -1.20155},{5.2002, 3.82813, -1.20155},{10.1587, 3.05371, -1.20155},{10.1592, 0.866211, -1.20154},{5.89063, 0.604492, -1.20155},{3.96387, 0.604492, -1.20155},{1.83594, 0.631836, -1.20155},{-0.505371, 0.662109, -1.20155},{5.79248, -4.14746, -1.20155},{12.71, -3.49316, -1.20155},{2.54541, -6.17969, -1.20155},{-1.36865, -5.91016, -1.20155},{-5.46875, -5.92871, -1.20154},{-9.01465, -6.27441, -1.20155},{0.26123, -7.33691, -1.20155},{12.2588, -7.87207, -1.20155},{-9.2002, -3.20605, -1.20155},{0.37207, -1.16309, -1.20155}}; }; class Land_ns_Jbad_A_Stationhouse { table = "Military"; positions[] = {{-6.93945, -7.13867, -9.46536},{-12.9404, 0.662109, -9.46536},{-6.33008, 1.7041, -9.46536},{-5.67383, -1.94531, -9.46537},{-7.77002, -4.62207, -9.46536},{-6.93506, 4.94922, -9.46536},{-5.90967, 7.74707, -9.46536},{-11.2642, 8.73242, -9.46536},{-12.208, 5.63574, -9.46536},{-14.3066, 6.98828, -9.46536},{-16.7954, 2.97461, -9.46536},{-17.332, -5.8457, -9.46536},{-14.6265, -5.30664, -9.46536},{-2.13672, -3.03613, -9.46536},{-2.03516, 2.78516, -9.46536},{-1.91406, 7.15527, -9.46536},{-8.48096, -6.48535, -6.77364},{-15.7749, -7.71777, -6.77364},{-17.375, -3.10254, -6.77364},{-17.0884, 6.61523, -6.77364},{-12.9873, 6.54883, -6.77364},{-9.61328, 6.80469, -6.77364},{-5.8584, 6.69141, -6.77364},{-2.31299, 6.87305, -6.77364},{-1.86133, -3.58105, -6.77364},{-7.43652, -3.58691, -6.77364},{-14.3545, -7.84277, -3.6493},{-16.6865, -7.78711, -3.6493},{-16.7388, 7.72949, -3.6493},{-13.9004, 7.69336, -3.6493},{-9.65723, 8.08789, -3.6493},{-6.38184, 7.78809, -3.6493},{-3.146, 8.21387, -3.6493},{-9.59473, -3.41113, -3.6493},{-6.93213, -3.34473, -3.6493},{-16.2041, 0.322266, -3.6493},{1.34912, -2.77832, -4.50294},{4.82324, -0.526367, -4.50294},{2.17676, -7.55664, -4.50269},{12.9829, -7.05371, -4.50269},{-9.396, -6.19141, -0.502689},{-15.7285, -6.89355, -0.502689},{-16.8872, 1.82227, -0.502689},{-11.0439, 2.58887, -0.502689},{-4.49365, 2.33301, -0.502686},{-1.93701, -7.98535, 8.49731},{-3.91748, -7.66309, 8.49731}}; }; class Land_ns_jbad_hangar_2 { table = "Industrial"; positions[] = {{12.8218, -8.23438, -2.56319},{13.3193, -2.53516, -2.56318},{13.2275, 3.03223, -2.56319},{13.4185, 9.16797, -2.56319},{1.84619, 4.42578, -2.56319},{0.273438, -1.96875, -2.56319},{0.223633, -7.3418, -2.56319},{-12.1475, -4.97363, -2.56319},{-12.7822, 0.652344, -2.56319},{-12.5186, 5.44141, -2.56319},{0.0429688, 9.13281, -2.56319}}; }; class Land_ns_Jbad_Ind_Garage01 { table = "Industrial"; positions[] = {{-1.56641, 2.76855, -0.70237},{-1.72363, -1.36328, -0.71067},{0.694824, 0.235352, -0.710865}}; }; class Land_ns_Jbad_Ind_PowerStation { table = "Industrial"; positions[] = {{3.79004, 7.35742, -0.0734406},{3.93555, 2.98242, -0.0776749},{3.91504, -1.97852, -0.0574455}}; }; class Land_ns_Jbad_Mil_Barracks { table = "Military"; positions[] = {{6.04395, -3.20898, -1.9798},{2.90332, -3.1416, -1.9798},{-0.803223, -2.35547, -1.9798},{-4.16357, -2.34473, -1.9798},{-7.53955, -2.92383, -1.9798},{-7.5293, 3.27734, -1.9798},{-4.19482, 3.24609, -1.9798},{-0.518066, 3.81543, -1.9798},{2.29834, 3.09668, -1.9798},{5.45459, 3.01172, -1.9798},{-5.80371, 0.0537109, -1.9798}}; }; class Land_ns_Jbad_Mil_ControlTower { table = "Military"; positions[] = {{8.93896, -2.4834, -9.58517},{3.74316, -2.73535, -9.58517},{4.68555, 1.06152, -9.58517},{9.20117, 5.04199, -9.62869},{4.0332, 4.7168, -5.4637},{3.02783, -0.135742, -1.0687},{6.95605, -1.1377, -1.0687},{6.04004, 2.51367, -1.0687},{3.03564, 1.75488, -1.0687},{0.952148, 5.11426, -9.6287},{-9.42725, -0.114258, -9.58517},{0.900391, 2.07813, -9.60597},{8.31592, 0.0869141, -9.58517},{0.416504, -3.0166, -1.05692},{6.09424, -3.65527, -1.05692},{9.68945, 0.405273, -1.05692},{6.51074, 5.625, -1.05692},{6.03662, 3.22949, 2.80917},{3.48291, -0.34375, 2.87234}}; }; class Land_ns_Jbad_Mil_Guardhouse { table = "CivillianLowerClass"; positions[] = {{-2.66943, 3.2793, -1.66939},{4.04395, 3.66309, -1.66939},{2.69775, 0.196289, -1.66939},{-1.37598, 3.42188, -1.66939}}; }; class Land_ns_Jbad_Mil_Guardhouse_winter { table = "CivillianUpperClass"; positions[] = {{-3.30664, 2.98242, -1.66938},{3.49316, 3.70313, -1.66939},{-0.645996, 3.14551, -1.66939},{3.88818, 0.946289, -1.66939},{-0.267578, -0.269531, -1.66939}}; }; class Land_d_HouseV_2I { table = "CivillianUpperClass"; positions[] = {{-4.90466, -6.18945, -2.81682}, {-2.16272, -7.13867, -2.81647}, {0.788086, -2.35938, -2.81595}, {-1.17065, -2.92432, -2.14302}, {-3.29285, -4.27637, -2.81655}, {-4.51758, -4.34619, -2.81672}, {-4.72058, -2.16162, -2.81669}, {2.25146, -3.69775, -2.81578}, {2.54285, -6.54541, -1.92461}, {4.71875, 0.367188, -2.81594}, {-3.12817, -0.72168, -2.81643}, {-4.56445, 4.92432, -2.81648}, {-3.70496, 4.92188, -2.81636}, {-4.52429, 2.43604, -2.81654}, {-3.0564, 2.7002, -2.81635}, {0.694702, 4.5752, -2.81621}, {0.65271, 7.24121, -2.81634}, {-3.31921, 8.34326, -2.81645}, {0.876709, 6.40186, -1.99469}, {2.66003, 6.52832, -2.10111}, {4.76917, 7.33643, -2.81628}, {3.16248, 2.05176, -2.81604}, {2.02515, 4.12842, -2.28391}}; }; class Land_d_HouseV_2t1 { table = "CivillianUpperClass"; positions[] = {{-5.07324, 0.876953, -2.52648}, {-3.6554, -2.7627, -3.0178}, {-1.73816, 0.421875, -3.01908}, {-1.77295, 2.03369, -3.01894}, {1.46692, 2.01855, -3.01904}, {0.928223, 0.527832, -2.31204}, {1.2688, 3.76855, -3.01917}, {-6.36768, 2.05322, -3.0194}, {-3.06641, 2.19775, -3.01914}, {3.1947, 1.16699, -3.01933}, {5.34961, 1.20752, -3.02077}, {7.31299, 2.70215, -3.02077}, {5.03418, -2.06104, -3.02077}, {0.262085, -2.18555, -2.96794}, {0.522339, -2.14844, -1.82587}, {4.0686, -3.50586, -3.02014}, {2.54346, -0.360352, 0.215319}, {-2.43909, -3.36377, 0.215319}, {-6.3252, 1.63184, 0.215319}, {0.378296, 1.64014, 0.819885}, {-3.67419, 0.177246, 0.215319}}; }; class Land_d_HouseV_1t { table = "CivillianUpperClass"; positions[] = {{-6.84241, 1.50195, -2.96167}, {-3.93262, 0.0556641, -2.21637}, {-6.93103, 5.61377, -2.28533}, {0.424805, 4.27246, -2.47856}, {-0.298096, -0.57666, -2.96682}, {-1.43677, 5.81494, -2.96642}, {-5.34937, 4.81836, -3.00715}, {2.25623, 2.05078, -2.96332}, {1.89856, 3.56738, -2.96297}, {2.25671, 5.13428, -2.96314}, {4.76404, 5.54688, -2.96467}, {6.05786, 5.66895, -2.33737}, {4.85156, -0.0805664, -2.96233}, {6.12073, -0.477051, -2.1155}, {3.71948, 0.173828, -2.96362}, {-3.45825, 0.106934, 0.111891}, {2.30664, 2.71582, 0.111891}, {6.10291, 4.05469, 0.111891}, {-6.57227, 3.89209, 0.111893}, {-5.21033, 0.759277, 0.111891}, {-2.35828, -5.125, 0.111891}}; }; class Land_d_HouseV_3I2 { table = "CivillianUpperClass"; positions[] = {{1.15112, -1.49854, -1.02348}, {3.49194, -4.01221, -1.98501}, {0.831909, 3.13525, -1.98538}, {-4.11011, 1.45947, -1.21065}, {-5.71912, 4.06055, -1.98574}, {-0.276733, 3.98877, -1.98558}, {-4.29089, -0.0761719, -1.98571}, {-5.35803, -3.99463, -1.98551}, {-0.745728, -3.33936, -1.98548}, {-5.84595, -1.41162, -1.98565}}; }; class Land_d_HouseV_3I3 { table = "CivillianUpperClass"; positions[] = {{1.71423, -0.109863, -1.52837}, {1.71838, 1.36719, -1.52837}, {-1.09692, -1.36279, -1.52837}, {-4.89709, 1.7583, -1.52837}, {-4.84521, -2.03467, -1.52837}, {4.23376, -1.91113, -1.52837}, {3.31628, 1.36572, -1.52837}}; }; class Land_d_HouseV_3I4 { table = "CivillianUpperClass"; positions[] = {{-5.5011, -2.43555, 0.552403}, {-3.59106, 4.38135, 0.522323}, {0.68811, -2.81543, 1.29494}, {-0.0316162, 3.41504, 0.552114}, {-2.60413, 4.59082, 0.541494}, {-2.09045, -2.38037, 0.541293}, {4.6803, -3.22266, 0.543561}, {1.45654, 2.53955, 0.538874}, {4.3645, 2.45801, 0.563367}, {-0.955566, -2.46094, 3.81391}, {3.76074, -2.6001, 3.81391}, {3.60669, 3.59521, 3.81391}, {-1.34521, 2.49365, 3.81391}}; }; class Land_d_HouseV_3I1 { table = "CivillianUpperClass"; positions[] = {{3.92236, -0.281738, 0.769825}, {5.49146, 2.38574, 0.771051}, {2.60706, -1.09033, 0.770839}, {3.01807, 0.211426, 1.60265}, {1.99927, 2.07129, 0.772875}, {-3.46057, -2.72021, 0.771178}, {0.616577, -1.21289, 1.38269}, {-4.08838, 2.20166, 0.776365}, {-5.23145, 1.86084, 0.778043}, {-5.14978, -2.11475, 0.777845}}; }; class Land_d_HouseV_2t2 { table = "CivillianUpperClass"; positions[] = {{7.59973, 3.06494, -4.04947}, {7.35498, 0.00292969, -3.10748}, {7.63086, 2.05518, -4.04065}, {5.16101, -2.87646, -3.36717}, {2.03137, -2.44531, -3.43929}, {-0.639038, -3.08838, -4.04098}, {4.54175, 0.900391, -4.03971}, {-3.15222, 2.02148, -4.04008}, {-2.9895, 3.08594, -4.03901}, {-3.51318, -1.72412, -4.04231}, {7.46106, 3.21826, -1.28452}, {7.51086, 0.65332, -1.28389}, {6.78809, -2.99023, -0.974769}, {5.87598, -2.97754, -0.987933}, {7.60217, -0.195313, -1.28367}, {0.728516, -3.86475, -1.28318}, {-1.92468, 1.29639, -1.28613}, {-1.40991, 3.23145, -0.6414}, {-3.58325, 3.15186, -1.28712}, {-1.99414, -0.283691, -1.28452}, {2.83948, -1.96826, -1.28346}, {-2.63562, -0.309082, -0.607928}, {-1.2196, -2.16504, -1.28382}}; }; class Land_d_dom02 { table = "CivillianUpperClass"; positions[] = {{13.3385, 0.958008, 0.825933}, {11.7816, -2.67236, 0.829455}, {11.7699, 4.36914, 0.829405}, {11.7438, 2.3418, 0.829664}, {8.55298, 4.71338, 0.829518}, {4.64185, 4.08936, 0.829697}, {8.62012, -4.97803, 0.829619}, {6.09985, -2.55225, 0.829767}, {4.63928, -5.0127, 0.829834}, {0.695557, -1.64844, 0.829839}, {3.2926, 5.04443, 0.829816}, {3.21619, 1.84229, 0.829865}, {0.533203, 2.98389, 0.829732}, {-13.3931, 1.06348, 0.800451}, {-11.9227, -3.0415, 0.829075}, {-11.869, 2.37012, 0.829301}, {-11.9427, 4.32666, 0.829539}, {-8.68982, -4.98438, 0.829745}, {-5.95825, -1.95264, 0.829916}, {-8.48914, 1.99707, 0.829755}, {-4.79309, 4.55615, 0.829823}, {-3.15039, 1.73145, 0.829782}, {-0.641357, 4.96729, 0.829614}, {-4.72998, -4.91699, 0.829711}, {-0.473267, -3.4209, 0.829655}}; }; class Land_d_HouseV_2L { table = "CivillianUpperClass"; positions[] = {{2.9751, 4.59277, -4.01771}, {0.982544, 2.33691, -4.02158}, {4.33191, 1.25146, -3.92848}, {-0.858521, 2.7251, -4.01505}, {-3.08069, 2.50928, -4.01298}, {-4.72131, 4.93848, -4.0107}, {0.890747, -2.45068, -4.0133}, {2.97278, -1.07568, -3.2506}, {3.27393, -4.89404, -4.01156}, {-2.88806, -2.57617, -4.0147}, {-1.1344, -0.351563, -4.01448}, {-3.84814, -0.877441, -2.40084}, {-0.777344, -1.45703, -0.787475}, {-0.124634, -2.51172, -0.3577}, {-1.07593, -2.52148, -0.347598}, {2.24231, -3.37598, -0.786953}, {2.27454, -1.84424, -0.787463}, {-2.85022, -4.89697, -0.784377}, {2.12354, 1.4624, -0.788038}, {1.9386, 3.77002, -0.78729}, {0.534668, 4.56982, -0.786881}, {-0.249878, 4.64844, -0.786769}, {-1.43591, 4.45898, -0.786695}, {-3.09644, 1.95801, -0.787299}, {-2.18054, 1.19482, -0.787642}, {-0.450073, 0.758789, -0.0946722}}; }; class Land_d_HouseV_1L2 { table = "CivillianUpperClass"; positions[] = {{1.22656, -5.75098, -1.08776}, {3.03479, -3.62988, -0.772563}, {2.82935, -0.302246, -0.772563}, {0.885132, 0.514648, -0.0346746}, {-1.86731, -3.62695, -0.771305}, {-3.55359, -4.25977, -0.771726}, {-0.806396, -2.27441, -0.77104}, {-2.74756, 0.714844, -0.771524}, {-1.34668, 0.754395, -0.771175}, {2.70898, 2.7168, -0.773312}, {-3.43152, 0.637695, -2.67577}, {-0.948364, 0.701172, -2.67577}, {-3.99963, -4.45117, -2.67577}, {-0.751831, -4.44336, -2.67577}, {3.21448, -4.42236, -2.67577}, {2.95227, 2.88672, -2.67577}, {-0.0402832, 1.48584, -2.67577}, {-3.72095, 2.61865, -2.67577}}; }; class Land_d_dom01 { table = "CivillianUpperClass"; positions[] = {{2.49841, 3.94824, 0.714706}, {-5.19824, 8.64941, 0.714707}, {-4.86475, 3.97461, 0.714706}, {4.24414, 2.45898, 0.714705}, {-6.93445, 2.44189, 0.714706}, {-1.21008, -0.550293, 0.714705}, {5.6803, -0.147461, 0.714705}, {4.401, -1.91602, 0.714705}, {-0.607544, -1.88428, 0.714705}, {-0.537231, -8.63184, 0.714704}, {3.9801, -7.7583, 0.714704}, {-6.96997, -8.12402, 0.714705}, {-1.99084, -8.5835, 0.714705}, {-6.37231, -2.57275, 0.714705}}; }; class Land_ns_Jbad_Mil_House { table = "Military"; positions[] = {{-1.65674, -5.99219, -5.01462},{8.46973, 4.03516, -5.01462},{7.90967, -5.97266, -5.01463},{5.9165, -7.05273, -5.01463},{2.89111, -6.42676, -5.01462},{1.23682, -5.16504, -5.01462},{1.60205, -2.2207, -5.01462},{1.66943, 3.78125, -5.01463},{13.2617, -0.860352, -5.01462},{13.748, -2.25781, -5.01462},{5.44238, -2.89844, -5.01462},{-1.61182, 3.02344, -0.672493},{-13.0781, 1.9209, -0.696548},{-12.4023, -1.39258, -0.696548},{-13.8862, -4.80859, -0.696548},{-5.20605, -5.17773, -0.696548},{-5.49072, -2.76758, -0.696552},{-5.40479, 0.0078125, -0.696552},{-6.08154, 4.5918, -0.696545},{-4.62744, 0.244141, -5.01463},{-4.49658, -2.52246, -5.01463},{-4.56055, -4.71387, -5.01462},{-4.76465, -7.3584, -5.01462},{-13.5967, -7.61621, -5.01462},{-13.7686, -4.79199, -5.01462},{-13.9316, -1.64355, -5.01462},{-14.3921, 1.50488, -5.01462},{-5.47559, 4.78711, -5.01462},{-8.73828, -3.43945, -5.01462}}; }; class Land_MBG_Killhouse_3 { table = "CivillianUpperClass"; positions[] = {{-0.919434, -0.00732422, -2.85}, {-3.11957, -2.43359, -2.85}, {-1.21515, 1.48193, -2.85}, {-5.56775, 3.8623, -2.85}, {-12.8748, 2.06787, -2.85}, {-9.35632, 0.0893555, -2.85556}, {-13.0686, -0.64502, -1.03671}, {-8.29224, -2.22852, 0.450001}, {-12.7284, 2.97461, 0.450001}, {-0.818665, 3.95654, 0.450001}, {-5.55847, 1.00146, 0.450001}, {-4.48511, -1.9707, 0.450001}, {0.844421, 3.38965, 0.450001}, {12.344, 3.854, 0.450001}, {8.47833, -1.6748, 0.450001}, {1.3573, -2.07129, 0.450001}, {5.93549, -0.991699, 0.450001}, {12.9937, -0.790039, -1.03803}, {0.878479, -2.396, -2.85}, {5.68164, 0.0581055, -2.85}, {0.783325, 3.84766, -2.85}, {12.7581, 2.26221, -2.85}}; }; class Land_MBG_Killhouse_4 { table = "CivillianUpperClass"; positions[] = {{-1.86517, 0.360352, -3.84461}, {-6.26721, -4.11816, -3.84461}, {-6.04413, 0.213867, -3.84461}, {-6.36688, 6.45947, -3.84461}, {-2.01135, 2.18213, -3.84461}, {4.77875, 1.99463, -3.84461}, {7.18433, -4.20117, -3.84461}, {3.17023, -4.16748, -3.84461}, {0.446472, 6.74072, -3.84461}, {4.63824, 1.34668, -2.12029}, {0.432312, 6.68945, -0.544613}, {-6.41724, 6.65576, -0.544613}, {-1.58331, 3.79248, -0.544613}, {-6.25122, 2.2041, -0.544613}, {6.87085, 0.388672, -0.544613}, {3.16132, -4.23633, -0.544613}, {-6.1615, -4.10742, -0.544613}, {-1.97491, 0.254883, -0.544613}, {-5.24915, -0.833984, -0.544613}, {6.92511, 2.14307, -0.544613}, {3.07153, 6.52979, -0.544613}, {7.45471, 5.19727, -0.544613}}; }; class Land_MBG_Killhouse_5 { table = "CivillianUpperClass"; positions[] = {{-2.18585, -1.50977, -4.00166}, {-6.57581, -4.85107, -4.00166}, {-5.96368, 3.07422, -4.00166}, {-2.03204, -4.75049, -4.00166}, {-6.49323, 4.29932, -4.00166}, {0.419495, 6.87207, -4.00166}, {6.57361, 6.87793, -4.00166}, {2.74603, -0.28418, -4.00166}, {1.81354, 6.84766, -4.00166}, {4.47552, 3.04102, -4.00166}, {6.67725, 0.126465, -4.00166}, {2.2608, -1.54248, -4.00166}, {6.47711, -4.63086, -4.00166}, {-2.04681, 3.20068, -4.00166}, {-4.04529, -0.168945, -4.00166}, {-6.69989, 5.74365, -0.701656}, {0.735291, 6.85596, -0.701656}, {6.70221, 6.96436, -0.701656}, {6.59015, 4.32178, -0.701656}, {2.67224, -0.304688, -0.701656}, {2.07257, 6.69678, -0.701656}, {-1.91553, -0.313477, -0.701656}, {-4.02631, 1.41113, -0.701656}, {-1.91351, 3.11035, -0.701656}, {5.39777, 3.05811, -0.701656}, {6.4245, -4.60742, -0.701656}, {2.26013, -1.58057, -0.701656}, {-6.18982, 3.00879, -0.701656}, {-2.02338, -1.47119, -0.701656}, {-6.38678, -4.65137, -0.701656}, {0.071167, -6.7749, -0.701656}}; }; class Land_MBG_Killhouse_1 { table = "CivillianUpperClass"; positions[] = {{-4.17004, -1.09668, -2.05}, {4.19324, -4.02637, -2.05}, {-0.383362, -4.43408, -2.05}, {1.14697, 0.348145, -2.05}, {4.02777, 5.87598, -2.05}, {-0.991699, 0.648438, -2.05}, {-4.2204, 6.25732, -2.05}, {-4.13464, 0.587891, -2.05}, {-3.68719, -3.73975, 1.25}, {1.14874, -3.05127, 1.25}, {4.18158, 4.25928, 1.25}, {-4.16901, 5.96533, 1.25}, {-1.44611, 0.782227, 1.25}, {4.15564, -0.354492, 1.25}, {0.109924, 4.70313, 1.25}}; }; class Land_MBG_Killhouse_2 { table = "CivillianUpperClass"; positions[] = {{-2.0061, 5.67188, -2.8}, {7.06549, 5.7334, -2.8}, {-3.68616, 5.4624, -2.8}, {-7.18481, 5.40234, -2.8}, {-7.05615, -1.6709, -2.8}, {-3.49799, 1.45117, -2.8}, {-7.13995, -2.79932, -2.8}, {-6.13831, -5.91699, -2.8}, {-3.64081, -3.10791, -2.8}, {-1.87201, 0.380371, -2.8}, {7.00153, -5.65088, -2.8}, {1.32349, -5.82227, -2.8}, {4.65588, -1.69873, -2.8}, {7.04889, 3.10254, 0.52}, {4.84424, -1.42188, 0.5}, {-2.00452, -1.17725, 0.5}, {-3.91364, 5.26465, 0.5}, {-6.70752, -0.575195, 0.5}, {-6.7699, -5.69092, 0.5}, {6.87732, -2.75977, 0.5}, {3.37006, -5.72119, 0.5}, {5.97034, 5.60352, 3.8}, {5.67291, -4.07324, 3.8}, {1.18573, 4.70996, 3.8}, {-6.23248, -4.6665, 3.8}, {-4.84888, 1.38037, 3.8}, {-0.568848, -0.658203, 3.8}}; }; class Land_MBG_ATC_Tower { table = "Military"; positions[] = {{4.0083, -2.30273, -16.4117}, {-0.486694, 2.16211, -16.4117}, {-0.523438, -0.630859, -16.3117}, {-0.882446, -2.90137, 4.58827}, {-0.501831, -3.14795, 7.58827}, {-1.24036, 3.16699, 7.58827}, {-4.18799, 0.677734, 7.58827}, {0.218018, 0.464355, 7.58827}, {3.89063, -0.138184, 7.58827}, {2.04187, -2.99121, 4.58827}}; }; class Land_MBG_Outdoortable { table = "Military"; positions[] = {{0.0244141, 0.742188, 0.492}, {0.111206, -0.819824, 0.492}}; }; class land_mbg_brickhouse_01 { table = "Military"; positions[] = {{4.73401, 3.39453, -0.0529442}, {0.741821, -0.174805, -0.0529442}, {-6.19287, -1.85449, -0.0529442}, {-4.23364, 2.69043, -0.0529442}, {-2.39636, -2.01758, -3.35796}, {4.04553, 3.69922, -3.35796}, {1.81433, -0.224609, -3.35796}, {-5.45508, 2.58447, -3.35796}}; }; class land_mbg_brickhouse_03 { table = "Military"; positions[] = {{4.73438, 3.39453, -0.0529442}, {0.742188, -0.174805, -0.0529442}, {-6.1925, -1.85449, -0.0529442}, {-4.23328, 2.69043, -0.0529442}, {-2.396, -2.01758, -3.35796}, {4.0459, 3.69922, -3.35796}, {1.8147, -0.224609, -3.35796}, {-5.45471, 2.58447, -3.35796}}; }; class land_mbg_brickhouse_02 { table = "Military"; positions[] = {{4.73438, 3.39453, -0.0529442}, {0.742188, -0.174805, -0.0529442}, {-6.1925, -1.85449, -0.0529442}, {-4.23328, 2.69043, -0.0529442}, {-2.396, -2.01758, -3.35796}, {4.0459, 3.69922, -3.35796}, {1.8147, -0.224609, -3.35796}, {-5.45471, 2.58447, -3.35796}}; }; class Land_MBG_HeavyShelter { table = "Military"; positions[] = {{-2.70825, -0.44043, -0.873148}, {-1.29395, 2.37451, -0.873148}, {1.91113, 1.10547, -0.873148}, {-0.184082, -2.65527, -0.873148}, {-0.305176, 0.106445, -0.873148}, {2.21252, -1.15186, -0.873148}}; }; class Land_MBG_ATC_Base { table = "Military"; positions[] = {{-10.213, -6.27734, -1.22019}, {-10.9374, -2.23535, -1.22019}, {-10.5566, 6.63574, -1.22019}, {-9.91248, 2.44092, -1.22019}, {-1.69043, 6.80762, -1.22019}, {-7.15869, 1.35449, -1.22019}, {10.399, 6.65723, -1.22019}, {6.85547, 0.789063, -1.22019}, {2.3606, 5.96924, -1.22019}, {3.24805, 2.0415, -1.22019}, {5.99451, -6.07617, -1.22019}, {-3.31604, -2.78955, -1.22019}, {6.74146, -2.40381, -1.22019}}; }; class land_mbg_apartments_big_04 { table = "Military"; positions[] = {{1.00439, 1.79102, -7.46762}, {-0.00732422, -5.55225, -3.40362}, {-9.66907, -2.85986, -3.20042}, {-3.60315, -3.24121, -3.20042}, {-10.2386, 0.511719, -3.20042}, {-3.01208, 4.56543, -3.20042}, {-3.52759, -0.0800781, -3.20042}, {-6.61975, 5.9082, -3.20042}, {3.2655, -2.76416, -3.20042}, {9.89087, -5.13135, -3.20042}, {10.0837, -0.0878906, -3.20042}, {6.29907, 2.72852, -3.20042}, {3.55957, 0.0673828, -3.20042}, {2.8396, 5.80273, -3.20042}, {5.77124, 5.57959, -0.152419}, {10.2281, 0.508301, -0.152419}, {3.64246, -0.0454102, -0.152419}, {5.8092, 4.28369, -0.152419}, {-0.0249023, 5.34912, -0.355479}, {-3.53674, 0.595215, -0.152419}, {-8.92432, 0.67334, -0.152419}, {-2.59509, 5.97949, -0.152419}, {-9.69714, -4.896, -0.152419}, {-5.12329, -3.56104, -0.152419}, {10.6615, -4.9126, -0.152419}, {3.41785, -2.20703, -0.152419}, {0.397461, -5.53662, 2.69238}, {-0.0512695, 4.88086, 2.69238}, {9.44214, -2.47803, 2.89558}, {5.61487, -5.4541, 2.89558}, {6.86694, 1.68896, 2.89558}, {3.58936, -0.330078, 2.89558}, {10.632, 3.94727, 2.89558}, {8.74768, 5.91797, 2.89558}, {-10.5049, 6.021, 2.89558}, {-9.71973, 1.04736, 2.89558}, {-3.89282, 4.55029, 2.89558}, {-3.44214, 0.135742, 2.89558}, {-9.1864, -2.44385, 2.89558}, {-3.84937, -2.67969, 2.89558}, {0.636475, 5.76904, 5.94358}, {4.24304, 2.396, 5.94358}, {9.52209, -4.57959, 5.94358}, {-1.59644, -4.25781, 5.94358}, {-6.62329, 3.22803, 5.94358}, {8.63867, 1.28564, 5.94358}, {3.55286, -3.21875, 5.94358}, {-8.54382, -3.89551, 5.94358}}; }; class Land_MBG_Shoothouse_1 { table = "Military"; positions[] = {{-6.75085, 10.0161, -1}, {-8.54895, -1.04541, -1}, {-8.39514, -3.93701, -1}, {-6.81458, -12.6313, -1}, {-4.25049, -12.0908, -1}, {-4.27515, 9.99268, -1}, {2.47656, 10.2256, -1}, {2.72852, -0.59082, -1}, {-0.0582275, 3.81348, -1}, {6.80347, 3.99072, -1}, {7.69995, 9.95996, -1}, {6.57764, -1.35205, -1}, {5.78247, -5.87012, -1}, {5.08337, -12.2808, -1}, {1.09033, -12.1162, -1}, {2.41663, -4.34082, -1}, {-3.85132, -0.160645, -1}, {4.59802, -8.4292, -1}}; }; class Land_aif_strazni_vez { table = "Military"; positions[] = {{2.03162, -1.82373, -1.52143}, {1.70081, 1.76807, 1.15553}, {-2.44849, 1.68555, 1.34483}, {0.254517, -1.54053, 1.36324}, {-2.32922, -1.93311, 2.18169}}; }; class Land_aif_hlaska { table = "Military"; positions[] = {{-1.00256, 0.885254, 3.76948}, {0.658936, 1.05762, 3.76948}, {1.0304, -0.385742, 3.76948}}; }; class land_p1_v1 { table = "CivillianLowerClass"; positions[] = {{-9.48145, 0.251953, 15.7814},{0.390625, 1.25781, 15.7191},{15.5005, 1.01953, 15.7191},{21.3237, 1.90137, 15.7191},{8.04443, 0.874023, 15.7191}}; }; class land_p1_v2 { table = "CivillianLowerClass"; positions[] = {{13.4614, -0.0595703, 15.8593},{1.31055, 0.222656, 15.8421},{-9.30908, 0.395508, 15.8421},{-22.5, 0.293945, 15.8421}}; }; class land_panelova2 { table = "Industrial"; positions[] = {{-6.35107, 0.430664, 0.5737},{-6.94727, 4.40137, 0.573704},{-3.82031, 6.3252, 0.573708},{8.93311, 7.03906, 5.67995},{9.54736, 0.0117188, 5.67995},{9.4751, -6.79688, 5.67995},{4.10596, -8.95605, 5.67995},{0.784668, 0.615234, 5.67995}}; }; class land_panelova3 { table = "CivillianUpperClass"; positions[] = {{-2.02393, -4.05664, -2.99467},{1.93408, 2.16602, -3.00268},{5.26465, 1.64941, 0.0510063},{5.92432, -2.23242, 0.0510063},{1.86133, -4.71875, 0.0510063},{0.651855, 0.65918, 0.0510063}}; }; class land_part1 { table = "Factories"; positions[] = {{4.9751, 1.4082, -9.1134},{-2.62598, 6.85938, -9.1134},{-3.95654, 0.295898, -9.1134},{0.0849609, 1.74512, -8.23541},{2.55811, -3.95996, -8.23301},{0.67627, -6.23047, -9.26768},{1.84277, 3.89648, -4.40201},{0.464355, 1.73926, -4.402},{-3.25732, 3.24512, -4.402},{4.19775, 6.86621, 1.93876},{4.68311, 1.04492, 1.93857},{1.90576, -2.84375, 1.93798},{-3.38428, -3.04883, 1.93808},{-4.19727, 5.19922, 1.93821},{4.229, 6.31934, 6.62016},{-0.125977, 6.64355, 6.59703},{5.11279, -1.55957, 6.60015},{-0.223145, -1.92969, 6.57503}}; }; class land_part2 { table = "Factories"; positions[] = {{-2.98682, 4.24805, -9.86775},{-2.99121, -4.69824, -9.86775},{1.0835, -4.15332, -9.86775},{0.568848, 1.96582, -9.86775},{4.81738, 0.119141, -9.86775},{-4.07275, -0.433594, -9.86775}}; }; class land_part3 { table = "Industrial"; positions[] = {{4.30029, 3.23242, -9.7823},{-3.11182, -2.9668, -9.7823},{-0.620117, -6.25684, -9.7823},{-2.61475, 3.61328, -9.12671},{4.63379, -3.71582, -9.27485}}; }; class land_plynom { table = "Tourist"; positions[] = {{-0.615723, -0.589844, -12.5784},{0.469727, -1.18164, -2.60305},{-1.83984, -0.77832, -2.60305},{0.26123, 0.941406, -2.60305}}; }; class land_pozorovatelna { table = "Military"; positions[] = {{-2.54639, 2.11426, -2.49767},{0.805176, 2.80859, -2.49767},{3.35986, 0.398438, -2.49767},{1.35449, -3.07129, -2.49767},{-1.16162, -2.39453, 7.54509},{-1.94922, 1.42578, 7.54509},{1.96289, 1.92969, 7.54508},{1.56543, -1.3291, 7.54509}}; }; class land_provoz1 { table = "CivillianLowerClass"; positions[] = {{4.17432, 3.20996, -2.30756},{0.660156, 3.69727, -2.30756},{-2.80078, 3.64648, -2.30756},{-1.63428, 1.08496, -2.30756},{-3.64258, -3.09863, -2.30756},{2.36084, -3.6875, -2.30756},{1.75781, -1.48926, -2.30756},{-3.27539, -0.850586, -2.30756}}; }; class land_provoz2 { table = "CivillianLowerClass"; positions[] = {{-2.72998, -1.48828, -2.51849},{-6.00488, 2.05078, -2.51849},{-1.47021, 2.41113, -2.51849},{3.66016, 2.57715, -2.51849},{6.47559, -1.25293, -2.51849},{1.4043, -0.520508, -2.51849}}; }; class Land_psi_bouda { table = "CivillianLowerClass"; positions[] = {{1.50391, -0.165039, -0.510769}}; }; class Land_Rail_Semafor { table = "Industrial"; positions[] = {{-1.13672, -2.11914, -3.09424}}; }; class Land_Rail_Zavora { table = "Industrial"; positions[] = {{0.853516, 1.24902, -3.00996}}; }; class Land_repair_center { table = "Industrial"; positions[] = {{-2.56934, 2.8252, -1.52847},{-2.44043, -0.498047, -1.52847},{0.723145, 6.05859, -2.51424},{1.18408, -3.59863, -2.48021},{-0.379395, -3.48535, -2.48787}}; }; class land_rozvodna { table = "Industrial"; positions[] = {{-7.11914, -1.02344, -4.70046},{-7.13574, -1.50488, -0.369423},{-6.91504, -4.40332, -4.69898}}; }; class Land_ruin_01 { table = "CivillianLowerClass"; positions[] = {{-4.22266, -2.38281, -1.85783},{-4.65381, 1.90918, -1.77736},{0.255859, 1.87793, -1.87815},{4.49072, 0.31543, -1.89494}}; }; class Land_sara_domek_ruina { table = "CivillianLowerClass"; positions[] = {{3.23682, -3.85547, -1.6696},{-2.26611, -3.51855, -1.69232},{5.66895, 1.35547, -1.68663}}; }; class land_seb_bouda1 { table = "Medical"; positions[] = {{-1.98633, 1.73242, -3.28989},{-2.11279, -0.297852, -3.28989},{2.53271, 1.93262, -3.28989},{2.67822, 2.23145, -1.23185},{-3.06787, 0.942383, 0.572216},{2.46191, -2.31348, 1.13067},{-0.516602, 2.16602, 0.571716}}; }; class land_seb_bouda3 { table = "CivillianLowerClass"; positions[] = {{-3.16992, -3.75879, -1.72879},{-3.06592, -0.341797, -1.72878},{-3.12793, 3.84668, -1.72879},{0.696777, 4.05957, -1.72852},{2.52881, 1.74023, -1.72871},{2.53076, -2.77637, -1.72871}}; }; class Land_seb_bouda_plech { table = "VehicleService"; positions[] = {{0.272949, 1.15723, -1.14411},{0.612793, -1.32129, -1.13259}}; }; class land_seb_main_fac { table = "Industrial"; positions[] = {{20.2397, -6.28809, -6.0019},{20.1323, -0.277344, -6.0019},{14.7222, -0.286133, -6.00189},{8.71826, -3.16699, -6.0019},{2.87354, -6.94336, -6.0019},{3.64453, 15.7803, 8.63872},{8.84375, 11.8525, 8.63873},{20.7271, 13.3164, 8.63872},{22.0767, 5.18555, 8.63872},{12.668, 4.78711, 8.63873},{3.85889, 3.99121, 8.63872},{9.89307, 16.2549, 4.16873},{14.1387, 17.6328, 4.16873},{20.1953, 21.2832, 4.16873},{-2.13281, 4.35645, 4.16873},{-7.08203, 3.02637, 4.16873},{-5.4502, 11.6123, 4.16873},{-26.3335, -2.50879, 5.78507},{-21.8853, -21.4766, 6.62068},{-11.1016, -7.77637, 5.5584}}; }; class land_seb_mine_main_opt { table = "Industrial"; positions[] = {{0.200195, -2.64844, -5.11368},{-0.065918, 1.44141, -5.09117},{-6.45654, 5.61523, -4.79106},{-2.86084, 2.72559, -0.995052},{-0.0131836, 4.7207, -0.991344},{-3.49854, 5.5791, -0.989746},{-0.959961, 5.41699, -5.06926},{6.56592, 1.58105, -4.79755},{4.11816, 3.27734, 5.05729},{-4.6626, 3.16699, 7.8684},{-5.74951, -2.37109, 7.86839},{-0.536133, -3.12012, 7.8684}}; }; class land_seb_mine_maringotka { table = "Industrial"; positions[] = {{0.23291, 0.0742188, -0.612675},{-0.94043, -1.0166, -0.612675},{-1.80273, 1.60645, -1.80481}}; }; class land_seb_mine_near { table = "Industrial"; positions[] = {{12.7983, -7.2373, -11.7431},{11.0381, -5.07715, -8.8979},{5.08057, -7.26758, -8.8979},{8.21387, -7.15723, -8.8979},{12.3599, 5.94336, -11.8273},{1.08984, 5.6748, -11.8485}}; }; class land_seb_mine_near_bordel { table = "Industrial"; positions[] = {{-2.35742, 1.12402, -1.5913},{2.18848, 1.50977, -1.58464}}; }; class land_seb_nadrze { table = "Industrial"; positions[] = {{-1.71924, 7.23828, -1.99941},{0.884766, 7.42383, -1.99976},{1.90088, 2.84473, -1.98533},{2.104, -2.93262, -1.96194},{-1.94531, -7.37988, -1.96484}}; }; class Land_vys_budova_p1 { table = "Military"; positions[] = {{4.67285, -9.89844, -2.95578},{2.59277, -11.4277, -2.9579},{1.34326, -4.62988, -2.95771},{-1.03125, -10.8135, -2.96087},{0.00537109, 3.47266, -2.96087},{3.87695, -1.25293, -2.96087},{2.09131, 9.34766, -2.96236},{0.953125, 6.55859, -2.96087},{-5.84521, 9.24023, -2.96087},{-5.76367, 2.80469, -2.96087},{-6.62109, -2.30859, -2.97414},{-2.52734, -6.43262, -2.96087},{-5.80176, -11.4531, -2.96087},{-3.37793, -3.25098, -2.96087},{-1.10059, 4.71582, -0.407818},{-1.08496, -1.66895, -0.407818},{-0.66748, 4.49902, 2.12336},{1.89697, -1.58594, 2.12336},{0.874512, -0.941406, 5.54735},{-3.29443, -1.69629, 5.59869},{2.32715, -8.84766, 5.59121},{3.23828, 1.57617, 5.59121},{-0.154297, 8.67871, 5.59121},{-5.93896, 2.6543, 5.59121},{-6.43848, -11.2549, 5.59121},{-2.58008, 3.24707, 5.59869}}; }; class land_Mi8_Crashed { table = "Tourist"; positions[] = {{1.96582, -5.91016, -1.93351},{2.27588, -3.44238, -1.94127},{-0.348633, -4.37793, -1.73772},{-2.43164, -3.96484, -1.96016}}; }; //Tanoa /////////////////////////////////////////////////////////////////////////// // Tourist - Churches, Temples /////////////////////////////////////////////////////////////////////////// class Land_Temple_Native_01_F { table = "Tourist"; positions[] = {{2.86328, 3.62207, -5.94443},{-2.13916, 3.75977, -5.94443},{0.0214844, 2.21387, -5.94443}}; }; class Land_BasaltWall_01_gate_F { table = "Tourist"; positions[] = {{0.0439453, 0.864258, -0.817093}}; }; class Land_Cathedral_01_F { table = "Tourist"; positions[] = {{7.21387, -13.8271, -8.8191},{0.727295, -13.9795, -7.82105},{-7.71265, -13.25, -8.8191},{-12.6165, -13.6201, -10.1715},{-8.31592, -5.81348, -9.39412},{8.65625, -5.93066, -9.39412},{12.52, -14.5186, -10.1715}}; }; class Land_Church_01_F { table = "Tourist"; positions[] = {{7.84204, 8.19629, -9.98111},{7.97876, 4.67188, -9.98111},{8.10913, 0.875977, -9.98111},{-7.82324, -0.583984, -9.98111},{-7.87085, 2.66602, -9.98111},{-7.93921, 6.75977, -9.98111}}; }; class Land_Church_02_F { table = "Tourist"; positions[] = {{-1.57104, -16.291, -3.31618},{2.27466, -17.1553, -3.31618}}; }; class Land_Church_03_F { table = "Tourist"; positions[] = {{-2.0188, 8.6582, -6.7793}}; }; class Land_Hotel_02_F { table = "Tourist"; positions[] = {{-1.92993, -8.71289, -3.41328},{-1.68457, -5.88867, -3.41328},{-2.05542, -3.74316, -3.41328},{-0.919678, 2.72461, -3.41328},{-1.44141, 6.75586, -3.41328},{-2.28882, 10.0713, -3.41328},{-1.7937, 14.9482, -3.41328},{-0.670898, -1.53125, -3.41328},{3.26514, -1.31543, -3.41328},{7.61841, -0.356445, -3.41328},{5.31714, -0.30957, -3.41328},{7.62646, -1.7334, -3.41328},{2.55078, 1.68457, -3.41328},{-8.28198, 0.0371094, 0.0829258},{-5.4873, 0.396484, 0.0830498},{-8.25562, 1.77246, 0.0829353},{-6.80396, 2.12402, 0.0829277},{-2.97876, -1.2832, 0.0829277},{-0.0288086, -0.879883, 0.0829277},{2.29663, -0.895508, 0.201029},{-3.04395, 3.02441, 0.0829277},{0.036377, 2.55762, 0.0829277},{2.36206, 2.54102, 0.201008},{4.4043, 0.210938, 0.201008},{4.35107, 1.84961, 0.20101},{-6.39966, 1.38574, -3.41328},{-8.302, -0.541016, -3.41328},{-3.31665, -0.0693359, -3.41328},{6.95557, 1.69141, -3.41328},{0.772217, 0.842773, 0.0829296},{7.59888, 3.51172, -3.41328}}; }; class Land_Mausoleum_01_F { table = "Tourist"; positions[] = {{-0.353271, -0.273438, -1.9543},{0.789551, 1.28613, -1.9543}}; }; /////////////////////////////////////////////////////////////////////////// // Military /////////////////////////////////////////////////////////////////////////// class Land_Airport_01_controlTower_F { table = "Military"; positions[] = {{-1.33838, -2.1748, 4.21085},{2.74023, -2.18848, 4.21085},{3.20215, 3.36816, 4.21085},{0.688477, -0.482422, 7.91645},{-1.7041, 2.05859, 7.91645},{0.241699, 1.05566, 4.65807}}; }; class Land_Airport_01_terminal_F { table = "Military"; positions[] = {{0.827881, -1.37305, -4.16959},{-7.77563, 6.21191, -4.02355},{-5.3645, 7.58496, -4.02355},{9.20093, 8.3584, -4.05115},{6.49023, 6.29004, -4.05115},{-2.06299, -3.88965, -4.16956},{8.37256, -9.38281, -3.60985},{5.72144, -7.32324, -4.05115},{-12.0342, 0.892578, -4.02597},{-15.1523, 2.55957, -4.02597}}; }; class Land_Airport_02_controlTower_F { table = "Military"; positions[] = {{-0.812744, 0.282227, -10.661},{0.941406, -2.72852, -7.56659},{1.30371, -2.91895, -4.33187},{0.729492, -2.33203, -1.09817},{-3.49194, 1.33203, 2.13546},{-3.42407, 8.52734, 2.13546},{3.66113, 7.77637, 2.13546},{3.46069, 1.49121, 2.13546},{-1.35278, 5.05273, 2.13546},{1.03467, 4.76367, 2.13546}}; }; class Land_Barracks_01_camo_F { table = "Military"; positions[] = {{-2.03223, -4.17578, 0.518449},{-12.3308, 3.25293, 0.518449},{-8.06128, -2.79688, 0.518449},{-13.0491, -3.41699, 0.518449},{-5.89697, 2.90039, 0.518449},{-0.161133, 3.46387, 0.518449},{6.76074, -3.37207, 0.518448},{3.97217, -3.37793, 0.518448},{3.79028, 3.08203, 0.518449},{13.0432, 2.82031, 0.518449},{10.2876, -2.74316, 0.518448},{-2.78931, -5.56543, 3.85143},{-12.4595, 3.32813, 3.85143},{-9.40015, -2.75, 3.85143},{-3.89746, 2.83496, 3.85143},{6.83984, -3.45605, 3.85143},{3.69678, 3.21973, 3.85143},{13.5459, 3.05859, 3.85143},{10.2222, -2.88086, 3.85143},{15.8203, 4.68457, 3.85143},{5.03662, 5.58203, 3.85143},{-11.1951, 5.7002, 3.85143}}; }; class Land_Barracks_01_grey_F { table = "Military"; positions[] = {{-4.93823, -3.14258, 0.579082},{-7.1687, -0.0634766, 0.579084},{0.246094, 3.5625, 0.579081},{15.8589, 3.48145, 3.82728},{4.1709, 3.31836, 3.91306},{-4.14941, 2.08008, 0.579082},{-5.45679, 4.16797, 0.579081},{3.21436, 3.62891, 0.579081},{6.79688, 3.63184, 0.579083},{13.6021, 3.58887, 0.579082},{2.74634, -3.52246, 0.579081},{6.47388, -3.57324, 0.579081},{13.2324, -3.56543, 0.579082},{10.2068, -3.60938, 0.579092},{0.724121, -1.92578, 2.14746},{-11.688, -3.53027, 0.579081},{-8.72437, -3.49414, 0.579082},{-5.19409, -1.15625, 3.91299},{-2.52246, 4.02246, 3.91306},{-11.7957, 3.63379, 3.91306},{-8.79614, 3.57129, 3.91306},{0.246094, 3.5625, 3.91306},{-4.85718, 1.84082, 3.91306},{6.79688, 3.63184, 3.91306},{13.0173, 3.62207, 3.91306},{2.74634, -3.52246, 3.91306},{6.47388, -3.57324, 3.91306},{13.2324, -3.56543, 3.91306},{10.2068, -3.60938, 3.91306},{-11.688, -3.53027, 3.91306},{-8.72437, -3.49414, 3.91306},{-2.67603, -5.52637, 3.9129},{-5.47803, -5.47754, 3.91306},{-12.571, 5.66699, 3.82743},{1.52539, 5.85156, 3.82743},{13.0151, 5.56738, 3.82743},{8.60815, 5.64941, 3.82743},{-8.0498, -2.96875, 7.73989},{-7.94238, 4.33301, 7.53899},{-10.9417, 4.27246, 7.54615},{-11.0132, -2.84766, 7.75703},{-3.51318, -3.02734, 7.73164},{0.239258, 2.94727, 7.69844},{5.69629, -3.12012, 7.7184},{6.52026, 3.02539, 7.68936},{13.1848, -3.37891, 7.68175},{12.9956, 3.25977, 7.66242},{-9.55566, 3.30469, 0.579081},{-11.7957, 3.63379, 0.579083}}; }; class Land_Cargo_House_V4_F { table = "Military"; positions[] = {{-1.54419, 0.999023, -0.272255},{-1.50879, 3.05518, -0.136219},{1.49829, 3.27637, -0.136219}}; }; class Land_Cargo_HQ_V4_F { table = "Military"; positions[] = {{-2.38062, 2.84961, -3.28473},{3.62866, 5.22852, -3.16431},{6.25708, 3.00537, -3.28473},{4.15381, -4.32813, -3.28473},{-1.63599, 2.06934, -0.759884},{5.61597, 1.51514, -0.759884},{-1.58765, -3.61523, -0.759884}}; }; class Land_Cargo_Patrol_V4_F { table = "Military"; positions[] = {{1.19702, -1.0708, -0.55952},{-1.55225, -1.25684, -0.55952}}; }; class Land_Cargo_Tower_V4_F { table = "Military"; positions[] = {{1.24365, 2.92432, -8.27076},{-3.12207, -3.45801, -0.132563},{-4.18994, 2.93652, -0.132563},{4.13135, 4.40283, 2.46744},{-1.19702, -2.97461, 2.46744},{-4.38403, -5.64014, 2.58785},{-3.04907, 5.84717, 2.58785},{4.70801, -0.943848, 4.99228},{3.79785, 2.89355, 4.99228},{-2.58374, 4.81885, 4.99228},{-3.46924, -4.14063, 4.99228},{0.449951, 1.61523, 4.99228}}; }; /////////////////////////////////////////////////////////////////////////// // Medical /////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// // VehicleService - Garages /////////////////////////////////////////////////////////////////////////// class Land_FuelStation_01_workshop_F { table = "VehicleService"; positions[] = {{1.55859, 0.491211, -2.38167},{5.323, -0.123047, -2.38166},{3.38965, -3.31152, -2.38166},{-4.86279, 3.44043, -2.38166},{-0.757568, 2.62012, -2.38166},{-1.45166, -1.37207, -2.38166},{-0.297607, -4.38965, -2.38166},{-3.42407, -2.7959, -2.38166},{-4.43384, -1.31934, -2.38166}}; }; class Land_FuelStation_02_workshop_F { table = "VehicleService"; positions[] = {{4.32983, -1.37402, -1.28247},{0.798584, 0.898438, -1.2825},{0.798828, 3.30762, -1.28248},{3.5061, 10.5254, -1.5024},{-4.67676, 0.318359, -1.20392},{-2.73096, 7.27441, -1.2675},{3.92358, 6.36621, -1.2675}}; }; class Land_Warehouse_03_F { table = "VehicleService"; positions[] = {{-8.48145, -3.27783, -2.37297},{-8.30518, 2.33496, -2.37297},{4.01001, -0.54541, -2.37297},{0.600586, -3.29736, -2.37297},{-2.61084, 2.81201, -2.37297},{6.88647, 4.00146, 0.128591},{6.11084, 0.941895, 0.134463},{7.76172, -1.81592, 0.139763}}; }; class Land_GarageShelter_01_F { table = "VehicleService"; positions[] = {{2.66284, 0.1875, -1.26478},{-1.15308, -2.07129, -1.26478},{-3.00488, 2.24219, -1.26478}}; }; /////////////////////////////////////////////////////////////////////////// // Civillian Lower Class /////////////////////////////////////////////////////////////////////////// class Land_Addon_01_F { table = "CivillianLowerClass"; positions[] = {{-0.0771484, -3.42969, -1.18165},{-0.0510254, 3.45508, -1.18165}}; }; class Land_Addon_04_F { table = "CivillianLowerClass"; positions[] = {{5.11499, 3.44434, 0.313654},{5.3064, -1.28711, 0.313654},{1.43872, 4.01563, 0.313654},{-3.60425, 4.06055, 0.313654},{-5.37915, -1.30859, 0.315462},{-5.4126, -7.74414, 0.315462},{2.18799, -4.7334, 0.295511},{-2.14502, 0.327148, 0.313654},{-2.03418, -6.08789, 0.295511},{-1.64429, -3.04492, 0.295511}}; }; class Land_Shed_01_F { table = "CivillianLowerClass"; positions[] = {{-1.63525, 0.723633, -0.930923},{0.366943, 0.666992, -0.930905},{1.9231, 0.618164, -0.930935}}; }; class Land_Shed_02_F { table = "CivillianLowerClass"; positions[] = {{-0.999512, 0.856445, -0.853717},{1.07373, 1.06934, -0.853717}}; }; class Land_House_Native_02_F { table = "CivillianLowerClass"; positions[] = {{1.4668, 1.57227, -2.37363},{2.01392, -1.94727, -2.37363},{-3.0769, -2.16211, -2.37363},{-3.13428, 1.90625, -2.37363}}; }; class Land_House_Small_01_F { table = "CivillianLowerClass"; positions[] = {{-5.15918, 3.30469, -0.725801},{-2.37891, -3.66211, -0.725801},{-0.370605, 3.30078, -0.725801},{-5.71069, -1.92188, -0.725801},{-4.61841, -3.47949, -0.725801},{5.7312, 1.41113, -0.725801},{5.73682, 2.94531, -0.725801},{5.73633, -1.61523, -0.725798},{5.72656, -3.4043, -0.7258},{-0.0686035, 0.75293, -0.725799},{1.62427, 3.29199, -0.725801},{2.38892, 0.566406, -0.725801},{2.44507, -3.60059, -0.725801}}; }; class Land_House_Small_02_F { table = "CivillianLowerClass"; positions[] = {{0.186768, -3.98535, -0.74064},{-1.48145, -5.63574, -0.74064},{-3.90405, 2.8916, -0.740633},{0.19165, 1.88086, -0.740639},{-1.82813, -2.85156, -0.740639},{-3.19019, -1.54199, -0.74064},{-3.32153, -5.41504, -0.74064},{-3.89648, 5.4873, -0.740639},{-1.49097, 5.86426, -0.740638}}; }; class Land_House_Small_03_F { table = "CivillianLowerClass"; positions[] = {{-5.6853, 3.47363, -1.34902},{-4.21582, -1.17969, -1.32402},{-0.532227, 3.87305, -1.32402},{1.27075, -0.573242, -1.32402}}; }; class Land_House_Small_04_F { table = "CivillianLowerClass"; positions[] = {{2.62964, -1.5332, -0.817202},{-1.37061, -3.31543, -0.817202},{-0.413574, 3.04102, -0.817202},{1.30786, -7.03906, -0.87291},{-3.44702, 3.64258, -0.872911}}; }; class Land_House_Small_05_F { table = "CivillianLowerClass"; positions[] = {{-1.38037, 4.41016, -1.08628},{-0.400635, -0.0605469, -1.08628},{-0.890625, -3.07324, -1.08628}}; }; class Land_House_Small_06_F { table = "CivillianLowerClass"; positions[] = {{-3.41675, -3.75879, -1.00433},{-3.06567, 0.991211, -1.00433},{0.966064, -2.96387, -1.00433},{-3.22119, 3.95996, -1.00503}}; }; class Land_House_Native_01_F { table = "CivillianLowerClass"; positions[] = {{-2.04907, -1.64746, -3.13483},{-1.43799, 1.98047, -3.13483},{2.88135, 1.87695, -3.13483},{3.05176, -1.48438, -3.13483}}; }; class Land_PierWooden_01_hut_F { table = "CivillianLowerClass"; positions[] = {{1.13232, -0.893555, 18.7197}}; }; class Land_PierWooden_01_ladder_F { table = "CivillianLowerClass"; positions[] = {{0.233887, -0.708008, 19.827}}; }; class Land_PierWooden_01_dock_F { table = "CivillianLowerClass"; positions[] = {{-4.53687, 0.679688, 17.8678},{-0.218018, -5.85645, 17.8678},{4.63672, 3.60156, 17.8678}}; }; class Land_PierWooden_01_platform_F { table = "CivillianLowerClass"; positions[] = {{-1.22583, 1.11523, 19.5247},{1.12427, 1.14551, 19.5247}}; }; class Land_Shed_03_F { table = "CivillianLowerClass"; positions[] = {{2.09058, -0.371094, -0.713204},{-0.305664, 0.0419922, -0.713204}}; }; class Land_Shed_04_F { table = "CivillianLowerClass"; positions[] = {{0.278076, 0.768555, -0.726258}}; }; class Land_Shed_05_F { table = "CivillianLowerClass"; positions[] = {{-1.93994, -1.54297, -0.917485},{1.58032, -1.0498, -0.917485}}; }; class Land_Shed_07_F { table = "CivillianLowerClass"; positions[] = {{2.58154, -0.797852, -1.36388},{2.26782, 0.829102, -1.36387},{-3.31567, -0.990234, -1.36386},{-0.429688, -0.893555, -1.36388}}; }; class Land_Slum_01_F { table = "CivillianLowerClass"; positions[] = {{3.35571, 2.1416, 0.643513},{2.30029, -0.546875, 0.643514},{1.05811, -1.90234, 0.643514},{-0.150146, 2.13574, 0.643545},{-2.06763, 1.97656, 0.617534},{4.91821, 1.76465, 0.643515},{4.86938, -1.81445, 0.643514},{-0.591309, -0.00878906, 0.643521}}; }; class Land_Slum_02_F { table = "CivillianLowerClass"; positions[] = {{1.80273, -0.624023, 0.158215},{-0.717529, -2.38379, 0.158216},{2.12402, 3.88965, 0.158215},{2.09155, -3.78711, 0.158216},{1.72144, -1.96387, 0.158216},{-2.06787, 4.17871, 0.158215}}; }; class Land_Slum_03_F { table = "CivillianLowerClass"; positions[] = {{-2.12012, 7.30469, -0.674455},{-2.55933, 2.12598, -0.674454},{2.83594, 6.05469, -0.651794},{3.9458, 0.943359, -0.651794},{0.0112305, -1.2207, -0.651794},{1.64575, -3.14648, -0.651794}}; }; class Land_WaterTower_01_F { table = "CivillianLowerClass"; positions[] = {{-0.452148, 0.015625, 3.74843}}; }; /////////////////////////////////////////////////////////////////////////// // Civillian Upper Class /////////////////////////////////////////////////////////////////////////// class Land_Hotel_01_F { table = "CivillianUpperClass"; positions[] = {{-8.20288, 7.83105, -1.58711},{-2.1604, 7.38281, -1.58712},{3.8728, 7.81836, -1.58711},{6.44751, 4.7998, -1.58711},{6.44751, -1.2334, -1.58711},{-2.1604, -5.81641, -1.58711},{3.8728, -5.81641, -1.58711},{-7.53955, -4.56445, -1.58711},{-7.63403, 0.913086, 1.66289},{6.14624, 7.49121, 4.4886},{6.01196, 0.84668, 4.48859},{0.8479, -5.81641, 4.48865},{6.1189, -5.98535, 4.48865},{-7.40649, -5.82227, 4.4886},{-6.28833, 7.66504, 4.48861},{3.34326, 6.52637, 7.75042},{5.21191, 1.56738, 7.59465},{3.34326, -5, 7.7508},{-6.60034, -5.00488, 7.60001},{-6.61377, -0.413086, 7.5989},{-6.64063, 6.62695, 7.5967},{-2.01831, 6.44531, 7.97652},{-4.02124, 3.88086, -5.31221},{1.14209, 5.27441, -5.31221},{-0.478271, -1.46094, -5.31221},{2.69238, 0.512695, -5.31221}}; }; class Land_House_Big_02_F { table = "CivillianUpperClass"; positions[] = {{7.26123, -6.65332, -1.4679},{8.78711, -3.17871, -1.46789},{7.34692, 0.493164, -1.46789},{-5.19165, -0.584961, -1.4679},{-7.11353, 3.46484, -1.4679},{-9.80347, 2.98047, -1.46789},{-3.50171, 6.34277, -1.46789},{4.75928, 3.41895, -1.4679},{0.365479, 1.74121, -1.4679},{0.321533, 8.83398, -1.46789},{-3.83179, 8.92773, -1.46789},{2.44434, 6.33105, -1.46789},{6.07397, 5.41016, -1.46789},{4.53271, 8.58008, -1.46789}}; }; class Land_House_Big_03_F { table = "CivillianUpperClass"; positions[] = {{10.6619, 5.75977, -3.22996},{9.25781, 3.40625, -2.99144},{1.88281, 0.274414, -3.19996},{7.68018, 0.445313, -0.115536},{5.85278, -2.44727, -0.115538},{5.896, 2.80762, -0.115538},{10.7966, 5.81641, -0.136646},{10.7966, -5.22168, -0.136646},{-12.5356, 6.02734, -0.136646},{-13.6335, -5.51855, -0.145912},{4.46899, 3.20898, -3.19996},{9.25879, 3.4082, -3.19996},{-7.49341, -4.64551, -0.136646},{3.17041, 4.95996, -0.136646},{-7.65063, 5.22656, -0.136646},{3.40796, -4.60645, -0.136648},{7.61133, -2.03027, -0.115538},{7.59229, 2.57031, -0.115536},{9.81934, 1.22559, -3.19996},{10.2896, 0.297852, -0.136644},{6.10205, 5.60742, -3.22997},{8.23096, -2.7334, -3.19996}}; }; class Land_House_Big_01_F { table = "CivillianUpperClass"; positions[] = {{0.581055, 1.07715, -1.03786},{3.76978, 1.45898, -1.03786},{7.10107, 3.50879, -1.03786},{5.354, -0.949219, -1.03786},{7.10107, 0.709961, -1.03786},{2.60303, 5.45996, -1.03786},{1.08838, -1.04297, -1.03786},{-6.92017, -2.47754, -1.03786},{3.1604, 3.23047, -1.03786},{-1.71655, -3.68359, -1.03786},{1.73779, -2.62012, -1.03786},{7.14502, -3.83887, -1.03786},{3.41797, -3.76563, -1.03786}}; }; class Land_House_Big_04_F { table = "CivillianUpperClass"; positions[] = {{-1.37891, -3.32227, -2.97358},{-3.73853, -4.79199, -2.97358},{-5.98267, -3.32715, -2.97359},{4.17285, -4.86523, -2.97358},{4.1709, -1.88672, -2.97358},{10.072, -7.38672, 0.253304},{1.69922, -7.38672, 0.253298},{-6.56543, -7.38672, 0.253365},{-2.49268, 6.82422, 0.269667},{-8.40747, -3.21582, 0.252121},{-7.91455, 5.04785, 0.255436},{4.07715, 6.31934, 0.263828},{-0.817871, 1.19824, 0.276417},{-5.89087, 2.65234, 0.276417},{-3.69604, 4.36133, 0.276417},{2.28882, 4.45898, 0.276417},{2.63916, 1.19238, 0.276417},{4.17358, 3.16309, 0.276417},{-8.5835, -2.4043, -2.97532},{-8.77393, -7.35254, -2.97424},{-8.0625, 1.89063, -2.97626},{-8.55005, 6.73438, -2.97482},{1.52148, -6.74219, -2.97358},{0.0705566, 6.78711, -2.97553}}; }; class Land_House_Big_05_F { table = "CivillianUpperClass"; positions[] = {{-2.42017, -4.77539, -1.51147},{4.53735, -5.0459, -1.11731},{-8.91455, -4.73145, -1.51147},{-9.14844, 5.57715, -1.51147},{-2.42065, 5.48828, -1.51147},{4.50073, 5.00781, -1.11731}}; }; class Land_School_01_F { table = "CivillianUpperClass"; positions[] = {{-12.2412, -1.23535, -1.27842},{-12.1011, 2.86914, -1.27842},{-6.37842, -1.32617, -1.27842},{-2.88672, -1.31543, -1.27842},{0.71582, 0.556641, -1.27842},{11.927, 2.93066, -1.27842},{7.01636, -0.12793, -1.27842},{13.5767, -1.79297, -1.27842}}; }; class Land_aif_hotel { table = "CivillianUpperClass"; positions[] = {{-18.3599, -18.0991, -7.74816}, {-11.62, -17.4209, -7.74816}, {-11.4398, -5.12646, -7.74816}, {-18.6073, 16.6533, -7.74816}, {0.0179443, 17.9321, -7.74816}, {-6.92065, 0.458496, -7.74816}, {-4.12988, 8.30273, -7.74816}, {0.411743, 10.5889, -7.74816}, {2.43176, 17.7212, -7.74816}, {17.8632, 18.7539, -7.74816}, {18.457, -17.0864, -7.74816}, {9.63696, 11.3052, -7.74816}, {10.6833, -1.73877, -7.74816}, {11.4556, -17.2886, -7.74816}, {-1.55603, -8.28564, -7.74816}, {9.42737, -18.48, -7.74816}, {-7.68372, -18.335, -7.74816}, {-1.57239, -14.0361, -7.74816}, {17.6108, -8.85303, -7.74814}, {-4.5426, -8.33398, -7.74816}, {-8.99768, -2.46533, -7.74816}, {-5.41223, -2.41504, -7.74816}, {5.68066, -2.79785, -7.757}, {-2.26355, -5.97998, -7.74816}, {5.97742, -4.16064, -5.8735}, {0.334106, 0.177246, -4.26087}, {-18.2471, 8.88623, -4.26087}, {-18.1598, 18.23, -4.26087}, {-2.79883, 20.5171, -4.26087}, {-18.0393, 20.8374, -4.26087}, {-15.5654, 11.457, -4.26087}, {-2.54492, 18.2842, -4.26087}, {-5.56982, 11.4468, -4.26087}, {-4.12695, -0.452637, -4.26087}, {6.0752, 18.0532, -4.26087}, {3.72229, 11.5576, -4.26087}, {9.0481, 18.6572, -4.26087}, {11.2123, 18.7324, -4.26087}, {18.8008, 14.6274, -4.26087}, {20.4934, 17.1367, -4.26087}, {20.4431, 4.89258, -4.26087}, {12.245, 4.11572, -4.26087}, {18.5348, 4.87988, -4.26087}, {11.8751, -5.89795, -4.26087}, {18.6119, 0.527344, -4.26087}, {17.9233, -11.4443, -4.26087}, {15.3624, -18.6147, -4.26087}, {17.1495, -20.4697, -4.26087}, {5.4679, -20.6968, -4.26087}, {2.78284, -11.9316, -4.26087}, {6.35986, -18.5068, -4.26087}, {-6.23645, -18.0957, -4.26087}, {-0.586426, -17.0601, -4.26087}, {-4.54663, -12.0146, -4.26087}, {-8.76685, -18.5508, -4.26087}, {-17.396, -17.3169, -4.26087}, {-11.1172, -14.4316, -4.26087}, {-15.2999, -11.0405, -4.26087}, {-20.6085, -16.7593, -4.26087}, {-20.6918, -5.08154, -4.26087}, {-11.3848, -3.11279, -4.26087}, {-18.1843, -7.08301, -4.26087}, {-17.9551, -0.537109, -4.26087}, {-11.7842, 6.02344, -4.26087}, {-18.1097, 5.04346, -4.26087}, {6.06409, -4.34912, -2.40524}, {0.411133, 0.444824, -0.760501}, {-8.90015, -18.3921, -0.760501}, {-11.5056, -17.9824, -0.760501}, {-18.3748, -16.1694, -0.760501}, {-20.3065, -16.7012, -0.760873}, {-20.6073, -5.30762, -0.760873}, {-11.4701, -2.66406, -0.760501}, {-18.6073, -6.8877, -0.760501}, {-3.87561, -0.195313, -0.760501}, {-18.1101, 6.18115, -0.760501}, {-11.3542, 3.69287, -0.760501}, {-16.4008, -0.789551, -0.760501}, {-18.6448, 8.96191, -0.760501}, {-17.4473, 11.1597, -0.760501}, {-17.9413, 17.8452, -0.760501}, {-11.0946, 14.8506, -0.760501}, {-16.4137, 20.1777, -0.760873}, {-4.48779, 20.4653, -0.760873}, {-2.60181, 18.0146, -0.760501}, {-4.94275, 11.6343, -0.760501}, {-0.221924, 14.5264, -0.760501}, {5.85046, 11.6719, -0.760501}, {6.13745, 17.8545, -0.760501}, {9.0647, 18.5137, -0.760501}, {12.0256, 17.1807, -0.760501}, {18.3619, 16.5308, -0.760501}, {15.0634, 11.4102, -0.760501}, {20.4622, 16.9658, -0.760873}, {20.2803, 4.4292, -0.760873}, {18.0638, -6.09326, -0.760501}, {15.8817, 0.850586, -0.760501}, {11.3638, -5.0293, -0.760501}, {18.1345, -9.0708, -0.760501}, {15.4043, -11.3369, -0.760501}, {18.335, -18.1909, -0.760501}, {15.4275, -20.2988, -0.760873}, {4.6886, -20.4644, -0.760873}, {0.00598145, -18.1724, -0.760501}, {-6.29065, -11.6494, -0.760501}, {-6.4967, -17.0625, -0.760501}, {6.5592, -2.09619, 1.1137}, {-2.51868, 0.114258, 2.73938}, {-4.01282, 1.07715, 2.73938}, {-18.3441, 8.84912, 2.73938}, {-17.9507, 11.5913, 2.73938}, {-15.4954, 18.2681, 2.73938}, {-15.2125, 20.4375, 2.73913}, {-4.7749, 20.251, 2.73913}, {-2.80933, 11.9868, 2.73938}, {-2.45044, 18.2939, 2.73938}, {-9.82263, 14.8872, 2.73938}, {5.86218, 17.7197, 2.73938}, {3.90906, 11.3198, 2.73938}, {-0.505737, 15.2656, 2.73938}, {9.03638, 18.4263, 2.73938}, {11.7268, 17.9048, 2.73938}, {18.443, 15.3691, 2.73938}, {20.4957, 14.5278, 2.73913}, {20.0801, 4.76904, 2.73913}, {18.2336, 2.43896, 2.73938}, {11.7889, 5.90723, 2.73938}, {11.947, -0.542969, 2.73938}, {17.8619, -6.40186, 2.73938}, {17.6119, -8.88525, 2.73938}, {17.2129, -12.3389, 2.73938}, {11.8239, -17.2773, 2.73938}, {14.9662, -20.6899, 2.73913}, {5.83472, -20.8853, 2.73913}, {4.52234, -12.6313, 2.73938}, {6.71826, -18.2056, 2.73938}, {-5.41101, -17.687, 2.73938}, {-0.767822, -14.3145, 2.73938}, {-8.89331, -18.2729, 2.73938}, {-11.6691, -16.6924, 2.73938}, {-18.6548, -13.3325, 2.73938}, {-20.6188, -16.3472, 2.73913}, {-20.74, -5.80615, 2.73913}, {-12.6715, -3.66895, 2.73938}, {-17.9844, -8.47705, 2.73938}, {-17.4462, 0.294434, 2.73938}, {-12.5255, 5.03564, 2.73938}, {6.35242, -6.1626, 4.59999}, {-0.176392, 0.727051, 6.24341}, {4.32983, 4.83154, 6.24341}, {-16.1421, 16.1104, 6.24341}, {14.5771, 14.6357, 6.24341}, {14.5944, -13.6924, 6.24341}, {-13.9371, -14.6738, 6.24341}, {-7.34619, -0.780762, 6.24341}, {0.510864, -16.4219, 6.24341}}; }; class Land_aif_hotel_bio { table = "CivillianUpperClass"; positions[] = {{-18.3599, -18.0991, -7.74816}, {-11.62, -17.4209, -7.74816}, {-11.4398, -5.12646, -7.74816}, {-18.6073, 16.6533, -7.74816}, {0.0179443, 17.9321, -7.74816}, {-6.92065, 0.458496, -7.74816}, {-4.12988, 8.30273, -7.74816}, {0.411743, 10.5889, -7.74816}, {2.43176, 17.7212, -7.74816}, {17.8632, 18.7539, -7.74816}, {18.457, -17.0864, -7.74816}, {9.63696, 11.3052, -7.74816}, {10.6833, -1.73877, -7.74816}, {11.4556, -17.2886, -7.74816}, {-1.55603, -8.28564, -7.74816}, {9.42737, -18.48, -7.74816}, {-7.68372, -18.335, -7.74816}, {-1.57239, -14.0361, -7.74816}, {17.6108, -8.85303, -7.74814}, {-4.5426, -8.33398, -7.74816}, {-8.99768, -2.46533, -7.74816}, {-5.41223, -2.41504, -7.74816}, {5.68066, -2.79785, -7.757}, {-2.26355, -5.97998, -7.74816}, {5.97742, -4.16064, -5.8735}, {0.334106, 0.177246, -4.26087}, {-18.2471, 8.88623, -4.26087}, {-18.1598, 18.23, -4.26087}, {-2.79883, 20.5171, -4.26087}, {-18.0393, 20.8374, -4.26087}, {-15.5654, 11.457, -4.26087}, {-2.54492, 18.2842, -4.26087}, {-5.56982, 11.4468, -4.26087}, {-4.12695, -0.452637, -4.26087}, {6.0752, 18.0532, -4.26087}, {3.72229, 11.5576, -4.26087}, {9.0481, 18.6572, -4.26087}, {11.2123, 18.7324, -4.26087}, {18.8008, 14.6274, -4.26087}, {20.4934, 17.1367, -4.26087}, {20.4431, 4.89258, -4.26087}, {12.245, 4.11572, -4.26087}, {18.5348, 4.87988, -4.26087}, {11.8751, -5.89795, -4.26087}, {18.6119, 0.527344, -4.26087}, {17.9233, -11.4443, -4.26087}, {15.3624, -18.6147, -4.26087}, {17.1495, -20.4697, -4.26087}, {5.4679, -20.6968, -4.26087}, {2.78284, -11.9316, -4.26087}, {6.35986, -18.5068, -4.26087}, {-6.23645, -18.0957, -4.26087}, {-0.586426, -17.0601, -4.26087}, {-4.54663, -12.0146, -4.26087}, {-8.76685, -18.5508, -4.26087}, {-17.396, -17.3169, -4.26087}, {-11.1172, -14.4316, -4.26087}, {-15.2999, -11.0405, -4.26087}, {-20.6085, -16.7593, -4.26087}, {-20.6918, -5.08154, -4.26087}, {-11.3848, -3.11279, -4.26087}, {-18.1843, -7.08301, -4.26087}, {-17.9551, -0.537109, -4.26087}, {-11.7842, 6.02344, -4.26087}, {-18.1097, 5.04346, -4.26087}, {6.06409, -4.34912, -2.40524}, {0.411133, 0.444824, -0.760501}, {-8.90015, -18.3921, -0.760501}, {-11.5056, -17.9824, -0.760501}, {-18.3748, -16.1694, -0.760501}, {-20.3065, -16.7012, -0.760873}, {-20.6073, -5.30762, -0.760873}, {-11.4701, -2.66406, -0.760501}, {-18.6073, -6.8877, -0.760501}, {-3.87561, -0.195313, -0.760501}, {-18.1101, 6.18115, -0.760501}, {-11.3542, 3.69287, -0.760501}, {-16.4008, -0.789551, -0.760501}, {-18.6448, 8.96191, -0.760501}, {-17.4473, 11.1597, -0.760501}, {-17.9413, 17.8452, -0.760501}, {-11.0946, 14.8506, -0.760501}, {-16.4137, 20.1777, -0.760873}, {-4.48779, 20.4653, -0.760873}, {-2.60181, 18.0146, -0.760501}, {-4.94275, 11.6343, -0.760501}, {-0.221924, 14.5264, -0.760501}, {5.85046, 11.6719, -0.760501}, {6.13745, 17.8545, -0.760501}, {9.0647, 18.5137, -0.760501}, {12.0256, 17.1807, -0.760501}, {18.3619, 16.5308, -0.760501}, {15.0634, 11.4102, -0.760501}, {20.4622, 16.9658, -0.760873}, {20.2803, 4.4292, -0.760873}, {18.0638, -6.09326, -0.760501}, {15.8817, 0.850586, -0.760501}, {11.3638, -5.0293, -0.760501}, {18.1345, -9.0708, -0.760501}, {15.4043, -11.3369, -0.760501}, {18.335, -18.1909, -0.760501}, {15.4275, -20.2988, -0.760873}, {4.6886, -20.4644, -0.760873}, {0.00598145, -18.1724, -0.760501}, {-6.29065, -11.6494, -0.760501}, {-6.4967, -17.0625, -0.760501}, {6.5592, -2.09619, 1.1137}, {-2.51868, 0.114258, 2.73938}, {-4.01282, 1.07715, 2.73938}, {-18.3441, 8.84912, 2.73938}, {-17.9507, 11.5913, 2.73938}, {-15.4954, 18.2681, 2.73938}, {-15.2125, 20.4375, 2.73913}, {-4.7749, 20.251, 2.73913}, {-2.80933, 11.9868, 2.73938}, {-2.45044, 18.2939, 2.73938}, {-9.82263, 14.8872, 2.73938}, {5.86218, 17.7197, 2.73938}, {3.90906, 11.3198, 2.73938}, {-0.505737, 15.2656, 2.73938}, {9.03638, 18.4263, 2.73938}, {11.7268, 17.9048, 2.73938}, {18.443, 15.3691, 2.73938}, {20.4957, 14.5278, 2.73913}, {20.0801, 4.76904, 2.73913}, {18.2336, 2.43896, 2.73938}, {11.7889, 5.90723, 2.73938}, {11.947, -0.542969, 2.73938}, {17.8619, -6.40186, 2.73938}, {17.6119, -8.88525, 2.73938}, {17.2129, -12.3389, 2.73938}, {11.8239, -17.2773, 2.73938}, {14.9662, -20.6899, 2.73913}, {5.83472, -20.8853, 2.73913}, {4.52234, -12.6313, 2.73938}, {6.71826, -18.2056, 2.73938}, {-5.41101, -17.687, 2.73938}, {-0.767822, -14.3145, 2.73938}, {-8.89331, -18.2729, 2.73938}, {-11.6691, -16.6924, 2.73938}, {-18.6548, -13.3325, 2.73938}, {-20.6188, -16.3472, 2.73913}, {-20.74, -5.80615, 2.73913}, {-12.6715, -3.66895, 2.73938}, {-17.9844, -8.47705, 2.73938}, {-17.4462, 0.294434, 2.73938}, {-12.5255, 5.03564, 2.73938}, {6.35242, -6.1626, 4.59999}, {-0.176392, 0.727051, 6.24341}, {4.32983, 4.83154, 6.24341}, {-16.1421, 16.1104, 6.24341}, {14.5771, 14.6357, 6.24341}, {14.5944, -13.6924, 6.24341}, {-13.9371, -14.6738, 6.24341}, {-7.34619, -0.780762, 6.24341}, {0.510864, -16.4219, 6.24341}}; }; class land_mbg_apartments_big_03 { table = "CivillianUpperClass"; positions[] = {{2.27795, -3.50439, -4.39977}, {0.706177, -1.1416, -4.39977}, {2.95398, 0.875488, -4.39977}, {1.86035, 3.62988, -4.39977}}; }; class land_mbg_apartments_big_03b { table = "CivillianUpperClass"; positions[] = {{2.27808, -3.50439, -4.39977}, {0.706299, -1.1416, -4.39977}, {2.9541, 0.875488, -4.39977}, {1.86047, 3.62988, -4.39977}}; }; class land_mbg_apartments_big_03c { table = "CivillianUpperClass"; positions[] = {{2.27808, -3.50439, -4.39977}, {0.706299, -1.1416, -4.39977}, {2.9541, 0.875488, -4.39977}, {1.86047, 3.62988, -4.39977}}; }; class aif_ryb_domek { table = "CivillianUpperClass"; positions[] = {{-1.42871, 2.60742, -2.21808}, {-2.62329, -0.353027, -2.21808}, {2.69556, -2.33936, -2.21808}, {1.45483, 2.59961, -2.21808}}; }; class Land_MBG_GER_ESTATE_1 { table = "CivillianUpperClass"; positions[] = {{6.31531, -5.31299, -1.4476}, {8.34143, -2.37109, -2.13331}, {4.87305, -2.54932, -2.13331}, {-0.643677, -4.68848, -1.46026}, {-4.77612, -2.39697, -2.13331}, {-6.2594, -6.46777, -1.44641}, {-8.21533, -1.49463, -2.13331}, {-5.44421, 2.44824, -2.13331}, {-5.09839, 3.04053, -1.57525}, {-6.72058, 4.0083, -1.65734}, {-8.24768, 7.22314, -2.13331}, {-8.22424, -0.541992, -2.13331}, {-3.24768, 6.97119, -2.13331}, {-0.0665283, 1.84766, -2.13331}, {-2.82397, 3.39063, -2.13331}, {7.43042, 6.68604, -2.1333}, {5.79456, 2.35498, -2.13331}, {2.28345, 5.83203, -2.13331}, {4.46423, 0.915039, -2.13331}, {7.56409, 0.538086, -2.13331}, {6.17493, -1.44336, -2.13331}}; }; class Land_MBG_GER_ESTATE_2 { table = "CivillianUpperClass"; positions[] = {{6.31543, -5.31299, -1.4476}, {8.34155, -2.37109, -2.13331}, {4.87317, -2.54932, -2.13331}, {-0.643555, -4.68848, -1.46026}, {-4.776, -2.39697, -2.13331}, {-6.25928, -6.46777, -1.44641}, {-8.21521, -1.49463, -2.13331}, {-5.44409, 2.44824, -2.13331}, {-5.09827, 3.04053, -1.57525}, {-6.72046, 4.0083, -1.65734}, {-8.24756, 7.22314, -2.13331}, {-8.22412, -0.541992, -2.13331}, {-3.24756, 6.97119, -2.13331}, {-0.0664063, 1.84766, -2.13331}, {-2.82385, 3.39063, -2.13331}, {7.43054, 6.68604, -2.1333}, {5.79468, 2.35498, -2.13331}, {2.28357, 5.83203, -2.13331}, {4.46436, 0.915039, -2.13331}, {7.56421, 0.538086, -2.13331}, {6.17505, -1.44336, -2.13331}}; }; class Land_aif_zluty_statek_in { table = "CivillianUpperClass"; positions[] = {{6.38196, -2.22949, -2.91496}, {2.44519, -2.10156, -2.90771}, {-8.17969, 5.4165, -2.87695}, {-9.32068, 0.486816, -2.88464}, {-4.66394, 2.04395, -2.88737}, {-3.73389, 0.641602, -2.89093}, {-4.34119, 5.6499, -2.88264}, {0.39978, 0.407715, -2.89799}, {0.752686, 5.55908, -2.89105}, {3.76819, 5.49023, -2.8851}, {5.8335, 6.17773, -2.88406}, {9.02979, 2.87695, -1.89928}, {5.96509, 0.229004, -2.90664}}; }; class Land_zluty_statek_in { table = "CivillianUpperClass"; positions[] = {{6.38196, -2.22998, -2.91496}, {2.44519, -2.10205, -2.90771}, {-8.17969, 5.41602, -2.87695}, {-9.32068, 0.486328, -2.88464}, {-4.66394, 2.04346, -2.88737}, {-3.73389, 0.641113, -2.89093}, {-4.34119, 5.64941, -2.88264}, {0.39978, 0.407227, -2.89799}, {0.752686, 5.55859, -2.89105}, {3.76819, 5.48975, -2.8851}, {5.8335, 6.17725, -2.88406}, {9.02979, 2.87646, -1.89928}, {5.96509, 0.228516, -2.90664}}; }; class land_mbg_apartments_big_01 { table = "CivillianUpperClass"; positions[] = {{11.6134, -6.17627, -1.05156}, {11.5542, 5.24854, -1.05156}, {8.28101, 9.05518, -1.05156}, {-1.97668, 8.83545, -1.05156}, {-11.3268, 5.87598, -1.05156}, {-11.6147, -4.4541, -1.05156}, {8.41833, -6.9165, -4.3434}, {3.88171, -5.23438, -4.3434}, {9.72449, -5.14551, -1.05156}, {7.77673, -7.29932, -1.05156}, {8.05957, -7.76074, 4.80056}, {7.54407, 1.02979, 4.80055}, {1.00415, 3.04297, 4.8004}, {2.28125, -2.94434, 4.80043}, {-6.08069, 1.86914, 4.80025}, {-4.52405, -6.76904, 4.80028}, {-2.02539, -0.286621, 4.80034}, {-9.00952, 6.44482, 4.80019}}; }; class Land_MBG_GER_RHUS_1 { table = "CivillianUpperClass"; positions[] = {{1.44897, 2.90088, -2.87926}, {-2.67871, 3.09668, -3.36713}, {-2.67505, 1.5918, -3.36713}, {-3.18799, -1.96582, -3.36713}, {-2.95532, 0.450684, -3.36713}, {3.45435, 0.755859, -2.92419}, {2.55798, 0.746582, -2.51543}, {1.25427, -4.10889, -2.39131}, {3.52429, -4.35498, -3.36713}, {-3.21643, -3.02246, -3.36713}, {-0.578369, 3.88965, -0.46713}, {2.94702, 4.13232, -0.46713}, {1.84534, 1.99219, -0.46713}, {1.65625, -0.213379, -0.46713}, {3.45874, -4.42871, -0.46713}, {-3.13379, -2.83154, -0.46713}, {0.026123, -4.39795, -0.46713}, {-0.186401, 0.0605469, -0.46713}}; }; class Land_MBG_GER_RHUS_2 { table = "CivillianUpperClass"; positions[] = {{1.44897, 2.90088, -2.87926}, {-2.67871, 3.09668, -3.36713}, {-2.67505, 1.5918, -3.36713}, {-3.18799, -1.96582, -3.36713}, {-2.95532, 0.450684, -3.36713}, {3.45435, 0.755859, -2.92419}, {2.55798, 0.746582, -2.51543}, {1.25427, -4.10889, -2.39131}, {3.52429, -4.35498, -3.36713}, {-3.21643, -3.02246, -3.36713}, {-0.578369, 3.88965, -0.46713}, {2.94702, 4.13232, -0.46713}, {1.84534, 1.99219, -0.46713}, {1.65625, -0.213379, -0.46713}, {3.45874, -4.42871, -0.46713}, {-3.13379, -2.83154, -0.46713}, {0.026123, -4.39795, -0.46713}, {-0.186401, 0.0605469, -0.46713}}; }; class Land_MBG_GER_RHUS_3 { table = "CivillianUpperClass"; positions[] = {{1.44897, 2.90088, -2.87926}, {-2.67871, 3.09668, -3.36713}, {-2.67505, 1.5918, -3.36713}, {-3.18799, -1.96582, -3.36713}, {-2.95532, 0.450684, -3.36713}, {3.45435, 0.755859, -2.92419}, {2.55798, 0.746582, -2.51543}, {1.25427, -4.10889, -2.39131}, {3.52429, -4.35498, -3.36713}, {-3.21643, -3.02246, -3.36713}, {-0.578369, 3.88965, -0.46713}, {2.94702, 4.13232, -0.46713}, {1.84534, 1.99219, -0.46713}, {1.65625, -0.213379, -0.46713}, {3.45874, -4.42871, -0.46713}, {-3.13379, -2.83154, -0.46713}, {0.026123, -4.39795, -0.46713}, {-0.186401, 0.0605469, -0.46713}}; }; class Land_MBG_GER_RHUS_4 { table = "CivillianUpperClass"; positions[] = {{1.44897, 2.90088, -2.87926}, {-2.67871, 3.09668, -3.36713}, {-2.67505, 1.5918, -3.36713}, {-3.18799, -1.96582, -3.36713}, {-2.95532, 0.450684, -3.36713}, {3.45435, 0.755859, -2.92419}, {2.55798, 0.746582, -2.51543}, {1.25427, -4.10889, -2.39131}, {3.52429, -4.35498, -3.36713}, {-3.21643, -3.02246, -3.36713}, {-0.578369, 3.88965, -0.46713}, {2.94702, 4.13232, -0.46713}, {1.84534, 1.99219, -0.46713}, {1.65625, -0.213379, -0.46713}, {3.45874, -4.42871, -0.46713}, {-3.13379, -2.83154, -0.46713}, {0.026123, -4.39795, -0.46713}, {-0.186401, 0.0605469, -0.46713}}; }; class Land_MBG_GER_RHUS_5 { table = "CivillianUpperClass"; positions[] = {{1.44897, 2.90088, -2.87926}, {-2.67871, 3.09668, -3.36713}, {-2.67505, 1.5918, -3.36713}, {-3.18799, -1.96582, -3.36713}, {-2.95532, 0.450684, -3.36713}, {3.45435, 0.755859, -2.92419}, {2.55798, 0.746582, -2.51543}, {1.25427, -4.10889, -2.39131}, {3.52429, -4.35498, -3.36713}, {-3.21643, -3.02246, -3.36713}, {-0.578369, 3.88965, -0.46713}, {2.94702, 4.13232, -0.46713}, {1.84534, 1.99219, -0.46713}, {1.65625, -0.213379, -0.46713}, {3.45874, -4.42871, -0.46713}, {-3.13379, -2.83154, -0.46713}, {0.026123, -4.39795, -0.46713}, {-0.186401, 0.0605469, -0.46713}}; }; class Land_MBG_ATC_Segment { table = "CivillianUpperClass"; positions[] = {{-0.614014, -0.772949, -0.914519}, {0.86499, 0.733887, -0.914519}}; }; class Land_MBG_GER_HUS_1 { table = "CivillianUpperClass"; positions[] = {{5.48071, 1.11328, -3.11432}, {5.6145, -6.52295, -3.11433}, {2.80261, -1.93408, -3.11433}, {2.74939, -7.19971, -3.11433}, {-3.10669, -1.82422, -3.11433}, {1.29688, -5.53125, -3.11433}, {1.3999, -7.15479, -3.11433}, {-2.38794, -7.01172, -3.11433}, {-5.53699, -6.90332, -3.11433}, {-2.57935, 7.30029, -2.5608}, {-1.50269, 5.46924, -3.11432}, {-3.83691, 1.89648, -2.93839}, {-4.78992, 1.8667, -1.79611}, {-5.3938, 7.00342, -3.11432}, {-0.29126, 6.93359, -2.13358}, {2.84839, 4.15771, -2.31427}, {5.91931, 2.67822, -3.11432}, {5.66919, 7.14844, -3.11432}, {-5.28394, 1.12842, -0.114324}, {-5.10059, -6.95703, -0.114326}, {-4.75452, -2.08789, -0.114326}, {1.35291, -5.65479, -0.114326}, {3.16174, 4.26123, 0.358557}, {5.43188, 2.32813, -0.114325}, {2.87598, 7.42627, -0.114324}, {-0.674316, 4.31396, -0.114324}, {-4.74536, 7.20605, -0.114324}, {-1.25964, 4.15479, -0.114324}, {-4.96667, 2.55762, -0.114324}, {2.94763, -1.56348, -0.114326}, {4.50806, -6.88428, -0.114326}, {5.71094, -2.99658, -0.114326}, {0.850708, -0.263672, -0.114325}}; }; class Land_MBG_GER_HUS_2 { table = "CivillianUpperClass"; positions[] = {{5.48071, 1.11328, -3.11432}, {5.6145, -6.52295, -3.11433}, {2.80261, -1.93408, -3.11433}, {2.74939, -7.19971, -3.11433}, {-3.10669, -1.82422, -3.11433}, {1.29688, -5.53125, -3.11433}, {1.3999, -7.15479, -3.11433}, {-2.38794, -7.01172, -3.11433}, {-5.53699, -6.90332, -3.11433}, {-2.57935, 7.30029, -2.5608}, {-1.50269, 5.46924, -3.11432}, {-3.83691, 1.89648, -2.93839}, {-4.78992, 1.8667, -1.79611}, {-5.3938, 7.00342, -3.11432}, {-0.29126, 6.93359, -2.13358}, {2.84839, 4.15771, -2.31427}, {5.91931, 2.67822, -3.11432}, {5.66919, 7.14844, -3.11432}, {-5.28394, 1.12842, -0.114324}, {-5.10059, -6.95703, -0.114326}, {-4.75452, -2.08789, -0.114326}, {1.35291, -5.65479, -0.114326}, {3.16174, 4.26123, 0.358557}, {5.43188, 2.32813, -0.114325}, {2.87598, 7.42627, -0.114324}, {-0.674316, 4.31396, -0.114324}, {-4.74536, 7.20605, -0.114324}, {-1.25964, 4.15479, -0.114324}, {-4.96667, 2.55762, -0.114324}, {2.94763, -1.56348, -0.114326}, {4.50806, -6.88428, -0.114326}, {5.71094, -2.99658, -0.114326}, {0.850708, -0.263672, -0.114325}}; }; class Land_MBG_GER_HUS_3 { table = "CivillianUpperClass"; positions[] = {{5.48071, 1.11328, -3.11432}, {5.6145, -6.52295, -3.11433}, {2.80261, -1.93408, -3.11433}, {2.74939, -7.19971, -3.11433}, {-3.10669, -1.82422, -3.11433}, {1.29688, -5.53125, -3.11433}, {1.3999, -7.15479, -3.11433}, {-2.38794, -7.01172, -3.11433}, {-5.53699, -6.90332, -3.11433}, {-2.57935, 7.30029, -2.5608}, {-1.50269, 5.46924, -3.11432}, {-3.83691, 1.89648, -2.93839}, {-4.78992, 1.8667, -1.79611}, {-5.3938, 7.00342, -3.11432}, {-0.29126, 6.93359, -2.13358}, {2.84839, 4.15771, -2.31427}, {5.91931, 2.67822, -3.11432}, {5.66919, 7.14844, -3.11432}, {-5.28394, 1.12842, -0.114324}, {-5.10059, -6.95703, -0.114326}, {-4.75452, -2.08789, -0.114326}, {1.35291, -5.65479, -0.114326}, {3.16174, 4.26123, 0.358557}, {5.43188, 2.32813, -0.114325}, {2.87598, 7.42627, -0.114324}, {-0.674316, 4.31396, -0.114324}, {-4.74536, 7.20605, -0.114324}, {-1.25964, 4.15479, -0.114324}, {-4.96667, 2.55762, -0.114324}, {2.94763, -1.56348, -0.114326}, {4.50806, -6.88428, -0.114326}, {5.71094, -2.99658, -0.114326}, {0.850708, -0.263672, -0.114325}}; }; class Land_MBG_GER_HUS_4 { table = "CivillianUpperClass"; positions[] = {{5.48071, 1.11328, -3.11432}, {5.6145, -6.52295, -3.11433}, {2.80261, -1.93408, -3.11433}, {2.74939, -7.19971, -3.11433}, {-3.10669, -1.82422, -3.11433}, {1.29688, -5.53125, -3.11433}, {1.3999, -7.15479, -3.11433}, {-2.38794, -7.01172, -3.11433}, {-5.53699, -6.90332, -3.11433}, {-2.57935, 7.30029, -2.5608}, {-1.50269, 5.46924, -3.11432}, {-3.83691, 1.89648, -2.93839}, {-4.78992, 1.8667, -1.79611}, {-5.3938, 7.00342, -3.11432}, {-0.29126, 6.93359, -2.13358}, {2.84839, 4.15771, -2.31427}, {5.91931, 2.67822, -3.11432}, {5.66919, 7.14844, -3.11432}, {-5.28394, 1.12842, -0.114324}, {-5.10059, -6.95703, -0.114326}, {-4.75452, -2.08789, -0.114326}, {1.35291, -5.65479, -0.114326}, {3.16174, 4.26123, 0.358557}, {5.43188, 2.32813, -0.114325}, {2.87598, 7.42627, -0.114324}, {-0.674316, 4.31396, -0.114324}, {-4.74536, 7.20605, -0.114324}, {-1.25964, 4.15479, -0.114324}, {-4.96667, 2.55762, -0.114324}, {2.94763, -1.56348, -0.114326}, {4.50806, -6.88428, -0.114326}, {5.71094, -2.99658, -0.114326}, {0.850708, -0.263672, -0.114325}}; }; class Land_MBG_GER_PUB_1 { table = "CivillianUpperClass"; positions[] = {{0.953125, -4.57764, -3.53229}, {-4.55115, -5.56836, -3.53229}, {-5.87769, 0.355469, -2.83994}, {-3.87915, -2.40332, -2.84484}, {-0.329468, -0.984375, -2.84761}, {1.61316, 2.93652, -2.83241}, {3.06995, 4.94141, -2.83466}, {4.84229, 5.62109, -2.85224}, {5.21912, 3.02295, -2.84935}, {5.14392, -0.295898, -2.84071}, {5.5863, -2.96094, -2.84145}, {-3.45056, 1.94385, -2.84601}, {3.2616, 1.07373, -2.83819}, {-6.44714, -4.40381, -3.53229}, {5.89111, 7.43896, -0.648787}, {2.46423, 3.76904, -0.632289}, {6.16711, 1.65723, -0.632289}, {2.27087, -2.06055, 0.0360546}, {6.2572, -2.1958, -0.632289}, {1.63342, -3.47803, -0.632289}, {6.47559, -3.48779, 0.0431614}, {6.12646, -5.59814, -0.632289}, {0.0374756, -4.5708, -0.632289}, {-5.92737, -3.41357, -0.632289}, {-3.14868, 1.5835, -0.632289}}; }; class Land_MBG_GER_PUB_2 { table = "CivillianUpperClass"; positions[] = {{0.953125, -4.57764, -3.53229}, {-4.55115, -5.56836, -3.53229}, {-5.87769, 0.355469, -2.83994}, {-3.87915, -2.40332, -2.84484}, {-0.329468, -0.984375, -2.84761}, {1.61316, 2.93652, -2.83241}, {3.06995, 4.94141, -2.83466}, {4.84229, 5.62109, -2.85224}, {5.21912, 3.02295, -2.84935}, {5.14392, -0.295898, -2.84071}, {5.5863, -2.96094, -2.84145}, {-3.45056, 1.94385, -2.84601}, {3.2616, 1.07373, -2.83819}, {-6.44714, -4.40381, -3.53229}, {5.89111, 7.43896, -0.648787}, {2.46423, 3.76904, -0.632289}, {6.16711, 1.65723, -0.632289}, {2.27087, -2.06055, 0.0360546}, {6.2572, -2.1958, -0.632289}, {1.63342, -3.47803, -0.632289}, {6.47559, -3.48779, 0.0431614}, {6.12646, -5.59814, -0.632289}, {0.0374756, -4.5708, -0.632289}, {-5.92737, -3.41357, -0.632289}, {-3.14868, 1.5835, -0.632289}}; }; /////////////////////////////////////////////////////////////////////////// // Shops /////////////////////////////////////////////////////////////////////////// class Land_FuelStation_01_shop_F { table = "Shop"; positions[] = {{-3.47095, -2.32715, -2.01301},{1.49292, -2.76465, -2.01301},{-3.97681, 4.03711, -2.01301},{0.912842, 2.21191, -2.01301}}; }; class Land_GuardHouse_01_F { table = "Shop"; positions[] = {{-0.890381, 2.22461, -1.03759},{2.25879, 1.90527, -1.03759},{1.18262, -3.99707, -1.04188},{4.2688, -4.30566, -1.04188},{-1.89941, -0.541016, -1.04188},{-1.66211, -4.21094, -1.04188}}; }; class Land_Shop_City_01_F { table = "Shop"; positions[] = {{2.4292, 3.38574, -4.955},{1.2439, -0.536621, -4.94684},{5.92114, 2.45996, -4.94911}}; }; class Land_Shop_City_02_F { table = "Shop"; positions[] = {{2.87964, -6.96094, -4.33675},{3.52344, -3.69141, -4.3368},{7.54688, -3.29297, -4.33673},{-2.46313, -5.58398, -4.33675},{-0.394531, -7.3291, -4.33675},{-9.93286, -6.42188, -4.33675},{-8.23169, -3.64941, -4.33675}}; }; class Land_Shop_City_03_F { table = "Shop"; positions[] = {{5.67749, -2.68164, -4.96615},{3.79248, 8.09082, -4.96667},{1.88354, -3.96289, -4.96746}}; }; class Land_Shop_City_04_F { table = "Shop"; positions[] = {{1.2771, 10.0566, 4.17043},{7.14185, 9.99414, 4.17043},{4.28784, 9.86816, 4.17043},{6.50317, 1.44434, 4.17043},{1.27368, 1.37695, 4.17043},{7.23999, 5.65234, 4.17043},{7.2915, 7.69629, 4.17043},{1.28784, 3.91992, 4.17043},{-0.504395, 10.0264, 6.97933},{-6.20288, 9.97656, 6.97932},{-5.91138, 1.75684, 6.97932},{-6.104, 7.68848, 6.97932},{-0.501709, 3.88867, 6.97932},{-5.6123, -0.362305, 6.97932},{-5.93213, -4.22363, 6.97932},{-5.87793, -9.48828, 6.97932},{-3.51074, -9.6748, 6.97932},{1.36377, -1.84863, 6.97932},{-2.06396, -0.0917969, 6.97932},{7.09326, -4.71387, 6.97932},{4.16943, -5.02539, 6.97932},{7.18335, -0.458008, 6.97932},{1.20508, -9.41602, 6.97932},{7.18774, -9.19141, 6.97932},{7.20654, -10.5918, 3.60047},{1.93359, -10.7646, 3.60047},{-1.50293, -10.3926, 3.60047},{-6.23047, -10.5918, 3.60047}}; }; class Land_Shop_City_05_F { table = "Shop"; positions[] = {{-0.283447, 2.6084, 4.08708},{-5.32642, -12.6162, 7.18407},{5.06274, -10.9531, 7.15172},{0.605469, -4.85449, 7.03372},{0.268311, -1.22461, 6.96352},{7.7915, -6.00879, 7.05611},{9.13062, 2.4502, 4.08708},{4.25415, 5.82715, 4.08708},{-2.11279, 9.05762, 4.08708},{6.97266, 13.6572, 4.08708},{0.479492, 13.2539, 4.08708},{-6.08496, 13.8789, 4.08708},{-8.25366, 10.1318, 4.08708},{-8.55688, -12.0498, 7.17308},{0.14209, -11.0918, -7.28322}}; }; class Land_Shop_City_06_F { table = "Shop"; positions[] = {{-6.04688, 0.503906, -4.06816},{-3.99438, 7.72363, -4.06839},{-5.10303, -5.04199, -4.06798}}; }; class Land_Shop_City_07_F { table = "Shop"; positions[] = {{1.10278, 2.13574, 0.00890541},{1.35547, 6.91504, 0.00893593},{-0.679443, 0.248047, 3.60637},{-1.02441, 4.30469, 3.60637},{2.6582, -3.65723, 3.60637},{-0.708984, -6.85547, 3.60637},{-4.04346, -2.99414, 3.60637},{-4.01318, 4.39941, 3.60637},{-3.63501, 7.54883, 3.60637}}; }; class Land_Shop_Town_01_F { table = "Shop"; positions[] = {{-3.92822, -2.74707, -3.27012},{-3.80103, 0.883789, -3.27011},{-2.52832, -3.63965, -3.27011},{-3.80493, -6.10156, -3.27011},{-0.918213, -5.84473, -3.27011},{4.22827, -6.09766, -3.27011},{-2.00391, 3.82813, -3.27011},{-3.91284, 4.55273, -3.27012},{-1.0105, 0.652344, -3.27011},{0.751221, -2.10352, -3.27011},{2.72095, -3.8457, -3.27011},{3.85083, -2.64551, -3.27011}}; }; class Land_Shop_Town_02_F { table = "Shop"; positions[] = {{2.99487, -4.95605, -2.14528},{-2.94238, -5.14746, -2.14139}}; }; class Land_Shop_Town_03_F { table = "Shop"; positions[] = {{-5.88965, -3.25684, -3.12664},{-5.90576, -0.0273438, -3.12665},{5.32275, -1.48535, -3.12776},{0.748779, -1.30957, -3.12776},{0.994385, -4.28027, -3.12776}}; }; class Land_Shop_Town_04_F { table = "Shop"; positions[] = {{-2.41553, -6.52832, -2.43639},{2.42578, -6.81152, -2.43639}}; }; class Land_Shop_Town_05_F { table = "Shop"; positions[] = {{-7.17432, -6.53418, -2.72663},{7.25415, -6.73242, -2.72663},{1.95654, -6.69824, -2.72662},{-1.74683, -6.51855, -2.72663}}; }; class Land_Supermarket_01_F { table = "Shop"; positions[] = {{4.35083, -2.46777, -1.50003},{-0.334473, -6.50879, -1.50003},{-0.251221, -0.452148, -1.50003},{-4.82568, 1.79492, -1.50003},{-4.38794, -5.06836, -1.50003},{7.19556, -1.90137, -1.50003},{1.91138, 1.69434, -1.50003},{-2.32007, -8.67676, -1.50003}}; }; class Land_Warehouse_02_F { table = "Shop"; positions[] = {{20.1353, 11.1074, 4.53597},{20.1353, -9.1582, 4.53597},{19.5979, -1.66113, 4.53613},{19.5979, 3.98535, 4.53613},{-5.52881, 5.00781, 4.63205},{-7.08691, -8.17188, 4.54425},{-20.0464, 11.1074, 4.54819},{-20.0464, -9.1582, 4.54819},{-19.5269, -1.65527, 4.54803},{-19.5269, 3.99121, 4.54803},{3.19653, 5.10254, 4.6321},{1.84839, -1.40625, 4.54153},{11.4192, 5.10254, 4.63212},{7.40503, -7.6543, 4.53984},{11.2095, -12.8008, -3.94501},{5.47998, -12.2197, -3.94501},{-0.130127, -12.8135, -3.94501},{-3.7085, -12.4531, -3.94501}}; }; class Land_MBG_GER_SUPERMARKET_1 { table = "Shop"; positions[] = {{-3.11963, -8.67676, -2.25352}, {-5.92407, -8.73682, -2.26544}, {-8.63721, -8.74561, -2.26148}, {-2.52234, -6.51172, -2.68901}, {-5.40076, -7.06152, -2.39664}, {-8.02576, -6.40625, -2.69584}, {2.32874, -2.9126, -2.33717}, {-0.0341797, -2.93213, -1.9867}, {-1.69067, -2.9375, -2.68728}, {-4.69116, -2.97803, -3.02034}, {-5.54016, -3.00049, -1.98918}, {2.10254, -2.62207, -1.98172}, {0.882446, -2.61279, -3.05518}, {-1.68835, -2.66748, -3.06999}, {-3.83948, -2.66846, -2.36411}, {-6.9032, -2.6748, -2.34502}, {2.49463, 0.678223, -2.33717}, {0.131714, 0.658691, -1.9867}, {-1.52478, 0.65332, -2.68728}, {-4.52527, 0.612793, -3.02034}, {-5.37427, 0.590332, -1.98918}, {1.04834, 0.978027, -3.05518}, {-1.52246, 0.92334, -3.06999}, {-3.67358, 0.922363, -2.36411}, {-6.7373, 0.916016, -2.34502}, {2.58667, 4.35059, -2.33717}, {0.223755, 4.33105, -1.9867}, {-1.43274, 4.32568, -2.68728}, {-4.43323, 4.28516, -3.02034}, {-5.28223, 4.2627, -1.98918}, {1.14038, 4.65039, -3.05518}, {-1.43042, 4.5957, -3.06999}, {-3.58154, 4.59473, -2.36411}, {-6.64526, 4.58838, -2.34502}, {6.5387, 5.37842, -2.63717}, {6.5575, 3.01563, -1.9867}, {6.57495, 1.45264, -2.68728}, {6.59912, -1.64111, -3.02034}, {6.62073, -2.49023, -1.98918}, {6.28357, 4.53955, -3.05518}, {6.28418, 1.52295, -3.06999}, {6.29016, -0.654785, -2.3641}, {6.56274, -4.7002, -1.9867}, {6.57349, -6.35547, -2.68728}, {6.58142, -8.68506, -3.02034}, {6.64526, -10.2056, -1.98918}, {6.30225, -6.35449, -3.06999}, {6.30823, -8.50439, -2.36411}, {6.30139, -1.33105, -1.98918}, {6.28845, -10.1616, -3.04903}, {8.45923, 11.5083, -2.67267}, {7.08911, 11.5669, -2.67267}, {4.92212, 11.5986, -2.67267}, {2.85754, 11.5718, -2.67267}, {0.637939, 11.5786, -2.67267}, {0.468994, 9.52197, -2.67267}, {0.397339, 7.44678, -2.67267}, {-0.494385, 7.53467, -2.67267}, {-0.447998, 9.57617, -2.67267}, {-4.72083, 9.68506, -2.67267}, {-4.88647, 7.59473, -2.67267}, {-5.76636, 7.60547, -2.67267}, {-5.63965, 9.771, -2.67267}, {10.6752, 5.07373, -2.69877}, {10.6893, 2.5708, -2.35251}, {10.6604, -0.148438, -2.69971}, {10.7321, -1.75586, -2.01245}, {-2.84875, -7.89063, -2.69321}, {-5.63074, -6.56348, -1.97518}, {-8.36914, -7.56445, -1.9919}, {10.0031, 13.1348, -3.24713}, {6.64661, 16.3125, -3.24713}, {-2.44495, 12.7783, -3.24713}, {-9.6897, 16.4341, -3.24713}, {-3.36499, 16.8418, -3.24713}}; }; class Land_MBG_GER_SUPERMARKET_2 { table = "Shop"; positions[] = {{-3.11963, -8.67676, -2.25352}, {-5.92407, -8.73682, -2.26544}, {-8.63721, -8.74561, -2.26148}, {-2.52234, -6.51172, -2.68901}, {-5.40076, -7.06152, -2.39664}, {-8.02576, -6.40625, -2.69584}, {2.32874, -2.9126, -2.33717}, {-0.0341797, -2.93213, -1.9867}, {-1.69067, -2.9375, -2.68728}, {-4.69116, -2.97803, -3.02034}, {-5.54016, -3.00049, -1.98918}, {2.10254, -2.62207, -1.98172}, {0.882446, -2.61279, -3.05518}, {-1.68835, -2.66748, -3.06999}, {-3.83948, -2.66846, -2.36411}, {-6.9032, -2.6748, -2.34502}, {2.49463, 0.678223, -2.33717}, {0.131714, 0.658691, -1.9867}, {-1.52478, 0.65332, -2.68728}, {-4.52527, 0.612793, -3.02034}, {-5.37427, 0.590332, -1.98918}, {1.04834, 0.978027, -3.05518}, {-1.52246, 0.92334, -3.06999}, {-3.67358, 0.922363, -2.36411}, {-6.7373, 0.916016, -2.34502}, {2.58667, 4.35059, -2.33717}, {0.223755, 4.33105, -1.9867}, {-1.43274, 4.32568, -2.68728}, {-4.43323, 4.28516, -3.02034}, {-5.28223, 4.2627, -1.98918}, {1.14038, 4.65039, -3.05518}, {-1.43042, 4.5957, -3.06999}, {-3.58154, 4.59473, -2.36411}, {-6.64526, 4.58838, -2.34502}, {6.5387, 5.37842, -2.63717}, {6.5575, 3.01563, -1.9867}, {6.57495, 1.45264, -2.68728}, {6.59912, -1.64111, -3.02034}, {6.62073, -2.49023, -1.98918}, {6.28357, 4.53955, -3.05518}, {6.28418, 1.52295, -3.06999}, {6.29016, -0.654785, -2.3641}, {6.56274, -4.7002, -1.9867}, {6.57349, -6.35547, -2.68728}, {6.58142, -8.68506, -3.02034}, {6.64526, -10.2056, -1.98918}, {6.30225, -6.35449, -3.06999}, {6.30823, -8.50439, -2.36411}, {6.30139, -1.33105, -1.98918}, {6.28845, -10.1616, -3.04903}, {8.45923, 11.5083, -2.67267}, {7.08911, 11.5669, -2.67267}, {4.92212, 11.5986, -2.67267}, {2.85754, 11.5718, -2.67267}, {0.637939, 11.5786, -2.67267}, {0.468994, 9.52197, -2.67267}, {0.397339, 7.44678, -2.67267}, {-0.494385, 7.53467, -2.67267}, {-0.447998, 9.57617, -2.67267}, {-4.72083, 9.68506, -2.67267}, {-4.88647, 7.59473, -2.67267}, {-5.76636, 7.60547, -2.67267}, {-5.63965, 9.771, -2.67267}, {10.6752, 5.07373, -2.69877}, {10.6893, 2.5708, -2.35251}, {10.6604, -0.148438, -2.69971}, {10.7321, -1.75586, -2.01245}, {-2.84875, -7.89063, -2.69321}, {-5.63074, -6.56348, -1.97518}, {-8.36914, -7.56445, -1.9919}, {10.0031, 13.1348, -3.24713}, {6.64661, 16.3125, -3.24713}, {-2.44495, 12.7783, -3.24713}, {-9.6897, 16.4341, -3.24713}, {-3.36499, 16.8418, -3.24713}}; }; class Land_MBG_GER_SUPERMARKET_3 { table = "Shop"; positions[] = {{-3.11963, -8.67676, -2.25352}, {-5.92407, -8.73682, -2.26544}, {-8.63721, -8.74561, -2.26148}, {-2.52234, -6.51172, -2.68901}, {-5.40076, -7.06152, -2.39664}, {-8.02576, -6.40625, -2.69584}, {2.32874, -2.9126, -2.33717}, {-0.0341797, -2.93213, -1.9867}, {-1.69067, -2.9375, -2.68728}, {-4.69116, -2.97803, -3.02034}, {-5.54016, -3.00049, -1.98918}, {2.10254, -2.62207, -1.98172}, {0.882446, -2.61279, -3.05518}, {-1.68835, -2.66748, -3.06999}, {-3.83948, -2.66846, -2.36411}, {-6.9032, -2.6748, -2.34502}, {2.49463, 0.678223, -2.33717}, {0.131714, 0.658691, -1.9867}, {-1.52478, 0.65332, -2.68728}, {-4.52527, 0.612793, -3.02034}, {-5.37427, 0.590332, -1.98918}, {1.04834, 0.978027, -3.05518}, {-1.52246, 0.92334, -3.06999}, {-3.67358, 0.922363, -2.36411}, {-6.7373, 0.916016, -2.34502}, {2.58667, 4.35059, -2.33717}, {0.223755, 4.33105, -1.9867}, {-1.43274, 4.32568, -2.68728}, {-4.43323, 4.28516, -3.02034}, {-5.28223, 4.2627, -1.98918}, {1.14038, 4.65039, -3.05518}, {-1.43042, 4.5957, -3.06999}, {-3.58154, 4.59473, -2.36411}, {-6.64526, 4.58838, -2.34502}, {6.5387, 5.37842, -2.63717}, {6.5575, 3.01563, -1.9867}, {6.57495, 1.45264, -2.68728}, {6.59912, -1.64111, -3.02034}, {6.62073, -2.49023, -1.98918}, {6.28357, 4.53955, -3.05518}, {6.28418, 1.52295, -3.06999}, {6.29016, -0.654785, -2.3641}, {6.56274, -4.7002, -1.9867}, {6.57349, -6.35547, -2.68728}, {6.58142, -8.68506, -3.02034}, {6.64526, -10.2056, -1.98918}, {6.30225, -6.35449, -3.06999}, {6.30823, -8.50439, -2.36411}, {6.30139, -1.33105, -1.98918}, {6.28845, -10.1616, -3.04903}, {8.45923, 11.5083, -2.67267}, {7.08911, 11.5669, -2.67267}, {4.92212, 11.5986, -2.67267}, {2.85754, 11.5718, -2.67267}, {0.637939, 11.5786, -2.67267}, {0.468994, 9.52197, -2.67267}, {0.397339, 7.44678, -2.67267}, {-0.494385, 7.53467, -2.67267}, {-0.447998, 9.57617, -2.67267}, {-4.72083, 9.68506, -2.67267}, {-4.88647, 7.59473, -2.67267}, {-5.76636, 7.60547, -2.67267}, {-5.63965, 9.771, -2.67267}, {10.6752, 5.07373, -2.69877}, {10.6893, 2.5708, -2.35251}, {10.6604, -0.148438, -2.69971}, {10.7321, -1.75586, -2.01245}, {-2.84875, -7.89063, -2.69321}, {-5.63074, -6.56348, -1.97518}, {-8.36914, -7.56445, -1.9919}, {10.0031, 13.1348, -3.24713}, {6.64661, 16.3125, -3.24713}, {-2.44495, 12.7783, -3.24713}, {-9.6897, 16.4341, -3.24713}, {-3.36499, 16.8418, -3.24713}}; }; class Land_MBG_GER_SUPERMARKET_4 { table = "Shop"; positions[] = {{-3.11963, -8.67676, -2.25352}, {-5.92407, -8.73682, -2.26544}, {-8.63721, -8.74561, -2.26148}, {-2.52234, -6.51172, -2.68901}, {-5.40076, -7.06152, -2.39664}, {-8.02576, -6.40625, -2.69584}, {2.32874, -2.9126, -2.33717}, {-0.0341797, -2.93213, -1.9867}, {-1.69067, -2.9375, -2.68728}, {-4.69116, -2.97803, -3.02034}, {-5.54016, -3.00049, -1.98918}, {2.10254, -2.62207, -1.98172}, {0.882446, -2.61279, -3.05518}, {-1.68835, -2.66748, -3.06999}, {-3.83948, -2.66846, -2.36411}, {-6.9032, -2.6748, -2.34502}, {2.49463, 0.678223, -2.33717}, {0.131714, 0.658691, -1.9867}, {-1.52478, 0.65332, -2.68728}, {-4.52527, 0.612793, -3.02034}, {-5.37427, 0.590332, -1.98918}, {1.04834, 0.978027, -3.05518}, {-1.52246, 0.92334, -3.06999}, {-3.67358, 0.922363, -2.36411}, {-6.7373, 0.916016, -2.34502}, {2.58667, 4.35059, -2.33717}, {0.223755, 4.33105, -1.9867}, {-1.43274, 4.32568, -2.68728}, {-4.43323, 4.28516, -3.02034}, {-5.28223, 4.2627, -1.98918}, {1.14038, 4.65039, -3.05518}, {-1.43042, 4.5957, -3.06999}, {-3.58154, 4.59473, -2.36411}, {-6.64526, 4.58838, -2.34502}, {6.5387, 5.37842, -2.63717}, {6.5575, 3.01563, -1.9867}, {6.57495, 1.45264, -2.68728}, {6.59912, -1.64111, -3.02034}, {6.62073, -2.49023, -1.98918}, {6.28357, 4.53955, -3.05518}, {6.28418, 1.52295, -3.06999}, {6.29016, -0.654785, -2.3641}, {6.56274, -4.7002, -1.9867}, {6.57349, -6.35547, -2.68728}, {6.58142, -8.68506, -3.02034}, {6.64526, -10.2056, -1.98918}, {6.30225, -6.35449, -3.06999}, {6.30823, -8.50439, -2.36411}, {6.30139, -1.33105, -1.98918}, {6.28845, -10.1616, -3.04903}, {8.45923, 11.5083, -2.67267}, {7.08911, 11.5669, -2.67267}, {4.92212, 11.5986, -2.67267}, {2.85754, 11.5718, -2.67267}, {0.637939, 11.5786, -2.67267}, {0.468994, 9.52197, -2.67267}, {0.397339, 7.44678, -2.67267}, {-0.494385, 7.53467, -2.67267}, {-0.447998, 9.57617, -2.67267}, {-4.72083, 9.68506, -2.67267}, {-4.88647, 7.59473, -2.67267}, {-5.76636, 7.60547, -2.67267}, {-5.63965, 9.771, -2.67267}, {10.6752, 5.07373, -2.69877}, {10.6893, 2.5708, -2.35251}, {10.6604, -0.148438, -2.69971}, {10.7321, -1.75586, -2.01245}, {-2.84875, -7.89063, -2.69321}, {-5.63074, -6.56348, -1.97518}, {-8.36914, -7.56445, -1.9919}, {10.0031, 13.1348, -3.24713}, {6.64661, 16.3125, -3.24713}, {-2.44495, 12.7783, -3.24713}, {-9.6897, 16.4341, -3.24713}, {-3.36499, 16.8418, -3.24713}}; }; /////////////////////////////////////////////////////////////////////////// // Industrial /////////////////////////////////////////////////////////////////////////// class Land_ContainerCrane_01_F { table = "Industrial"; positions[] = {{21.9863, 10.7412, -29.7253},{16.7583, 6.07129, 1.22021},{9.33081, 3.04004, 1.2331},{-3.68262, 6.24805, 1.23471},{-12.2251, 7.34277, 1.23625},{-14.718, -1.59375, 1.23302},{-8.86938, -8.3252, 1.23632},{8.94922, -4.05078, 1.2331},{18.71, -3.98828, 1.23309}}; }; class Land_Crane_F { table = "Industrial"; positions[] = {{-7.68018, -1.75293, 5.74145},{-8.2002, 1.41895, 5.74145},{-10.165, 0.147461, 5.74145}}; }; class Land_DryDock_01_end_F { table = "Industrial"; positions[] = {{16.4692, 7.59668, 5.13889},{20.4192, -3.24316, 5.13889},{16.4756, -9.06152, 5.2074},{20.5193, -12.4082, 5.13889},{13.2393, 7.88184, -5.54043},{7.13916, 14.9219, -5.54043},{2.26929, -11.4385, -5.54043},{-16.304, 7.58594, 5.13889},{-20.1809, -3.24316, 5.13889},{-19.8108, -7.58203, 5.13889},{-16.3308, -11.7334, 5.17903},{-13.0007, 7.88184, -5.54043},{-1.50073, -2.81836, -5.54043},{-6.90088, 14.9219, -5.54043},{7.03149, -17.3389, -5.54042},{-6.79297, -17.3389, -5.54043}}; }; class Land_DryDock_01_middle_F { table = "Industrial"; positions[] = {{14.4111, -8.98047, -5.51673},{13.1912, 7.58008, -5.51673},{5.41113, 7.47949, -5.51673},{8.42114, -5.08984, -5.51673},{3.25098, -9.7998, -5.51673},{-13.5889, 8.37988, -5.51673},{-4.98901, 7.43945, -5.51673},{-19.3076, 8.96875, 5.10521},{-17.541, 0.825195, 5.10521},{-11.0889, -8.13965, -5.51673},{17.5417, -9.99805, 5.10564},{17.5461, 0.888672, 5.10564}}; }; class Land_GantryCrane_01_F { table = "Industrial"; positions[] = {{-2.271, 1.99902, 8.67491},{-2.19482, -2.53613, 8.67491}}; }; class Land_HaulTruck_01_abandoned_F { table = "Industrial"; positions[] = {{-0.733643, -4.39258, 1.27749},{1.72559, -4.19336, 1.27749}}; }; class Land_MiningShovel_01_abandoned_F { table = "Industrial"; positions[] = {{5.90039, -8.41406, -0.680836},{5.30249, 0.911133, -0.750746},{1.73145, -7.10645, 4.10613},{-0.78125, -7.8584, 3.78039},{-2.5144, -11.2598, -0.662592}}; }; class Land_MobileCrane_01_F { table = "Industrial"; positions[] = {{6.61865, 5.51465, -19.4957},{12.4185, 5.52832, -19.4957},{6.77734, 2.48828, -19.1123},{6.82275, 0.642578, -19.1123},{6.76855, -2.50488, -19.1123},{6.61865, -5.69727, -19.4957},{12.4185, -5.68359, -19.4957},{8.16138, -2.75, -14.0492},{14.1155, -2.79102, -14.0492},{13.1208, 2.95801, -14.0492},{8.25806, 2.69824, -14.0492},{9.73926, -3.37109, -8.33325},{7.85254, -3.33691, -8.33325}}; }; class Land_MobileCrane_01_hook_F { table = "Industrial"; positions[] = {{6.61841, 5.51465, -19.4957},{12.4185, 5.52832, -19.4957},{6.77734, 2.48828, -19.1123},{6.82275, 0.642578, -19.1123},{6.76855, -2.50488, -19.1123},{6.61865, -5.69727, -19.4957},{12.4185, -5.68359, -19.4957},{8.16138, -2.75, -14.0492},{14.1155, -2.79102, -14.0492},{13.1208, 2.95801, -14.0492},{8.25806, 2.69824, -14.0492},{9.73926, -3.37109, -8.33325},{7.85254, -3.33691, -8.33325}}; }; class Land_ReservoirTower_F { table = "Industrial"; positions[] = {{-1.8457, 1.83105, -1.8427},{1.28613, -3.4502, -1.82695}}; }; class Land_SCF_01_chimney_F { table = "Industrial"; positions[] = {{-2.90894, -3.98145, -8.22002},{-5.19727, 0.483398, -8.22001},{-2.74243, 3.57422, -8.22002},{1.39404, -2.61523, -8.22002},{-2.94604, -3.01563, 24.2917},{-4.51831, 0.609375, 24.2917},{-2.34399, 2.65234, 24.2917},{1.09497, 2.86914, 24.5735},{0.949951, -1.91992, 24.2917}}; }; class Land_SCF_01_clarifier_F { table = "Industrial"; positions[] = {{6.31934, 1.11719, -5.07754},{6.35181, -5.78027, -2.05335},{5.80225, 1.04688, 0.371124},{4.8501, 1.52344, 0.371122},{4.57251, -5.60938, -2.05335},{1.25488, -3.93555, 0.371124},{1.25488, 5.8916, 0.371126},{-4.4187, -3.93555, 0.371172},{-4.4187, 5.8916, 0.371126},{-7.25879, 0.977539, 0.371134},{-5.23145, 3.17676, 7.60777},{-5.40259, -1.02637, 7.59169},{-1.8186, -3.29688, 7.60185},{1.91064, -1.34082, 7.60829},{2.08765, 2.9043, 7.62741},{-1.5791, 4.27539, 7.77099}}; }; class Land_SCF_01_condenser_F { table = "Industrial"; positions[] = {{-7.45361, 12.4902, -1.53951},{-4.16528, 12.1348, -1.55146},{-7.45361, 8.12109, -1.53947},{-4.35181, 8.12012, -1.53409},{-5.70166, 6.4541, -1.55146},{-5.93872, 10.8223, -1.55146},{-5.64185, 9.74805, -1.55146},{4.58057, 3.21387, 1.96246},{2.80396, 0.202148, 1.96246},{6.25342, 0.44043, 1.96246},{4.53931, -1.2666, 1.96246}}; }; class Land_SCF_01_crystallizer_F { table = "Industrial"; positions[] = {{2.20264, 7.78516, -5.9044},{8.84692, 7.78027, -2.77431},{2.27319, 7.78516, -0.472961},{8.79834, 7.79199, 2.56268},{2.07471, 6.86914, 4.95764},{-0.962646, 5.40723, 4.97862},{-4.38184, 5.43555, 4.9786},{-7.49756, 5.44922, 4.9786},{-0.962402, -1.41113, 4.98178},{-7.49756, -1.36914, 4.98496},{-9.3103, 3.76563, 4.98026},{-9.31396, -0.415039, 4.98437},{-4.08789, -0.424805, 4.9833},{4.40259, 5.44922, 4.97856},{4.40283, -1.36914, 4.97918},{5.99756, 3.74316, 4.97839},{5.98828, -0.450195, 4.97857},{1.42236, 3.75684, 4.9802},{-0.962646, 5.40723, -0.465189},{-7.49756, 5.44922, -0.465189},{-9.37109, 3.75684, -0.465189},{-9.36157, 1.57715, -0.465191},{-4.04639, 3.75684, -0.465189},{1.28687, 0.494141, -0.465189},{5.12744, 3.75684, -0.465189},{1.25757, 1.57129, -0.465189},{5.62524, 5.44922, -0.465189},{5.62524, 0.507813, -0.465189},{8.48071, 3.75684, -0.465189},{8.5022, 1.57129, -0.465189}}; }; class Land_SCF_01_crystallizerTowers_F { table = "Industrial"; positions[] = {{4.72705, -3.80957, 12.1495},{8.42017, -2.21777, 12.1495},{8.79761, 1.83398, 12.1495},{6.02148, 4.5293, 12.1495},{2.47388, 2.88184, 12.1495},{1.92188, -1.41602, 12.189},{-5.33594, -3.83496, 12.1575},{-1.43774, -2.02148, 12.1575},{-1.31299, 1.89746, 12.5944},{-4.27319, 4.5293, 12.1575},{-7.72998, 2.84473, 12.1575},{-8.40088, -1.15332, 12.1887},{0.365723, 0.235352, 12.1987},{-3.44092, -3.75098, -6.98271},{-0.304688, -3.69727, -6.98271},{1.25513, -2.48535, -6.9827},{-2.46533, -2.5498, -6.98255},{3.07031, -3.72168, -6.98271},{4.90088, -3.61523, -6.98271}}; }; class Land_SCF_01_diffuser_F { table = "Industrial"; positions[] = {{-8.25195, 23.5225, -2.37402},{-1.9043, 23.3721, -2.37402},{2.28149, 23.7813, -2.37402},{6.88208, 23.6113, -2.37402},{6.71021, 9.92188, -2.37402},{6.87622, 18.3623, -2.37402},{6.83472, 1.33789, -2.37402},{6.87622, -7.25293, -2.37402},{6.34106, -23.2354, 2.33232},{3.65186, -21.8379, 2.33232},{0.114014, -23.5957, 2.35555},{-7.36475, -23.2051, 2.33232},{-4.10059, -21.793, 2.33232},{-5.35229, -12.7754, 4.52572},{1.0542, -14.4561, 4.52572},{4.99634, -17.8154, 4.52572},{3.01147, -18.8594, 4.52572},{2.86426, -12.6387, 4.52572}}; }; class Land_SCF_01_feeder_F { table = "Industrial"; positions[] = {{4.86865, 12.1465, -3.33626},{0.436523, 17.4316, -3.33626},{-4.55176, 14.5176, -3.33626}}; }; class Land_SCF_01_generalBuilding_F { table = "Industrial"; positions[] = {{14.334, -0.46582, -4.87007},{14.334, 2.69629, -4.87006},{14.0728, 4.17676, -4.87005},{1.07861, -24.2744, -0.354742},{-4.60767, -24.2568, -0.354109},{-1.45044, -14.6309, -4.84514},{0.82959, -21.9668, -4.84514},{-5.23193, -15.5225, -4.84514},{-5.23193, -20.3779, -4.84514},{0.897949, -16.6621, -4.84514},{-3.10083, -18.3438, -4.84514},{-7.53979, -8.16211, -0.35066},{-5.82178, -5.48535, 7.53344},{-5.82837, 7.19727, 7.57747},{-5.91724, 15.1963, 7.53357},{-6.04443, -11.5645, 7.44203},{1.63818, 17.5078, 11.2323},{1.83838, -11.5645, 11.3045},{-2.40601, 12.165, 9.25619},{1.10352, 2.26465, 10.804},{-4.48413, 1.98926, 8.16404},{1.06665, 20.3691, 10.9818},{-4.50415, 20.6543, 8.2311},{12.0906, -3.14453, 7.41085},{11.71, 2.01367, 7.5915},{12.0908, 7.18945, 7.41079},{11.71, 12.3467, 7.5915},{12.0938, 17.5186, 7.41184},{4.2146, -3.13965, 11.2645},{4.19458, 2.02051, 11.2351},{4.22046, 10.0293, 11.2857},{4.23657, 15.1973, 11.3193},{4.85327, 20.3662, 11.0314},{10.4482, 20.6523, 8.25541},{4.86206, -8.07227, 10.9426},{10.4482, -8.36719, 8.19658},{5.14331, -11.7627, 10.8526},{10.4604, -11.9209, 8.23243},{2.42944, -22.4482, 3.94098},{4.13257, -17.0049, -0.361994}}; }; class Land_SCF_01_storageBin_big_F { table = "Industrial"; positions[] = {{1.37769, 13.627, 7.90879},{9.89014, 6.30371, 8.00624},{10.1826, -6.13867, 8.00229},{-5.81763, -10.5547, 7.99491},{-11.9951, 1.1416, 7.99358},{-5.48584, 11.04, 7.98675}}; }; class Land_SCF_01_storageBin_medium_F { table = "Industrial"; positions[] = {{-6.86719, 2.24902, 6.72745},{0.320068, 7.36816, 6.72422},{6.81982, 2.11621, 6.73727},{-2.69751, -6.45508, 6.73897},{2.38794, -6.66699, 6.73858}}; }; class Land_SCF_01_storageBin_small_F { table = "Industrial"; positions[] = {{-3.10742, 2.34473, 7.31781},{0.0847168, 4.62598, 7.32273},{2.97827, 2.28809, 7.34985},{-1.2583, -1.51563, 7.33663},{1.01611, -1.61035, 7.34604}}; }; class Land_SCF_01_warehouse_F { table = "Industrial"; positions[] = {{2.38428, 10.7109, 3.95826},{-4.36938, 17.123, 2.78613},{11.988, 15.9063, 3.34447},{9.17725, 5.1377, 4.36988},{9.10986, -5.03711, 4.3945},{0.108398, -5.5459, 3.1112}}; }; class Land_SCF_01_washer_F { table = "Industrial"; positions[] = {{-4.57568, 8.00684, -1.80085},{3.07935, 9.40527, -1.80085},{6.34424, 6.25488, -1.80085},{5.36182, 2.12109, -1.74189},{6.32837, -1.6582, -1.80085},{5.3855, -5.95801, -1.69704},{-1.10571, 7.36523, -1.80085},{-5.48535, 5.35352, -1.80085},{-6.25439, 2.28418, -1.80086},{-5.21948, -1.6582, -1.80085},{-6.37622, -5.96875, -1.80085},{-5.26172, -11.3262, -1.73402},{-0.0224609, 1.28223, 2.17754},{-4.55737, 1.30859, 2.1776},{-6.23975, 6.87695, 2.1776},{6.92871, 4.69336, 2.1776}}; }; class Land_SM_01_reservoirTower_F { table = "Industrial"; positions[] = {{-2.59717, 0.891602, -1.99113},{1.46973, -3.23242, -1.98599},{0.704834, 2.8623, -2.00094}}; }; class Land_SM_01_shed_F { table = "Industrial"; positions[] = {{-7.63892, 0.208984, -1.59421},{-7.74121, 4.16016, -1.59421},{1.08545, 2.70996, -1.59421},{-3.43799, -0.211914, -1.59421},{-6.10669, 6.38477, -1.59421},{5.42358, 4.74316, -1.59421},{4.89355, -0.0634766, -1.59421},{10.5295, 1.25781, -1.59421},{14.3044, 2.56445, -1.59421},{14.6626, -1.02832, -1.59421}}; }; class Land_SM_01_shed_unfinished_F { table = "Industrial"; positions[] = {{-7.58374, 0.210938, -1.64209},{-7.68628, 4.16211, -1.64209},{1.14063, 2.71191, -1.64209},{-3.38281, -0.208984, -1.64209},{-6.05151, 6.3877, -1.64209},{5.47876, 4.74512, -1.64209},{4.94849, -0.0615234, -1.64209},{10.5845, 1.25977, -1.64209},{14.3594, 2.56738, -1.64209},{14.7175, -1.02539, -1.64209}}; }; class Land_StorageTank_01_large_F { table = "Industrial"; positions[] = {{-5.26636, -8.7168, 0.685705},{7.5376, -8.96484, 0.685705},{9.66333, -14.584, 1.25553},{-9.50464, -14.8418, 1.24478},{-17.2966, 3.29102, 1.2443},{-3.35693, 17.2061, 1.25514},{2.25879, 9.52734, 0.685705}}; }; class Land_StorageTank_01_small_F { table = "Industrial"; positions[] = {{-0.796387, 0.594727, 4.88818},{-6.31348, 3.91211, 3.66358},{2.63135, 7.28418, 3.60974},{7.54492, -2.71191, 3.30923},{-3.45142, -8.1748, 2.89969}}; }; class Land_SY_01_conveyor_end_F { table = "Industrial"; positions[] = {{-0.00488281, 2.75, 5.24897},{-1.54126, -0.825195, 5.24897}}; }; class Land_SY_01_crusher_F { table = "Industrial"; positions[] = {{8.23657, 6.33301, -1.09768},{7.81909, 16.5752, -1.08356},{-2.04224, 16.8691, -1.09297},{-7.8064, 8.47754, -1.08161},{2.10229, 14.3193, 11.3212},{6.33032, 4.37402, 11.7734},{-3.43262, 3.04688, 11.8368},{-7.92847, 9.2002, 11.5554},{0.595947, 8.41211, 11.5916}}; }; class Land_SY_01_reclaimer_F { table = "Industrial"; positions[] = {{-14.1489, 2.63379, -2.28311},{-14.2458, 5.48145, -2.28683},{-13.6816, 1.11719, -2.28615},{-11.7661, -0.139648, -2.28826},{-14.9082, 1.87012, -1.96475}}; }; class Land_SY_01_shiploader_arm_F { table = "Industrial"; positions[] = {{-4.59619, 2.30664, 0.389979},{10.1455, 2.12012, 0.389979},{14.0559, -2.29004, 0.389979},{-0.133545, -2.05566, 0.389979}}; }; class Land_SY_01_shiploader_F { table = "Industrial"; positions[] = {{20.2991, 5.68164, -2.65544},{21.0994, 3.10059, 4.28977},{6.71289, 1.40137, 3.15136},{-3.97119, 1.40234, 3.09128},{-14.6008, 1.36523, 3.04038},{-21.2002, 0.898438, 5.34398},{6.71411, -2.24316, 3.08376},{-3.96802, -2.23438, 3.02955},{-14.6001, -2.16406, 3.02285},{-20.8071, -1.34668, 5.3525}}; }; class Land_TTowerBig_1_F { table = "Industrial"; positions[] = {{1.86597, -0.705078, 2.92152},{0.969727, 1.45703, 2.93679},{-1.77271, 1.64063, 2.94032},{-0.356689, -2.06641, 2.9476}}; }; /////////////////////////////////////////////////////////////////////////// // Factories /////////////////////////////////////////////////////////////////////////// class Land_DPP_01_mainFactory_F { table = "Factories"; positions[] = {{-21.6887, 4.69238, -8.67055},{-21.6733, -14.5742, -8.68732},{-19.5613, -8.34766, -4.42347},{0.0639648, -5.23926, 1.12253},{0.453125, -14.0039, 1.12253},{-7.25708, -15.957, 1.12253},{-8.34741, -9.97949, 1.12253},{-7.28394, 3.64258, 1.12253},{3.70215, 9.25879, 1.12253},{7.29419, 5.17871, -0.317474},{8.38037, -7.69629, -0.317478},{8.1936, -14.2451, -0.317478},{12.5447, -1.97852, -4.25747},{13.1741, 1.39941, -4.25747},{12.9707, 4.99414, -4.25747},{17.3352, -1.26465, -5.51371},{16.3391, -11.3018, -4.07347},{16.1682, -7.34863, -4.07347},{14.2576, -17.1299, -4.07347},{20.6343, -4.13281, -7.43347},{18.5691, 5.11328, -7.64927}}; }; class Land_DPP_01_smallFactory_F { table = "Factories"; positions[] = {{9.78833, -1.48145, 1.69896},{-1.29395, 3.17383, 3.0918},{-8.48071, -4.74707, 3.28734},{2.12598, -5.53613, 3.2094},{6.54004, 0.380859, 3.26465}}; }; class Land_SCF_01_boilerBuilding_F { table = "Factories"; positions[] = {{19.9551, 13.1162, -13.218},{21.5356, 1.60742, -13.218},{11.6555, 4.40039, -13.218},{13.1863, 12.2744, -13.218},{18.5403, 11.7012, -8.65283},{21.9075, 0.967773, -8.67283},{12.26, -8.82227, -5.55016},{8.29736, -21.2119, 0.826183},{4.57446, -14.8301, 1.65308},{5.99463, -12.5732, 1.36908},{5.23267, -5.7373, 1.49743},{4.57446, -4.2998, 1.63667},{5.99414, -2.46094, 1.34452},{10.4329, -0.328125, 0.421211},{21.0168, 9.04688, -16.6483},{-4.15381, -14.8213, 1.55791},{-4.17993, -13.3525, 1.56871},{-5.60059, -12.583, 1.30381},{-9.26074, -0.237305, 0.512077},{-4.14819, -4.30078, 1.61219},{-5.60522, -2.44141, 1.27797},{-4.01392, 9.2998, 7.56076},{4.7417, 1.46777, 7.63056},{-3.20605, 3.65332, 7.73126},{3.93311, 6.58203, 7.81587},{9.89307, 10.834, 0.533249},{4.55322, 15.792, 1.64978},{6.08081, 15.3867, 1.32867},{4.28442, 16.8301, 1.70323},{8.29419, 20.9619, 0.847332},{-9.09326, 10.5137, 0.533012},{-5.5918, 15.3896, 1.23261},{-3.76025, 16.832, 1.60073},{-4.81055, 18.3252, 1.37109},{-12.2722, 20.1699, -4.55378},{-17.0876, -14.2314, -3.77558},{-17.0906, -10.9219, -3.76845},{-10.5383, -17.9766, -5.09464},{-12.7368, -2.11035, -4.39582},{-13.4448, 7.83496, -4.15535},{-10.5427, -21.3369, -5.09303},{-1.83618, 23.6367, -13.188}}; }; class Land_chz_kamaz_fura { table = "Industrial"; positions[] = { {2.3584,-3.14746,-1.75787}, {0.0244141,-4.65039,-1.74365}, {-1.84668,-1.05469,-1.70581}, {2.06445,2.52148,-1.612} }; }; class Land_chz_kamaz_pricep { table = "Industrial"; positions[] = { {1.72168,7.17578,-1.66327}, {0.0639648,7.5,-1.79095}, {-1.53662,6.94922,-1.91425}, {-2.1582,2.28906,-2.09381}, {-1.89893,-2.92969,-2.01239}, {1.2832,1.37695,-1.86523}, {2.29492,-3.81641,-1.77789} }; }; class land_nav_pier_c_big { table = "Factories"; positions[] = { {15.2891,9.26563,23.2817}, {-0.743164,9.94824,23.2817}, {-15.2441,9.64453,23.2817}, {-15.4316,-3.91406,23.2817}, {-14.5889,-19.2871,23.2817}, {2.3623,-20.7207,23.2817}, {15.4746,-20.7148,23.2817}, {16.1982,-4.72949,23.2817}, {0.517578,-4.32715,23.2817}, {-6.2959,1.93945,22.9917}, {-5.9043,-8.38281,22.9884}, {4.13086,-8.43848,22.9917}, {7.61914,4.35645,22.9917}, {12.582,-1.91113,22.9917}, {9.30078,-8.81055,22.9917}, {8.96387,-20.7549,22.9779}, {-11.4238,-21.4883,22.9677}, {-16.0547,-16.5137,22.9725}, {-11.4424,-11.3965,22.9817}, {-18.1387,-0.222656,22.9917} }; }; class Land_chz_uaz_1 { table = "Industrial"; positions[] = { {-1.67529,1.39063,-0.948364}, {1.79639,1.37891,-1.04602}, {-0.277832,-2.76172,-1.07098} }; }; class Land_Dam_Conc_20 { table = "Industrial"; positions[] = { {9.35742,7.60547,9.09345}, {8.65088,1.96289,9.09345}, {4.19092,7.93555,9.09344}, {1.43457,2.30859,9.09345}, {-1.23242,5.70898,9.09345}, {-8.17578,7.81445,9.09345}, {-6.26514,2.46875,9.09345} }; }; class Land_Dam_ConcP_20 { table = "Factories"; positions[] = { {-8.21436,8.10938,9.08311}, {-8.76318,3.30371,9.08309}, {-4.78906,2.39258,9.08311}, {-1.48438,1.55859,9.08309}, {-2.2583,7.23828,9.08309}, {1.32666,7.41602,9.08309}, {1.60107,2.6582,9.08309}, {5.77393,7.61719,9.08309}, {6.23682,2.25586,9.08311}, {9.50098,5.07031,9.08309}, {5.35986,5.11523,9.08308}, {-0.0253906,5.21289,9.08309}, {-3.39893,3.97754,9.08309} }; }; class Land_BackAlley_01_l_gate_F { table = "Military"; positions[] = { {-0.959473,0.855469,-1.70004}, {1.14844,2.48145,-1.70004}, {-1.03223,2.77441,-1.70004}, {1.06494,4.82129,-1.70004}, {-0.810059,6.91504,-1.70004}, {0.961914,8.20313,-1.70145}, {-1.18848,9.99414,-1.70145}, {0.958496,10.3359,-1.70145} }; }; class Land_Bunker_01_big_F { table = "Military"; positions[] = { {-3.37354,1.19922,0.213226}, {-4.84521,-2.46094,0.218231}, {-3.27295,-6.70313,0.221069}, {-1.62646,-6.70313,0.221069}, {1.21436,-6.59473,0.221069}, {2.86084,-6.59473,0.221069}, {4.52148,-2.22363,0.0444336}, {2.37744,4.98145,-1.39151}, {2.93213,1.45996,0.0886536}, {-0.417969,2.3584,0.0869141}, {0.994141,-3.64063,0.0857544}, {-1.01709,-3.33691,0.0887756}, {0.742676,-0.341797,0.086792} }; }; class Land_Misc_GContainer_Big { table = "Industrial"; positions[] = { {-3.62891,-0.376953,-0.688385}, {-1.83105,-2.17285,-0.688385}, {1.82715,-3.17676,-0.688385}, {3.64648,-1.28125,-0.686523}, {3.90723,0.949219,-0.686523}, {2.23047,1.98438,-0.688385}, {0.12793,1.78418,-0.688385}, {-1.54199,1.88477,-0.688385}, {-3.83398,1.60645,-0.688385} }; }; class Land_Walkover_01_F { table = "Industrial"; positions[] = { {-0.0917969,-1.60156,0.921143}, {-0.0361328,-0.744141,1.46036}, {-0.0146484,1.19922,1.46036}, {-0.00292969,2.2793,1.10245}, {-0.015625,4.82031,-1.33725} }; }; class Land_fortified_nest_big { table = "Military"; positions[] = { {3.46875,3.06348,-0.712311}, {0.758789,3.06152,-0.712311}, {-3.31445,3.05469,-0.712311}, {-0.951172,1.61816,-0.712311}, {-0.679688,-1.31641,-0.712311}, {-3.46973,-3.80078,-0.712311}, {0.303711,1.25879,-0.712311}, {0.293945,-1.86328,-0.712311}, {3.59375,-4.14648,-0.712311}, {-0.194336,-4.40039,-0.712311} }; }; class Land_DPP_01_waterCooler_F { table = "Industrial"; positions[] = { {-5.47852,1.60059,1.76346}, {-5.36426,-0.820313,1.76346}, {-5.37598,-3.29297,1.76346}, {-4.3584,-3.39746,2.396}, {-2.625,-3.2959,2.396}, {-0.72168,-3.29395,2.396}, {1.30762,-3.05371,2.396}, {3.08203,-3.20898,2.396}, {2.04785,-4.14258,1.76346}, {-0.472656,-4.00293,1.76346}, {-2.65723,-3.9834,1.76346}, {4.07324,-2.77246,1.76346}, {4.11133,-1.16309,1.76346}, {3.92578,0.398438,1.76346}, {4.07324,2.14941,1.76346} }; }; class Land_TBox_F { table = "Industrial"; positions[] = { {-0.765625,-1.92578,-2.181}, {-2.5293,-1.44678,-2.181}, {2.14551,-1.90771,-2.181}, {2.51758,1.4126,-2.181}, {-1.54004,1.87305,-2.181}, {1.00293,2.07178,-2.181}, {-2.72168,0.381348,-2.181} }; }; class Land_IndPipe1_stair_EP1 { table = "Industrial"; positions[] = { {2.19482,-0.246094,-0.633087}, {-0.0385742,-0.326172,0.921509}, {-1.32617,-0.289063,0.291077}, {0.97168,-0.275391,0.282593} }; }; class Land_bouda_plech_open { table = "Industrial"; positions[] = { {0.495117,-0.873047,-1.03046}, {0.499023,0.712402,-1.03046}, {-1.61914,1.36377,-0.959534}, {-1.47852,-2.02441,-0.959534}, {0.364258,-2.99707,-0.956848}, {0.0332031,3.20898,-0.959534} }; }; class Land_Ind_Workshop01_03 { table = "Industrial"; positions[] = { {-1.81445,-1.88379,-1.31012}, {0.148926,0.611328,-1.31012}, {-1.93115,-4.69434,-1.39145}, {-0.623047,-5.30859,-1.39145}, {1.19238,3.04297,-1.31888}, {1.18799,-4.76758,-1.28326}, {1.41455,-2.82422,-1.28326}, {-2.1875,5.02832,-1.28326}, {1.43457,5.70117,-1.28326}, {-0.210449,5.8291,-0.410675}, {1.34229,-2.16406,-0.51712}, {-2.2334,-5.89355,-1.11917} }; }; class Land_A_Castle_Stairs_A { table = "Military"; positions[] = { {0.526367,-1.58594,1.069}, {-0.111328,1.60547,1.21814}, {8.87305,1.01074,7.32541}, {7.95703,-1.60547,-3.32474}, {9.25,-0.0878906,1.216}, {6.80762,2.5957,1.216}, {3.15918,0.855469,1.01129}, {6.19727,0.0771484,0.919739} }; }; class Land_Bunker_01_HQ_F { table = "Military"; positions[] = { {4.6084,-0.148438,-0.912231}, {-1.21484,-2.30566,-0.912231}, {0.820313,2.3623,-0.912231}, {-4.66016,-0.161133,-0.912231}, {4.6084,-0.148438,-0.912231}, {-1.21484,-2.30566,-0.912231}, {0.820313,2.3623,-0.912231}, {-4.66016,-0.161133,-0.912231}, {-3.73926,-3.78516,-0.897827}, {3.06641,-4.28809,-0.897827}, {1.49219,-1.50977,-0.897827}, {-2.06055,2.17871,-0.897827}, {-3.9668,3.95996,-0.897827}, {3.4082,3.84473,-0.897827}, {2.71875,5.88379,-1.33417} }; }; class Land_Bunker_01_tall_F { table = "Military"; positions[] = { {-2.21582,-0.0947266,-3.32404}, {-0.714844,-0.174805,1.51242}, {-2.47461,-2.27441,1.60239}, {0.0634766,-2.61133,1.55411}, {2.60742,-2.3584,1.51242}, {2.92578,0.829102,1.51242}, {1.46094,1.54688,-3.33868}, {-0.391602,-1.71875,-2.26743}, {1.59961,-1.87305,-2.26743}, {1.47656,1.64551,-0.689423}, {-2.51758,2.02344,1.52954} }; }; class Land_Tovarna1 { table = "Factories"; positions[] = { {-1.58008,-8.16504,-5.68835}, {-7.32129,-7.7207,-5.68835}, {-8.3877,-3.58691,-5.68835}, {-6.13184,0.00195313,-5.68835}, {2.88477,0.282227,-5.68835}, {3.55469,-7.22754,-5.68835}, {-10.0498,1.52637,-5.68835}, {-9.42871,5.50879,-5.68835}, {-3.55664,5.71875,-5.68835}, {1.7373,5.45313,-5.68835}, {-9.13574,-3.4502,-2.64395}, {-9.28418,-7.93555,-0.196442}, {-11.5918,1.27539,-0.196442}, {-0.15918,-7.87207,-0.196442}, {-2.13477,3.23047,-0.196442}, {-2.10059,5.12207,-0.196442}, {5.29395,2.46094,-0.196442}, {-9.44434,-0.355469,2.28043}, {-4.30664,-1.57715,2.28043}, {-4.02832,3.33789,2.28043}, {-9.55273,-7.86719,2.28043}, {2.35938,-7.13672,2.28043}, {3.22266,-2.16602,2.28043}, {-1.06934,-1.7627,4.90259}, {1.06348,-2.81055,4.90259}, {3.52148,-7.96875,4.90259}, {-11.2725,-7.90039,4.90259}, {-11.415,3.3125,4.90259}, {3.68652,2.26172,5.16104}, {12.5059,-2.39844,-1.28879} }; }; class Land_Airport_01_hangar_F { table = "Military"; positions[] = { {8.95898,-9.79785,-2.52517}, {12.0181,13.4727,-2.52518}, {-10.2075,-9.12744,-2.52517}, {5.8147,13.7695,-2.52518}, {-1.56006,-9.01318,10.0354}, {1.97925,-9.09863,9.89562}, {1.59082,14.9136,10.0523}, {-1.62012,14.9653,10.0106}, {-12.5693,14.4248,5.62685}, {12.4443,14.3682,5.66134}, {12.323,-8.29688,5.70957}, {-11.4614,-8.4043,6.07055}, {6.85742,11.5645,7.92273}, {-12.0483,12.9092,5.8361}, {-12.0815,7.2959,5.82304}, {-6.69189,11.6968,7.98124}, {-12.0566,0.286133,5.83291}, {-6.73999,2.85596,7.96203}, {-11.9661,-5.2168,5.86893}, {13.1426,-5.25635,5.37797}, {6.71997,2.83203,7.97777}, {-6.91406,-9.40137,7.89165}, {6.70386,-9.34863,7.98395}, {13.3623,-0.267578,5.28921}, {13.1978,6.91016,5.35578}, {6.82178,-5.91895,7.93638}, {-6.72852,-5.88086,7.96628}, {-11.7761,11.0615,-2.5849}, {-5.64502,9.99756,-2.5849}, {0.134766,8.26123,-2.5849}, {11.4995,2.6582,-2.52576}, {12.9673,-3.01709,-2.5849}, {-3.16821,-1.41895,-2.5849}, {4.60156,-2.99023,-2.5849}, {-4.03442,-7.6123,-2.58489}, {-13.3325,-2.04102,-2.5849}, {-12.875,4.20898,-2.5849} }; }; class Land_Strazni_vez { table = "Military"; positions[] = { {1.80371,-1.27295,-0.584996}, {1.9082,1.23804,1.33129}, {0.65332,1.19312,1.42085}, {-0.824219,1.56665,1.42085}, {-2.22754,0.0888672,1.42085}, {-0.705078,-1.52368,1.42085}, {0.564453,-0.0012207,1.42085} }; }; class Land_chz_skladoleju_06_06 { table = "Military"; positions[] = { {-2.95459,0.369873,3.41863}, {-1.10303,0.306396,3.41862}, {1.97705,-1.99707,3.41862}, {1.58154,-4.08154,3.41862}, {-0.0205078,-3.56836,3.41862}, {3.3125,-0.943115,3.41862}, {3.15771,-2.99854,3.41862}, {2.97119,-5.42139,3.41862}, {0.940918,-5.35938,3.41862}, {-1.43018,-5.12939,3.41862}, {-1.23828,-2.74316,3.41862}, {-3.27197,-5.55859,-2.11372}, {-1.56982,-5.64087,-2.11372} }; }; class Land_Airport_02_hangar_right_F { table = "Military"; positions[] = { {4.18896,-25.0645,-1.12016}, {10.2217,-15.0649,-1.23186}, {7.01074,-12.7383,-0.492785}, {9.52661,-10.4272,-1.10353}, {10.2217,-1.14893,-1.23186}, {7.01074,5.82666,-0.492785}, {12.5198,-3.65479,-1.77333}, {12.5229,-22.3442,-1.77186}, {4.13525,-17.2266,-1.20877}, {4.51758,-7.02979,-1.20877}, {4.19727,2.8667,-1.20877}, {4.49072,11.1885,-1.20877}, {0.0917969,19.7183,-1.20877}, {-10.4084,20.0112,-1.20877}, {-16.5256,19.7183,-1.20877}, {-4.75684,19.9194,-4.64071}, {-8.47168,19.7183,-4.64071}, {-15.4038,20.0112,-4.64071}, {7.30688,-12.2847,-4.80357}, {1.92456,-10.188,3.02765}, {5.59546,-14.9009,2.0066}, {5.59521,-4.75732,2.0066}, {5.59521,5.18457,2.0066}, {2.87158,19.0161,2.76615}, {4.64111,12.9897,2.2656}, {-3.50977,-8.78076,4.66915}, {-3.50977,6.2749,4.66915}, {-0.800781,-15.1069,3.86664}, {-0.801025,0.0654297,3.86664}, {-0.80127,8.48193,3.86664}, {-2.56372,19.2837,4.39325}, {-5.86328,-22.7666,5.44235}, {-8.93311,5.40381,6.27215}, {-6.21558,-4.6958,5.51005}, {-7.9856,19.5527,6.01055}, {-6.21582,13.5264,5.51005}, {-11.3054,-24.5073,7.03805}, {-17.8433,-13.8267,8.95821}, {-17.8433,1.34521,8.95821}, {-11.6611,-7.0791,7.11135}, {-11.6582,9.01904,7.11105}, {-11.6621,-18.5249,7.11135}, {-13.4202,19.8208,7.63775}, {-10.562,19.0181,-4.64071}, {-14.7771,18.7485,-1.20808}, {-15.3645,18.73,-1.20877}, {-12.4375,18.4927,-3.55455}, {4.46191,-21.6333,-7.71196}, {-6.53809,-18.3218,-7.71795}, {-5.54175,-12.8691,-7.72616}, {2.28467,-13.6392,-7.72616}, {10.165,-7.80371,-7.72616}, {1.90991,-7.61279,-7.72616}, {0.858154,-2.06396,-7.72616}, {9.47144,-1.70215,-7.72616}, {10.2124,3.56396,-7.72616}, {-1.06396,4.4917,-7.72616}, {-8.30078,-0.691895,-7.72616}, {-8.31543,10.085,-7.72616}, {-9.41943,16.3726,-7.62226}, {-1.39648,16.0215,-7.72616}, {3.20996,18.604,-7.72616}, {2.78076,11.3784,-7.72616}, {-15.8882,17.9028,-7.72616}, {-17.5361,3.49463,-7.72616}, {-19.3569,-5.60498,-7.72616}, {-18.6055,-14.7295,-7.72616}, {-16.7734,-22.6714,-7.72576}, {-9.06299,-23.7896,-7.65775} }; }; class Land_Airport_02_hangar_left_F { table = "Military"; positions[] = { {-12.3733,-24.8784,-1.75419}, {-6.86108,-17.3872,-0.47513}, {-6.86108,-8.01172,-0.47513}, {-6.86108,1.17773,-0.47513}, {-12.3733,-12.9478,-1.7542}, {-12.3704,-3.65479,-1.75567}, {-12.3669,5.63818,-1.75715}, {-12.3733,-22.3442,-1.7542}, {-1.77466,-10.1885,3.0453}, {-5.4458,-14.8999,2.02425}, {-5.44556,-4.75732,2.02425}, {-5.4458,5.18506,2.02425}, {-2.72192,19.0161,2.7838}, {-4.49194,12.9897,2.28325}, {3.65991,-8.78027,4.6868}, {3.65967,6.2749,4.6868}, {0.950928,-15.1069,3.8843}, {0.950439,0.0649414,3.8843}, {0.950439,8.48193,3.8843}, {2.71265,19.2837,4.4109}, {6.01294,-22.7671,5.46}, {9.08252,5.40381,6.2898}, {6.36499,-4.6958,5.5277}, {8.13525,19.5527,6.0282}, {6.36499,13.5264,5.5277}, {11.4556,-24.5063,7.0557}, {18.0325,-13.8267,8.94056}, {18.033,1.3457,8.94056}, {11.811,-7.0791,7.129}, {11.8079,9.01904,7.1287}, {11.8113,-18.5249,7.129}, {13.5698,19.8208,7.6554}, {-4.03979,-21.3706,-1.19111}, {-4.40259,-17.1675,-1.19112}, {-3.9917,-12.1968,-1.19111}, {-4.36792,-7.02979,-1.19111}, {-4.04761,-2.04541,-1.19111}, {-4.34082,2.90869,-1.19111}, {-4.04761,7.00635,-1.19111}, {-4.34058,11.189,-1.19111}, {-4.04761,16.6338,-1.19111}, {0.092041,20.0112,-1.19111}, {5.05347,19.7183,-1.19111}, {10.5576,20.0112,-1.19111}, {15.519,19.7183,-1.19111}, {0.0576172,19.7183,-4.62306}, {-2.76196,19.9761,-4.62305}, {5.08765,20.0112,-4.62305}, {10.5232,19.7183,-4.62306}, {15.554,20.0112,-4.62305}, {-8.86548,-23.0171,-7.7063}, {-8.35962,-13.8652,-7.71538}, {-9.83716,-6.27979,-7.71538}, {-3.38037,-6.19189,-7.71538}, {1.23511,-1.74072,-7.71538}, {3.19946,2.26221,-7.71538}, {6.46289,1.22314,-7.71538}, {8.08936,-4.36768,-7.71538}, {4.3623,-10.1377,-7.71538}, {6.78491,-14.6187,-7.71538}, {3.41479,-18.5054,-7.71538}, {-0.66748,-16.5469,-7.71538}, {-11.1091,5.3999,-7.71538}, {-4.08081,5.86182,-7.71538}, {-0.4646,10.7065,-7.71538}, {-3.97046,19.3853,-7.71538}, {0.505859,18.4229,-7.71538}, {6.80298,14.8408,-7.71538}, {10.6357,18.8081,-7.71538}, {11.1206,11.9038,-7.71538}, {14.8579,12.4922,-7.71538} }; }; class Land_A_GeneralStore_01 { table = "Shop"; positions[] = { {-13.313,3.21167,-1.07579}, {-9.16455,2.51538,-1.07579}, {-1.13916,0.836914,-1.07579}, {-7.88916,4.54004,-1.07579}, {9.32324,4.66138,-1.07579}, {4.04395,-3.08008,-1.07579}, {-9.04785,-2.96997,-1.07579}, {4.17041,-6.53662,-1.07579}, {12.7788,-7.32178,-1.07579}, {10.7236,-4.92114,-1.07579}, {6.22168,-9.9043,-1.07579}, {3.23828,-8.68628,-1.07579}, {-1.67578,-6.94922,-1.07579}, {-5.5542,-10.1042,-1.07579}, {-9.31934,-5.93677,-1.07579}, {-11.9385,6.27979,-1.07579}, {-1.71826,6.6499,-1.07579}, {-6.14648,11.1812,-1.07579}, {7.99219,6.62549,-1.07579}, {0.681152,-9.77344,-1.07579}, {-11.7939,-10.0901,-1.07579}, {10.9888,0.19751,-0.557556}, {10.9624,2.71729,-0.287594}, {10.6909,-0.0229492,-0.201979}, {10.625,2.22705,-0.913939}, {6.40576,2.97998,-0.913939}, {4.79883,2.96826,-0.290331}, {2.83398,2.95044,0.0620079}, {3.74219,3.0332,-0.913939}, {1.54639,2.6709,-0.557556}, {0.651367,3.08081,-0.269983}, {-0.211914,2.9502,-0.272364}, {-1.66602,3.04028,-0.201982}, {1.24414,2.62378,-0.557556}, {1.25,2.52075,0.0896111}, {-1.45117,2.7146,0.0787792}, {-0.806641,2.75366,-0.913939}, {3.2627,2.69458,-0.913939}, {4.00879,2.75708,-0.278296}, {5.73975,2.77075,-0.285101}, {4.90381,2.71338,-0.557556}, {3.17627,0.0317383,-0.270208}, {4.02441,0.100586,-0.557556}, {1.71436,0.019043,0.0625286}, {0.425781,-0.00317383,-0.997084}, {-0.413574,0.0222168,-0.287867}, {-1.92773,-0.00415039,0.080801}, {-1.97266,-0.221191,-0.913939}, {-1.08447,-0.203369,-0.26412}, {0.550293,-0.279785,-0.201979}, {1.52148,-0.272949,-0.913939}, {2.83008,-0.256836,-0.557556}, {3.95361,-0.265869,0.149471} }; }; class Land_chz_janov_boudicka { table = "Military"; positions[] = { {-0.450928,3.54883,-15.688}, {2.3335,3.22754,-15.6999}, {-1.30713,-3.70313,-15.5244}, {2.71704,-3.60254,-15.5769}, {-0.977295,0.0761719,-15.6386}, {3.83179,-0.842773,-14.4161}, {4.10376,0.958008,-14.4197}, {-0.776367,0.864258,-11.0047}, {-1.11279,-0.832031,-10.995}, {5.56494,-0.275391,0.00472069}, {5.37793,3.54004,-0.00893211}, {4.54932,5.26465,-0.0472336}, {0.983398,5.46582,-0.23908}, {-2.72412,5.71484,-0.389122}, {-2.82837,2.87695,0.0257587}, {-2.52295,0.161133,0.0138454}, {1.25098,1.8457,0.0271225}, {1.31567,-2.58398,0.0679188}, {-2.27832,-2.28809,0.00471878}, {-1.96191,-5.59863,0.0248451}, {2.0752,-5.47852,0.0137825}, {5.90845,-3.93359,0.0546436} }; }; class Land_Airport_02_terminal_F { table = "Military"; positions[] = { {-20.522,-10.0713,-1.20306}, {-3.74561,-6.38184,-1.20306}, {9.94922,-6.34375,-1.20306}, {10.6797,-4.19531,-1.20306}, {10.6133,4.53613,-1.20308}, {4.42969,4.58594,-1.20308}, {21.9434,10.9531,-1.20308}, {22.6475,-10.2969,-1.20306}, {3.54053,10.3926,-1.20308}, {-1.00098,10.4902,-1.20308}, {5.22168,3.44141,-1.30908}, {4.75586,-3.74902,-1.30908}, {1.47217,5.52051,-1.30908}, {0.242676,-1.78418,-1.30908}, {22.7085,-5.63184,-1.30908}, {22.874,0.146484,-1.30908}, {14.2964,11.6602,-1.30908}, {9.08838,11.7578,-1.30908}, {-6.36914,11.4668,-1.30908}, {-16.0532,11.4648,-1.30908} }; }; class Land_Mil_Guardhouse { table = "Military"; positions[] = { {-2.44531,3.33057,-1.59004}, {-0.606445,2.78662,-1.59004}, {1.20703,3.27734,-1.59004}, {0.165039,0.25,-1.59004}, {1.65869,1.323,-1.59004}, {2.72412,-2.68384,-1.59004}, {-0.455566,-3.45996,-1.59004}, {-2.38525,-2.74902,-1.59004}, {0.30957,-2.31787,-1.59004}, {-1.59814,-1.73535,-1.59004}, {-2.66992,-0.243896,-1.59282}, {4.55859,3.35376,-1.59091}, {3.83496,-0.0739746,-1.59091} }; }; class Land_stan_east { table = "Military"; positions[] = { {0.0161133,-3.37402,-1.07193}, {-1.93018,-2.56592,-1.07193}, {-1.96045,2.13672,-1.07193}, {1.81299,2.10693,-1.07193}, {1.81299,-2.56543,-1.07193}, {0.113281,-1.10791,-1.25192} }; }; class Land_Mil_House { table = "Military"; positions[] = { {-0.899414,3.1521,-4.83632}, {5.60498,3.39282,-4.83632}, {-5.77246,4.61255,-4.83632}, {-9.38525,4.61255,-4.83632}, {-11.6353,4.61279,-4.83632}, {-10.9614,2.66235,-4.83632}, {-14.4497,2.53516,-4.83632}, {-10.2188,-1.30542,-4.83632}, {-9.97412,-6.87134,-4.83632}, {-7.68652,-6.87158,-4.83632}, {-7.93115,-1.30542,-4.83632}, {-0.868652,-4.13013,-2.95436}, {-0.86084,1.65381,-0.626572}, {-2.28174,4.7229,-0.626572}, {-5.77246,4.61255,-0.561539}, {-9.38525,4.61255,-0.561539}, {-11.6353,4.61279,-0.561539}, {-14.4497,2.53516,-0.561539}, {-10.2188,-1.30542,-0.561539}, {-9.97412,-6.87134,-0.561539}, {-7.68652,-6.87158,-0.561539}, {-7.93115,-1.30542,-0.561539}, {2.94873,1.57935,-4.83632}, {2.94824,-2.01001,-4.83632}, {2.80811,-7.33032,-4.83632}, {7.68213,-2.01001,-4.83632}, {7.68164,-7.33032,-4.83632}, {11.6636,-2.01001,-4.83632}, {15.064,-2.01001,-4.83632}, {7.68213,1.57935,-4.83632}, {9.26563,3.5481,-4.83632}, {-2.55273,-6.69897,-4.93291}, {-0.748047,-3.3313,-4.93291}, {-1.60303,-4.06128,-2.71011} }; }; class Land_mash_ep1 { table = "Medical"; positions[] = { {0.598633,1.69971,-1.12686}, {1.55005,1.16211,-1.12686}, {1.56787,-1.87256,-1.12686}, {-0.448242,-1.86963,-1.12686}, {-0.318848,1.11719,-1.12686} }; }; class Land_HouseV_2L { table = "CivillianUpperClass"; positions[] = { {6.09473,2.00439,-3.78609}, {1.25439,1.54785,-3.7583}, {1.41846,4.69824,-3.7583}, {-2.78687,4.68652,-3.7583}, {-4.04565,4.50635,-3.7583}, {-4.49902,2.84326,-3.7583}, {-2.40186,1.09473,-3.7583}, {-1.02515,-1.54248,-3.7583}, {-1.62646,-4.28125,-3.7583}, {1.97998,-4.08105,-3.7583}, {-5.25537,-3.9314,-3.78609}, {-3.92529,-1.20947,-2.28146}, {-0.980957,-0.48291,-0.709}, {1.97217,-1.42773,-0.709019}, {2.01611,-3.74219,-0.709019}, {1.48633,-3.95654,-0.709019}, {-2.87402,-3.79053,-0.709019}, {1.72559,1.45654,-0.709019}, {-3.06055,1.79224,-0.709019}, {-3.17578,4.78467,-0.709019}, {-0.341553,4.27979,-0.709019}, {1.51172,4.69971,-0.709019} }; }; class Land_HouseV_1I1 { table = "CivillianUpperClass"; positions[] = { {0.0537109,-2.24365,-2.70216} }; }; class Land_HouseV_3I2 { table = "CivillianUpperClass"; positions[] = { {4.97827,2.39673,-2.21109}, {3.06641,-0.319336,-1.91416}, {2.2229,-3.63867,-1.91416}, {-2.1936,1.10986,-1.91416}, {-2.5249,3.39111,-1.91416}, {-4.25293,3.59961,-1.91416}, {-3.28394,-3.896,-1.91416}, {-5.70898,-2.34473,-1.91416}, {-5.86182,-0.549805,-1.91416}, {0.849365,2.63794,-1.9338}, {-5.83765,1.55566,-1.9338}, {-0.603516,-1.45898,-1.9338} }; }; class Land_Deutshe_mini { table = "CivillianUpperClass"; positions[] = { {4.46924,-2.09204,-2.58475}, {1.48145,-1.62842,-2.58475}, {-1.54443,-2.89404,-2.58475}, {-3.44238,-2.91821,-2.58475}, {-4.27588,-0.0891113,-2.58475}, {-1.46973,2.81567,-2.58475}, {-3.81396,2.81812,-2.58475}, {1.50781,0.286621,-2.58475}, {4.23999,0.0793457,-2.58475}, {3.74658,2.51538,-2.58475} }; }; class Land_HouseV_1T { table = "CivillianUpperClass"; positions[] = { {2.98535,-3.10986,-3.04944}, {3.18384,-0.152588,-2.75445}, {-0.622314,0.288818,-2.75452}, {-0.610352,-5.06567,-2.75452}, {-2.6062,-4.89038,-2.75452}, {-4.67993,-4.73218,-2.75452}, {-5.3208,-3.42505,-2.75452}, {-6.40527,0.61377,-2.75452}, {-6.57349,2.61499,-2.75452}, {-6.75635,4.25073,-2.75452}, {5.37158,4.61255,-2.75452}, {5.3728,1.30444,-2.75452}, {-1.07349,2.39331,0.20682}, {6.59888,2.93921,0.20682}, {-1.78857,-5.59326,0.20682}, {-7.15942,3.09766,0.20682}, {-4.96973,7.87402,-3.04944} }; }; class Land_HouseV_3I4 { table = "CivillianUpperClass"; positions[] = { {6.90674,2.69263,-2.99709}, {2.74927,2.90845,-2.70016}, {4.72778,-1.72241,-2.70016}, {4.76392,-4.04175,-2.70016}, {2.33008,-4.12842,-2.70016}, {0.134277,-1.31226,-2.70016}, {-0.854492,-3.88135,-2.70016}, {-1.86694,-3.82764,-2.70016}, {-0.327148,3.27759,-2.70016}, {-2.2229,3.30835,-2.70016}, {-5.09961,-0.912842,-2.70016}, {-4.56323,-3.43042,-2.70016}, {-5.06372,-3.47778,-2.70016}, {-4.53345,5.6394,-2.99709} }; }; class Land_HouseV2_04_interier { table = "CivillianUpperClass"; positions[] = { {4.96436,-3.71289,-5.7066}, {7.36182,-1.97144,-5.7066}, {7.34717,6.00781,-5.7066}, {4.87402,2.63623,-4.97908}, {0.458496,1.27808,-2.84872}, {3.34033,2.86255,-5.7066}, {1.61426,2.72632,-4.95715}, {3.14258,6.53809,-5.7066}, {0.256348,6.95825,-5.18723}, {-1.07422,3.1792,-5.7066}, {-4.00977,3.24829,-5.09487}, {-5.57227,3.54077,-5.7066}, {-5.56396,7.021,-5.7066}, {-1.20264,6.87549,-5.7066}, {-3.55225,6.64258,-4.89553}, {6.58154,-6.31421,-5.7066} }; }; class Land_HouseV_3I3 { table = "CivillianUpperClass"; positions[] = { {4.26343,-1.3125,-1.41616}, {0.985107,-1.80664,-1.41616}, {-1.80225,-0.191895,-1.41616}, {-2.62695,-1.81396,-1.41616}, {-4.30371,-1.81152,-1.41616}, {-4.69922,-0.393066,-1.41616}, {-1.02783,1.43262,-1.47}, {-4.32178,1.16211,-1.31722}, {1.70752,0.350586,-0.399973} }; }; class Land_HouseV_2I { table = "CivillianUpperClass"; positions[] = { {-7.08936,-0.528809,-2.8325}, {-1.08203,0.14856,-2.53758}, {2.25293,-0.490845,-2.53758}, {0.126953,3.50403,-2.53758}, {-4.39502,3.43042,-2.53758}, {0.20752,8.08179,-2.53758}, {-2.09229,8.276,-2.53758}, {-4.21875,7.92969,-2.53758}, {-1.11377,6.89636,-2.53758}, {2.98145,2.67737,-2.53758}, {5.14355,5.52722,-2.53758}, {4.81006,8.03491,-2.53758}, {2.66406,7.91943,-2.53758}, {-4.07129,-10.3889,-2.8325}, {-4.64746,-6.74878,-2.53758}, {-0.531738,-5.45496,-2.53758}, {-1.94238,-7.63904,-2.53758}, {0.38623,-7.67163,-2.53758}, {-4.44189,-3.72388,-2.53758}, {-4.80566,-2.51819,-2.53758}, {5.20215,-4.31848,-2.53758}, {2.4707,-7.92627,-2.53758}, {4.60303,-7.88428,-2.53758}, {5.14648,-6.66174,-2.53758}, {4.37842,-0.816162,-2.53758} }; }; class Land_Cihlovej_Dum_mini { table = "CivillianUpperClass"; positions[] = { {-1.80566,-0.38916,-2.6571}, {0.410645,-1.99902,-2.6571}, {1.34668,-2.00342,-2.6571}, {2.81104,1.38037,-2.6571}, {2.56006,2.64404,-2.6571}, {-1.60791,2.79199,-2.6571} }; }; class Land_Dum_mesto2 { table = "CivillianUpperClass"; positions[] = { {2.88086,1.5437,-4.3479}, {2.6123,-1.24097,-4.3479}, {2.93457,-4.33032,-4.3479}, {0.368652,-7.5564,-4.3479}, {-2.9834,-5.56519,-4.3479}, {-3.23389,-2.62109,-4.3479}, {0.617188,2.85303,-4.3479}, {-2.69238,2.33008,-4.3479}, {-2.66406,4.93335,-4.3479}, {-0.318848,7.59497,-4.3479}, {3.44336,5.27905,-4.3479}, {-3.04736,0.77124,-0.900803}, {-2.95068,2.71313,-0.900803}, {2.72656,2.63965,-0.900803}, {2.43311,5.22974,-0.900803}, {0.229492,7.45142,-0.900803}, {-3.03711,4.15405,-0.900803}, {2.6123,-1.24097,-0.900803}, {2.93457,-4.33032,-0.900803}, {0.368652,-7.5564,-0.900803}, {-2.9834,-5.56519,-0.900803}, {-3.23389,-2.62109,-0.900803} }; }; class Land_HouseV_1I4 { table = "CivillianUpperClass"; positions[] = { {4.07129,1.78198,-2.8283}, {-0.347656,1.81836,-2.8283}, {-1.93555,-4.43408,-2.8283}, {1.01074,-1.51514,-2.8283}, {1.01953,-3.86938,-2.8283}, {-3.20215,-1.46436,-2.8283}, {-4.17676,-3.19141,-2.8283} }; }; class Land_Panelak2 { table = "CivillianUpperClass"; positions[] = { {3.35596,2.16626,-3.63463}, {3.19971,-5.08228,-3.61391}, {0.592285,-5.25732,-3.6297}, {-0.635254,2.57275,-3.64865}, {-0.828613,-3.42627,-2.21149}, {0.880371,1.37305,-0.859571}, {-0.806641,-2.96729,0.48455}, {0.0776367,-5.44287,0.490101}, {2.6748,-3.41406,0.496441}, {2.74365,1.57959,0.481121}, {6.45898,1.96338,0.512741}, {4.64746,-0.342041,0.492449}, {4.55078,-3.63281,0.49792}, {5.38574,-5.32642,0.494154}, {1.19385,-5.1333,0.467325}, {3.97363,-7.72803,0.519333}, {-6.80859,2.41846,0.520187}, {-4.05713,0.776855,0.474337}, {-3.08008,-3.79688,0.495409}, {-4.49023,-3.62646,0.495549}, {-5.13525,-6.85107,0.500744}, {-5.40283,-0.226074,0.504818}, {0.808594,1.24194,1.83534}, {-0.842773,-3.02441,3.17607}, {6.26367,1.90894,3.19228}, {7.23779,-3.49805,3.20645}, {4.65137,-3.73022,3.20829}, {5.68213,-6.51221,3.18558}, {3.88086,-7.42407,3.19898}, {2.07813,-0.441406,3.0168}, {2.03906,-0.655518,3.01701}, {5.89795,1.76855,5.87615}, {7.13672,-0.379883,5.91224}, {4.83545,-3.30322,5.90017}, {7.00391,-6.22363,5.91641}, {3.77197,-7.39551,5.89812}, {-3.43799,-5.90283,5.90185}, {-2.22119,-3.57959,5.89639}, {-2.48975,1.34131,5.88619}, {-6.0957,2.08862,5.89113}, {-4.78516,-3.47266,5.88523}, {-6.81104,-6.34473,5.8973}, {-5.95508,-0.164063,5.89992} }; }; class Land_HouseB_Tenement { table = "CivillianUpperClass"; positions[] = { {-10.4539,5.5708,-20.5094}, {-7.90918,-1.02979,-20.5136}, {-11.8638,1.12402,-20.507}, {-5.88745,4.98047,-20.5204}, {-3.19434,-1.00732,-20.5215}, {1.26245,-0.901855,-20.5299}, {1.58887,3.6792,-20.5386}, {3.76904,5.24023,-20.5473}, {4.76831,9.22656,-20.566}, {5.25,12.5933,-20.566}, {9.60474,13.0308,-20.566}, {14.4553,10.4146,-20.566}, {13.6155,8.07813,-20.566}, {9.49146,8.20947,-20.566}, {7.3855,3.75293,-20.566}, {3.79614,1.75781,-20.566}, {6.94946,-0.591309,-20.566}, {13.51,-1.35889,-20.566}, {13.2917,3.38916,-20.566}, {10.6826,1.54395,-20.566}, {11.8928,-3.80078,-20.6897}, {7.88354,-5.83398,-20.6897}, {5.20459,-5.99463,-20.6897}, {2.00732,-6.46777,-20.6897}, {3.68604,-8.83496,-20.6897}, {-0.805664,-4.74316,-19.8665}, {-4.65869,-4.48828,-19.867}, {-8.31128,-8.34082,-19.9959} }; }; class Land_A_Hospital { table = "Medical"; positions[] = { {-15.8447,-1.96777,-7.2686}, {-16.2021,-5.20215,-7.2686}, {-12.0176,-1.31982,-7.2686}, {-9.73828,-3.73975,-7.2686}, {-12.6079,-6.04248,-7.2686}, {-6.86963,-5.6709,-7.2686}, {-7.35962,-2.47998,-7.2686}, {-4.42627,-1.3916,-7.2686}, {-1.44727,-1.10693,-7.2686}, {2.15527,-1.6626,-7.2686}, {4.29346,-2.96631,-7.2686}, {3.99756,-5.60547,-7.2686}, {-2.4541,-5.24658,-7.2686}, {1.05127,-5.15088,-7.2686}, {2.44238,-4.0166,-6.26182}, {-4.54565,-3.97803,-6.26182}, {-1.07715,-4.10791,-6.26224}, {6.98535,-2.48096,-7.2686}, {12.5313,-3.09131,-7.2686}, {15.2036,-4.11719,-7.2686}, {17.5615,-5.79932,-7.2686}, {12.2656,-5.65479,-7.2686}, {9.46582,-5.26025,-7.2686}, {-21.4136,-0.674805,-4.30315}, {-18.5532,-0.0683594,-4.12954}, {-20.2983,4.76074,-4.17462}, {-21.3894,8.65723,-4.3616}, {-17.0017,6.30811,-4.21188}, {-15.9487,8.3916,-3.9904}, {-13.3784,8.29346,-3.94531}, {-10.3799,8.86035,-4.31391}, {-7.68018,8.23682,-4.38756}, {-4.46753,6.60742,-4.10178}, {-10.0381,6.30078,-4.13614}, {-13.9712,3.40527,3.84382}, {-15.2319,-0.244629,3.67486}, {-15.2495,-4.03271,3.25132}, {-12.1216,-5.18945,3.41108}, {-9.09888,-5.08447,3.44415}, {-5.41748,-5.17285,3.50738}, {-2.50391,-5.23193,3.46006}, {0.443115,-5.28906,3.46528}, {3.85986,-5.31885,3.47614}, {7.44653,-5.34326,3.41994}, {12.0522,-5.41211,3.21527}, {16.5181,-5.43945,3.44072}, {18.2505,-3.11816,3.34109}, {13.1992,-2.35449,3.4034}, {9.26221,-2.03174,3.35752}, {7.61816,0.42041,3.43714}, {3.71802,-0.915527,3.38425}, {0.279541,0.881836,3.58414}, {0.227783,-2.26855,3.44249}, {-3.31226,-1.5,3.61752}, {-4.0896,2.65039,3.31424}, {-7.28296,0.120605,3.22999}, {-9.78882,-0.743652,3.3254}, {-9.86768,2.69092,3.84507}, {-7.19287,4.40039,3.2851}, {13.2881,0.908691,3.33376}, {15.5293,-0.688965,6.119}, {17.2524,4.8501,6.20395}, {21.0469,4.83545,6.19075}, {20.9138,1.49805,6.25296}, {18.4038,-0.0512695,6.2394}, {18.6182,2.73242,6.20563} }; }; class Land_chz_tabor_budova_3 { table = "CivillianUpperClass"; positions[] = { {-3.2793,-1.59155,-2.21768}, {-3.66846,2.11914,-2.21987}, {-0.576172,-1.28027,-2.18994}, {-0.537598,1.53687,-2.18314}, {3.24219,1.5415,-1.23726}, {3.44434,0.523926,-1.23726}, {3.38525,-1.53711,-2.22324}, {1.28076,1.02563,-2.20238}, {1.05957,-1.93945,-2.17906} }; }; class Land_HouseV2_02_Interier { table = "CivillianUpperClass"; positions[] = { {0.00439453,-1.68872,-5.40536}, {0.0244141,4.25122,-5.40536}, {-8.74121,0.141113,-5.40536}, {-8.67285,5.44482,-5.40536}, {-7.1958,6.68066,-5.40536}, {8.81836,-0.000244141,-5.40536}, {8.69141,2.8811,-5.47363}, {7.646,6.74634,-5.40536}, {0.0161133,8.07007,-6.34196}, {-3.39502,2.15356,-5.48471}, {-5.94043,-1.47412,-5.48471}, {-0.11084,-7.85889,-6.33823}, {2.875,-0.171143,-5.48471}, {2.95557,5.55127,-5.48471}, {6.45898,1.48584,-4.51929}, {4.7832,2.89453,-5.48471} }; }; class Land_houseV_2T2 { table = "CivillianUpperClass"; positions[] = { {7.92236,2.44824,-3.90798}, {3.98169,-4.26465,-3.90222}, {0.0212402,-4.22656,-3.90222}, {5.96484,4.4043,-1.06593}, {8.11914,2.8291,-1.06898}, {7.79541,-0.556641,-1.05591}, {2.78345,-2.87305,-1.05591}, {-0.476318,4.25293,-1.05843}, {-3.97974,3.63086,-1.05994}, {-3.87402,-0.571289,-1.05718}, {-4.1875,1.00293,-3.93839}, {-4.1875,1.00293,-3.93839}, {-4.1875,1.00293,-3.93839}, {-4.1875,1.00293,-3.93839}, {-3.47803,-1.85156,-3.909}, {-3.59766,4.02832,-2.79907}, {-3.10303,2.7168,-3.909}, {4.28296,1.51953,-3.909}, {-0.517334,-1.99414,-3.909}, {6.89404,-0.856445,-3.909}, {7.271,0.881836,-2.99364}, {7.42065,3.8623,-3.94216}, {7.04688,1.83301,-1.153}, {3.97534,1.16797,-1.153}, {1.73438,1.20313,-1.153}, {-2.26489,0.698242,-0.46599}, {-1.57739,1.72754,-0.872494}, {0.0795898,-1.83105,-1.153} }; }; };
9308d42305a9d032d2851e57e8fc8e1511811fa9
8aa58ac7b712fb6d6386f3c59a9bbf0cc02217f2
/Classes/base/util/platform.cpp
8d6858ee4e11e355c27e226486ff4764d9adb1b4
[ "MIT" ]
permissive
peerobo/worded
7aff2df2671cfe9e3b6d0e365e6df5d2d7df22c2
eccddc89ffe8db4a9290634b5f31581472d30a38
refs/heads/master
2021-03-12T19:43:48.606952
2015-11-09T08:34:57
2015-11-09T08:34:57
41,892,990
0
0
null
null
null
null
UTF-8
C++
false
false
2,430
cpp
platform.cpp
#include "platform.h" #include "cocos2d.h" #include "../../GlobalVar.h" #include "../../Constants.h" #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS #include "ios/IOS.h" #endif namespace util { void platform::vibrate() { if (GlobalVar::myData.isEnableVibration) { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS GlobalVar::curScene->runAction(Sequence::create( CallFunc::create(std::bind(&IOS::vibrate)), DelayTime::create(0.3f), CallFunc::create(std::bind(&IOS::vibrate)), NULL )); #endif } } std::string platform::getBuildVersion() { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS return IOS::getBuildVer(); #endif return ""; } void platform::rate() { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS IOS::openURL(Constants::KEY_APPID); #endif } void platform::openURL(const std::string& url) { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS IOS::openURL(url); #endif } void platform::authenGC() { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS IOS::authenGC(); #endif } bool platform::isGC() { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS return IOS::isGC; #else return false; #endif } void platform::showGC() { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS IOS::showGC(); #endif } void platform::setScoreGC(const std::string &cat, int score) { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS IOS::setScoreGC(cat, score); #endif } void platform::saveToAlbum(const std::string &fileURL) { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS IOS::saveToAlbum(fileURL); #endif } void platform::updateAchGC(const std::string& ach, float percent, std::function<void()> okCB) { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS IOS::updateGCAchievement(ach, percent, okCB); #endif } void platform::resetAchGC() { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS IOS::resetAchievement(); #endif } bool platform::share2Twitter(const std::string& imagePath, const std::string msg) { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS return IOS::share2Twitter(imagePath, msg, std::string(Constants::KEY_APPID)); #endif return false; } bool platform::share2FB(const std::string& imagePath, const std::string msg) { #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS return IOS::share2Facebook(imagePath, msg, std::string(Constants::KEY_APPID)); #endif return false; } }
2c7cf6467960354da8e5fc6ecc796474acc8f4fb
1b3376c2b64332386ce67fd20d25cdac4e935280
/SiegeMode/Classes/UnitState_Approach.h
21988c7387e1a5fe5bcacd4fd7986e8b4ba0bbbe
[ "MIT" ]
permissive
seokmin/SiegeMode
f8aa22793b4020055bbcba8384dc3a6375032e13
075a49723459fc94940da799cbd00ec60f6829d8
refs/heads/master
2021-01-21T13:21:16.722270
2016-05-26T01:42:15
2016-05-30T01:21:00
54,639,618
3
1
null
null
null
null
UHC
C++
false
false
361
h
UnitState_Approach.h
#pragma once #include "UnitState.h" // 타겟에게 사정거리가 닿을 때까지 접근하는 상태 class UnitState_Approach : public UnitState { public: CREATE_FUNC(UnitState_Approach); bool init() override { return true; } void startState(Unit* unit) override; void runState(Unit* unit, float delta) override; void endState(Unit* unit) override; };
47ccce31a686989cb48f846f0d7e668f3861612f
faa0644ca5864073bee24765339055de8a89d631
/Array_matrici_stringhe/gara/gara.cpp
c94aa6ffd42f72264b684310df011ea9876b0b1e
[]
no_license
FlashNoob98/unina
6d5b14041e9d89a7d704b848e8f97ff72f133a54
432c1998a0cfac52a159371d43f1767b19e2dc92
refs/heads/master
2022-01-09T16:58:46.236604
2019-07-08T11:55:03
2019-07-08T11:55:03
110,722,804
3
0
null
null
null
null
UTF-8
C++
false
false
1,098
cpp
gara.cpp
#include <iostream> #include <string> using namespace std; int n,i; int main(int argc, char** argv) { do { cout<<" numero massimo di partecipanti: 100"<<endl; cout<<" numero partecipanti: "; cin>>n; } while ((n<=0)or(n>100)); struct tempo { int h; int min; int sec; }; struct atleta { string nome; int numero; tempo durata; }; atleta iscritto[n]; for (i=0;i<n;i++) { cout<<" nome "<<i+1<<": "; cin>>iscritto[i].nome; cout<<" pettorale: "; cin>>iscritto[i].numero; cout<<" tempo di arrivo "<<endl<<" ore: "; cin>>iscritto[i].durata.h; cout<<" minuti: "; cin>>iscritto[i].durata.min; cout<<" secondi: "; cin>>iscritto[i].durata.sec; cout<<endl; } int duratatotale[n]; for (i=0;i<n;i++) { duratatotale[i]=iscritto[i].durata.h*3600+iscritto[i].durata.min*60+iscritto[i].durata.sec; } for (i=0;i<n;i++) { cout<<" il tempo impiegato dall'atleta con il numero "<<iscritto[i].numero<<" e' "<<duratatotale[i]<<" secondi"<<endl; } cout<<endl; return 0; }
bcd62894df4b85dd4837be48cdb89c023d67cac1
c4581998df28f305e08f05a4c8c6ac9c1336f357
/tests/common.hpp
510a55504308628907f2fe75d43641000f3098bb
[ "Apache-2.0" ]
permissive
Vestiacom/libeverest
3a689c4731cbe3ef33e02822293b58cad469efff
82a3ca7a2383a43efd0202b659db194928de9868
refs/heads/master
2021-06-04T01:33:55.493760
2019-12-30T15:17:03
2019-12-30T15:17:03
96,433,539
10
2
null
2017-07-07T10:49:00
2017-07-06T13:31:11
C++
UTF-8
C++
false
false
277
hpp
common.hpp
#ifndef TESTS_COMMON_HPP #define TESTS_COMMON_HPP #include <string> #include <vector> // This is for testing purposes #define private public void runParallel(const std::string& command); void runParallel(const std::vector<std::string> commands); #endif // TESTS_COMMON_HPPk
72b77c349c092effaf582f0796bd82bec7c4a664
7478ef0b6fa9647af6fd8bca3abcfb61fc671f92
/Fokin/lr_oop2/code/shape.cpp
fbb0dc883eab4218f6826af91a476d5e38db94df
[]
no_license
Foksen98/OOP-6303
8b62f7dfad1d539068c8e2a54ecbc01fbf68421e
f572eca96961ab5ffaf87811b8564b44663255fb
refs/heads/master
2021-04-26T22:39:46.204977
2018-05-04T18:11:38
2018-05-04T18:11:38
124,128,188
0
0
null
2018-03-06T19:30:51
2018-03-06T19:30:51
null
UTF-8
C++
false
false
518
cpp
shape.cpp
#include "shape.h" void Shape::move (double newCoordinateX, double newCoordinateY) { coordinateX = newCoordinateX; coordinateY = newCoordinateY; updateNodes(); } void Shape::setColor (string colorString) { color = colorString; } string Shape::getColor () { return color; } double Shape::getCoordinateX () { return coordinateX; } double Shape::getCoordinateY () { return coordinateY; } double Shape::getRadius () { return radius; } double Shape::getAngle () { return angle; }
eab5f4950db7aa0520b709f5ac1844e2f926312a
2013e3b231aa4e270101c3d71bfdf72a77f22b49
/correlation/test/parser/parse_include.cc
13c200f34dfaff9c47fe111fa5e97151128be99b
[ "Apache-2.0" ]
permissive
sdouce/centreon-broker
0a10d21a225bad376a117f71d6ca9de17b4ae381
24cffd636fe3447ca22aeda784049b4dc712c200
refs/heads/master
2023-01-29T02:31:42.107083
2020-12-15T09:04:14
2020-12-15T09:04:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,378
cc
parse_include.cc
/* ** Copyright 2013-2015 Centreon ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this file except in compliance with the License. ** You may obtain a copy of the License at ** ** http://www.apache.org/licenses/LICENSE-2.0 ** ** Unless required by applicable law or agreed to in writing, software ** distributed under the License is distributed on an "AS IS" BASIS, ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** See the License for the specific language governing permissions and ** limitations under the License. ** ** For more information : contact@centreon.com */ #include <cstdlib> #include <exception> #include <iostream> #include "com/centreon/broker/config/applier/init.hh" #include "com/centreon/broker/correlation/parser.hh" #include "test/parser/common.hh" #include "test/vars.hh" using namespace com::centreon::broker; using namespace com::centreon::broker::correlation; /** * Check that parsing of file with 'include' directive works. * * @return EXIT_SUCCESS on success. */ int main() { // Initialization. config::applier::init(); // Error flag. bool error(true); try { // Parse file. QMap<QPair<uint32_t, uint32_t>, node> parsed; correlation::parser p; p.parse(PROJECT_SOURCE_DIR "/correlation/test/parser/parse_include.xml", parsed); // Expected result. QMap<QPair<uint32_t, uint32_t>, node> expected; node& h1(expected[qMakePair(13u, 0u)]); h1.host_id = 13; h1.current_state = 1; node& s1(expected[qMakePair(13u, 21u)]); s1.host_id = 13; s1.service_id = 21; node& s2(expected[qMakePair(13u, 12u)]); s2.host_id = 13; s2.service_id = 12; s2.current_state = 2; node& h2(expected[qMakePair(42u, 0u)]); h2.host_id = 42; node& s3(expected[qMakePair(42u, 66u)]); s3.host_id = 42; s3.service_id = 66; s3.current_state = 3; s1.add_dependency(&s2); s1.add_dependency(&h1); s2.add_dependency(&h1); s3.add_dependency(&h2); // Compare parsing with expected result. compare_states(parsed, expected); // Success. error = false; } catch (std::exception const& e) { std::cerr << e.what() << std::endl; } catch (...) { std::cerr << "unknown exception" << std::endl; } // Return. return (error ? EXIT_FAILURE : EXIT_SUCCESS); }
a20593dd7731305b73feb1e544ebdb62e36d2e08
a008978d075df4302d6b560d2ac2e9f69a263b7f
/p4/Main.cpp
bc8afc41e7ccd24a254962451dd82b1420d5414f
[]
no_license
jsstrn/fcsb
f300fa2433bda79c6f4530e10cfdd0e118a97c9d
0bda960838796a2682cfa7fd0d9fe939ebd234ed
refs/heads/master
2020-04-11T05:38:13.983481
2014-07-24T16:06:58
2014-07-24T16:06:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,421
cpp
Main.cpp
/* * Developed by Faisal, Hafiz, and Jesstern * Bachelor of Computer Science, University of Adelaide */ #include "Algorithm.h" #include "lib.h" /*********************************************/ /* Main Function */ /*********************************************/ int main() { unsigned int size; cout << "Welcome!" << endl; cout << "Please enter a table size: "; cin >> size; Algorithm *random = new Algorithm(); /* initialize a vector with random integers*/ vector <int> v = random->storeRandom(size); /* display the vector */ random->displayVector(v); /* generate a search key*/ int searchKey = v[random->generateKey(v)]; cout << endl << "Search key: " << searchKey << endl << endl; cout << "***************************|| Searching Algorithm ||*****************************\n" << endl; /* linear search */ int lResult = random->linearSearch(v,searchKey); random->printSearchResult(lResult); /* binary search */ int bResult = random->binarySearch(v,searchKey); random->printSearchResult(bResult); cout << "****************************|| Sorting Algorithm ||******************************\n" << endl; /* bubble sort */ vector <int> bsort = random->getrandomVariables(); random->bubblesort(bsort); random->printVector(bsort); /* selection sort */ vector <int> selsort = random->getrandomVariables(); random->selectionsort(selsort); random->printVector(selsort); /* insertion sort */ vector <int> insertsort = random->getrandomVariables(); random->insertionsort(insertsort); random->printVector(insertsort); /* merge sort */ vector <int> mergesort = random->getrandomVariables(); random->mergesort(mergesort,0,mergesort.size()-1); random->printVector(mergesort); /* quick sort */ vector <int> quicksort = random->getrandomVariables(); random->quicksort(quicksort, 0, quicksort.size() - 1); random->printVector(quicksort); // vector <int> testcase = random->getrandomVariables(); // random->printVector(testcase); cout << "***************************|| Searching Algorithm ||*****************************\n" << endl; /* display sorted vector */ random->displayVector(bsort); cout << endl; /* linear search */ lResult = random->linearSearch(bsort,searchKey); random->printSearchResult(lResult); /* binary search */ bResult = random->binarySearch(bsort,searchKey); random->printSearchResult(bResult); return 0; } // end main function
5b6247bfb753450927b22f0b86c50044bd0598c4
4651e5589cb5ab525dfdccc6e2d288826c06b8bb
/Framework09/Framework09/Input.h
d8cba76ad95f9cf7c1a3452f1b4d8b9a219d2543
[]
no_license
kevonyang/FrameworkD3D11
20bf5f848903974251744d8d77b7e0947b05d9f3
b862616616f0ef213a70b01b6bb7578bdc0cc65a
refs/heads/master
2020-03-17T06:34:20.512843
2018-07-04T13:05:55
2018-07-04T13:05:55
133,360,780
0
0
null
null
null
null
UTF-8
C++
false
false
600
h
Input.h
#pragma once #include "Common.h" #include <dinput.h> class Input { public: friend class Root; public: bool Initialize(HINSTANCE hInstance, HWND hWnd, int width, int height); void Shutdown(); bool IsKeyDown(unsigned int key); bool IsEscapePressed(); bool Frame(); int GetMouseX(){ return _mouseX; } int GetMouseY(){ return _mouseY; } private: Input(); Input(const Input&); ~Input(); unsigned char _keys[256]; DIMOUSESTATE _mouseState; IDirectInput8 *_directInput; IDirectInputDevice8 *_keyboard; IDirectInputDevice8 *_mouse; int _width; int _height; int _mouseX; int _mouseY; };
43e64996c94363fe4129b0661182b0e8514ea4b1
e93adc63e67101fadbb0d9747df682a4d6b0179a
/CV02/program3.cpp
62f928a3817d2c5075c20a15c0d4c7d1e3984f03
[]
no_license
byte98/A2B37CPP
de7a57ea25c718113d9725f327ce1a04269c805b
3084c11afd7b139fa5089aa7d18bded71b05b76d
refs/heads/master
2022-02-24T10:22:00.526535
2019-04-23T13:55:08
2019-04-23T13:55:08
210,535,765
0
0
null
null
null
null
UTF-8
C++
false
false
337
cpp
program3.cpp
#include <iostream> #include <fstream> int main(int argc, char *argv[]) { std::ifstream file; file.exceptions(std::ifstream::failbit | std::ifstream::badbit); try { file.open("neexistujici soubor"); } catch (std::ifstream::failure exep) { std::cout << "I/O Error" << std::endl; std::cout << exep.what() << std::endl; } }
d4bae22da0e9fd85777427fb3a48d36542c840c3
b64e573a852db34407a57c200c34f0a6c8b96c83
/media/arduino/code/lcd.ino
1dde1f546b76a8c79636c48ea334395475ee503c
[]
no_license
kuudan/EP1000
5ebc4c8c0391596a1cd14db80744378fab48cfda
49eecb07e9d96a2de85a48819e538eac9f52ea7e
refs/heads/master
2022-12-03T08:21:56.246742
2020-08-23T17:31:56
2020-08-23T17:31:56
261,114,215
0
0
null
null
null
null
UTF-8
C++
false
false
454
ino
lcd.ino
//YWROBOT //Compatible with the Arduino IDE 1.0 //Library version:1.1 #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display void setup() { lcd.init(); // initialize the lcd // Print a message to the LCD. lcd.backlight(); Serial.begin(9600); } void loop() { lcd.setCursor(0,0); lcd.print(millis()/1000); Serial.println(millis()/1000); }
659cdb99a9fe45dc1e0df5e1066d863fe134d4f6
f4994f7532b1aa0577d720fcf9d3ab13d5f7923c
/Datastructure/Linked Stacks and Queues/Linked Queues.cpp
e8ebbe366b4073efdf7def4bb921173552630e9c
[]
no_license
zzm99/Algorithm-and-data-structure
1f2571cb41c490d752945eb382e83a8ab8babb60
45f9c42bcb857732897d8a6291c662990531d604
refs/heads/master
2022-10-25T12:09:24.330243
2020-06-10T14:28:18
2020-06-10T14:28:18
271,293,261
1
0
null
null
null
null
UTF-8
C++
false
false
1,103
cpp
Linked Queues.cpp
// A CPP program to demonstrate linked list // based implementation of queue #include <bits/stdc++.h> using namespace std; class QNode{ public: int key; QNode* next; }; class Queue{ public: QNode *front, *rear; }; QNode* newNode(int k){ QNode* temp = new QNode(); temp->key = k; temp->next = NULL; return temp; } Queue* createQueue(){ Queue* q = new Queue(); q->front = q->rear = NULL; return q; } void enQueue(Queue* q, int k){ QNode* temp = newNode(k); if(q->rear == NULL){ q->front = q->rear = temp; return; } q->rear->next = temp; q->rear = temp; } void deQueue(Queue* q){ if(q->front == NULL) return; QNode* temp = q->front; q->front = q->front->next; if(q->front == NULL) q->rear = NULL; delete(temp); } int frontQueue(Queue* q){ if(q->front == NULL) return -1; int ret = q->front->key; return ret; } int main() { Queue* q = createQueue(); enQueue(q, 10); enQueue(q, 20); deQueue(q); deQueue(q); enQueue(q, 30); enQueue(q, 40); enQueue(q, 50); cout << "Front item is " << frontQueue(q); return 0; }
e531fd2f2beb41c726794cd8afa7e557a5c541ed
3a5529f7ec458a6efd72da5bb3fd9a66b0fff811
/persistent_tree.cpp
a0df192fbc58569071e4b23ef918759d344c68db
[]
no_license
korenandr/algorithms
b90e2a355df7a23b83d7b6b17d811a6d8a245933
5ea75cc603ceee95ba72066eb4826beb674bf573
refs/heads/master
2023-04-10T05:48:35.548136
2021-04-23T21:15:46
2021-04-23T21:15:46
348,131,158
0
0
null
null
null
null
UTF-8
C++
false
false
3,432
cpp
persistent_tree.cpp
#include <iostream> #include <iomanip> #include <array> #include <memory> template <typename T, size_t SIZE> class PerTree final { public: PerTree(const std::array<T, SIZE>& values) : _root(nullptr) { create_tree(values); } public: void print() const; PerTree set(size_t index, T&& value); private: struct Node final { explicit Node(T&& d = T()) : data(std::move(d)), left(nullptr), right(nullptr) {} ~Node() { std::cout << "Deleted node: " << data << std::endl; } T data; std::shared_ptr<Node> left; std::shared_ptr<Node> right; }; private: PerTree(std::shared_ptr<Node> root) : _root(root) {} private: void create_tree(const std::array<T, SIZE>& values); void inner_create_tree(const std::array<T, SIZE>& values, size_t l, size_t r, std::shared_ptr<Node> &node); void inorder_traversal(std::shared_ptr<Node> node) const; void inner_set(size_t index, T&& value, size_t l, size_t r, std::shared_ptr<Node> &node, std::shared_ptr<Node> old); private: std::shared_ptr<Node> _root; }; template <typename T, size_t SIZE> PerTree<T, SIZE> PerTree<T, SIZE>::set(size_t index, T&& value) { std::shared_ptr<Node> root = nullptr; inner_set(index, std::forward<T>(value), 0, SIZE-1, root, _root); return PerTree(root); } template <typename T, size_t SIZE> void PerTree<T, SIZE>::inner_set(size_t index, T&& value, size_t l, size_t r, std::shared_ptr<typename PerTree<T, SIZE>::Node> &node, std::shared_ptr<typename PerTree<T, SIZE>::Node> old) { node = std::make_shared<Node>(); if(l == r) { node->data = std::move(value); return; } const auto m = (l + r)/2; if(index <= m) { inner_set(index, std::forward<T>(value), l, m, node->left, old->left); node->right = old->right; } else { inner_set(index, std::forward<T>(value), m+1, r, node->right, old->right); node->left = old->left; } node->data = node->left->data + node->right->data; } template <typename T, size_t SIZE> void PerTree<T,SIZE>::create_tree(const std::array<T, SIZE>& values) { inner_create_tree(values, 0, values.size() - 1, _root); } template <typename T, size_t SIZE> void PerTree<T, SIZE>::inner_create_tree(const std::array<T, SIZE>& values, size_t l, size_t r, std::shared_ptr<typename PerTree<T, SIZE>::Node> &node) { node = std::make_shared<Node>(); if(l == r) { node->data = values[l]; return; } const auto m = (l+r)/2; inner_create_tree(values, l, m, node->left); inner_create_tree(values, m+1, r, node->right); node->data = node->left->data + node->right->data; } template <typename T, size_t SIZE> void PerTree<T, SIZE>::print() const { inorder_traversal(_root); std::cout << std::endl; } template <typename T, size_t SIZE> void PerTree<T, SIZE>::inorder_traversal(std::shared_ptr<typename PerTree<T, SIZE>::Node> node) const { if(node != nullptr) { inorder_traversal(node->left); std::cout << std::setw(3) << node->data; inorder_traversal(node->right); } } int main() { PerTree<size_t, 4> mytree({ 3, 5, 1, 6 }); mytree.print(); auto mytree2 = mytree.set(2, 4); mytree.print(); mytree2.print(); }
bb57d086f47800b524de829d08174aca16ab542d
6e2a176c2ff69587c24e5aaa5e1e6d98e1cad4ca
/rosWorkspace/SubFloodSensor/src/common/BufferUtils.hpp
ca9e465838d5fbe4060984f9e7b2928b4f6dcd9c
[ "Apache-2.0" ]
permissive
chris-blay/guillemot-core
e30d4c7f5e97a21475f85f217ddbcb3a946676d6
5e20bf46c10da2e6b57c3293a9d9aa402c864288
refs/heads/master
2021-01-18T22:38:46.398698
2016-05-14T06:23:48
2016-05-14T06:23:48
29,338,319
0
0
null
null
null
null
UTF-8
C++
false
false
781
hpp
BufferUtils.hpp
/* * BufferUtils.hpp * * Created on: Apr 13, 2013 * Author: bholdaway */ #ifndef BUFFERUTILS_HPP_ #define BUFFERUTILS_HPP_ #include "PortableTypes.hpp" void putUInt8(UInt8* pBuf, UInt8 data); UInt8 getUInt8(UInt8* pBuf); void putUInt16(UInt8* pBuf, UInt16 data); UInt16 getUInt16(UInt8* pBuf); void putUInt32(UInt8* pBuf, UInt32 data); UInt32 getUInt32(UInt8* pBuf); void putInt8(UInt8* pBuf, Int8 data); Int8 getInt8(UInt8* pBuf); void putInt16(UInt8* pBuf, Int16 data); Int16 getInt16(UInt8* pBuf); void putInt32(UInt8* pBuf, Int32 data); Int32 getInt32(UInt8* pBuf); void putFloat32(UInt8* pBuf, Float32 data); Float32 getFloat32(UInt8* pBuf); void putFloat64(UInt8* pBuf, Float64 data); Float64 getFloat64(UInt8* pBuf); #endif /* BUFFERUTILS_HPP_ */
842d6832a23726cd144cb4086b6e314e6cb94aa6
3082f75b49a755547e4e50a7133616620e7f2d46
/Code Files/section_9/example_3.cpp
0c0b6c068c2600c3e01c8e0d51513032a0eb8fa6
[ "MIT" ]
permissive
PacktPublishing/C-20-2a-New-Features
5d79242f24e2935528f96ceac1c0b7acb753b855
4db407eb6a008df4d9fc87ba2df4d933c8648c6f
refs/heads/master
2023-02-06T21:33:10.223745
2023-01-30T09:00:45
2023-01-30T09:00:45
238,122,457
18
10
null
null
null
null
UTF-8
C++
false
false
212
cpp
example_3.cpp
#include <iostream> #include <string> struct S { std::string a; int b = 42; int c = -1; }; int main() { S s{.c = 3}; std::cout << "\"" << s.a << "\", " << s.b << ", " << s.c << std::endl; }
0e78eda1f2b72ab0336863802087fc3c6b8c5056
e2e3cf2edf60eeb6dd45adaa8a58e110bdef92d9
/Project/zoolib/Expr/Expr_Bool.h
abf82916cebc2ac9c84fa752febbd977b4860e2a
[ "MIT" ]
permissive
zoolib/zoolib_cxx
0ae57b83d8b3d8c688ee718b236e678b128c0ac7
b415ef23476afdad89d61a003543570270a85844
refs/heads/master
2023-03-22T20:53:40.334006
2023-03-11T23:44:22
2023-03-11T23:44:22
3,355,296
17
5
MIT
2023-03-11T23:44:23
2012-02-04T20:54:08
C++
UTF-8
C++
false
false
6,840
h
Expr_Bool.h
// Copyright (c) 2010 Andrew Green. MIT License. http://www.zoolib.org #ifndef __ZooLib_Expr_Expr_Bool_h__ #define __ZooLib_Expr_Expr_Bool_h__ 1 #include "zconfig.h" #include "zoolib/Compare_T.h" #include "zoolib/Expr/Expr_Op_T.h" namespace ZooLib { // ================================================================================================= #pragma mark - Expr_Bool class Expr_Bool : public virtual Expr { protected: Expr_Bool(); }; // ================================================================================================= #pragma mark - Expr_Bool_True class Visitor_Expr_Bool_True; class Expr_Bool_True : public virtual Expr_Bool , public virtual Expr_Op0_T<Expr_Bool> { typedef Expr_Op0_T<Expr_Bool> inherited; protected: Expr_Bool_True(); public: static ZP<Expr_Bool> sTrue(); // From Visitee virtual void Accept(const Visitor& iVisitor); // From Expr virtual int Compare(const ZP<Expr>& iOther); // From Expr_Op0_T virtual void Accept_Expr_Op0(Visitor_Expr_Op0_T<Expr_Bool>& iVisitor); virtual ZP<Expr_Bool> Self(); virtual ZP<Expr_Bool> Clone(); // Our protocol virtual void Accept_Expr_Bool_True(Visitor_Expr_Bool_True& iVisitor); }; // ================================================================================================= #pragma mark - Visitor_Expr_Bool_True class Visitor_Expr_Bool_True : public virtual Visitor_Expr_Op0_T<Expr_Bool> { public: virtual void Visit_Expr_Bool_True(const ZP<Expr_Bool_True>& iExpr); }; // ================================================================================================= #pragma mark - Expr_Bool_False class Visitor_Expr_Bool_False; class Expr_Bool_False : public virtual Expr_Bool , public virtual Expr_Op0_T<Expr_Bool> { typedef Expr_Op0_T<Expr_Bool> inherited; protected: Expr_Bool_False(); public: static ZP<Expr_Bool> sFalse(); // From Visitee virtual void Accept(const Visitor& iVisitor); // From Expr virtual int Compare(const ZP<Expr>& iOther); // From Expr_Op0_T virtual void Accept_Expr_Op0(Visitor_Expr_Op0_T<Expr_Bool>& iVisitor); virtual ZP<Expr_Bool> Self(); virtual ZP<Expr_Bool> Clone(); // Our protocol virtual void Accept_Expr_Bool_False(Visitor_Expr_Bool_False& iVisitor); }; // ================================================================================================= #pragma mark - Visitor_Expr_Bool_False class Visitor_Expr_Bool_False : public virtual Visitor_Expr_Op0_T<Expr_Bool> { public: virtual void Visit_Expr_Bool_False(const ZP<Expr_Bool_False>& iExpr); }; // ================================================================================================= #pragma mark - Expr_Bool_Not class Visitor_Expr_Bool_Not; class Expr_Bool_Not : public virtual Expr_Bool , public virtual Expr_Op1_T<Expr_Bool> { typedef Expr_Op1_T<Expr_Bool> inherited; public: Expr_Bool_Not(const ZP<Expr_Bool>& iOp0); // From Visitee virtual void Accept(const Visitor& iVisitor); // From Expr virtual int Compare(const ZP<Expr>& iOther); // From Expr_Op1_T virtual void Accept_Expr_Op1(Visitor_Expr_Op1_T<Expr_Bool>& iVisitor); virtual ZP<Expr_Bool> Self(); virtual ZP<Expr_Bool> Clone(const ZP<Expr_Bool>& iOp0); // Our protocol virtual void Accept_Expr_Bool_Not(Visitor_Expr_Bool_Not& iVisitor); }; // ================================================================================================= #pragma mark - Visitor_Expr_Bool_Not class Visitor_Expr_Bool_Not : public virtual Visitor_Expr_Op1_T<Expr_Bool> { public: virtual void Visit_Expr_Bool_Not(const ZP<Expr_Bool_Not>& iExpr); }; // ================================================================================================= #pragma mark - Expr_Bool_And class Visitor_Expr_Bool_And; class Expr_Bool_And : public virtual Expr_Bool , public virtual Expr_Op2_T<Expr_Bool> { typedef Expr_Op2_T<Expr_Bool> inherited; public: Expr_Bool_And(const ZP<Expr_Bool>& iOp0, const ZP<Expr_Bool>& iOp1); // From Visitee virtual void Accept(const Visitor& iVisitor); // From Expr virtual int Compare(const ZP<Expr>& iOther); // From Expr_Op2_T virtual void Accept_Expr_Op2(Visitor_Expr_Op2_T<Expr_Bool>& iVisitor); virtual ZP<Expr_Bool> Self(); virtual ZP<Expr_Bool> Clone(const ZP<Expr_Bool>& iOp0, const ZP<Expr_Bool>& iOp1); // Our protocol virtual void Accept_Expr_Bool_And(Visitor_Expr_Bool_And& iVisitor); }; // ================================================================================================= #pragma mark - Visitor_Expr_Bool_And class Visitor_Expr_Bool_And : public virtual Visitor_Expr_Op2_T<Expr_Bool> { public: virtual void Visit_Expr_Bool_And(const ZP<Expr_Bool_And>& iExpr); }; // ================================================================================================= #pragma mark - Expr_Bool_Or class Visitor_Expr_Bool_Or; class Expr_Bool_Or : public virtual Expr_Bool , public virtual Expr_Op2_T<Expr_Bool> { typedef Expr_Op2_T<Expr_Bool> inherited; public: Expr_Bool_Or(const ZP<Expr_Bool>& iOp0, const ZP<Expr_Bool>& iOp1); // From Visitee virtual void Accept(const Visitor& iVisitor); // From Expr virtual int Compare(const ZP<Expr>& iOther); // From Expr_Op2_T virtual void Accept_Expr_Op2(Visitor_Expr_Op2_T<Expr_Bool>& iVisitor); virtual ZP<Expr_Bool> Self(); virtual ZP<Expr_Bool> Clone(const ZP<Expr_Bool>& iOp0, const ZP<Expr_Bool>& iOp1); // Our protocol virtual void Accept_Expr_Bool_Or(Visitor_Expr_Bool_Or& iVisitor); }; // ================================================================================================= #pragma mark - Visitor_Expr_Bool_Or class Visitor_Expr_Bool_Or : public virtual Visitor_Expr_Op2_T<Expr_Bool> { public: virtual void Visit_Expr_Bool_Or(const ZP<Expr_Bool_Or>& iExpr); }; // ================================================================================================= #pragma mark - Operators ZP<Expr_Bool> sTrue(); ZP<Expr_Bool> sFalse(); ZP<Expr_Bool> sNot(const ZP<Expr_Bool>& iExpr_Bool); ZP<Expr_Bool> sAnd(const ZP<Expr_Bool>& iLHS, const ZP<Expr_Bool>& iRHS); ZP<Expr_Bool> sOr(const ZP<Expr_Bool>& iLHS, const ZP<Expr_Bool>& iRHS); ZP<Expr_Bool> operator~(const ZP<Expr_Bool>& iExpr_Bool); ZP<Expr_Bool> operator&(bool iBool, const ZP<Expr_Bool>& iExpr_Bool); ZP<Expr_Bool> operator&(const ZP<Expr_Bool>& iExpr_Bool, bool iBool); ZP<Expr_Bool> operator|(bool iBool, const ZP<Expr_Bool>& iExpr_Bool); ZP<Expr_Bool> operator|(const ZP<Expr_Bool>& iExpr_Bool, bool iBool); ZP<Expr_Bool> operator&(const ZP<Expr_Bool>& iLHS, const ZP<Expr_Bool>& iRHS); ZP<Expr_Bool>& operator&=(ZP<Expr_Bool>& ioLHS, const ZP<Expr_Bool>& iRHS); ZP<Expr_Bool> operator|(const ZP<Expr_Bool>& iLHS, const ZP<Expr_Bool>& iRHS); ZP<Expr_Bool>& operator|=(ZP<Expr_Bool>& ioLHS, const ZP<Expr_Bool>& iRHS); } // namespace ZooLib #endif // __ZooLib_Expr_Expr_Bool_h__
a987ef7a695971fd37cc3b6801ab858785714139
da29650865ee674b68c61537ef287846c1160fc1
/src/Asteroids.cpp
416e3269dd9e14e1ddb5c14032ca5f3801a3d744
[]
no_license
stackofsugar/orbit-game
b5ed3afb7135b08f21c46696d689d19d420f6dab
c0d9a1bd29ea8e545946a0025dcf72730e1e6239
refs/heads/master
2023-05-09T04:11:06.704287
2021-05-17T15:26:13
2021-05-17T15:26:13
367,661,906
1
0
null
null
null
null
UTF-8
C++
false
false
2,530
cpp
Asteroids.cpp
#include "../include/pch.h" using namespace std; Asteroids::Asteroids() { m_accelX = m_accelY = h_frameTimeCount = h_vellocCap = h_accelTimeCap = h_accelVariable = h_Yoffset = 0; h_spinAcceleration = h_spinValue = 0.0f; SDL_SetTextureBlendMode(m_texture, SDL_BLENDMODE_NONE); } Asteroids::~Asteroids() { free(); } void Asteroids::spawn(int randPosX) { m_accelX = m_accelY = m_velX = 0; collider.r = m_width / 2; m_posY = -m_height - h_Yoffset; m_posX = randPosX; m_velY = h_vellocCap / 6; } void Asteroids::initSpawn(int Yoffset, float spinOffset, int randPosX) { h_Yoffset = Yoffset; h_spinValue = spinOffset; h_vellocCap = 50; h_accelTimeCap = 20; h_accelVariable = 1; spawn(randPosX); } bool Asteroids::isVanishedFromScreen() { if (m_posY >= SCREEN_W + 5) { return true; } else if (m_posX + m_width <= 0) { return true; } else if (m_posX >= SCREEN_W) { return true; } return false; } void Asteroids::processMovement() { h_frameTimeCount++; if (h_frameTimeCount >= h_accelTimeCap) { m_velY += h_accelVariable; h_frameTimeCount = 0; } if (m_velX > h_vellocCap) { m_velX = h_vellocCap; } if (m_velY > h_vellocCap) { m_velY = h_vellocCap; } collider.x = m_posX + (m_width / 2); collider.y = m_posY + (m_height / 2); } void Asteroids::updateMove() { m_posX += m_velX; m_posY += m_velY; } void Asteroids::render() { SDL_Rect renderTarget = { m_posX, m_posY, m_width, m_height }; h_spinValue += h_spinAcceleration; if (h_spinValue >= 360.0f) { h_spinValue = 0.0f; } SDL_RenderCopyEx(g_renderer, m_texture, NULL, &renderTarget, h_spinValue, NULL, SDL_FLIP_NONE); } void Asteroids::stationaryRender() { SDL_Rect renderTarget = { m_posX, m_posY, m_width, m_height }; SDL_RenderCopyEx(g_renderer, m_texture, NULL, &renderTarget, h_spinValue, NULL, SDL_FLIP_NONE); } void Asteroids::DEBUG_SETXY(int x, int y) { m_posX = x; m_posY = y; collider.x = m_posX + (m_width / 2); collider.y = m_posY + (m_height / 2); } /* \param newVelocity 50 - 96 \param newAccelTime 20 - 0 \param newAccelVariable 1 - 4 */ void Asteroids::setDifficulty(int newVelocity, int newAccelTime, int newAccelVariable, float newSpinAcceleration) { h_vellocCap = newVelocity; h_accelTimeCap = newAccelTime; h_accelVariable = newAccelVariable; h_spinAcceleration = newSpinAcceleration; }
f428fc149db2dee9f0f05f748924205021b26f59
31bf87dd738db9d6b789a4f008a0411b70103548
/Runner/src/Map/Tile.cpp
b0ee41365dd3733d3d4d2ca7a0cface8ec4405c1
[]
no_license
nhrjr/OutRunner
cf2dd9db4b11fd5bcf1d75bafb03df71cf1977ce
e0bd437546ab771673931522c89bf3fec715e92a
refs/heads/master
2021-01-17T13:19:13.322077
2017-05-14T15:34:01
2017-05-14T15:34:01
57,307,962
1
0
null
null
null
null
UTF-8
C++
false
false
1,712
cpp
Tile.cpp
#include "stdafx.h" #include "Tile.h" #include <iostream> Tile::Tile(const unsigned int height, const unsigned int width, sf::Texture& texture, const Animation& animation, const TileType tileType, const unsigned int numberOfVariants) : tileType(tileType), tileOrientation(0), numberOfVariants(numberOfVariants) { region[0] = 0; sprite.setOrigin(sf::Vector2f(0.0f, 0.0f)); sprite.setTexture(texture); //animHandler.frameSize = sf::IntRect(0, 0, width, height); //animHandler.bounds = animHandler.frameSize; animHandler.addAnim(animation); //animHandler.setRandomAnimVariant(numberOfVariants); //animHandler.update(0.0f); } Tile::Tile(const unsigned int height, const unsigned int width, const TileType tileType) : tileType(tileType), tileOrientation(0), numberOfVariants(0) { region[0] = 0; } //Tile::Tile(const Tile& tile) : animHandler(tile.animHandler), sprite(tile.sprite), tileType(tile.tileType), tileVariant(tile.tileVariant), tileOrientation(tile.tileOrientation) //{ // region[0] = tile.region[0]; // animHandler.setRandomStart(); //} Tile::~Tile() { }; void Tile::initialize() { //animHandler.setRandomAnimVariant(numberOfVariants); } void Tile::draw(sf::RenderWindow& window) { window.draw(sprite); } void Tile::update(float dt) { //animHandler.changeAnim(tileOrientation); //animHandler.setAnim(numberOfVariants); animHandler.update(dt); sprite.setTextureRect(animHandler.bounds); } std::string tileTypeToStr(TileType type) { switch (type) { default: case TileType::VOID: return "Void"; case TileType::CONCRETE: return "Concrete"; case TileType::WALL: return "Wall"; case TileType::WATER: return "Water"; case TileType::GRASS: return "Grass"; } }
35c69950b40ccd205e509aa9c87c611556a3a068
286781b73d10ebf24774a80343436ad7d327fe87
/bs658_FindKClosestElements.cpp
1d115205172aa68eb636cd4339a47cf6c8c75294
[]
no_license
ada-zqz/leetcode
70fabe811148b33d170ecb280a44a3b078b23a0b
67d9a475395f4fe79a56e2ad87fa72425757b2ba
refs/heads/master
2020-12-03T21:38:45.078563
2020-07-31T14:39:11
2020-07-31T14:39:11
231,493,976
1
0
null
2020-01-21T07:07:45
2020-01-03T02:09:47
C++
UTF-8
C++
false
false
947
cpp
bs658_FindKClosestElements.cpp
class Solution { public: vector<int> findClosestElements(vector<int>& arr, int k, int x) { int n = arr.size(); int lo = 0, hi = n - k; //输出数组的起点 while(lo < hi) { int mid = (lo + hi) / 2; // 若输出是[mid, mid + k - 1],即这个范围包括了x,且x=mid or mid+k-1都可能 // --- mid --- mid + k - 1 --- mid + k ---- x ----- // --- mid ---------- x -- mid + k - 1 ---- mid + k ---- x更靠近mid+k,mid往右移 // --- mid -- x ---------- mid + k - 1 ---- mid + k ---- x更靠近mid,mid往左移 // ----- x --- mid --- mid + k - 1 --- mid + k ---- if((x - arr[mid]) > (arr[mid + k] - x)) lo = mid + 1; // hi>lo,mid+k不会超出范围 //mid+k更改取近范围,所以mid应该往右移 else hi = mid; } return vector<int>(arr.begin() + lo, arr.begin() + lo + k); } };
da576adc9ff7e5f9aa84fb114ec76e52ad21dab3
9cb6b8d7d4625450db5f3fed5040e87bcc950832
/acampamento08/segunda/treino/UnionOfIntervals.cpp
962b665aac097a3767dfad5cee97a3ec7036f15d
[]
no_license
kangli-bionic/Treino-Maratona
7ca7731142514c28880c0e463c6a8ba5d97aebb6
c02fefbe740f8792b825faa722718cdd64c456a2
refs/heads/master
2021-05-30T03:28:37.094987
2014-09-15T18:17:01
2014-09-15T18:17:01
null
0
0
null
null
null
null
WINDOWS-1257
C++
false
false
796
cpp
UnionOfIntervals.cpp
// Includes {{{ #include <algorithm> #include <iostream> #include <sstream> #include <string> #include <vector> #include <queue> #include <set> #include <map> #include <cstdio> #include <cstdlib> #include <cctype> #include <cmath> #include <stdio.h> using namespace std; // }}} #define TRACE(x...) x #define PRINT(x...) TRACE(printf (x)) #define WATCH(x) TRACE(cout << #x << ": " << x << endl) //#define DEBUG // Classe e Testes - UnionOfIntervals {{{ class UnionOfIntervals { public: int nthElement(vector <int> lowerBound, vector <int> upperBound, int n); }; // }}} int UnionOfIntervals::nthElement(vector <int> lowerBound, vector <int> upperBound, int n) { } // Fun¨‹o main {{{ // }}} // Powered by FileEdit // Powered by TZTester 1.01 [25-Feb-2003] // Powered by CodeProcessor
e7026fe5562cd041db0a8386d4978bc02c0f0690
e0bf250b6c42c1045c2ccff2ac042f206f7d01cc
/Matrix/Rotate matrix by 90 (anti-clockwise) in O(1) space.cpp
f7eb6f85650472b942f10794a5c83d25f435262b
[]
no_license
Zhatabsaifi/DS-and-Algorithms
07d645b826288a722fe4803a3cd243f57b7ea7d0
b5621e398ca8c9a6aab6a5b19c0acdb4fb17a4d0
refs/heads/master
2022-11-29T12:06:17.458319
2020-08-06T08:43:59
2020-08-06T08:43:59
285,524,879
0
2
null
2020-08-06T09:08:26
2020-08-06T09:08:25
null
UTF-8
C++
false
false
1,196
cpp
Rotate matrix by 90 (anti-clockwise) in O(1) space.cpp
/* Ques :-Rotate matrix by 90 (anti-clockwise) in O(1) space Theory:- To solve the question without any extra space, rotate the array in form of squares, dividing the matrix into squares or cycles. For example, A 4 X 4 matrix will have 2 cycles. The first cycle is formed by its 1st row, last column, last row and 1st column. The second cycle is formed by 2nd row, second-last column, second-last row and 2nd column. The idea is for each square cycle, swap the elements involved with the corresponding cell in the matrix in anti-clockwise direction i.e. from top to left, left to bottom, bottom to right and from right to top one at a time using nothing but a temporary variable to achieve this. */ for(int x=0;x<n/2;++x) { for(int y=x;y<n-x-1;++y) { int temp=mat[x][y]; mat[x][y]=mat[y][n-x-1]; mat[y][n-x-1]=mat[n-x-1][n-y-1]; mat[n-x-1][n-y-1]=mat[n-y-1][x]; mat[n-y-1][x]=temp; } } /* Note:- Reverse is for right rotation of a matrix...(similar) */
12b2d02de76bc232298a471c4e928c7b646c43c8
d312e90b49f0aebd0c577bf7599430cc137b3609
/common.cpp
70580cf568b5bbc71848a4ae36a03e809d6e00e5
[]
no_license
prakank/competitive-programming
ed822eda09b11fb770dd97413909da13d1a327d2
9c0d2ef643647181d0d9c47a21a059a19102f4e6
refs/heads/master
2023-04-06T01:41:17.216051
2021-05-01T18:47:16
2021-05-01T18:47:16
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,649
cpp
common.cpp
// First element just greater than given number in sorted array // similar is lower_bound when just less than given number asked vector<int> arr(n); int ans=upper_bound(arr.begin(),arr.end(),target)-arr.begin(); int arr[] ans= upper_bound(arr, arr+n, tofind) - arr; // sum of digits in a number int n; int ans=0; while(n>0){ ans+=n%10; n/=10; } // It returns (x^y) % p int largestPower(int n, int p) { int x = 0; while (n) { n /= p; x += n; } return x; // Utility function to do modular exponentiation. int power(int x, int y, int p) { int res = 1; // Initialize result x = x % p; // Update x if it is more than or // equal to p while (y > 0) { // If y is odd, multiply x with result if (y & 1) res = (res * x) % p; // y must be even now y = y >> 1; // y = y/2 x = (x * x) % p; } return res; } // Returns n! % p int modFact(int n, int p) { if (n >= p) return 0; int res = 1; // Use Sieve of Eratosthenes to find all primes // smaller than n bool isPrime[n + 1]; memset(isPrime, 1, sizeof(isPrime)); for (int i = 2; i * i <= n; i++) { if (isPrime[i]) { for (int j = 2 * i; j <= n; j += i) isPrime[j] = 0; } } // Consider all primes found by Sieve for (int i = 2; i <= n; i++) { if (isPrime[i]) { // Find the largest power of prime 'i' that divides n int k = largestPower(n, i); // Multiply result with (i^k) % p res = (res * power(i, k, p)) % p; } } return res; }
0cd521577062235be30258bb072d8468813dcaa8
66fb7014ab01da4b39fa7d9c9fe6b4ab348394b1
/1116.cpp
7780468de13440a2a579ada0dbaf962a8fa33e4c
[]
no_license
SunHaoer/OJ_ZCMU
48b96196bb0ae977531480c4412c7e26fe0f5d07
8f2b9f603771486d9c76ee9bdb6857a4e4127096
refs/heads/master
2021-07-15T23:37:40.588133
2018-12-04T02:44:09
2018-12-04T02:44:09
140,536,383
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
969
cpp
1116.cpp
#include<iostream> #include<cmath> #include<vector> #include<sstream> using namespace std; const int MAX = 100000001; vector<int> v; void fun3() { for(int i = 0; i < v.size(); i++) { cout<<v[i]<<endl; } } bool fun2(int n) { string str; stringstream stream; stream<<n; stream>>str; for(int i = 0; i <= str.size() / 2; i++) { if(str[i] != str[str.size() - 1 - i]) { return false; } } return true; } void fun1(int a, int b) { for(int i = a; i <= b; i++) { // cout<<i<<endl; bool flag = true; for(int j = 2; j <= sqrt(i); j++) { if(i % j == 0) { // ·ÇËØÊý flag = false; break; } } if(flag && fun2(i)) { v.push_back(i); } } } int main() { int a, b; while(cin>>a>>b) { fun1(a, b); fun3(); v.clear(); } return 0; }
bdc8c0e253e8a2626740220a9760beb9277f8260
e3646ddf6283df78c8f449c5faca0e9e4d31c3de
/剑指Offer/数组/剑指Offer 03.数组中重复的数字.cpp
c4ff0c255296b7bb0227f8be2d24e2d826e44ed7
[]
no_license
SeizeTheMoment/Solution-to-Algorithm-Excercise
54ec930e02bde179eb37b76d550f2c4765858346
79df5e6f1d89e359f815ea2c562b8c60c7035422
refs/heads/master
2021-09-26T16:36:54.729191
2021-09-25T13:26:58
2021-09-25T13:26:58
244,899,936
0
0
null
null
null
null
UTF-8
C++
false
false
396
cpp
剑指Offer 03.数组中重复的数字.cpp
class Solution { public: int findRepeatNumber(vector<int>& nums) { int i = 0; int N = nums.size(); while(i<N) { if(nums[i]!=i) { int x = nums[i]; if(nums[i]==x) return x; swap(nums[i],nums[x]); } else i++; } return -1; } };
999ae123bbc5ccfb5a08778ebeabfc61ec795822
bf5758819d696682114ff1eed4faefc6b3b2dd13
/Source/UE4Rollercoaster/UE4RollercoasterPawn.h
0cb8c8feb98063a994afce8ce1cf5e21ac8ab77c
[]
no_license
Kittnz/UE4Rollercoaster
d71e822392e7731db66344d9b159ec1cc3f720ef
b4545c48e20b5dae35b1630a01643cabe740566d
refs/heads/master
2016-09-05T09:57:26.496609
2014-04-29T07:04:16
2014-04-29T07:04:16
19,486,996
1
0
null
null
null
null
UTF-8
C++
false
false
323
h
UE4RollercoasterPawn.h
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. #pragma once #include "GameFramework/DefaultPawn.h" #include "UE4RollercoasterPawn.generated.h" /** * */ UCLASS() class AUE4RollercoasterPawn : public ADefaultPawn { GENERATED_UCLASS_BODY() public: virtual FRotator GetViewRotation() const OVERRIDE; };
e74aa39f18c38f08dcf8c6ea2a792246a80c17eb
0d4e28f7e9d961e45d32a4735ad7c1f76bbda34a
/ocs2_core/test/cppad_cg/testCppAdInterface.cpp
5dec2bb211dc6d5f97436b5e43955236cfcde505
[ "BSD-3-Clause" ]
permissive
RoboMark9/ocs2
a4fc0c215ccb3a86afeffe93b6a67fb0d9dd9450
b037d819c9a02a674de9badb628b32646ce11d6a
refs/heads/main
2023-08-29T15:20:07.117885
2021-10-20T13:09:37
2021-10-20T13:09:37
453,286,119
1
0
BSD-3-Clause
2022-01-29T03:30:28
2022-01-29T03:30:27
null
UTF-8
C++
false
false
3,091
cpp
testCppAdInterface.cpp
#include <gtest/gtest.h> #include "commonFixture.h" using namespace ocs2; class CppAdInterfaceNoParameterFixture : public CommonCppAdNoParameterFixture {}; class CppAdInterfaceParameterizedFixture : public CommonCppAdParameterizedFixture {}; TEST_F(CppAdInterfaceNoParameterFixture, testModelGeneration) { ocs2::CppAdInterface adInterface(funImpl, variableDim_, "testModelWithoutParameters"); adInterface.createModels(ocs2::CppAdInterface::ApproximationOrder::Second, true); vector_t x = vector_t::Random(variableDim_); ASSERT_TRUE(adInterface.getFunctionValue(x).isApprox(testFun(x))); ASSERT_TRUE(adInterface.getJacobian(x).isApprox(testJacobian(x))); ASSERT_TRUE(adInterface.getHessian(0, x).isApprox(testHessian(x))); const auto gnApproximation = adInterface.getGaussNewtonApproximation(x); ASSERT_DOUBLE_EQ(gnApproximation.f, 0.5 * testFun(x).squaredNorm()); ASSERT_TRUE(gnApproximation.dfdx.isApprox(testJacobian(x).transpose() * testFun(x))); ASSERT_TRUE(gnApproximation.dfdxx.isApprox(testJacobian(x).transpose() * testJacobian(x))); } TEST_F(CppAdInterfaceParameterizedFixture, testModelGeneration) { ocs2::CppAdInterface adInterface(funImpl, variableDim_, parameterDim_, "testModelWithParameters"); adInterface.createModels(ocs2::CppAdInterface::ApproximationOrder::Second, true); vector_t x = vector_t::Random(variableDim_); vector_t p = vector_t::Random(parameterDim_); ASSERT_TRUE(adInterface.getFunctionValue(x, p).isApprox(testFun(x, p))); ASSERT_TRUE(adInterface.getJacobian(x, p).isApprox(testJacobian(x, p))); ASSERT_TRUE(adInterface.getHessian(0, x, p).isApprox(testHessian(0, x, p))); ASSERT_TRUE(adInterface.getHessian(1, x, p).isApprox(testHessian(1, x, p))); const auto gnApproximation = adInterface.getGaussNewtonApproximation(x, p); ASSERT_DOUBLE_EQ(gnApproximation.f, 0.5 * testFun(x, p).squaredNorm()); ASSERT_TRUE(gnApproximation.dfdx.isApprox(testJacobian(x, p).transpose() * testFun(x, p))); ASSERT_TRUE(gnApproximation.dfdxx.isApprox(testJacobian(x, p).transpose() * testJacobian(x, p))); } TEST_F(CppAdInterfaceParameterizedFixture, loadIfAvailable) { ocs2::CppAdInterface adInterface(funImpl, variableDim_, parameterDim_, "testModelLoadIfAvailable"); adInterface.loadModelsIfAvailable(ocs2::CppAdInterface::ApproximationOrder::Second, true); vector_t x = vector_t::Random(variableDim_); vector_t p = vector_t::Random(parameterDim_); ASSERT_TRUE(adInterface.getFunctionValue(x, p).isApprox(testFun(x, p))); ASSERT_TRUE(adInterface.getJacobian(x, p).isApprox(testJacobian(x, p))); ASSERT_TRUE(adInterface.getHessian(0, x, p).isApprox(testHessian(0, x, p))); ASSERT_TRUE(adInterface.getHessian(1, x, p).isApprox(testHessian(1, x, p))); const auto gnApproximation = adInterface.getGaussNewtonApproximation(x, p); ASSERT_DOUBLE_EQ(gnApproximation.f, 0.5 * testFun(x, p).squaredNorm()); ASSERT_TRUE(gnApproximation.dfdx.isApprox(testJacobian(x, p).transpose() * testFun(x, p))); ASSERT_TRUE(gnApproximation.dfdxx.isApprox(testJacobian(x, p).transpose() * testJacobian(x, p))); }
d723d2483e46403b2a13bf1d866cf4b22b84ed40
85add643559329f2b0bfd857fdcba64b9ef2b62c
/src/a.cpp
175563d8e7b0bccf542ccd0b9d114339f87a09ad
[]
no_license
MayorovAndrey/OOPSZI_3laba
8ed5f50c37eb66d2e4a901985c1330db5d11b382
51419fa2be302b4e324cb3f8133b076442ab47e7
refs/heads/master
2020-05-24T03:09:22.672403
2019-05-16T18:52:58
2019-05-16T18:52:58
187,067,058
0
0
null
null
null
null
UTF-8
C++
false
false
97
cpp
a.cpp
#include <math.h> double a(int i) { return pow(-1, i) * (1/ (pow(i, 2) + pow(2, i))); }
dcd191852b234c730fd89da92afce98f1686afb4
179d85485e018e9d4ef6d90b2f6351fa704a4507
/common/test/stream/Base64OutputStreamTest.cpp
2e20a01ce82b68948d9eba509e399645873da955
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
webOS-ports/mojomail
f4addae3efef050b09f7a1d6e4ebc31a9cc1c5bb
f86606eb1ad10d0eb82cb9f3bc482a5d1ce34545
refs/heads/webOS-ports/webOS-OSE
2023-01-21T09:02:48.124971
2022-07-03T17:47:14
2022-07-03T17:47:14
71,721,861
0
3
null
2022-07-03T17:47:15
2016-10-23T18:39:38
C++
UTF-8
C++
false
false
1,939
cpp
Base64OutputStreamTest.cpp
// @@@LICENSE // // Copyright (c) 2010-2013 LG Electronics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // LICENSE@@@ #include "stream/Base64OutputStream.h" #include "stream/ByteBufferOutputStream.h" #include <gtest/gtest.h> #include <string> TEST(Base64OutputStreamTest, TestBase64Encoder) { int BUF_SIZE = 1024; char buf[BUF_SIZE]; int nread; MojRefCountedPtr<ByteBufferOutputStream> bbos( new ByteBufferOutputStream() ); MojRefCountedPtr<Base64EncoderOutputStream> b64eos( new Base64EncoderOutputStream(bbos)); // Write and read strncpy(buf, "XXX@1", BUF_SIZE); b64eos->Write("Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure.", 269); b64eos->Flush(); nread = bbos->ReadFromBuffer(buf, 1024); ASSERT_EQ( 370, (int) nread ); ASSERT_EQ("TWFuIGlzIGRpc3Rpbmd1aXNoZWQsIG5vdCBvbmx5IGJ5IGhpcyByZWFzb24sIGJ1dCBieSB0aGlz\r\n" "IHNpbmd1bGFyIHBhc3Npb24gZnJvbSBvdGhlciBhbmltYWxzLCB3aGljaCBpcyBhIGx1c3Qgb2Yg\r\n" "dGhlIG1pbmQsIHRoYXQgYnkgYSBwZXJzZXZlcmFuY2Ugb2YgZGVsaWdodCBpbiB0aGUgY29udGlu\r\n" "dWVkIGFuZCBpbmRlZmF0aWdhYmxlIGdlbmVyYXRpb24gb2Yga25vd2xlZGdlLCBleGNlZWRzIHRo\r\n" "ZSBzaG9ydCB2ZWhlbWVuY2Ugb2YgYW55IGNhcm5hbCBwbGVhc3VyZS4=\r\n", std::string(buf, nread)); }
45b13ae1cfe12f4016a96df24f9c738d764a0122
8e869e404ab5677f060b77244e54a3b0828c71e8
/CS 31/Stars Project/Stars Project/stars.cpp
7b4c316243a2f1e15ddf26cec168b6007cd337c4
[]
no_license
SamanHashemi/UCLA-Coursework
efa911728ee021a59240a2ea4abb980d2d539691
ef6c1c8220c658ce8481118610113a41f7482e51
refs/heads/master
2020-03-19T12:52:36.472731
2019-10-19T21:20:28
2019-10-19T21:20:28
136,546,207
0
0
null
null
null
null
UTF-8
C++
false
false
5,752
cpp
stars.cpp
// // main.cpp // Project 5 // // Created by Saman Hashemipour on 11/18/17. // Copyright © 2017 Saman Hashemipour. All rights reserved. // #include <iostream> #include <cstring> #include <cctype> #include "utilities.h" using namespace std; int runOneRound(const char words[][7], int nWords, int wordnum); int main() { const int MAXNUMWORDS = 9000; const char WORDFILENAME[] = "/Users/Saman-Mac/Desktop/School/Fall 2017/CS 31/Project 2/Project 2/words.txt"; char wordList[MAXNUMWORDS][MAXWORDLEN+1]; int nWords = getWords(wordList, MAXNUMWORDS, WORDFILENAME); int nRound; // Must return more than 1 words if(nWords < 1){ cout << "No words were loaded, so I can't play the game."; return 0; } int maxRounds = 0; int minRounds = 0; int numRounds = 0; double totalRounds = 0; double aveRounds = 0.0; cout << "How many rounds do you want to play? "; cin >> nRound; cin.ignore(100, '\n'); if(nRound < 0){ cout << "The number of rounds must be positive"; return 0; } for(int i = 1; i <= nRound; i++){ cout << endl; cout << "Round " << i << endl; int wordnum = randInt(0, nWords-1); // Create the random word number cout << "The secret word is " << strlen(wordList[wordnum]) << " letters long." << endl; // Get word size numRounds = runOneRound(wordList, nWords, wordnum); // Play round of guessing // Print the numer of rounds it took to play if(numRounds == 1){ cout << "You got it in 1 try." << endl; } else{ cout << "You got it in " << numRounds << " tries." << endl; } totalRounds += numRounds; // The total number of rounds played so far aveRounds = totalRounds/i; // The ave number of plays so far //Find the min and max rounds played if(numRounds > maxRounds) maxRounds = numRounds; if(numRounds < minRounds || minRounds == 0) minRounds = numRounds; // Print out the relevant info cout.setf(ios::fixed); cout.precision(2); cout << "Average: " << aveRounds << ", "; cout << "minimum: " << minRounds << ", "; cout << "maximum: " << maxRounds << endl; cout << endl << endl; } } int runOneRound(const char words[][7], int nWords, int wordnum){ // First test case for wordnum and nWords requirements (LOOOOOOOOOOLLLLLLLLL CHECK THIS SHITTTTTT LOOOOOOOOOOOOOLLLLLLLLLLL) if(wordnum >= nWords || wordnum < 0 || nWords < 0){ return -1; } int planets = 0; // Number of correct letters int stars = 0; // Number of correct locations int numTries = 0; bool inList = false; bool lowerCase = true; bool wordFound = false; // Was the word guessed correctly char word[MAXWORDLEN+1]; // The word that will be used char probeWord[101]; // The word that the person will use // Create and initialize the array for the locations of the string that have been counted bool beenCounted[MAXWORDLEN+1]; for(int i = 0; i < MAXWORDLEN+1; i++){ beenCounted[i] = false; } strcpy(word, words[wordnum]); // cout << word << endl; // To cheat while(!wordFound){ cout << "Probe word: "; cin.getline(probeWord, 100); //If not lower case and 4,5 or 6 letters long lowerCase = true; for(int i = 0; i < strlen(probeWord); i++){ if(isupper(probeWord[i])){ lowerCase = false; } } if(!lowerCase || (strlen(probeWord) < 4 || strlen(probeWord) > 6)){ cout << "Your probe word must be a word of 4 to 6 lower case letters." << endl; continue; } // Check to see if in the list of words inList = false; for(int i = 0; i < nWords; i++){ if(strcmp(probeWord, words[i]) == 0){ inList = true; } } if(!inList){ cout << "I don't know that word" << endl; continue; } numTries++; // If made it passed the tests increase number of guesses // Look for stars // for(int i = 0; i < strlen(word); i++){ // if(i >= strlen(probeWord)) // break; // if(probeWord[i] == word[i]){ // stars++; // beenCounted[i] = true; // } // } // Look for planets for(int j = 0; j < strlen(probeWord); j++){ for(int i = 0; i < strlen(word); i++){ // Check for a star if(!beenCounted[i] && probeWord[j] == word[i] && i == j){ stars++; beenCounted[i] = true; break; } // Check for a planet if(!beenCounted[i] && probeWord[j] == word[i]){ planets++; beenCounted[i] = true; break; } } } // Guessed the right word if(stars == strlen(word) && strlen(probeWord) == strlen(word)){ return numTries; } // Print planet and stars cout << "Stars: " << stars << ", " << "Planets: " << planets << endl; //Reset all values to prepare for the next word for(int i = 0; i < MAXWORDLEN+1; i++){ beenCounted[i] = false; } stars = 0; planets = 0; } return numTries; }
9d02266335fb39596a5029842e60765637e5ac96
1d96a21f86c1cf3cf0cde4f4d10b58c942cd919c
/cdlist.cpp
adafe44aa91df98ad63c40e6c9438c1ed1a85e1b
[ "BSD-3-Clause" ]
permissive
guillaume-morin/libdatastruct
d5f9b809bbde112866834a8ba81e20581a52b651
3c5588c117df758090c5b9cc130a3e8988fe240a
refs/heads/master
2020-04-06T07:00:59.391460
2015-04-27T11:40:15
2015-04-27T11:40:15
34,653,818
0
0
null
null
null
null
ISO-8859-1
C++
false
false
4,533
cpp
cdlist.cpp
/*****************************************************************************/ /* LIBC++ - cdlist.cpp */ /* Classe liste doublement chainée circulaire */ /* Copyright (c) 2004 Guillaume Morin - All rights reserved */ /*****************************************************************************/ #include "cdlist.hpp" // Insertion d'un élément après *element int CDList::insert_next(DList_Element *element,const void *data) { DList_Element *nouv_element; // Allocation du nouvel élément if ((nouv_element=(DList_Element *)malloc(sizeof(DList_Element))) == NULL) // On retourne une erreur si l'allocation échoue return -1; // On fait pointer Data sur les données nouv_element->Data=(void *)data; // Est-ce que la liste est vide ? if (Size==0) { // Liste vide, l'élément est le seul Head=nouv_element; Tail=nouv_element; Head->Previous=nouv_element; Head->Next=nouv_element; } // Liste non vide, l'élément doit-il être inséré en tête ? else if (element==NULL) { // Liste non vide, élément en tête nouv_element->Previous=Tail; nouv_element->Next=Head; Head->Previous=nouv_element; Tail->Next=nouv_element; Head=nouv_element; } else { // Liste non vide, élément ailleurs qu'en tête // Insertion à la fin ? if (element==Tail) // Oui, l'élément devient la queue Tail=nouv_element; // Insertion du nouvel élément nouv_element->Previous=element; nouv_element->Next=element->Next; element->Next->Previous=nouv_element; element->Next=nouv_element; } // On incrémente la taille de la liste Size++; return 0; } int CDList::insert_previous(DList_Element *element,const void *data) { DList_Element *nouv_element; // Allocation du nouvel élément if ((nouv_element=(DList_Element *)malloc(sizeof(DList_Element))) == NULL) // On retourne une erreur si l'allocation échoue return -1; // On fait pointer Data sur les données nouv_element->Data=(void *)data; // Est-ce que la liste est vide ? if (Size==0) { // Liste vide, l'élément est le seul Head=nouv_element; Tail=nouv_element; Head->Previous=nouv_element; Head->Next=nouv_element; } // Liste non vide, l'élément doit-il être inséré en queue ? else if (element==NULL) { // Liste non vide, élément en queue nouv_element->Previous=Tail; nouv_element->Next=Head; Head->Previous=nouv_element; Tail->Next=nouv_element; Tail=nouv_element; } else { // Liste non vide, élément ailleurs qu'en queue // Insertion en tête ? if (element==Head) // Oui, l'élément devient la tête Head=nouv_element; // Insertion du nouvel élément nouv_element->Previous=element->Previous; nouv_element->Next=element; element->Previous->Next=nouv_element; element->Previous=nouv_element; } // On incrémente la taille de la liste Size++; return 0; } // Suppression d'un élément int CDList::remove(DList_Element *element,void **data) { DList_Element *anc_element; // Impossible de supprimer si la liste est vide if (Size==0) return -1; // Si element est NULL, on supprime l' élément de tête if (element==NULL) element=Head; // *data prend la valeur du pointeur vers les données *data=element->Data; // N'y a t'il qu'un seul élément ? if (element->Next==element) { // On supprime le dernier élément // On fait pointer anc_element sur l'élément à supprimer anc_element=element; // La liste est vide, donc Head et Tail pointent vers NULL Head=Tail=NULL; } else { // Suppression d'un élément // On fait pointer anc_element sur l'élément à supprimer anc_element=element; // On modifie les éléments précédent et suivant element->Previous->Next=element->Next; element->Next->Previous=element->Previous; // Si l'élément est en tête on change la tête if (element==Head) Head=element->Next; // Si l'élément est en queue on change la queue if (element==Tail) Tail=element->Previous; } // On libère la mémoire allouée à l'élement free(anc_element); // On décrémente la taille de la liste Size--; return 0; }
ca573b5f44ec4ca5de014a39f0183c09e572d28f
49bd331f56ddb63201fec48435a2471365b7cfdd
/FIREprogram/GUI0804/jttool.h
c379cd51b788436ac9997e275184238df551ebab
[]
no_license
NIRANKEN/jammingSimulation
30365a9118c76c8a773d6aab764dd666de9daca5
1d45ec0fd79205a769165cd925680fef7baa9fb9
refs/heads/master
2021-09-23T21:48:44.731372
2018-09-27T22:42:48
2018-09-27T22:42:48
109,472,863
1
1
null
2017-11-25T07:30:26
2017-11-04T06:33:33
C++
UTF-8
C++
false
false
16,217
h
jttool.h
#ifndef _JTTOOL_H_ #define _JTTOOL_H_ #include "nr.h" #include "MT.h" #include <vector> namespace JT { //--------------------------// //--Tools for JTsimulation--// //-------(jttool.cpp)-------// //--------------------------// inline void PutZahyoRandomly(Vec_IO_DP &zahyo,Vec_IO_DP &zahyotmp,DP L,int seednum); inline void PeriodicMove(Vec_IO_DP &zahyo,DP L); inline void updateParticle(int i,DP &R,DP &BIMASS,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified); inline void updateParticleF(int I,DP &R,DP &BIMASS,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified); inline void updateRadius(int i,DP &R,DP ratio,int Pratio1,int Pratio2,int N,bool &modified); inline void updateRadiusF(int I,DP &R,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified); namespace dim2 { inline void PutZahyoRandomly2D(Vec_IO_DP &zahyo,Vec_IO_DP &zahyotmp,DP Lx,DP Ly,int seednum); inline void PeriodicMove2D(Vec_IO_DP &zahyo,DP Lx,DP Ly); inline bool checkdim2(int D); inline DP CtoDerivePHI2D(DP L,DP rt,DP PN, int Prt1,int Prt2,int D); inline DP CtoDerivePHI2D(DP Lx,DP Ly,DP rt,DP PN, int Prt1,int Prt2,int D); inline void updateRadius_Hessian2D(int i,DP &R,DP &rtinv,DP ratio,int Pratio1,int Pratio2,int N,bool &modified); inline void updateRadiusF_Hessian2D(int I,DP &R,DP &rtinv,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified); inline void OutofPeriodicboundary2D(DP &relative_x,DP &relative_y,DP Lx,DP Ly,DP sgm); inline void OutofPeriodicboundary2D_qt(DP &relative_x,DP &relative_y,DP Lx,DP Ly,DP sgm,int &p1,int &p2); inline bool overlapped2D(DP x1,DP y1,DP x2,DP y2,DP Lx,DP Ly,DP R1,DP R2,DP &sgm,DP &r); inline bool overlapped2D_CL(DP x1,DP y1,DP x2,DP y2,DP Lx,DP Ly,DP R1,DP &sgm,DP &r); inline bool overlapped2D_F(DP x1,DP y1,DP x2,DP y2,DP Lx,DP Ly,DP R1,DP R2,DP &sgm,DP &r,DP &rx,DP &ry); inline bool overlapped2D_H(DP x1,DP y1,DP x2,DP y2,DP Lx,DP Ly,DP R1,DP R2,DP &sgm,DP &r,DP &rx2,DP &ry2,DP &rxy); inline void initializeParticle2(DP &R2,DP R,DP &x,DP &y,DP Cx,DP Cy,bool &b); inline void initializeParticle2_H(DP &R2,DP R,DP &x,DP &y,DP Cx,DP Cy,bool &b,DP &rtinv2,DP rt); void modifyContactList(NRVec<vector<int> > &v,Vec_I_DP &p,DP Lx,DP Ly,DP R,DP rt,int Prt1,int Prt2,int D); } namespace dim3 { inline void PeriodicMove3D(Vec_IO_DP &zahyo,DP Lx,DP Ly,DP Lz); inline void PutZahyoRandomly3D(Vec_IO_DP &zahyo,Vec_IO_DP &zahyotmp,DP Lx,DP Ly,DP Lz,int seednum); inline bool checkdim3(int D); inline DP CtoDerivePHI3D(DP L,DP rt,DP PN,int Prt1,int Prt2,int D); inline DP CtoDerivePHI3D(DP Lx,DP Ly,DP Lz,DP rt,DP PN,int Prt1,int Prt2,int D); inline void updateRadius_Hessian3D(int i,DP &R,DP &rtinv,DP ratio,int Pratio1,int Pratio2,int N,bool &modified); inline void updateRadiusF_Hessian3D(int I,DP &R,DP &rtinv,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified); inline void OutofPeriodicboundary3D(DP &relative_x,DP &relative_y,DP &relative_z,DP Lx,DP Ly,DP Lz,DP sgm); inline bool overlapped3D(DP x1,DP y1,DP z1,DP x2,DP y2,DP z2,DP Lx,DP Ly,DP Lz,DP R1,DP R2,DP &sgm,DP &r); inline bool overlapped3D_CL(DP x1,DP y1,DP z1,DP x2,DP y2,DP z2,DP Lx,DP Ly,DP Lz,DP R1,DP &sgm,DP &r); inline bool overlapped3D_F(DP x1,DP y1,DP z1,DP x2,DP y2,DP z2,DP Lx,DP Ly,DP Lz,DP R1,DP R2,DP &sgm,DP &r,DP &rx,DP &ry,DP &rz); inline bool overlapped3D_H(DP x1,DP y1,DP z1,DP x2,DP y2,DP z2,DP Lx,DP Ly,DP Lz,DP R1,DP R2,DP &sgm,DP &r,DP &rx2,DP &ry2,DP &rz2,DP &rxy,DP &ryz,DP &rzx); inline void initializeParticle2(DP &R2,DP R,DP &x,DP &y,DP &z,DP Cx,DP Cy,DP Cz,bool &b); inline void initializeParticle2_H(DP &R2,DP R,DP &x,DP &y,DP &z,DP Cx,DP Cy,DP Cz,bool &b,DP &rtinv2,DP rt); void modifyContactList(NRVec<vector<int> > &v,Vec_I_DP &p,DP Lx,DP Ly,DP Lz,DP R,DP rt,int Prt1,int Prt2,int D); } inline void showHESS(Mat_I_DP &H); inline void showCL(NRVec<vector<int> > &v,int D); } inline void JT::PutZahyoRandomly(Vec_IO_DP &zahyo,Vec_IO_DP &zahyotmp,DP L,int seednum) { int N=zahyo.size(); MT::init_genrand(seednum); for(int i=0;i<N;i++) zahyotmp[i]=zahyo[i]=MT::genrand_real1()*L; } inline void JT::dim2::PutZahyoRandomly2D(Vec_IO_DP &zahyo,Vec_IO_DP &zahyotmp,DP Lx,DP Ly,int seednum) { int N=zahyo.size(); MT::init_genrand(seednum); for(int i=0;i<N;i+=2) { zahyotmp[i]=zahyo[i]=MT::genrand_real1()*Lx; zahyotmp[i+1]=zahyo[i+1]=MT::genrand_real1()*Ly; } } inline void JT::dim3::PutZahyoRandomly3D(Vec_IO_DP &zahyo,Vec_IO_DP &zahyotmp,DP Lx,DP Ly,DP Lz,int seednum) { int N=zahyo.size(); MT::init_genrand(seednum); for(int i=0;i<N;i+=3) { zahyotmp[i]=zahyo[i]=MT::genrand_real1()*Lx; zahyotmp[i+1]=zahyo[i+1]=MT::genrand_real1()*Ly; zahyotmp[i+2]=zahyo[i+2]=MT::genrand_real1()*Lz; } } inline void JT::PeriodicMove(Vec_IO_DP &zahyo,DP L) { int N=zahyo.size(); DP tmpL =1.0/L; for(int i=0;i<N;i++) { if(zahyo[i]<0 || zahyo[i]>L) zahyo[i]+=-L*(static_cast<int>(zahyo[i]*tmpL)); if(zahyo[i]<0) zahyo[i]+=L; } } inline void JT::dim2::PeriodicMove2D(Vec_IO_DP &zahyo,DP Lx,DP Ly) { int N=zahyo.size(); DP tmpLx =1.0/Lx,tmpLy=1.0/Ly; for(int i=0;i<N;i+=2) { if(zahyo[i]<0 || zahyo[i]>Lx) zahyo[i]+=-Lx*(static_cast<int>(zahyo[i]*tmpLx)); if(zahyo[i]<0) zahyo[i]+=Lx; if(zahyo[i+1]<0 || zahyo[i+1]>Ly) zahyo[i+1]+=-Ly*(static_cast<int>(zahyo[i+1]*tmpLy)); if(zahyo[i+1]<0) zahyo[i+1]+=Ly; } } inline void JT::dim3::PeriodicMove3D(Vec_IO_DP &zahyo,DP Lx,DP Ly,DP Lz) { int N=zahyo.size(); DP tmpLx =1.0/Lx,tmpLy=1.0/Ly,tmpLz=1.0/Lz; for(int i=0;i<N;i+=3) { if(zahyo[i]<0 || zahyo[i]>Lx) zahyo[i]+=-Lx*(static_cast<int>(zahyo[i]*tmpLx)); if(zahyo[i]<0) zahyo[i]+=Lx; if(zahyo[i+1]<0 || zahyo[i+1]>Ly) zahyo[i+1]+=-Ly*(static_cast<int>(zahyo[i+1]*tmpLy)); if(zahyo[i+1]<0) zahyo[i+1]+=Ly; if(zahyo[i+2]<0 || zahyo[i+2]>Lz) zahyo[i+2]+=-Lz*(static_cast<int>(zahyo[i+2]*tmpLz)); if(zahyo[i+2]<0) zahyo[i+2]+=Lz; } } inline void JT::dim2::OutofPeriodicboundary2D(DP &relative_x,DP &relative_y,DP Lx,DP Ly,DP sgm) { if(fabs(relative_x)>Lx-sgm || fabs(relative_y)>Ly-sgm) { if(fabs(relative_x-Lx)<sgm)//A or D or F relative_x-=Lx; else if(fabs(relative_x+Lx)<sgm)// C or E or H relative_x+=Lx; //なにもしない otherwise (B or G) if(fabs(relative_y-Ly)<sgm)//F or G or H relative_y-=Ly; else if(fabs(relative_y+Ly)<sgm)//A or B or C relative_y+=Ly; //なにもしない otherwise (D or E) } return; } inline void JT::dim2::OutofPeriodicboundary2D_qt(DP &relative_x,DP &relative_y,DP Lx,DP Ly,DP sgm,int &p1,int &p2) { if(fabs(relative_x)>Lx-sgm || fabs(relative_y)>Ly-sgm) { if(fabs(relative_x-Lx)<sgm) {//A or D or F relative_x-=Lx; p1=1; } else if(fabs(relative_x+Lx)<sgm) {// C or E or H relative_x+=Lx; p1=-1; } //なにもしない otherwise (B or G) if(fabs(relative_y-Ly)<sgm) {//F or G or H relative_y-=Ly; p2=1; } else if(fabs(relative_y+Ly)<sgm) {//A or B or C relative_y+=Ly; p2=-1; } //なにもしない otherwise (D or E) } return; } inline void JT::dim3::OutofPeriodicboundary3D(DP &relative_x,DP &relative_y,DP &relative_z,DP Lx,DP Ly,DP Lz,DP sgm) { if(fabs(relative_x)>Lx-sgm || fabs(relative_y)>Ly-sgm || fabs(relative_z)>Lz-sgm) { if(fabs(relative_x-Lx)<sgm) relative_x-=Lx; else if(fabs(relative_x+Lx)<sgm) relative_x+=Lx; if(fabs(relative_y-Ly)<sgm) relative_y-=Ly; else if(fabs(relative_y+Ly)<sgm) relative_y+=Ly; if(fabs(relative_z-Lz)<sgm) relative_z-=Lz; else if(fabs(relative_z+Lz)<sgm) relative_z+=Lz; } return; } inline void JT::updateParticle(int i,DP &R,DP &BIMASS,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified) { if(!modified) { if((Pratio1+Pratio2)*i>=Pratio1*N) { R*=ratio; BIMASS*=pow(ratio,D); modified=true; } } return; } inline void JT::updateRadius(int i,DP &R,DP ratio,int Pratio1,int Pratio2,int N,bool &modified) { if(!modified) { if((Pratio1+Pratio2)*i>=Pratio1*N) { R*=ratio; modified=true; } } return; } inline void JT::dim2::updateRadius_Hessian2D(int i,DP &R,DP &rtinv,DP ratio,int Pratio1,int Pratio2,int N,bool &modified) { if(!modified) { if((Pratio1+Pratio2)*i>=Pratio1*N) { R*=ratio; rtinv/=ratio; modified=true; } } return; } inline void JT::dim3::updateRadius_Hessian3D(int i,DP &R,DP &rtinv,DP ratio,int Pratio1,int Pratio2,int N,bool &modified) { if(!modified) { if((Pratio1+Pratio2)*i>=Pratio1*N) { R*=ratio; rtinv/=sqrt(ratio*ratio*ratio); modified=true; } } return; } inline DP JT::dim2::CtoDerivePHI2D(DP L,DP rt,DP PN, int Prt1,int Prt2,int D) { if(checkdim2(D)) { DP numer=(Prt1+Prt2)*L*L,denom=(Prt1+Prt2*rt*rt)*PN*M_PI; return sqrt(numer/denom); } return 0.0; } inline DP JT::dim2::CtoDerivePHI2D(DP Lx,DP Ly,DP rt,DP PN, int Prt1,int Prt2,int D) { if(checkdim2(D)) { DP numer=(Prt1+Prt2)*Lx*Ly,denom=(Prt1+Prt2*rt*rt)*PN*M_PI; return sqrt(numer/denom); } return 0.0; } inline DP JT::dim3::CtoDerivePHI3D(DP L,DP rt,DP PN,int Prt1,int Prt2,int D) { if(checkdim3(D)) { DP numer=3*(Prt1+Prt2)*L*L*L,denom=4*(Prt1+Prt2*rt*rt*rt)*PN*M_PI; return pow(numer/denom,0.333333333333333); } return 0.0; } inline DP JT::dim3::CtoDerivePHI3D(DP Lx,DP Ly,DP Lz,DP rt,DP PN,int Prt1,int Prt2,int D) { if(checkdim3(D)) { DP numer=3*(Prt1+Prt2)*Lx*Ly*Lz,denom=4*(Prt1+Prt2*rt*rt*rt)*PN*M_PI; return pow(numer/denom,0.333333333333333); } return 0.0; } inline bool JT::dim2::checkdim2(int D) { if(D==2) return true; else { cerr<<"Your system dimension is "<<D<<". Must simulate for 2D!!"<<endl; exit(1); } return false; } inline bool JT::dim3::checkdim3(int D) { if(D==3) return true; else { cerr<<"Your system dimension is "<<D<<". Must simulate for 3D!!"<<endl; exit(1); } return false; } inline void JT::showHESS(Mat_I_DP &H) { int N=H.ncols(),M=H.nrows(); for(int i=0;i<M;i++) { for(int j=0;j<N;j++) cout<<H[i][j]<<' '; cout<<endl; } } inline void JT::updateParticleF(int I,DP &R,DP &BIMASS,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified) { if(!modified) { if((Pratio1+Pratio2)*I>=Pratio1*D*N) { R*=ratio; BIMASS*=pow(ratio,D); modified=true; } } return; } inline void JT::updateRadiusF(int I,DP &R,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified) { if(!modified) { if((Pratio1+Pratio2)*I>=Pratio1*D*N) { R*=ratio; modified=true; } } return; } inline void JT::dim2::updateRadiusF_Hessian2D(int I,DP &R,DP &rtinv,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified) { if(!modified) { if((Pratio1+Pratio2)*I>=Pratio1*D*N) { R*=ratio; rtinv/=ratio; modified=true; } } return; } inline void JT::dim3::updateRadiusF_Hessian3D(int I,DP &R,DP &rtinv,DP ratio,int Pratio1,int Pratio2,int N,int D,bool &modified) { if(!modified) { if((Pratio1+Pratio2)*I>=Pratio1*D*N) { R*=ratio; rtinv/=sqrt(ratio*ratio*ratio); modified=true; } } return; } inline bool JT::dim2::overlapped2D(DP x1,DP y1,DP x2,DP y2,DP Lx,DP Ly,DP R1,DP R2,DP &sgm,DP &r) { DP rx=x2-x1; DP ry=y2-y1; sgm=R1+R2; JT::dim2::OutofPeriodicboundary2D(rx,ry,Lx,Ly,sgm); r=sqrt(rx*rx+ry*ry); if(r<sgm) return true; else return false; } inline bool JT::dim2::overlapped2D_CL(DP x1,DP y1,DP x2,DP y2,DP Lx,DP Ly,DP R1,DP &sgm,DP &r) { DP rx=x2-x1; DP ry=y2-y1; sgm=2*R1; JT::dim2::OutofPeriodicboundary2D(rx,ry,Lx,Ly,sgm); r=sqrt(rx*rx+ry*ry); if(r<sgm) return true; else return false; } inline bool JT::dim2::overlapped2D_F(DP x1,DP y1,DP x2,DP y2,DP Lx,DP Ly,DP R1,DP R2,DP &sgm,DP &r,DP &rx,DP &ry) { rx=x2-x1; ry=y2-y1; sgm=R1+R2; JT::dim2::OutofPeriodicboundary2D(rx,ry,Lx,Ly,sgm); r=sqrt(rx*rx+ry*ry); if(r<sgm) return true; else return false; } inline bool JT::dim2::overlapped2D_H(DP x1,DP y1,DP x2,DP y2,DP Lx,DP Ly,DP R1,DP R2,DP &sgm,DP &r,DP &rx2,DP &ry2,DP &rxy) { DP rx=x2-x1; DP ry=y2-y1; sgm=R1+R2; JT::dim2::OutofPeriodicboundary2D(rx,ry,Lx,Ly,sgm); rx2=rx*rx; ry2=ry*ry; rxy=rx*ry; r=sqrt(rx2+ry2); if(r<sgm) return true; else return false; } inline bool JT::dim3::overlapped3D(DP x1,DP y1,DP z1,DP x2,DP y2,DP z2,DP Lx,DP Ly,DP Lz,DP R1,DP R2,DP &sgm,DP &r) { DP rx=x2-x1; DP ry=y2-y1; DP rz=z2-z1; sgm=R1+R2; JT::dim3::OutofPeriodicboundary3D(rx,ry,rz,Lx,Ly,Lz,sgm); r=sqrt(rx*rx+ry*ry+rz*rz); if(r<sgm) return true; else return false; } inline bool JT::dim3::overlapped3D_CL(DP x1,DP y1,DP z1,DP x2,DP y2,DP z2,DP Lx,DP Ly,DP Lz,DP R1,DP &sgm,DP &r) { DP rx=x2-x1; DP ry=y2-y1; DP rz=z2-z1; sgm=2*R1; JT::dim3::OutofPeriodicboundary3D(rx,ry,rz,Lx,Ly,Lz,sgm); r=sqrt(rx*rx+ry*ry+rz*rz); if(r<sgm) return true; else return false; } inline bool JT::dim3::overlapped3D_F(DP x1,DP y1,DP z1,DP x2,DP y2,DP z2,DP Lx,DP Ly,DP Lz,DP R1,DP R2,DP &sgm,DP &r,DP &rx,DP &ry,DP &rz) { rx=x2-x1; ry=y2-y1; rz=z2-z1; sgm=R1+R2; JT::dim3::OutofPeriodicboundary3D(rx,ry,rz,Lx,Ly,Lz,sgm); r=sqrt(rx*rx+ry*ry+rz*rz); if(r<sgm) return true; else return false; } inline bool JT::dim3::overlapped3D_H(DP x1,DP y1,DP z1,DP x2,DP y2,DP z2,DP Lx,DP Ly,DP Lz,DP R1,DP R2,DP &sgm,DP &r,DP &rx2,DP &ry2,DP &rz2,DP &rxy,DP &ryz,DP &rzx) { DP rx=x2-x1; DP ry=y2-y1; DP rz=z2-z1; sgm=R1+R2; JT::dim3::OutofPeriodicboundary3D(rx,ry,rz,Lx,Ly,Lz,sgm); rx2=rx*rx; ry2=ry*ry; rxy=rx*ry; rz2=rz*rz; ryz=ry*rz; rzx=rz*rx; r=sqrt(rx2+ry2+rz2); if(r<sgm) return true; else return false; } inline void JT::dim2::initializeParticle2(DP &R2,DP R,DP &x,DP &y,DP Cx,DP Cy,bool &b) { R2=R; x=Cx; y=Cy; b=false; } inline void JT::dim3::initializeParticle2(DP &R2,DP R,DP &x,DP &y,DP &z,DP Cx,DP Cy,DP Cz,bool &b) { R2=R; x=Cx; y=Cy; z=Cz; b=false; } inline void JT::dim2::initializeParticle2_H(DP &R2,DP R,DP &x,DP &y,DP Cx,DP Cy,bool &b,DP &rtinv2,DP rt) { R2=R; x=Cx; y=Cy; b=false; rtinv2=rt; } inline void JT::dim3::initializeParticle2_H(DP &R2,DP R,DP &x,DP &y,DP &z,DP Cx,DP Cy,DP Cz,bool &b,DP &rtinv2,DP rt) { R2=R; x=Cx; y=Cy; z=Cz; b=false; rtinv2=rt; } void JT::dim2::modifyContactList(NRVec<vector<int> > &v,Vec_I_DP &p,DP Lx,DP Ly,DP R,DP rt,int Prt1,int Prt2,int D) { int N=v.size(); int N1=Prt1*N/(Prt1+Prt2); //int N2=N-N1; if(D*v.size()!=p.size()) { cerr<<"接触リストのサイズがおかしいよ~"<<endl; exit(1); } int I,J; DP R1=2.25*R; DP sgm,relr; for(int i=0;i<N;i++) { v[i]=vector<int>(); I=D*i; if(i==N1) { R1*=rt; } for(int j=i+1;j<N;j++) { J=D*j; if(overlapped2D_CL(p[I],p[I+1],p[J],p[J+1],Lx,Ly,R1,sgm,relr)) { v[i].push_back(j); } }//for-j-end }//for-i-end } void JT::dim3::modifyContactList(NRVec<vector<int> > &v,Vec_I_DP &p,DP Lx,DP Ly,DP Lz,DP R,DP rt,int Prt1,int Prt2,int D) { //cout<<"MODIFY ContactList"<<endl; int N=v.size(); int N1=Prt1*N/(Prt1+Prt2); if(D*v.size()!=p.size()) { cerr<<"接触リストのサイズがおかしいよ~"<<endl; exit(1); } int I,J; DP R1=2.25*R,sgm,relr; for(int i=0;i<N;i++) { v[i]=vector<int>(); I=D*i; if(i==N1) { R1*=rt; } for(int j=i+1;j<N;j++) { J=D*j; if(overlapped3D_CL(p[I],p[I+1],p[I+2],p[J],p[J+1],p[J+2],Lx,Ly,Lz,R1,sgm,relr)) { v[i].push_back(j); } }//for-j-end }//for-i-end } inline void JT::showCL(NRVec<vector<int> > &v,int D) { int N=v.size(),K; ofstream ofs("test.txt"); for(int i=0;i<N;i++) { ofs<<i<<": "; for(unsigned int j=0;j<v[i].size();j++) { K=D*v[i][j]; if(j==0) ofs<<K<<","<<K+1<<","<<K+2; else ofs<<" "<<K<<","<<K+1<<","<<K+2; } ofs<<endl; } ofs.close(); } #endif
1d40d42ec03b8a76a5f0239a98aafdb5d7b28c02
04fde8a09465f91bb95c407192a8ac6efe1ddf6a
/lab_01/density_distr/density_functor.h
1f01126a6c82e7356a217bb28eba4535cd46d200
[]
no_license
adv-dev-22/mm_ii
235f11598385cfa72a491b09af6ab2141e6c607a
1b36f027e86cd6f36417898740d6d8bdc4101cae
refs/heads/master
2021-03-01T11:18:32.021677
2020-03-23T05:45:54
2020-03-23T05:45:54
245,780,983
0
0
null
null
null
null
UTF-8
C++
false
false
1,202
h
density_functor.h
#ifndef _DENSITY_FUNCTORS_H_ #define _DENSITY_FUNCTORS_H_ template <typename T> class BaseDensityFunctor { public: virtual ~BaseDensityFunctor(); virtual T value(const T x) const = 0; virtual T operator() (const T x) const = 0; }; template <typename T> class UnaryDensityFunctor : public BaseDensityFunctor<T> { public: UnaryDensityFunctor(); virtual ~UnaryDensityFunctor(); virtual T value(const T x) const; virtual T operator() (const T x) const; }; template <typename T> class UniformDensityFunctor : public BaseDensityFunctor<T> { public: UniformDensityFunctor(); virtual ~UniformDensityFunctor(); void set_a_left (const T a_in); void set_b_right(const T b_in); virtual T value(const T x) const; virtual T operator() (const T x) const; protected: T a_left_; T b_right_; }; template <typename T> class UniformDistributionFFunctor : public UniformDensityFunctor<T> { public: UniformDistributionFFunctor(); virtual ~UniformDistributionFFunctor(); virtual T value(const T x) const; virtual T operator() (const T x) const; }; // Exponential // .. // Normal // .. // Poisson // .. #endif // _DENSITY_FUNCTORS_H_
55d98bb0398695d74f6f179e4eb4e454c1e048c3
3d6b4d9445880c6a9e3c4170f156eacbdb1414c8
/Source/LeaveThePast/Manager/HelpManager.h
ff233fdd55822fc72eb4de808c7130372ada7158
[]
no_license
wlzs04/LeaveThePast
1c4386109b2246cfeb5c63371b9262bb4f1a41bf
db818bc416253c7d5c951e23419a4abe934b4039
refs/heads/master
2022-02-23T06:31:52.215352
2019-08-18T10:15:16
2019-08-18T10:15:16
185,384,171
1
0
null
null
null
null
UTF-8
C++
false
false
798
h
HelpManager.h
#pragma once #include "CoreMinimal.h" #include "UObject/NoExportTypes.h" #include "HelpManager.generated.h" class UTexture2D; //包含一些静态辅助函数 UCLASS() class LEAVETHEPAST_API UHelpManager : public UObject { GENERATED_BODY() public: static UHelpManager* GetInstance(); void Init(); static FVector ConvertFStringToFVector(FString value); static FRotator ConvertFStringToFRotator(FString value); static FString ConvertToFString(FVector value); static FString ConvertToFString(FRotator value); static FString ConvertToFString(FTimespan value); static FTimespan ConvertFStringToFTimespan(FString value); //加载本地图片 static UTexture2D* LoadTexture2D(FString path, bool& isValid, int32& outWidth, int32& outHeight); private: static UHelpManager* helpManager; };
78f0c2d16c5a3de5b12a895c87204a12b1aa2189
98efb564bb374aa9503b80ddc3bd022994dc94b8
/triangle.cpp
fd25c79d81bbfaea0cc4e19d9ce2284bee496b5b
[]
no_license
Hyeon97/PS
57b7594a454a999c55ee920a2f4012c7f0df7889
a6ed4a5549e26e0e006dad00b90830e33afce474
refs/heads/master
2023-04-25T19:53:52.551190
2021-06-08T14:31:42
2021-06-08T14:31:42
367,803,429
0
0
null
null
null
null
UHC
C++
false
false
4,496
cpp
triangle.cpp
#include <iostream> #include <algorithm> #include <vector> #pragma warning(disable:4996); typedef long long ll; using namespace std; typedef struct { ll x; ll y; }point; vector<point>P, Q; int T; ll ccw(point a, point b, point c) {//기준점 a 음수 >> 우회전 양수 >> 좌회전 0 >> 일직선상 return (a.x * b.y + b.x * c.y + c.x * a.y) - (a.y * b.x + b.y * c.x + c.y * a.x); } bool IsinP(point p) { ll c1 = ccw(p, P[0], P[1]); ll c2 = ccw(p, P[1], P[2]); ll c3 = ccw(p, P[2], P[0]); //ccw 결과 셋다 >0 or <0 인경우 해당점은 도형 내부에 존재 if (c1 > 0 && c2 > 0 && c3 > 0 || c1 < 0 && c2 < 0 && c3 < 0) return true; return false; } bool IsinQ(point p) { ll c1 = ccw(p, Q[0], Q[1]); ll c2 = ccw(p, Q[1], Q[2]); ll c3 = ccw(p, Q[2], Q[0]); //ccw 결과 셋다 >0 or <0 인경우 해당점은 도형 내부에 존재 if (c1 > 0 && c2 > 0 && c3 > 0 || c1 < 0 && c2 < 0 && c3 < 0) return true; return false; } int main() { ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); freopen("triangle.inp", "r", stdin); freopen("triangle.out", "w", stdout); cin >> T; point p; while (T--) { P.clear(); Q.clear(); //P삼각형 좌표 for (int i = 0; i < 3; i++) { cin >> p.x >> p.y; P.push_back(p); } //Q삼각형 좌표 for (int i = 0; i < 3; i++) { cin >> p.x >> p.y; Q.push_back(p); } //중첩(2) 분류 ll p1 = 0, p2 = 0, q1 = 0, q2 = 0; bool flag = false; //P 선분3개 Q 선분3개 총9가지 경우의 수 모두 확인 for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { //각 p,q 는 (양수-음수) or (음수-양수) 로 나와야함 p1 = ccw(Q[j], Q[(j + 1) % 3], P[i]); p2 = ccw(Q[j], Q[(j + 1) % 3], P[(i + 1) % 3]); q1 = ccw(P[i], P[(i + 1) % 3], Q[j]); q2 = ccw(P[i], P[(i + 1) % 3], Q[(j + 1) % 3]); //조건에 맞는경우 2 출력후 종료 if (((p1 < 0 && p2 > 0) || (p1 > 0 && p2 < 0)) && ((q1 < 0 && q2 > 0) || (q1 > 0 && q2 < 0))) { cout << 2 << '\n'; flag = true; break; } } if (flag)break; } if (flag)continue; //중첩(2) 예외 삼각형이 모두 포함되는경우 for (int i = 0; i < 3; i++) { if (IsinQ(P[i])) { cout << 2 << '\n'; flag = true; break; } } if (flag)continue; for (int i = 0; i < 3; i++) { if (IsinP(Q[i])) { cout << 2 << '\n'; flag = true; break; } } if (flag)continue; //분리(1) 또는 접함(3)만 남음 //접함(3)분류 //P기준 ll temp; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { //P점 하나와 Q 선분 하나를 ccw temp = ccw(P[i], Q[j], Q[(j + 1) % 3]); //ccw 값이 0인경우 일직선상에 있음 >> 고려대상 if (temp == 0) { if (Q[j].x <= Q[(j + 1) % 3].x) { if (Q[j].x <= P[i].x && P[i].x <= Q[(j + 1) % 3].x) { //세점이 일직선상에 있으면서 P의 점이 Q의 선분 사이에 존재하는경우 >> 접함(3) cout << 3 << '\n'; flag = true; break; } } else if ((Q[j].x > Q[(j + 1) % 3].x)) { if (Q[j].x >= P[i].x && P[i].x >= Q[(j + 1) % 3].x) { //세점이 일직선상에 있으면서 P의 점이 Q의 선분 사이에 존재하는경우 >> 접함(3) cout << 3 << '\n'; flag = true; break; } } } } if (flag)break; } if (flag)continue; //Q기준 for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { //P점 하나와 Q 선분 하나를 ccw temp = ccw(Q[i], P[j], P[(j + 1) % 3]); //ccw 값이 0인경우 일직선상에 있음 >> 고려대상 if (temp == 0) { if (P[j].x <= P[(j + 1) % 3].x) { if (P[j].x <= Q[i].x && Q[i].x <= P[(j + 1) % 3].x) { //세점이 일직선상에 있으면서 Q의 점이 P의 선분 사이에 존재하는경우 >> 접함(3) cout << 3 << '\n'; flag = true; break; } } else if ((P[j].x > P[(j + 1) % 3].x)) { if (P[j].x >= Q[i].x && Q[i].x >= P[(j + 1) % 3].x) { //세점이 일직선상에 있으면서 Q의 점이 P의 선분 사이에 존재하는경우 >> 접함(3) cout << 3 << '\n'; flag = true; break; } } } } if (flag)break; } if (flag)continue; //나머지 모든 케이스는 분리(1) cout << 1 << '\n'; } return 0; }
6d012083c53a14ca3526cc9591c7279ebd64a737
900b319a2b0c4dd50905226f66476dea4000a476
/src/client/c_game.cpp
4f502e14dda9a61ce666270194a8832eef6721ce
[]
no_license
SarpAkin/basicMinecraftClone
b55d7075d03550f76dd83cf0f7914466b7c42f57
4ed13e19760f0760767493a17a546920e25ed804
refs/heads/main
2023-05-24T05:47:58.487242
2021-06-15T15:15:24
2021-06-15T15:15:24
339,823,770
1
0
null
null
null
null
UTF-8
C++
false
false
3,320
cpp
c_game.cpp
#include "c_game.hpp" #include <chrono> #include <memory> #include <utility> #include "../common/Physics.hpp" C_game::C_game(uint16_t port, const char* ip) : Game(), Client(port, ip) { while (Player.lock() == nullptr) { std::this_thread::sleep_for(std::chrono::milliseconds(2)); Tick(0.002f); } Player.lock()->isVisible = false; schedular.SchedulRepeatingFunc( [this]() { auto p = Player.lock(); if (p != nullptr) { ChunksInRange( p->currentChunk, [](Chunk& c, Vector2Int r_pos, Vector2Int f_pos) {}, [this](Chunk& c, Vector2Int r_pos, Vector2Int f_pos) { requestChunk(f_pos); }); } }, 1, 20); } void C_game::Tick(float deltaT) { auto Messages = connection->inqueue.GetDeque(); for (auto& m : Messages) { ProcessMessages(m, -1); } // Tick schedular schedular.Tick(); if (auto player_ = Player.lock()) { auto& chunkEnt = player_->currentChunk->Entities; for (auto it = chunkEnt.begin(); it != chunkEnt.end(); ++it) if (*it == player_) { if (ChunkVSAABB(it, deltaT)) { connection->Send(ToSendableM(S_EntityMoved(*player_))); } break; } } // Request chunks if(requestCBuffer.size()) connection->Send(ToSendableM(S_RequestChunk(std::move(requestCBuffer)))); // requestedChunks.clear(); // } void C_game::requestChunk(Vector2Int pos) { // std::cout << "aa\n"; if (!requestedChunks.contains(pos)) { requestedChunks.emplace(pos); requestCBuffer.push_back(pos); } } std::shared_ptr<Entity> C_game::GetEntity(EntityID id) { return Entities[id].lock(); } void C_game::DestroyEntity(EntityID id) { auto e = Entities[id].lock(); if(e) { Chunk& e_chunk = *(e->currentChunk); e_chunk.Entities.erase(e_chunk.GetEntityIt(e)); } Entities.erase(id); } // Events void C_game::OnBlockPlaced(Chunk::TileRef tile, uint32_t ClientID) { tile.chunk.blockMeshUpdate(tile.pos); } // Messages void C_game::ProcessMessageCustom(MessageTypes mtype, M_P_ARGS_T) { switch (mtype) { M_P_CASE(EntitySpawned); M_P_CASE(PlayerSpawned); M_P_CASE(LoadChunk); default: std::cerr << "Unsupported message type : " << mtype << " aserting\n"; break; } } void C_game::R_LoadChunk(M_P_ARGS_T) { auto c_pos = m.pop_front<Vector2Int>(); requestedChunks.erase(c_pos); auto chunk = std::make_unique<Chunk>(); m.pop_front(*chunk); chunk->Init(chunks); // init chunk chunks[c_pos] = std::move(chunk); } void C_game::R_EntitySpawned(M_P_ARGS_T) { EntityID id; m.pop_front(id); auto e = std::make_shared<Entity>(); if (e->Deserialize(m, this)) { e->currentChunk->Entities.push_back(e); Entities[id] = e; } } void C_game::R_PlayerSpawned(M_P_ARGS_T) { EntityID id; m.pop_front(id); Player = GetEntity(id); } Message C_game::S_RequestChunk(std::vector<Vector2Int> chunk_poses) { Message m; m.push_back(MessageTypes::RequestChunk); m.push_back(chunk_poses); return m; }
c2878c5d67a03985be07e30a0f9743f72616e76e
c80f25d24cee6ed8dba1513c227886c07d83cf75
/WeaponGirl_1/Client/trunk/Classes/SceneLogin/WidgetServerSeparator.cpp
d4eef49478d971d5acc7da3db05d75d7b34acbaa
[ "MIT" ]
permissive
cnsuhao/newProBase
c250e54ead43efb57363347d1700649a35617d15
4fe81d30740a2a0857ca6e09a281fed1146e6202
refs/heads/master
2021-08-23T14:19:24.568828
2015-11-27T13:37:54
2015-11-27T13:37:54
null
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
1,454
cpp
WidgetServerSeparator.cpp
//////////////////////////////////////////////////////////////////////// // Copyright(c) 2015-9999, WuHan GoodGame, All Rights Reserved // Moudle: WidgetServerSeparator.cpp // Author: ÅíÎÄÆæ(Peng Wenqi) // Created: 2015/10/10 //////////////////////////////////////////////////////////////////////// #include "WidgetServerSeparator.h" ////////////////////////////////////////////////////////////////////////// WidgetServerSeparator::WidgetServerSeparator() { } ////////////////////////////////////////////////////////////////////////// WidgetServerSeparator::~WidgetServerSeparator() { } ////////////////////////////////////////////////////////////////////////// WidgetServerSeparator* WidgetServerSeparator::create(Node* pCsbNode, const std::string& text /*= ""*/) { WidgetServerSeparator* pRet = new(std::nothrow) WidgetServerSeparator(); if (pRet && pRet->init(pCsbNode, text)) { pRet->autorelease(); return pRet; } else { delete pRet; pRet = nullptr; return nullptr; } } ////////////////////////////////////////////////////////////////////////// bool WidgetServerSeparator::init(Node* pCsbNode, const std::string& text) { CHECKF(pCsbNode); auto csbLayout = (ui::Widget*)pCsbNode->getChildByName("Layout"); CHECKF(csbLayout); this->copyProperties(csbLayout); this->copyClonedWidgetChildren(csbLayout); ui::Helper::setStringText(this, "Text", text); return true; }
b2f06e88a54112f789fe8b27d9707f1cc99dd151
51e099f982ee80806f1894ad33a1cb0e81b23c83
/model.cpp
048ff0d96e4e41cfd9bcf053cf94a4812c009ea1
[]
no_license
kendryfbo/sistema-nomina
76832d8248d92eeb566c0fa105a5d675534d42d9
96e7399dc87f050ea7eacdcebf8f9e4e860271a9
refs/heads/master
2020-04-10T21:48:14.374245
2016-07-20T12:35:45
2016-07-20T12:35:45
63,780,330
0
0
null
null
null
null
UTF-8
C++
false
false
2,519
cpp
model.cpp
#include "model.h" //CONSTRUCTORES Model::Model() : connected(false){} Model::Model(QString hostName,QString dbName,QString dbUserName,QString dbUserPassword,int dbPort) { conexion =connDB(hostName,dbName,dbUserName,dbUserPassword,dbPort); connect(); status=""; } Model::Model(QString connName, QString hostName, QString dbName, QString dbUserName, QString dbUserPassword, int dbPort) { conexion =connDB(connName,hostName,dbName,dbUserName,dbUserPassword,dbPort); connect(); status=""; } Model::~Model() { conexion.connClose(); } // CONECTAR A LA BASE DE DATOS bool Model::connect() { if (!conexion.connOpen()){ status = "ERROR: Model No pudo Conectarse a la Base de datos"; connected = false; } else { status = "Model: Conetado a Base de datos"; connected = true; } debugMessage(status); return connected; } // VERIFICAR SI EXISTE CONEXION A LA BASE DE DATOS bool Model::isConected() { if (conexion.isConected()) status = "Conexion a la Base de Datos se encuentra ABIERTA"; else status = "Conexion a la Base de Datos se encuentra CERRADA"; return conexion.isConected(); } // DESCONECTARSE A LA BASE DE DATOS void Model::disconnect(){ conexion.connClose(); status = "Conexion a la Base de Datos ha sido Cerrada"; } bool Model::startTransaction() { query->prepare("START TRANSACTION;"); if (!query->exec()) { status = "Error al Ejecutar TRANSACCION: " + query->lastError().text() + "\n" + query->executedQuery(); debugMessage(status); return false; } else return true; } bool Model::rollBack() { query->prepare("ROLLBACK;"); if (!query->exec()) { status = "Error al Ejecutar ROLLBACK: " + query->lastError().text() + "\n" + query->executedQuery(); debugMessage(status); query->clear(); return false; } else { query->clear(); return true; } } bool Model::Commit() { query->prepare("COMMIT;"); if (!query->exec()) { status = "Error al Ejecutar COMMIT: " + query->lastError().text() + "\n" + query->executedQuery(); debugMessage(status); query->clear(); return false; } else { query->clear(); return true; } } void Model::setDebug(bool value) { debug = value; } // OBTENER STATUS DEL MODELO QString Model::getStatusMessage() { return status; } bool Model::debugMessage(QString msg) { if (debug) qDebug() << msg; return true; }
30c7dd8083dbbc736519ac9eccbd4837df7676f0
04b1803adb6653ecb7cb827c4f4aa616afacf629
/chrome/renderer/v8_unwinder_unittest.cc
016c9512a8542aae8f0b6c42ad25fa9b402ca6f1
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
C++
false
false
8,757
cc
v8_unwinder_unittest.cc
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/renderer/v8_unwinder.h" #include <algorithm> #include <memory> #include "base/bind.h" #include "base/callback.h" #include "base/location.h" #include "base/logging.h" #include "base/memory/ptr_util.h" #include "base/profiler/stack_sampling_profiler_test_util.h" #include "base/stl_util.h" #include "base/synchronization/waitable_event.h" #include "base/test/bind_test_util.h" #include "base/test/scoped_task_environment.h" #include "build/build_config.h" #include "gin/public/isolate_holder.h" #include "testing/gtest/include/gtest/gtest.h" #include "v8/include/v8.h" namespace { v8::Local<v8::String> ToV8String(const char* str) { return v8::String::NewFromUtf8(v8::Isolate::GetCurrent(), str, v8::NewStringType::kNormal) .ToLocalChecked(); } v8::Local<v8::Object> CreatePointerHolder(const void* ptr) { v8::Local<v8::ObjectTemplate> object_template = v8::ObjectTemplate::New(v8::Isolate::GetCurrent()); object_template->SetInternalFieldCount(1); v8::Local<v8::Object> holder = object_template ->NewInstance(v8::Isolate::GetCurrent()->GetCurrentContext()) .ToLocalChecked(); holder->SetAlignedPointerInInternalField(0, const_cast<void*>(ptr)); return holder; } template <typename T> T* GetPointerFromHolder(v8::Local<v8::Object> holder) { return reinterpret_cast<T*>(holder->GetAlignedPointerFromInternalField(0)); } // Sets up the environment necessary to execute V8 code. class ScopedV8Environment { public: ScopedV8Environment() : isolate_holder_(scoped_task_environment_.GetMainThreadTaskRunner(), gin::IsolateHolder::IsolateType::kBlinkMainThread) { isolate()->Enter(); v8::HandleScope handle_scope(isolate()); context_.Reset(isolate(), v8::Context::New(isolate())); v8::Local<v8::Context>::New(isolate(), context_)->Enter(); } ~ScopedV8Environment() { { v8::HandleScope handle_scope(isolate()); v8::Local<v8::Context>::New(isolate(), context_)->Exit(); context_.Reset(); } isolate()->Exit(); } v8::Isolate* isolate() { return isolate_holder_.isolate(); } private: base::test::ScopedTaskEnvironment scoped_task_environment_; gin::IsolateHolder isolate_holder_; v8::Persistent<v8::Context> context_; }; // C++ function to be invoked from V8 which calls back into the provided closure // pointer (passed via a holder object) to wait for a stack sample to be taken. void WaitForSampleNative(const v8::FunctionCallbackInfo<v8::Value>& info) { base::OnceClosure* wait_for_sample = GetPointerFromHolder<base::OnceClosure>(info[0].As<v8::Object>()); if (wait_for_sample) std::move(*wait_for_sample).Run(); } // Causes a stack sample to be taken after setting up a call stack from C++ to // JavaScript and back into C++. base::FunctionAddressRange CallThroughV8( const base::RepeatingCallback<void(const v8::UnwindState&)>& report_unwind_state, base::OnceClosure wait_for_sample) { const void* start_program_counter = base::GetProgramCounter(); if (wait_for_sample) { // Set up V8 runtime environment. // Allows use of natives (functions starting with '%') within JavaScript // code, which allows us to control compilation of the JavaScript function // we define. // TODO(wittman): The flag should be set only for the duration of this test // but the V8 API currently doesn't support this. http://crbug.com/v8/9210 // covers adding the necessary functionality to V8. v8::V8::SetFlagsFromString("--allow-natives-syntax"); ScopedV8Environment v8_environment; v8::Isolate* isolate = v8_environment.isolate(); report_unwind_state.Run(isolate->GetUnwindState()); v8::HandleScope handle_scope(isolate); v8::Local<v8::Context> context = isolate->GetCurrentContext(); // Define a V8 function WaitForSampleNative() backed by the C++ function // WaitForSampleNative(). v8::Local<v8::FunctionTemplate> js_wait_for_sample_native_template = v8::FunctionTemplate::New(isolate, WaitForSampleNative); v8::Local<v8::Function> js_wait_for_sample_native = js_wait_for_sample_native_template->GetFunction(context) .ToLocalChecked(); js_wait_for_sample_native->SetName(ToV8String("WaitForSampleNative")); context->Global() ->Set(context, ToV8String("WaitForSampleNative"), js_wait_for_sample_native) .FromJust(); // Run a script to create the V8 function waitForSample() that invokes // WaitForSampleNative(), and a function that ensures that waitForSample() // gets compiled. waitForSample() just passes the holder object for the // pointer to the wait_for_sample Closure back into the C++ code. We ensure // that the function is compiled to test walking through both builtin and // runtime-generated code. const char kWaitForSampleJs[] = R"( function waitForSample(closure_pointer_holder) { if (closure_pointer_holder) WaitForSampleNative(closure_pointer_holder); } // Set up the function to be compiled rather than interpreted. function compileWaitForSample(closure_pointer_holder) { %PrepareFunctionForOptimization(waitForSample); waitForSample(closure_pointer_holder); waitForSample(closure_pointer_holder); %OptimizeFunctionOnNextCall(waitForSample); } )"; v8::Local<v8::Script> script = v8::Script::Compile(context, ToV8String(kWaitForSampleJs)) .ToLocalChecked(); script->Run(context).ToLocalChecked(); // Run compileWaitForSample(), using a null closure pointer to avoid // actually waiting. v8::Local<v8::Function> js_compile_wait_for_sample = v8::Local<v8::Function>::Cast( context->Global() ->Get(context, ToV8String("compileWaitForSample")) .ToLocalChecked()); v8::Local<v8::Value> argv[] = {CreatePointerHolder(nullptr)}; js_compile_wait_for_sample ->Call(context, v8::Undefined(isolate), base::size(argv), argv) .ToLocalChecked(); // Run waitForSample() with the real closure pointer. argv[0] = CreatePointerHolder(&wait_for_sample); v8::Local<v8::Function> js_wait_for_sample = v8::Local<v8::Function>::Cast( context->Global() ->Get(context, ToV8String("waitForSample")) .ToLocalChecked()); js_wait_for_sample ->Call(context, v8::Undefined(isolate), base::size(argv), argv) .ToLocalChecked(); } // Volatile to prevent a tail call to GetProgramCounter(). const void* volatile end_program_counter = base::GetProgramCounter(); return {start_program_counter, end_program_counter}; } } // namespace // Checks that unwinding from C++ through JavaScript and back into C++ succeeds. // NB: unwinding is only supported for 64 bit Windows and OS X. #if (defined(OS_WIN) && defined(ARCH_CPU_64_BITS)) || \ (defined(OS_MACOSX) && !defined(OS_IOS)) #define MAYBE_UnwindThroughV8Frames UnwindThroughV8Frames #else #define MAYBE_UnwindThroughV8Frames DISABLED_UnwindThroughV8Frames #endif TEST(V8UnwinderTest, MAYBE_UnwindThroughV8Frames) { v8::UnwindState unwind_state; base::WaitableEvent unwind_state_available; const auto set_unwind_state = [&](const v8::UnwindState& state) { unwind_state = state; unwind_state_available.Signal(); }; const auto create_v8_unwinder = [&]() -> std::unique_ptr<base::Unwinder> { unwind_state_available.Wait(); return std::make_unique<V8Unwinder>(unwind_state); }; base::UnwindScenario scenario(base::BindRepeating( &CallThroughV8, base::BindLambdaForTesting(set_unwind_state))); base::ModuleCache module_cache; std::vector<base::Frame> sample = SampleScenario( &scenario, &module_cache, base::BindLambdaForTesting(create_v8_unwinder)); // The stack should contain a full unwind. ExpectStackContains(sample, {scenario.GetWaitForSampleAddressRange(), scenario.GetSetupFunctionAddressRange(), scenario.GetOuterFunctionAddressRange()}); // The stack should contain a frame from a JavaScript module. auto loc = std::find_if(sample.begin(), sample.end(), [&](const base::Frame& frame) { return frame.module && (frame.module->GetId() == V8Unwinder::kV8EmbeddedCodeRangeBuildId || frame.module->GetId() == V8Unwinder::kV8CodeRangeBuildId); }); EXPECT_NE(sample.end(), loc); }
2d4b196155eb721498e17dad0f93b2393b423d88
044c978d905ee64657e76b7fddc4410c7527dfa9
/kichigin.yuri/common/matrix.cpp
8bb5b2334bbee975c875a7e8ab632e0c2aaa4141
[]
no_license
sdimosik/spbspu-labs-2020-904-4
bbbb2e6e7d64f28646a9eea3f8f3c10a49f3d913
1adedb23a08f345b7e975b78814b8a7fdbb5a736
refs/heads/master
2023-06-04T17:01:25.310853
2020-12-15T20:57:28
2020-12-15T20:57:28
378,229,599
0
0
null
null
null
null
UTF-8
C++
false
false
4,017
cpp
matrix.cpp
#include "matrix.hpp" #include <stdexcept> #include <string> namespace kichigin { Matrix::Matrix(unsigned int layerFullSize): matrix_(nullptr), matrixFullSize_(0), layerFullSize_(layerFullSize) {} Matrix::Matrix(const Matrix& matrix): matrix_(new std::shared_ptr<Shape>[matrix.matrixFullSize_]), matrixFullSize_(matrix.matrixFullSize_), layerFullSize_(matrix.layerFullSize_) { for (unsigned int i = 0; i < matrixFullSize_; i++) { matrix_[i] = matrix.matrix_[i]; } } Matrix& Matrix::operator=(const Matrix& matrix) { if (&matrix == this) { return *this; } matrix_.reset(new std::shared_ptr<Shape>[matrix.matrixFullSize_]); matrixFullSize_ = matrix.matrixFullSize_; layerFullSize_ = matrix.layerFullSize_; for (unsigned int i = 0; i < matrixFullSize_; i++) { matrix_[i] = matrix.matrix_[i]; } return *this; } std::shared_ptr<Shape> Matrix::getShape(unsigned int row, unsigned int column) const { if (row >= getLayersNumber()) { throw std::out_of_range(std::string("Matrix string index " + std::to_string(row) + " out of range")); } if (column >= getLayerCurrentSize(row)) { throw std::out_of_range(std::string("Matrix column index " + std::to_string(column) + " out of range")); } return matrix_[row * layerFullSize_ + column]; } void Matrix::addShape(const std::shared_ptr<Shape>& shape) { if (!layerFullSize_) { ++layerFullSize_; } unsigned int layerOfAdding = 0; unsigned int indexOfAdding = 0; for (unsigned int i = 0; i < getLayersNumber(); i++) { for (unsigned int j = 0; j < getLayerCurrentSize(i) && layerOfAdding <= i; j++) { if (layerOfAdding == i) { ++indexOfAdding; } if (isShapeOverclaped(matrix_[i * layerFullSize_ + j], shape) || j == layerFullSize_ - 1) { layerOfAdding = i + 1; indexOfAdding = 0; } } } if (layerOfAdding < getLayersNumber()) { matrix_[layerOfAdding * layerFullSize_ + indexOfAdding] = shape; } else { arrayType temp(new std::shared_ptr<Shape>[matrixFullSize_ + layerFullSize_]); for (unsigned int i = 0; i < matrixFullSize_; i++) { temp[i] = matrix_[i]; } matrix_ = std::move(temp); matrix_[matrixFullSize_] = shape; matrixFullSize_ += layerFullSize_; } } void Matrix::addCompositeShape(const std::shared_ptr<CompositeShape>& compShape) { for (unsigned int i = 0; i < compShape->getCurrentSize(); i++) { addShape((*compShape)[i]); } } unsigned int Matrix::getFullSize() const noexcept { return matrixFullSize_; } unsigned int Matrix::getLayersNumber() const noexcept { return matrixFullSize_ / layerFullSize_; } unsigned int Matrix::getLayerFullSize() const noexcept { return layerFullSize_; } unsigned int Matrix::getLayerCurrentSize(unsigned int index) const { if (index >= getLayersNumber()) { throw std::out_of_range(std::string("Layer index " + std::to_string(index) + " is out of range")); } unsigned int count = 0; for (unsigned int i = index * layerFullSize_; i < (index + 1) * layerFullSize_; i++) { if (matrix_[i] == nullptr) { return count; } ++count; } return count; } bool Matrix::isShapeOverclaped(const std::shared_ptr<Shape>& first, const std::shared_ptr<Shape>& second) { if (first == nullptr || second == nullptr) { return false; } rectangle_t firstFrameRect = first->getFrameRect(); rectangle_t secondFrameRect = second->getFrameRect(); return ((abs(firstFrameRect.pos.x - secondFrameRect.pos.x) < ((firstFrameRect.width / 2) + (secondFrameRect.width / 2))) && ((abs(firstFrameRect.pos.y - secondFrameRect.pos.y) < ((firstFrameRect.height / 2) + (secondFrameRect.height / 2))))); } }
ce6808ae0ea9fed29d18120c9a606c40dc823b3f
5355f2c499fd7d4dbff5cfe153aec8d21776d46b
/platform_client/message_elements/MessagePropertiesLookup.h
44981066fb7fb7c453582897fd3e9bbae20d588d
[]
no_license
ssicard/systems-project
4d2224034f82ccfab4491968d29cc3a339596c65
48b69547e1376d90b73b6a1a8c04678de7786bac
refs/heads/master
2020-03-28T04:23:04.062082
2018-11-28T20:09:26
2018-11-28T20:09:26
147,711,567
5
0
null
2018-10-17T16:58:59
2018-09-06T17:48:13
C++
UTF-8
C++
false
false
539
h
MessagePropertiesLookup.h
#include <string> #include "SqlBase.h" #ifndef MESSAGEPROPERTIESLOOKUP_H #define MESSAGEPROPERTIESLOOKUP_H class MessagePropertiesLookup : public SqlBase { public: MessagePropertiesLookup(int RequirementType = -1, std::string RequirementDesc = "") : RequirementType(RequirementType), RequirementDesc(RequirementDesc) {} ~MessagePropertiesLookup() {} void getFromDatabase(); void insertIntoDatabase(); bool areFieldsValid(); int RequirementType; std::string RequirementDesc; }; #endif /* MESSAGEPROPERTIESLOOKUP_H */
487945963c45af4870ff3e8382eecb197392e759
fe19ca02e835ab1bd98ae406fc4c84a7443d58c2
/Client/updateactor.cpp
ea1308c2c184f5bac984db20eaf8180783363ba4
[]
no_license
NikitaVirachev/course-work-on-DB
c08377ee0eeebcd677d7d87a7ed123bc657edd17
294003801927178c6e860dac9d90b3359a4434a7
refs/heads/main
2023-08-12T12:51:47.049247
2021-10-09T15:14:22
2021-10-09T15:14:22
384,673,920
0
0
null
null
null
null
UTF-8
C++
false
false
5,197
cpp
updateactor.cpp
#include "updateactor.h" #include "ui_updateactor.h" updateActor::updateActor(QWidget *parent) : QWidget(parent), ui(new Ui::updateActor) { ui->setupUi(this); ui->label_7->clear(); ui->dateEdit->setDate(QDate::currentDate()); ui->dateEdit->setEnabled(false); ui->pushButton->setEnabled(false); ui->pushButton_2->setEnabled(false); ui->progressBar->setRange(0,0); ui->progressBar->hide(); } updateActor::~updateActor() { delete ui; } void updateActor::acceptActorID(QList<QString> listActorID) { ui->lineEdit_2->clear(); ui->lineEdit_3->clear(); ui->dateEdit->setDate(QDate::currentDate()); ui->dateEdit->setEnabled(false); ui->label_7->clear(); ui->progressBar->hide(); localListActorID = listActorID; ui->comboBox->addItem(" "); foreach( QString value, listActorID ) { ui->comboBox->addItem(value); } ui->comboBox->setCurrentIndex(0); } void updateActor::acceptInformationActorUpd(QString firstName, QString lastName, QString dateOfBirth, QByteArray actorPortrait) { oldFirstName = firstName; oldLastName = lastName; oldDateOfBirth = dateOfBirth; ui->lineEdit_2->setText(firstName); ui->lineEdit_3->setText(lastName); if (dateOfBirth == "") { ui->checkBox->setChecked(true); } else { ui->dateEdit->setDate(QDate::fromString(dateOfBirth, "yyyy-MM-dd")); ui->dateEdit->setEnabled(true); } if (actorPortrait != "NULL") { outPortrait = QPixmap(); outPortrait.loadFromData(actorPortrait,"PNG"); int w = ui->label_7->width(); int h = ui->label_7->height(); ui->label_7->setPixmap(outPortrait.scaled(w,h,Qt::KeepAspectRatio)); ui->pushButton->setEnabled(true); } else { ui->checkBox_2->setChecked(true); } ui->pushButton_2->setEnabled(true); ui->progressBar->hide(); } void updateActor::getNewPortrait(QPixmap newImage) { paintWin->close(); portraitFlag = true; outPortrait = newImage; newActorPortrait = newImage; int w = ui->label_7->width(); int h = ui->label_7->height(); ui->label_7->setPixmap(outPortrait.scaled(w,h,Qt::KeepAspectRatio)); } void updateActor::on_comboBox_currentIndexChanged(const QString &arg1) { if (ui->comboBox->currentText() != " ") { ui->lineEdit_2->clear(); ui->lineEdit_3->clear(); ui->dateEdit->setDate(QDate::currentDate()); ui->dateEdit->setEnabled(false); ui->label_7->clear(); ui->progressBar->show(); emit sendActorIDSignalUpd(arg1); } } void updateActor::on_pushButton_clicked() { QString fileName = QFileDialog::getOpenFileName(this, tr("Выбрать файл"), "C:/Users/Nikita/Desktop/Учёба/БД/Решение/Файлы для бд", tr("Images (*.png)")); QPixmap newPixmap; newPixmap.load(fileName); newActorPortrait = newPixmap; outPortrait = newPixmap; int w = ui->label_7->width(); int h = ui->label_7->height(); ui->label_7->setPixmap(newPixmap.scaled(w,h,Qt::KeepAspectRatio)); portraitFlag = true; } void updateActor::on_pushButton_2_clicked() { QString date; if (ui->checkBox->checkState()) { date = ""; } else { date = ui->dateEdit->text(); } if (ui->checkBox_2->checkState()) { newActorPortrait = QPixmap(); } ui->progressBar->show(); ui->pushButton->setEnabled(false); ui->pushButton_2->setEnabled(false); if (portraitFlag) { emit sendUpdateActorWithPortrait(ui->comboBox->currentText(), ui->lineEdit_2->text(), ui->lineEdit_3->text(), date, newActorPortrait, oldFirstName, oldLastName, oldDateOfBirth); portraitFlag = false; } else { emit sendUpdateActorWithout(ui->comboBox->currentText(), ui->lineEdit_2->text(), ui->lineEdit_3->text(), date, oldFirstName, oldLastName, oldDateOfBirth); } } void updateActor::on_checkBox_stateChanged(int arg1) { if (arg1 == 2) { ui->dateEdit->setDate(QDate::fromString("1900-01-01", "yyyy-MM-dd")); ui->dateEdit->setEnabled(false); ui->pushButton_2->setEnabled(true); } else { ui->dateEdit->setDate(QDate::currentDate()); ui->dateEdit->setEnabled(true); } } void updateActor::on_checkBox_2_stateChanged(int arg1) { if (arg1 == 2) { ui->pushButton->setEnabled(false); ui->label_7->clear(); portraitFlag = true; } else { int w = ui->label_7->width(); int h = ui->label_7->height(); ui->label_7->setPixmap(outPortrait.scaled(w,h,Qt::KeepAspectRatio)); ui->pushButton->setEnabled(true); portraitFlag = false; } } void updateActor::on_pushButton_3_clicked() { paintWin = new Paint(); connect(this,SIGNAL(sendImageForChange(QPixmap)), paintWin, SLOT(acceptImage(QPixmap))); emit sendImageForChange(outPortrait); connect(paintWin,SIGNAL(sendNewImage(QPixmap)), this, SLOT(getNewPortrait(QPixmap))); paintWin->setWindowTitle("Изменить портрет"); paintWin->show(); }
fce8835a084899c9c6b7fa82426bda0c4ec78a51
7f5332c446f8815d4a5f06c81305a952076459fe
/Lab_02/arrays.cpp
7c5c3856548bc00f5a1b4384796ded21e3acbc82
[]
no_license
handydani/COP3503-Spring2017
c7182f70808cf9d173be359873d46cecfa2b1c06
8ec383e91eccc724ebb569ea5796bb34bd5c1ff3
refs/heads/master
2021-01-19T06:48:01.022092
2017-04-18T23:13:19
2017-04-18T23:13:19
87,501,893
0
0
null
2017-04-07T03:47:36
2017-04-07T03:47:36
null
UTF-8
C++
false
false
1,255
cpp
arrays.cpp
#include <iostream> #include <string> const int MAX_SIZE = 15; int main() { // Static 1D Arrays std::cout << "Please enter number of inputs: "; int input = 0; std::cin >> input; // do checks on input //int arr[input]; //ILLEGAL variable <input> varies during runtime int arr[MAX_SIZE] = {}; //LEGAL. MAX_SIZE is constant /* Static 2D Arrays */ int ms[MAX_SIZE][MAX_SIZE] = {}; // LEGAL MAX_SIZE is constant /* Dynamic 1D Arrays */ int *dArr = new int[input]; // Must initalize to zero (not guaranteed). for (int i=0; i!=input; ++i) { dArr[i] = 0; } // do stuff with array dArr[0] = 2; // delete array now that we are done with it delete [] dArr; /* Dynamic 2D Arrays */ int **d2DArr = new int*[input]; for(int i=0; i!=input; ++i) { d2DArr[i] = new int[input]; // Zero Out Numbers for (int j=0; j!=input; ++j) { d2DArr[i][j] = 0; } } // *whew* we can use it now! d2DArr[0][1] = 4; //... oh crap! We have to delete it 👎 for(int i=0; i!=input; ++i) { delete [] d2DArr[i]; } delete [] d2DArr; // Vectors std::vector<int> myAwesomeVect; myAwesomeVect.push_back(2); std::cout << "The first ele is: " << myAwesomeVect[0] << std::endl; // 2D Vectors std::vector<std::vector<int>> probablyNotWorthIt; }