blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 201 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 7 100 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 260
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 11.4k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 80
values | src_encoding stringclasses 28
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 8 9.86M | extension stringclasses 52
values | content stringlengths 8 9.86M | authors listlengths 1 1 | author stringlengths 0 119 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74749ef70c69f1ab3ac613cc1f5aa9135e757d3f | 2be4361d597019abcf78bd10ab0124d69f2bbbe4 | /borderplugins/solid/SolidBorderDrawer_p.h | 6df1ff42e5423e24a2c2700dcc1f5b2ade6690aa | [] | no_license | coder89/PhotoLayoutsEditor | d1c3a6b7b2fc47680b4c8707fe7af5b32ddbbba2 | 065ed0971004cf0ea18d89e0b91a93c6ce95f80c | refs/heads/master | 2016-08-04T10:55:48.098371 | 2011-09-01T20:47:19 | 2011-09-01T20:47:19 | 2,303,608 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,902 | h | #ifndef SOLIDBORDERDRAWER_P_H
#define SOLIDBORDERDRAWER_P_H
#include "BorderDrawerInterface.h"
#include <QColor>
using namespace KIPIPhotoLayoutsEditor;
class SolidBorderDrawerFactory;
class SolidBorderDrawer : public BorderDrawerInterface
{
Q_OBJECT
Q_INTERFACES(KIPIPhotoLayoutsEditor::BorderDrawerInterface)
int m_width;
QColor m_color;
int m_spacing;
Qt::PenJoinStyle m_corners_style;
QPainterPath m_path;
static QMap<const char *,QString> m_properties;
static QMap<Qt::PenJoinStyle, QString> m_corners_style_names;
static int m_default_width;
static QColor m_default_color;
static int m_default_spacing;
static Qt::PenJoinStyle m_default_corners_style;
public:
explicit SolidBorderDrawer(SolidBorderDrawerFactory * factory, QObject * parent = 0);
virtual QPainterPath path(const QPainterPath & path);
virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option);
virtual QString propertyName(const QMetaProperty & property) const;
virtual QVariant propertyValue(const QString & propertyName) const;
virtual void setPropertyValue(const QString & propertyName, const QVariant & value);
virtual QDomElement toSvg(QDomDocument & document) const;
virtual QString toString() const;
virtual operator QString() const;
Q_PROPERTY(int width READ width WRITE setWidth)
int width() const
{
return m_width;
}
void setWidth(int width)
{
if (width > 0)
m_width = width;
}
Q_PROPERTY(QString corners_style READ cornersStyle WRITE setCornersStyle)
QString cornersStyle() const
{
return m_corners_style_names.value(m_corners_style);
}
void setCornersStyle(const QString & cornersStyle)
{
m_corners_style = m_corners_style_names.key(cornersStyle);
}
Q_PROPERTY(QColor color READ color WRITE setColor)
QColor color() const
{
return m_color;
}
void setColor(const QColor & color)
{
if (color.isValid())
m_color = color;
}
Q_PROPERTY(int spacing READ spacing WRITE setSpacing)
int spacing() const
{
return m_spacing;
}
void setSpacing(int spacing)
{
m_spacing = spacing;
}
virtual QVariant stringNames(const QMetaProperty & property);
virtual QVariant minimumValue(const QMetaProperty & property);
virtual QVariant maximumValue(const QMetaProperty & property);
virtual QVariant stepValue(const QMetaProperty & property);
private:
friend class SolidBorderDrawerFactory;
};
#endif // SOLIDBORDERDRAWER_P_H
| [
"lukasz.spas@gmail.com"
] | lukasz.spas@gmail.com |
212c500459a4cae04590ceed2ac7cea38dd92bcd | 9ba287a55eb2c20e1f5e11eed444d93791b75b5b | /src/script/bitcoinconsensus.cpp | 93f3cad850bdfaa190fafc567faa0fee9eba898f | [
"MIT"
] | permissive | zhoudaqing/dogx-master | ddb5ef0d47e9789e2dbe0b70d77aefa32b03a7f9 | 000e0cb8d56612d408d382345fa2e1bb2a0d8c4a | refs/heads/master | 2020-04-26T07:59:15.500219 | 2018-11-26T09:06:56 | 2018-11-26T09:06:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,418 | cpp | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <script/dogxcoinconsensus.h>
#include <primitives/transaction.h>
#include <pubkey.h>
#include <script/interpreter.h>
#include <version.h>
namespace {
/** A class that deserializes a single CTransaction one time. */
class TxInputStream
{
public:
TxInputStream(int nTypeIn, int nVersionIn, const unsigned char *txTo, size_t txToLen) :
m_type(nTypeIn),
m_version(nVersionIn),
m_data(txTo),
m_remaining(txToLen)
{}
void read(char* pch, size_t nSize)
{
if (nSize > m_remaining)
throw std::ios_base::failure(std::string(__func__) + ": end of data");
if (pch == nullptr)
throw std::ios_base::failure(std::string(__func__) + ": bad destination buffer");
if (m_data == nullptr)
throw std::ios_base::failure(std::string(__func__) + ": bad source buffer");
memcpy(pch, m_data, nSize);
m_remaining -= nSize;
m_data += nSize;
}
template<typename T>
TxInputStream& operator>>(T&& obj)
{
::Unserialize(*this, obj);
return *this;
}
int GetVersion() const { return m_version; }
int GetType() const { return m_type; }
private:
const int m_type;
const int m_version;
const unsigned char* m_data;
size_t m_remaining;
};
inline int set_error(dogxcoinconsensus_error* ret, dogxcoinconsensus_error serror)
{
if (ret)
*ret = serror;
return 0;
}
struct ECCryptoClosure
{
ECCVerifyHandle handle;
};
ECCryptoClosure instance_of_eccryptoclosure;
} // namespace
/** Check that all specified flags are part of the libconsensus interface. */
static bool verify_flags(unsigned int flags)
{
return (flags & ~(dogxcoinconsensus_SCRIPT_FLAGS_VERIFY_ALL)) == 0;
}
static int verify_script(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, CAmount amount,
const unsigned char *txTo , unsigned int txToLen,
unsigned int nIn, unsigned int flags, dogxcoinconsensus_error* err)
{
if (!verify_flags(flags)) {
return set_error(err, dogxcoinconsensus_ERR_INVALID_FLAGS);
}
try {
TxInputStream stream(SER_NETWORK, PROTOCOL_VERSION, txTo, txToLen);
CTransaction tx(deserialize, stream);
if (nIn >= tx.vin.size())
return set_error(err, dogxcoinconsensus_ERR_TX_INDEX);
if (GetSerializeSize(tx, PROTOCOL_VERSION) != txToLen)
return set_error(err, dogxcoinconsensus_ERR_TX_SIZE_MISMATCH);
// Regardless of the verification result, the tx did not error.
set_error(err, dogxcoinconsensus_ERR_OK);
PrecomputedTransactionData txdata(tx);
return VerifyScript(tx.vin[nIn].scriptSig, CScript(scriptPubKey, scriptPubKey + scriptPubKeyLen), &tx.vin[nIn].scriptWitness, flags, TransactionSignatureChecker(&tx, nIn, amount, txdata), nullptr);
} catch (const std::exception&) {
return set_error(err, dogxcoinconsensus_ERR_TX_DESERIALIZE); // Error deserializing
}
}
int dogxcoinconsensus_verify_script_with_amount(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen, int64_t amount,
const unsigned char *txTo , unsigned int txToLen,
unsigned int nIn, unsigned int flags, dogxcoinconsensus_error* err)
{
CAmount am(amount);
return ::verify_script(scriptPubKey, scriptPubKeyLen, am, txTo, txToLen, nIn, flags, err);
}
int dogxcoinconsensus_verify_script(const unsigned char *scriptPubKey, unsigned int scriptPubKeyLen,
const unsigned char *txTo , unsigned int txToLen,
unsigned int nIn, unsigned int flags, dogxcoinconsensus_error* err)
{
if (flags & dogxcoinconsensus_SCRIPT_FLAGS_VERIFY_WITNESS) {
return set_error(err, dogxcoinconsensus_ERR_AMOUNT_REQUIRED);
}
CAmount am(0);
return ::verify_script(scriptPubKey, scriptPubKeyLen, am, txTo, txToLen, nIn, flags, err);
}
unsigned int dogxcoinconsensus_version()
{
// Just use the API version for now
return BITCOINCONSENSUS_API_VER;
}
| [
"39158026+MichelAncel@users.noreply.github.com"
] | 39158026+MichelAncel@users.noreply.github.com |
9781d28270cb5b28a231b6ce4f2885a315dea9d4 | 7e686824108f22f095a89860b235cc1267e6d32f | /src/test/compress_tests.cpp | 213356bcf213dea0d9d268c60d69e694c6f3bb95 | [
"MIT"
] | permissive | alleck/Splendid | 2aace2cf675233c3c435c4eab4aedf8b32f23347 | 8ea29bda381628f954d1699a38a70c3ae3506ed9 | refs/heads/main | 2023-03-20T11:20:13.567687 | 2021-02-22T21:56:34 | 2021-02-22T21:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,127 | cpp | // Copyright (c) 2012-2015 The Bitcoin Core developers
// Copyright (c) 2017-2019 The Splendid Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "compressor.h"
#include "util.h"
#include "test/test_splendid.h"
#include <stdint.h>
#include <boost/test/unit_test.hpp>
// amounts 0.00000001 .. 0.00100000
#define NUM_MULTIPLES_UNIT 100000
// amounts 0.01 .. 100.00
#define NUM_MULTIPLES_CENT 10000
// amounts 1 .. 10000
#define NUM_MULTIPLES_1SPL 10000
// amounts 50 .. 21000000
#define NUM_MULTIPLES_50SPL 420000
BOOST_FIXTURE_TEST_SUITE(compress_tests, BasicTestingSetup)
bool static TestEncode(uint64_t in)
{
return in == CTxOutCompressor::DecompressAmount(CTxOutCompressor::CompressAmount(in));
}
bool static TestDecode(uint64_t in)
{
return in == CTxOutCompressor::CompressAmount(CTxOutCompressor::DecompressAmount(in));
}
bool static TestPair(uint64_t dec, uint64_t enc)
{
return CTxOutCompressor::CompressAmount(dec) == enc &&
CTxOutCompressor::DecompressAmount(enc) == dec;
}
BOOST_AUTO_TEST_CASE(compress_amounts_test)
{
BOOST_TEST_MESSAGE("Running Compress Amounts Test");
BOOST_CHECK(TestPair(0, 0x0));
BOOST_CHECK(TestPair(1, 0x1));
BOOST_CHECK(TestPair(CENT, 0x7));
BOOST_CHECK(TestPair(COIN, 0x9));
BOOST_CHECK(TestPair(5000 * COIN, 0x1388));
BOOST_CHECK(TestPair(21000000000 * COIN, 0x4E3B29200));
for (uint64_t i = 1; i <= NUM_MULTIPLES_UNIT; i++)
BOOST_CHECK(TestEncode(i));
for (uint64_t i = 1; i <= NUM_MULTIPLES_CENT; i++)
BOOST_CHECK(TestEncode(i * CENT));
for (uint64_t i = 1; i <= NUM_MULTIPLES_1SPL; i++)
BOOST_CHECK(TestEncode(i * COIN));
for (uint64_t i = 1; i <= NUM_MULTIPLES_50SPL; i++)
BOOST_CHECK(TestEncode(i * 5000 * COIN));
for (uint64_t i = 0; i < 100000; i++)
BOOST_CHECK(TestDecode(i));
}
BOOST_AUTO_TEST_SUITE_END()
| [
"79376856+SplendidProject@users.noreply.github.com"
] | 79376856+SplendidProject@users.noreply.github.com |
fbfcd0fe671ebf56c8127c4253aa9605e8f5a08c | 1f7c81c2e562daa6571da1ada1594b9f13c024ed | /Comparable.hpp | 7a057921c00454603f087a9ec30c1fedcba53743 | [] | no_license | huyle73/MED_AID-INTERNSHIP | cd27e271732ff40daffb158e26f08684add91b5a | 4f3497018df9af7b62e9532a2983dbdf1a7aed37 | refs/heads/master | 2022-11-21T08:28:08.069242 | 2020-07-23T04:09:11 | 2020-07-23T04:09:11 | 281,846,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | hpp | //
// Comparable.hpp
// Med_Aid
//
// Created by LE HUY on 7/22/20.
// Copyright © 2020 LE HUY. All rights reserved.
//
#ifndef Comparable_hpp
#define Comparable_hpp
#include <stdio.h>
class Comparable {
template <class T>
T compare(T a,T b);
};
#endif /* Comparable_hpp */
| [
"noreply@github.com"
] | noreply@github.com |
a13b174c9bef77c97ece2f0cb4b8155da9e2f23d | 003675a2e2be3f835efd723626f0ee6d862e914f | /Codeforces/A/522A.cpp | a41670701d4fbb184ce3b7f6b0ab4ac635bcfd11 | [] | no_license | AkibShahrear/Competitive-Programming | 6f4b26af1ae011d3cf45885dc86c4f64fca4334d | 7fba94f669881dd7e7cb63b264c288c380c5d544 | refs/heads/main | 2023-08-12T16:57:41.020418 | 2021-10-18T19:49:44 | 2021-10-18T19:49:44 | 323,955,265 | 0 | 0 | null | 2020-12-23T17:17:59 | 2020-12-23T16:49:51 | null | UTF-8 | C++ | false | false | 540 | cpp | /*
p-->
*/
#include<bits/stdc++.h>
using namespace std;
string a[300],b[300],c[300];
int main()
{
int n;
cin >> n;
map<string, int> x;
x["polycarp"] = 1;
int sum = 1;
for(int i = 0; i < n; i++)
{
cin >> a[i] >> b[i] >> c[i];
std::transform(c[i].begin(), c[i].end(),c[i].begin(), ::tolower);
std::transform(a[i].begin(), a[i].end(),a[i].begin(), ::tolower);
x[a[i]] = x[c[i]] + 1;
sum = max(sum , x[a[i]]);
}
cout<<sum;
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
30378bc108b3bda5773e95de39fb4c5fed4a0a87 | 5621fa1ad956aba95995c474f35c09c78a4f008b | /abc038_c.cpp | 3e4884f8b3ad1ff6d92ceb196bc37399e62c61b6 | [] | no_license | tasogare66/atcoder | ea3e6cdcdd28f2c6be816d85e0b521d0cb94d6a3 | 16bc66ab3f72788f1a940be921edc681763f86f1 | refs/heads/master | 2020-05-09T14:33:30.659718 | 2020-04-14T14:09:37 | 2020-04-14T14:09:37 | 181,196,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 740 | cpp | //AtCoder C - 単調増加
#include <bits/stdc++.h>
using namespace std;
using lli=int64_t;
int main() {
int N;
#if LOCAL&01
std::ifstream in("input.txt");
std::cin.rdbuf(in.rdbuf());
#endif
cin>>N;
vector<int> atbl(N);
for(auto&& a:atbl){
cin >> a;
}
lli ans=0;
lli step=0;
for(int i=1;i<atbl.size();++i){ //増加している数を調べる
if (atbl[i-1] < atbl[i]){
++step;
} else {
if (step>0) {
//(step+1)C2
ans += (step+1)*step/2;
}
step=0;
}
}
//終端...
if(step > 0) {
//(step+1)C2
ans += (step + 1) * step / 2;
}
ans += (atbl.size());
cout<<ans<<endl;
return 0;
} | [
"hijiki_umai@hotmail.co.jp"
] | hijiki_umai@hotmail.co.jp |
1444aa6435ef52de3629f01d233ed9a57237916c | dd6b6da760c32ac6830c52aa2f4d5cce17e4d408 | /magma-2.5.0/testing/testing_ssygst_gpu.cpp | ff2d569e33ecaac4f2993816a95bb2ca802eacaf | [] | no_license | uumami/hit_and_run | 81584b4f68cf25a2a1140baa3ee88f9e1844b672 | dfda812a52bbd65e02753b9abcb9f54aeb4e8184 | refs/heads/master | 2023-03-13T16:48:37.975390 | 2023-02-28T05:04:58 | 2023-02-28T05:04:58 | 139,909,134 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,519 | cpp | /*
-- MAGMA (version 2.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2019
@author Mark Gates
@generated from testing/testing_zhegst_gpu.cpp, normal z -> s, Wed Jan 2 14:18:53 2019
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, project
#include "flops.h"
#include "magma_v2.h"
#include "magma_lapack.h"
#include "testings.h"
#define REAL
/* ////////////////////////////////////////////////////////////////////////////
-- Testing ssygst
*/
int main( int argc, char** argv)
{
TESTING_CHECK( magma_init() );
magma_print_environment();
// Constants
const float c_neg_one = MAGMA_S_NEG_ONE;
const magma_int_t ione = 1;
// Local variables
real_Double_t gpu_time, cpu_time;
float *h_A, *h_B, *h_R;
magmaFloat_ptr d_A, d_B;
float Anorm, error, work[1];
magma_int_t N, n2, lda, ldda, info;
int status = 0;
magma_opts opts;
opts.matrix = "rand_dominant"; // default
opts.parse_opts( argc, argv );
opts.lapack |= opts.check; // check (-c) implies lapack (-l)
float tol = opts.tolerance * lapackf77_slamch("E");
printf("%% uplo = %s\n", lapack_uplo_const(opts.uplo) );
printf("%% itype N CPU time (sec) GPU time (sec) |R| \n");
printf("%%=======================================================\n");
for( int itest = 0; itest < opts.ntest; ++itest ) {
for( int iter = 0; iter < opts.niter; ++iter ) {
N = opts.nsize[itest];
lda = N;
ldda = magma_roundup( lda, opts.align );
n2 = N*lda;
TESTING_CHECK( magma_smalloc_cpu( &h_A, lda*N ));
TESTING_CHECK( magma_smalloc_cpu( &h_B, lda*N ));
TESTING_CHECK( magma_smalloc_pinned( &h_R, lda*N ));
TESTING_CHECK( magma_smalloc( &d_A, ldda*N ));
TESTING_CHECK( magma_smalloc( &d_B, ldda*N ));
/* ====================================================================
Initialize the matrix
=================================================================== */
// todo: have different options for A and B
magma_generate_matrix( opts, N, N, h_A, lda );
magma_generate_matrix( opts, N, N, h_B, lda );
magma_spotrf( opts.uplo, N, h_B, lda, &info );
if (info != 0) {
printf("magma_spotrf returned error %lld: %s.\n",
(long long) info, magma_strerror( info ));
}
magma_ssetmatrix( N, N, h_A, lda, d_A, ldda, opts.queue );
magma_ssetmatrix( N, N, h_B, lda, d_B, ldda, opts.queue );
/* ====================================================================
Performs operation using MAGMA
=================================================================== */
gpu_time = magma_wtime();
magma_ssygst_gpu( opts.itype, opts.uplo, N, d_A, ldda, d_B, ldda, &info );
gpu_time = magma_wtime() - gpu_time;
if (info != 0) {
printf("magma_ssygst_gpu returned error %lld: %s.\n",
(long long) info, magma_strerror( info ));
}
/* =====================================================================
Performs operation using LAPACK
=================================================================== */
if ( opts.lapack ) {
cpu_time = magma_wtime();
lapackf77_ssygst( &opts.itype, lapack_uplo_const(opts.uplo),
&N, h_A, &lda, h_B, &lda, &info );
cpu_time = magma_wtime() - cpu_time;
if (info != 0) {
printf("lapackf77_ssygst returned error %lld: %s.\n",
(long long) info, magma_strerror( info ));
}
magma_sgetmatrix( N, N, d_A, ldda, h_R, lda, opts.queue );
blasf77_saxpy( &n2, &c_neg_one, h_A, &ione, h_R, &ione );
Anorm = safe_lapackf77_slansy("f", lapack_uplo_const(opts.uplo), &N, h_A, &lda, work );
error = safe_lapackf77_slansy("f", lapack_uplo_const(opts.uplo), &N, h_R, &lda, work )
/ Anorm;
bool okay = (error < tol);
status += ! okay;
printf("%3lld %5lld %7.2f %7.2f %8.2e %s\n",
(long long) opts.itype, (long long) N, cpu_time, gpu_time,
error, (okay ? "ok" : "failed"));
}
else {
printf("%3lld %5lld --- %7.2f\n",
(long long) opts.itype, (long long) N, gpu_time );
}
magma_free_cpu( h_A );
magma_free_cpu( h_B );
magma_free_pinned( h_R );
magma_free( d_A );
magma_free( d_B );
fflush( stdout );
}
if ( opts.niter > 1 ) {
printf( "\n" );
}
}
opts.cleanup();
TESTING_CHECK( magma_finalize() );
return status;
}
| [
"vazcorm@gmail.com"
] | vazcorm@gmail.com |
5b0ed95318aacedec24f3454415d80899fcb71aa | ca575b484edbfd16612cc9c70209797cddd7f900 | /Heart_8x8x4.ino | 9238cae1e5e7ee4b41a2b177a33446c0f977480f | [] | no_license | doktorov/RobotCar | f570b9ef73836eddd1a34f74a9ac453eb75147bc | 415dbbee3fd5677042f309281508c3292c45df5e | refs/heads/master | 2021-01-11T17:04:51.222362 | 2017-11-03T13:45:41 | 2017-11-03T13:45:41 | 79,713,863 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,419 | ino | #include <SPI.h>
#include <Adafruit_GFX.h>
#include <Max72xxPanel.h>
// CLK - 13, CS - 10, DN - 11
int pinCS = 10;
int numberOfHorizontalDisplays = 1;
int numberOfVerticalDisplays = 4;
Max72xxPanel matrix = Max72xxPanel(pinCS, numberOfHorizontalDisplays, numberOfVerticalDisplays);
void setup() {
Serial.begin(9600);
matrix.setIntensity(0);
matrix.setRotation(3);
}
typedef bool charMapType[8][8];
const charMapType charBlank = {
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0}
};
const charMapType heart0 = {
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0}
};
const charMapType heart1 = {
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0}
};
const charMapType heart2 = {
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 1, 0, 0, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 0, 0}
};
const charMapType heart3 = {
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 1, 0, 0, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 0, 0, 0}
};
const charMapType heart4 = {
{0, 1, 1, 0, 0, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0}
};
const charMapType smile = {
{0, 0, 1, 1, 1, 1, 0, 0},
{0, 1, 0, 0, 0, 0, 1, 0},
{1, 0, 1, 0, 0, 1, 0, 1},
{1, 0, 0, 0, 0, 0, 0, 1},
{1, 0, 1, 0, 0, 1, 0, 1},
{1, 0, 0, 1, 1, 0, 0, 1},
{0, 1, 0, 0, 0, 0, 1, 0},
{0, 0, 1, 1, 1, 1, 0, 0}
};
const charMapType smileBig = {
{0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 1, 0, 0, 1, 1, 0},
{0, 1, 1, 0, 0, 1, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 0, 0, 0, 0, 1, 0},
{0, 0, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0}
};
const charMapType kytti = {
{1, 1, 0, 0, 0, 0, 1, 1},
{1, 1, 0, 0, 0, 0, 1, 1},
{0, 1, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 1, 1, 0, 0, 0},
{1, 0, 0, 1, 1, 0, 0, 1},
{1, 1, 1, 0, 0, 1, 1, 1},
{0, 0, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0}
};
const charMapType dog = {
{1, 1, 0, 0, 0, 0, 1, 1},
{1, 1, 0, 0, 0, 0, 1, 1},
{1, 1, 0, 0, 0, 0, 1, 1},
{0, 1, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 1, 1, 0, 0, 0},
{0, 1, 1, 0, 0, 1, 1, 0},
{0, 0, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0}
};
const charMapType butterfly = {
{0, 1, 0, 0, 0, 0, 1, 0},
{1, 0, 1, 0, 0, 1, 0, 1},
{1, 1, 0, 1, 1, 0, 1, 1},
{1, 0, 1, 1, 1, 1, 0, 1},
{1, 0, 0, 1, 1, 0, 0, 1},
{1, 0, 0, 1, 1, 0, 0, 1},
{1, 0, 0, 1, 1, 0, 0, 1},
{0, 1, 1, 0, 0, 1, 1, 0}
};
const charMapType *charMap[26] = {&heart0, &heart1, &heart2, &heart3, &heart4, &charBlank,
&smile, &smile, &smile, &charBlank,
&smileBig, &smileBig, &smileBig, &charBlank,
&kytti, &kytti, &kytti, &charBlank,
&dog, &dog, &dog, &charBlank,
&butterfly, &butterfly, &butterfly, &charBlank,
};
void loop() {
for (int z = 0; z < 25; z++) {
const charMapType *cMap = charMap[z];
for (int x = 0; x < 8; x++) {
for (int y = 0; y < 8; y++) {
bool v = (*cMap)[y][x];
Serial.println(String(x) + " - " + String(y));
if (v) {
matrix.drawPixel(x, y, HIGH);
matrix.drawPixel(x + 8, y, HIGH);
matrix.drawPixel(x + 16, y, HIGH);
matrix.drawPixel(x + 24, y, HIGH);
} else {
matrix.drawPixel(x, y, LOW);
matrix.drawPixel(x + 8, y, LOW);
matrix.drawPixel(x + 16, y, LOW);
matrix.drawPixel(x + 24, y, LOW);
}
}
}
matrix.write();
delay(500);
}
}
| [
"noreply@github.com"
] | noreply@github.com |
710c45ff7d25f168cb02ad282d7b73af5e89f4a2 | b7f1b4df5d350e0edf55521172091c81f02f639e | /net/quic/test_tools/simulator/quic_endpoint.h | ab903e5d773ecee59305356983742393e77123ce | [
"BSD-3-Clause"
] | permissive | blusno1/chromium-1 | f13b84547474da4d2702341228167328d8cd3083 | 9dd22fe142b48f14765a36f69344ed4dbc289eb3 | refs/heads/master | 2023-05-17T23:50:16.605396 | 2018-01-12T19:39:49 | 2018-01-12T19:39:49 | 117,339,342 | 4 | 2 | NOASSERTION | 2020-07-17T07:35:37 | 2018-01-13T11:48:57 | null | UTF-8 | C++ | false | false | 7,157 | h | // Copyright (c) 2012 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 NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_
#define NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_
#include "net/quic/core/crypto/null_decrypter.h"
#include "net/quic/core/crypto/null_encrypter.h"
#include "net/quic/core/quic_connection.h"
#include "net/quic/core/quic_packets.h"
#include "net/quic/core/quic_stream_frame_data_producer.h"
#include "net/quic/platform/api/quic_containers.h"
#include "net/quic/test_tools/simulator/link.h"
#include "net/quic/test_tools/simulator/queue.h"
#include "net/tools/quic/quic_default_packet_writer.h"
namespace net {
namespace simulator {
// Size of the TX queue used by the kernel/NIC. 1000 is the Linux
// kernel default.
const QuicByteCount kTxQueueSize = 1000;
// Generate a random local network host-port tuple based on the name of the
// endpoint.
QuicSocketAddress GetAddressFromName(std::string name);
// A QUIC connection endpoint. Wraps around QuicConnection. In order to
// initiate a transfer, the caller has to call AddBytesToTransfer(). The data
// transferred is always the same and is always transferred on a single stream.
// The endpoint receives all packets addressed to it, and verifies that the data
// received is what it's supposed to be.
class QuicEndpoint : public Endpoint,
public UnconstrainedPortInterface,
public Queue::ListenerInterface,
public QuicConnectionVisitorInterface {
public:
QuicEndpoint(Simulator* simulator,
std::string name,
std::string peer_name,
Perspective perspective,
QuicConnectionId connection_id);
~QuicEndpoint() override;
inline QuicConnection* connection() { return &connection_; }
inline QuicByteCount bytes_to_transfer() const { return bytes_to_transfer_; }
inline QuicByteCount bytes_transferred() const { return bytes_transferred_; }
QuicByteCount bytes_received() const;
inline size_t write_blocked_count() { return write_blocked_count_; }
inline bool wrong_data_received() const { return wrong_data_received_; }
// Send |bytes| bytes. Initiates the transfer if one is not already in
// progress.
void AddBytesToTransfer(QuicByteCount bytes);
// UnconstrainedPortInterface method. Called whenever the endpoint receives a
// packet.
void AcceptPacket(std::unique_ptr<Packet> packet) override;
// Begin Endpoint implementation.
UnconstrainedPortInterface* GetRxPort() override;
void SetTxPort(ConstrainedPortInterface* port) override;
// End Endpoint implementation.
// Actor method.
void Act() override {}
// Queue::ListenerInterface method.
void OnPacketDequeued() override;
// Begin QuicConnectionVisitorInterface implementation.
void OnStreamFrame(const QuicStreamFrame& frame) override;
void OnCanWrite() override;
bool WillingAndAbleToWrite() const override;
bool HasPendingHandshake() const override;
bool HasOpenDynamicStreams() const override;
void OnWindowUpdateFrame(const QuicWindowUpdateFrame& frame) override {}
void OnBlockedFrame(const QuicBlockedFrame& frame) override {}
void OnRstStream(const QuicRstStreamFrame& frame) override {}
void OnGoAway(const QuicGoAwayFrame& frame) override {}
void OnConnectionClosed(QuicErrorCode error,
const std::string& error_details,
ConnectionCloseSource source) override {}
void OnWriteBlocked() override {}
void OnSuccessfulVersionNegotiation(
const QuicTransportVersion& version) override {}
void OnConnectivityProbeReceived(
const QuicSocketAddress& self_address,
const QuicSocketAddress& peer_address) override {}
void OnCongestionWindowChange(QuicTime now) override {}
void OnConnectionMigration(PeerAddressChangeType type) override {}
void OnPathDegrading() override {}
void PostProcessAfterData() override {}
void OnAckNeedsRetransmittableFrame() override {}
bool AllowSelfAddressChange() const override;
// End QuicConnectionVisitorInterface implementation.
private:
// A Writer object that writes into the |nic_tx_queue_|.
class Writer : public QuicPacketWriter {
public:
explicit Writer(QuicEndpoint* endpoint);
~Writer() override;
WriteResult WritePacket(const char* buffer,
size_t buf_len,
const QuicIpAddress& self_address,
const QuicSocketAddress& peer_address,
PerPacketOptions* options) override;
bool IsWriteBlockedDataBuffered() const override;
bool IsWriteBlocked() const override;
void SetWritable() override;
QuicByteCount GetMaxPacketSize(
const QuicSocketAddress& peer_address) const override;
private:
QuicEndpoint* endpoint_;
bool is_blocked_;
};
// The producer outputs the repetition of the same byte. That sequence is
// verified by the receiver.
class DataProducer : public QuicStreamFrameDataProducer {
public:
bool WriteStreamData(QuicStreamId id,
QuicStreamOffset offset,
QuicByteCount data_length,
QuicDataWriter* writer) override;
};
// Write stream data until |bytes_to_transfer_| is zero or the connection is
// write-blocked.
void WriteStreamData();
std::string peer_name_;
Writer writer_;
DataProducer producer_;
// The queue for the outgoing packets. In reality, this might be either on
// the network card, or in the kernel, but for concreteness we assume it's on
// the network card.
Queue nic_tx_queue_;
QuicConnection connection_;
QuicByteCount bytes_to_transfer_;
QuicByteCount bytes_transferred_;
// Counts the number of times the writer became write-blocked.
size_t write_blocked_count_;
// Set to true if the endpoint receives stream data different from what it
// expects.
bool wrong_data_received_;
// Record of received offsets in the data stream.
QuicIntervalSet<QuicStreamOffset> offsets_received_;
};
// Multiplexes multiple connections at the same host on the network.
class QuicEndpointMultiplexer : public Endpoint,
public UnconstrainedPortInterface {
public:
QuicEndpointMultiplexer(std::string name,
std::initializer_list<QuicEndpoint*> endpoints);
~QuicEndpointMultiplexer() override;
// Receives a packet and passes it to the specified endpoint if that endpoint
// is one of the endpoints being multiplexed, otherwise ignores the packet.
void AcceptPacket(std::unique_ptr<Packet> packet) override;
UnconstrainedPortInterface* GetRxPort() override;
// Sets the egress port for all the endpoints being multiplexed.
void SetTxPort(ConstrainedPortInterface* port) override;
void Act() override {}
private:
QuicUnorderedMap<std::string, QuicEndpoint*> mapping_;
};
} // namespace simulator
} // namespace net
#endif // NET_QUIC_TEST_TOOLS_SIMULATOR_QUIC_ENDPOINT_H_
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
69e84eeb2cf4ac620b220bd34ef516234d59f98f | 6406ac89d64f03cf1bae334174629da529277f52 | /src/borc-core/borc/FileTypeRegistry.hpp | 8a850acea8bcd6085393a0f3a9a87fa55a81a2ec | [] | no_license | fapablazacl-old/borc-deprecated | 33a4544b4d1e3a4690a474d2b2cc5303804c81bf | 237fb605a3caf82ecabf53aa7aa319d284db4375 | refs/heads/master | 2021-09-14T12:16:55.080824 | 2018-05-13T15:57:46 | 2018-05-13T15:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 913 | hpp |
#ifndef __borc_filetyperegistry_hpp__
#define __borc_filetyperegistry_hpp__
#include <string>
#include <vector>
#include <memory>
namespace borc {
class Source;
class FileType;
/**
* @brief A storage for identification and registration of file types
*
* This registry class serves as a local database for known file types, and it's used for
* know how to react during certain compilation operations (what command to invoke/execute, etc).
*/
class FileTypeRegistry {
public:
virtual ~FileTypeRegistry() {}
virtual const FileType* getFileType(const Source *source) const = 0;
virtual const FileType* addFileType(const std::string &name, const std::vector<std::string> &extensions) = 0;
virtual void removeFileType(const FileType *type) = 0;
public:
static std::unique_ptr<FileTypeRegistry> create();
};
}
#endif
| [
"fapablaza@devware.cl"
] | fapablaza@devware.cl |
2e1801ee2fb1646576caaf7ae121708b9587d22f | 998c5dc4ea5302a61112ef5ab2963e22ffebc716 | /Source/SimpleShooter/ShooterCharacter.cpp | b20c83b7cb9875943eeaf164159a894a0296b9f0 | [] | no_license | GarretBrowning/SimpleShooter | cde2ae537107181be1aefec7a46e94ea3e3dec98 | 1e23e3839c45336e2c575bd1d7d532b1d9ed6e90 | refs/heads/main | 2023-05-02T08:35:32.308570 | 2021-05-25T15:34:35 | 2021-05-25T15:34:35 | 364,420,920 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,405 | cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "ShooterCharacter.h"
#include "Rifle.h"
#include "Components/CapsuleComponent.h"
#include "SimpleShooterGameModeBase.h"
// Sets default values
AShooterCharacter::AShooterCharacter()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
}
// Called when the game starts or when spawned
void AShooterCharacter::BeginPlay()
{
Super::BeginPlay();
Health = MaxHealth;
Rifle = GetWorld()->SpawnActor<ARifle>(RifleClass);
GetMesh()->HideBoneByName(TEXT("weapon_r"), EPhysBodyOp::PBO_None);
Rifle->AttachToComponent(GetMesh(), FAttachmentTransformRules::KeepRelativeTransform, TEXT("WeaponSocket"));
Rifle->SetOwner(this);
}
// Called every frame
void AShooterCharacter::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}
// Called to bind functionality to input
void AShooterCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);
PlayerInputComponent->BindAxis(TEXT("MoveForward"), this, &AShooterCharacter::MoveForward);
PlayerInputComponent->BindAxis(TEXT("MoveRight"), this, &AShooterCharacter::MoveRight);
PlayerInputComponent->BindAxis(TEXT("LookUp"), this, &APawn::AddControllerPitchInput);
PlayerInputComponent->BindAxis(TEXT("LookRight"), this, &APawn::AddControllerYawInput);
PlayerInputComponent->BindAxis(TEXT("LookUpRate"), this, &AShooterCharacter::LookUpRate);
PlayerInputComponent->BindAxis(TEXT("LookRightRate"), this, &AShooterCharacter::LookRightRate);
PlayerInputComponent->BindAction(TEXT("Jump"), EInputEvent::IE_Pressed, this, &ACharacter::Jump);
PlayerInputComponent->BindAction(TEXT("Shoot"), EInputEvent::IE_Pressed, this, &AShooterCharacter::Shoot);
}
float AShooterCharacter::TakeDamage(float DamageAmount, struct FDamageEvent const& DamageEvent, class AController* EventInstigator, AActor* DamageCauser)
{
float DamageToApply = Super::TakeDamage(DamageAmount, DamageEvent, EventInstigator, DamageCauser);
DamageToApply = FMath::Min(Health, DamageToApply); // Ensures the Actor does not take more damage then they have health remaining.
Health -= DamageToApply;
UE_LOG(LogTemp, Warning, TEXT("Health Remaining: %f"), Health);
if (IsDead())
{
ASimpleShooterGameModeBase* GameMode = GetWorld()->GetAuthGameMode<ASimpleShooterGameModeBase>();
if (GameMode != nullptr)
{
GameMode->PawnKilled(this);
}
DetachFromControllerPendingDestroy();
GetCapsuleComponent()->SetCollisionEnabled(ECollisionEnabled::NoCollision);
}
return DamageToApply;
}
bool AShooterCharacter::IsDead() const
{
return Health <= 0;
}
float AShooterCharacter::GetHealthPercent() const
{
return Health / MaxHealth;
}
void AShooterCharacter::MoveForward(float AxisValue)
{
AddMovementInput(GetActorForwardVector() * AxisValue);
}
void AShooterCharacter::MoveRight(float AxisValue)
{
AddMovementInput(GetActorRightVector() * AxisValue);
}
void AShooterCharacter::LookUpRate(float AxisValue)
{
AddControllerPitchInput(AxisValue * RotationRate * GetWorld()->GetDeltaSeconds());
}
void AShooterCharacter::LookRightRate(float AxisValue)
{
AddControllerYawInput(AxisValue * RotationRate * GetWorld()->GetDeltaSeconds());
}
void AShooterCharacter::Shoot()
{
Rifle->PullTrigger();
} | [
"garret.browning@uj.edu"
] | garret.browning@uj.edu |
952b8d706af823d17440f44264fafae943e1ebbf | 4ac70c604f8bb06621b5962186901fa6a48e52b7 | /DZ/characters/zombies/config.cpp | 73ccb30d84097aeb63554b2593cfdbe299509518 | [] | no_license | CreepUa/DayZSAEnfScript | 0e93c482606139d7a1bc3743c6d31f11ea3bce05 | c1533b7997bcf77a3735416736db871e1bf4b6fc | refs/heads/master | 2020-09-24T20:47:42.792943 | 2019-12-03T17:31:56 | 2019-12-03T17:31:56 | 225,839,349 | 1 | 0 | null | 2019-12-04T10:23:10 | 2019-12-04T10:23:09 | null | UTF-8 | C++ | false | false | 275,514 | cpp | #define _ARMA_
//(8 Enums)
enum {
destructengine = 2,
destructdefault = 6,
destructwreck = 7,
destructtree = 3,
destructtent = 4,
destructno = 0,
destructman = 5,
destructbuilding = 1
};
class CfgPatches
{
class DZ_Characters_Zombies
{
units[] = {"Hermit_NewAI"};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"DZ_Characters"};
};
};
class CfgVehicles
{
class DZ_LightAI;
class DayZInfected: DZ_LightAI{};
class ZombieBase: DayZInfected
{
scope = 0;
faction = "dz_Civ_US";
rarityUrban = -1;
simulation = "dayzinfected";
attachments[] = {"Vest","Back","Headgear"};
class enfanimsys
{
meshObject = "dz\characters\zombies\z_hermit_m.xob";
graphname = "dz\anims\workspaces\infected\infected_main\infected.agr";
defaultinstance = "dz\anims\workspaces\infected\infected_main\infected_main.asi";
skeletonName = "hermit_newbindpose.xob";
startnode = "MasterControl";
};
class InputController
{
movementSpeedMapping[] = {0.0,1.5,2.9,8.9};
lookAtFilterTimeout = 0.5;
lookAtFilterSpeed = 1.57;
};
accuracy = 0;
threat[] = {1,0.05,0.05};
displayName = "$STR_cfgvehicles_infected0";
descriptionShort = "$STR_cfgvehicles_infected1";
vehicleClass = "Zombie";
zombieLoot = "civilian";
storageCategory = 3;
attackSounds = "zombie_attack";
spottedSounds = "zombie_spotted";
chaseSounds = "zombie_chase";
idleSounds = "zombie_idle";
hiddenSelections[] = {"camo"};
languages[] = {};
htMin = 60;
htMax = 1800;
afMax = 30;
mfMax = 0;
mFact = 1;
tBody = 37;
selectionPersonality = "personality";
faceType = "MaleWhiteHeadNew";
launcherBone = "launcher";
handGunBone = "RightHand";
weaponBone = "weapon";
selectionHeadWound = "injury_head";
selectionBodyWound = "injury_body";
selectionLArmWound = "injury_hands";
selectionRArmWound = "injury_hands";
selectionLLegWound = "injury_legs";
selectionRLegWound = "injury_legs";
memoryPointLStep = "footstepL";
memoryPointRStep = "footstepR";
memoryPointAim = "aimPoint";
memoryPointCameraTarget = "camera";
memoryPointCommonDamage = "l_femur_hit";
memoryPointLeaningAxis = "leaning_axis";
memoryPointAimingAxis = "aiming_axis";
memoryPointHeadAxis = "head_axis";
selectionLBrow = "lBrow";
selectionMBrow = "mBrow";
selectionRBrow = "rBrow";
selectionLMouth = "lMouth";
selectionMMouth = "mMouth";
selectionRMouth = "rMouth";
selectionEyelid = "Eyelids";
selectionLip = "LLip";
class InventoryEquipment
{
playerSlots[] = {"Slot_Vest","Slot_Back","Slot_Headgear"};
};
class Cargo
{
itemsCargoSize[] = {3,4};
allowOwnedCargoManipulation = 1;
openable = 0;
};
class Wounds
{
tex[] = {};
mat[] = {"dz\characters\zombies\data\coveralls.rvmat","dz\characters\zombies\data\coveralls_injury.rvmat","dz\characters\zombies\data\coveralls_injury.rvmat"};
};
aiAgentTemplate = "Infected";
class NoiseTemplates
{
class StepNoise
{
strength = 10.0;
type = "sound";
};
};
class DamageSystem
{
class GlobalHealth
{
class Health
{
hitpoints = 100;
healthLevels[] = {{1.0,{}},{0.7,{}},{0.5,{}},{0.3,{}},{0.0,{}}};
};
};
class DamageZones
{
class Head
{
class Health
{
hitpoints = 33;
transferToGlobalCoef = 1;
};
class ArmorType
{
class FragGrenade
{
class Health
{
damage = 3;
};
};
};
componentNames[] = {"Head","Neck"};
fatalInjuryCoef = 0.1;
inventorySlots[] = {"Headgear","Mask"};
};
class Torso
{
class Health
{
hitpoints = 100;
transferToGlobalCoef = 1;
};
class ArmorType
{
class FragGrenade
{
class Health
{
damage = 2;
};
};
};
componentNames[] = {"Spine1","Spine3"};
fatalInjuryCoef = -1;
inventorySlots[] = {"Vest","Body","Back"};
inventorySlotsCoefs[] = {1.0,1.0,0.5};
};
class LeftArm
{
class Health
{
hitpoints = 100;
transferToGlobalCoef = 1;
};
class ArmorType
{
class FragGrenade
{
class Health
{
damage = 2;
};
};
};
componentNames[] = {"LeftArm","LeftForeArm"};
fatalInjuryCoef = -1;
};
class RightArm
{
class Health
{
hitpoints = 100;
transferToGlobalCoef = 1;
};
class ArmorType
{
class FragGrenade
{
class Health
{
damage = 2;
};
};
};
componentNames[] = {"RightArm","RightForeArm"};
fatalInjuryCoef = -1;
};
class LeftLeg
{
class Health
{
hitpoints = 100;
transferToGlobalCoef = 0.33;
};
class ArmorType
{
class FragGrenade
{
class Health
{
damage = 2;
};
};
};
componentNames[] = {"LeftLeg","LeftUpLeg"};
fatalInjuryCoef = -1;
inventorySlots[] = {"Legs"};
};
class RightLeg
{
class Health
{
hitpoints = 100;
transferToGlobalCoef = 0.33;
};
class ArmorType
{
class FragGrenade
{
class Health
{
damage = 2;
};
};
};
componentNames[] = {"RightLeg","RightUpLeg"};
fatalInjuryCoef = -1;
inventorySlots[] = {"Legs"};
};
class LeftFoot
{
class Health
{
hitpoints = 100;
transferToGlobalCoef = 0.1;
};
class ArmorType
{
class FragGrenade
{
class Health
{
damage = 2;
};
};
};
transferToZonesNames[] = {"LeftLeg"};
transferToZonesCoefs[] = {0.1};
componentNames[] = {"LeftFoot"};
fatalInjuryCoef = -1;
inventorySlots[] = {"Feet"};
};
class RightFoot
{
class Health
{
hitpoints = 100;
transferToGlobalCoef = 0.1;
};
class ArmorType
{
class FragGrenade
{
class Health
{
damage = 2;
};
};
};
transferToZonesNames[] = {"RightLeg"};
transferToZonesCoefs[] = {0.1};
componentNames[] = {"RightFoot"};
fatalInjuryCoef = -1;
inventorySlots[] = {"Feet"};
};
};
};
};
class ZombieFemaleBase: ZombieBase
{
scope = 0;
meleeAmmo = "MeleeZombieFemale";
aiAgentTemplate = "InfectedFemale";
woman = 1;
clothingType = "female";
class Wounds: Wounds
{
tex[] = {};
mat[] = {"dz\characters\zombies\data\shortskirt.rvmat","dz\characters\zombies\data\shortskirt_injury.rvmat","dz\characters\zombies\data\shortskirt_injury.rvmat"};
};
class AttackActions
{
class AttackLong
{
attackName = "attackLong";
ammoType = "MeleeZombieFemale";
stanceName = "erect";
moveAnimNames[] = {"run","sprint"};
minDistance = 0.75;
distance = 1.75;
time = 2.5;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 2.2;
repeatable = 0;
cooldown = 2.75;
};
class AttackRun
{
attackName = "attackRun";
ammoType = "MeleeZombieFemale";
stanceName = "erect";
moveAnimNames[] = {"run","sprint"};
minDistance = 0.5;
distance = 1.3;
time = 1.0;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 1.5;
repeatable = 1;
cooldown = 1.25;
};
class AttackShort
{
attackName = "attackShort";
ammoType = "MeleeZombieFemale";
stanceName = "erect";
moveAnimNames[] = {"idle","walk"};
minDistance = 0.5;
distance = 1.3;
time = 1.0;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 1.5;
repeatable = 1;
cooldown = 1.25;
};
class AttackShortLow
{
attackName = "attackShortLow";
ammoType = "MeleeZombieFemale";
stanceName = "erect";
moveAnimNames[] = {"idle","walk","run"};
minDistance = 0;
distance = 2;
time = 1.0;
yawAngle = 0;
pitchAngle = -45;
attackWidth = 2;
repeatable = 1;
cooldown = 1.25;
};
class CrawlAttackMove
{
attackName = "crawlAttackMove";
ammoType = "MeleeZombieFemale";
stanceName = "crawl";
moveAnimNames[] = {"walk"};
distance = 2;
time = 1.5;
yawAngle = 0;
pitchAngle = 45;
attackWidth = 2;
cooldown = 1.25;
};
class CrawlAttackStill
{
attackName = "crawlAttackStill";
ammoType = "MeleeZombieFemale";
stanceName = "crawl";
moveAnimNames[] = {"idle"};
distance = 2;
time = 1.1;
yawAngle = 0;
pitchAngle = 45;
attackWidth = 2;
cooldown = 1.25;
};
};
};
class ZombieMaleBase: ZombieBase
{
scope = 0;
meleeAmmo = "MeleeZombieMale";
aiAgentTemplate = "InfectedMale";
woman = 0;
clothingType = "male";
class Wounds: Wounds
{
tex[] = {};
mat[] = {"dz\characters\zombies\data\jacket.rvmat","dz\characters\zombies\data\jacket_injury.rvmat","dz\characters\zombies\data\jacket_injury.rvmat"};
};
class AttackActions
{
class AttackLong
{
attackName = "attackLong";
ammoType = "MeleeZombieMale";
stanceName = "erect";
moveAnimNames[] = {"run","sprint"};
minDistance = 0.75;
distance = 1.75;
time = 2.5;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 2.2;
repeatable = 0;
cooldown = 2.75;
};
class AttackRun
{
attackName = "attackRun";
ammoType = "MeleeZombieMale";
stanceName = "erect";
moveAnimNames[] = {"run","sprint"};
minDistance = 0.5;
distance = 1.3;
time = 1.0;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 1.5;
repeatable = 1;
cooldown = 1.25;
};
class AttackShort
{
attackName = "attackShort";
ammoType = "MeleeZombieMale";
stanceName = "erect";
moveAnimNames[] = {"idle","walk"};
minDistance = 0.5;
distance = 1.3;
time = 1.0;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 1.5;
repeatable = 1;
cooldown = 1.25;
};
class AttackShortLow
{
attackName = "attackShortLow";
ammoType = "MeleeZombieMale";
stanceName = "erect";
moveAnimNames[] = {"idle","walk","run"};
minDistance = 0;
distance = 2;
time = 1.0;
yawAngle = 0;
pitchAngle = -45;
attackWidth = 2;
repeatable = 1;
cooldown = 1.25;
};
class CrawlAttackMove
{
attackName = "crawlAttackMove";
ammoType = "MeleeZombieMale";
stanceName = "crawl";
moveAnimNames[] = {"walk"};
distance = 2;
time = 1.5;
yawAngle = 0;
pitchAngle = 45;
attackWidth = 2;
cooldown = 1.25;
};
class CrawlAttackStill
{
attackName = "crawlAttackStill";
ammoType = "MeleeZombieMale";
stanceName = "crawl";
moveAnimNames[] = {"idle"};
distance = 2;
time = 1.1;
yawAngle = 0;
pitchAngle = 45;
attackWidth = 2;
cooldown = 1.25;
};
};
};
class ZmbM_HermitSkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\hermit_above0.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\hermit.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_HermitSkinny_Beige: ZmbM_HermitSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hermit_beige_co.paa"};
};
class ZmbM_HermitSkinny_Black: ZmbM_HermitSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hermit_black_co.paa"};
};
class ZmbM_HermitSkinny_Green: ZmbM_HermitSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hermit_green_co.paa"};
};
class ZmbM_HermitSkinny_Red: ZmbM_HermitSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hermit_red_co.paa"};
};
class ZmbM_FarmerFat_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\farmer_above0.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\farmer.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Fat_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Fat_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Fat_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Fat_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Fat_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Fat_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_FarmerFat_Beige: ZmbM_FarmerFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\farmer_beige_co.paa"};
};
class ZmbM_FarmerFat_Blue: ZmbM_FarmerFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\farmer_blue_co.paa"};
};
class ZmbM_FarmerFat_Brown: ZmbM_FarmerFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\farmer_brown_co.paa"};
};
class ZmbM_FarmerFat_Green: ZmbM_FarmerFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\farmer_green_co.paa"};
};
class ZmbF_CitizenANormal_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\citizenA_normal_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\citizenA_normal_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_CitizenANormal_Beige: ZmbF_CitizenANormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenA_normal_f_co.paa"};
};
class ZmbF_CitizenANormal_Brown: ZmbF_CitizenANormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenA_normal_f_brown_co.paa"};
};
class ZmbF_CitizenANormal_Blue: ZmbF_CitizenANormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenA_normal_f_blue_co.paa"};
};
class ZmbM_CitizenASkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\citizenA_skinny_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\citizenA_skinny_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_CitizenASkinny_Blue: ZmbM_CitizenASkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenA_skinny_m_blue_co.paa"};
};
class ZmbM_CitizenASkinny_Brown: ZmbM_CitizenASkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenA_skinny_m_brown_co.paa"};
};
class ZmbM_CitizenASkinny_Grey: ZmbM_CitizenASkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenA_skinny_m_grey_co.paa"};
};
class ZmbM_CitizenASkinny_Red: ZmbM_CitizenASkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenA_skinny_m_red_co.paa"};
};
class ZmbM_CitizenBFat_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\citizenB_fat_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\citizenB_fat_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Fat_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Fat_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Fat_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Fat_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Fat_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Fat_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_CitizenBFat_Blue: ZmbM_CitizenBFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenB_fat_m_CO.paa"};
};
class ZmbM_CitizenBFat_Red: ZmbM_CitizenBFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenB_fat_m_red_CO.paa"};
};
class ZmbM_CitizenBFat_Green: ZmbM_CitizenBFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenB_fat_m_green_CO.paa"};
};
class ZmbF_CitizenBSkinny_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\citizenB_skinny_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\citizenB_skinny_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_CitizenBSkinny: ZmbF_CitizenBSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\citizenB_skinny_f_CO.paa"};
};
class ZmbM_PrisonerSkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\prisoner_skinny_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\prisoner_skinny_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_PrisonerSkinny: ZmbM_PrisonerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\prisoner_skinny_m_co.paa"};
};
class ZmbM_FirefighterNormal_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\firefighter_normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\firefighter_normal_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_FirefighterNormal: ZmbM_FirefighterNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\firefighter_normal_m_co.paa"};
};
class ZmbM_FishermanOld_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\fisherman_old_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\fisherman_old_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_FishermanOld_Blue: ZmbM_FishermanOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\fisherman_old_blue_m_co.paa"};
};
class ZmbM_FishermanOld_Green: ZmbM_FishermanOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\fisherman_old_green_m_co.paa"};
};
class ZmbM_FishermanOld_Grey: ZmbM_FishermanOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\fisherman_old_grey_m_co.paa"};
};
class ZmbM_FishermanOld_Red: ZmbM_FishermanOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\fisherman_old_red_m_co.paa"};
};
class ZmbM_JournalistSkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\journalist_skinny_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\journalist_skinny_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_JournalistSkinny: ZmbM_JournalistSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\journalist_skinny_m_co.paa"};
};
class ZmbF_JournalistNormal_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\journalist_normal_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\journalist_normal_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_JournalistNormal_Blue: ZmbF_JournalistNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\journalist_normal_f_blue_co.paa"};
};
class ZmbF_JournalistNormal_Green: ZmbF_JournalistNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\journalist_normal_f_green_co.paa"};
};
class ZmbF_JournalistNormal_Red: ZmbF_JournalistNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\journalist_normal_f_red_co.paa"};
};
class ZmbF_JournalistNormal_White: ZmbF_JournalistNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\journalist_normal_f_white_co.paa"};
};
class ZmbM_ParamedicNormal_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\paramedic_normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\paramedic_normal_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_ParamedicNormal_Blue: ZmbM_ParamedicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\paramedic_normal_m_blue_co.paa"};
};
class ZmbM_ParamedicNormal_Green: ZmbM_ParamedicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\paramedic_normal_m_green_co.paa"};
};
class ZmbM_ParamedicNormal_Red: ZmbM_ParamedicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\paramedic_normal_m_red_co.paa"};
};
class ZmbM_ParamedicNormal_Black: ZmbM_ParamedicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\paramedic_normal_m_black_co.paa"};
};
class ZmbF_ParamedicNormal_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\paramedic_normal_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\paramedic_normal_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_ParamedicNormal_Blue: ZmbF_ParamedicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\paramedic_normal_f_blue_co.paa"};
};
class ZmbF_ParamedicNormal_Green: ZmbF_ParamedicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\paramedic_normal_f_green_co.paa"};
};
class ZmbF_ParamedicNormal_Red: ZmbF_ParamedicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\paramedic_normal_f_red_co.paa"};
};
class ZmbM_HikerSkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\hiker_skinny_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\hiker_skinny_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_HikerSkinny_Blue: ZmbM_HikerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hiker_skinny_m_co.paa"};
};
class ZmbM_HikerSkinny_Green: ZmbM_HikerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hiker_skinny_m_green_co.paa"};
};
class ZmbM_HikerSkinny_Yellow: ZmbM_HikerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hiker_skinny_m_yellow_co.paa"};
};
class ZmbF_HikerSkinny_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\hiker_skinny_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\hiker_skinny_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_HikerSkinny_Blue: ZmbF_HikerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hiker_skinny_f_blue_co.paa"};
};
class ZmbF_HikerSkinny_Grey: ZmbF_HikerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hiker_skinny_f_gray_co.paa"};
};
class ZmbF_HikerSkinny_Green: ZmbF_HikerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hiker_skinny_f_green_co.paa"};
};
class ZmbF_HikerSkinny_Red: ZmbF_HikerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hiker_skinny_f_red_co.paa"};
};
class ZmbM_HunterOld_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\Hunter_old_M.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\Hunter_old_M.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_HunterOld_Autumn: ZmbM_HunterOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hunter_old_m_autumn_co.paa"};
};
class ZmbM_HunterOld_Spring: ZmbM_HunterOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hunter_old_m_spring_co.paa"};
};
class ZmbM_HunterOld_Summer: ZmbM_HunterOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hunter_old_m_summer_co.paa"};
};
class ZmbM_HunterOld_Winter: ZmbM_HunterOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\hunter_old_m_winter_co.paa"};
};
class ZmbF_SurvivorNormal_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\Survivor_normal_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\survivor_normal_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_SurvivorNormal_Blue: ZmbF_SurvivorNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\survivor_normal_f_blue_co.paa"};
};
class ZmbF_SurvivorNormal_Orange: ZmbF_SurvivorNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\survivor_normal_f_orange_co.paa"};
};
class ZmbF_SurvivorNormal_Red: ZmbF_SurvivorNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\survivor_normal_f_red_co.paa"};
};
class ZmbF_SurvivorNormal_White: ZmbF_SurvivorNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\survivor_normal_f_white_co.paa"};
};
class ZmbM_PolicemanFat_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\Policeman_fat_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\policeman_fat_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Fat_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Fat_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Fat_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Fat_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Fat_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Fat_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_PolicemanFat: ZmbM_PolicemanFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\policeman_fat_m_co.paa"};
};
class ZmbF_PoliceWomanNormal_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\policewoman_normal_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\policewoman_normal_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_PoliceWomanNormal: ZmbF_PoliceWomanNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\policewoman_normal_f_co.paa"};
};
class ZmbM_PolicemanSpecForce_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\PolicemanSpecialForce_Normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\PolicemanSpecialForce_Normal_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_PolicemanSpecForce: ZmbM_PolicemanSpecForce_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\PolicemanSpecialForce_Normal_m_co.paa"};
};
class ZmbM_SoldierNormal_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\soldier_normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\soldier_normal_m.rvmat"};
class AttackActions
{
class AttackLong
{
attackName = "attackLong";
ammoType = "MeleeZombieSoldier";
stanceName = "erect";
moveAnimNames[] = {"run","sprint"};
minDistance = 0.75;
distance = 1.75;
time = 2.5;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 2.2;
repeatable = 0;
cooldown = 2.75;
};
class AttackRun
{
attackName = "attackRun";
ammoType = "MeleeZombieSoldier";
stanceName = "erect";
moveAnimNames[] = {"run","sprint"};
minDistance = 0.5;
distance = 1.3;
time = 1.0;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 1.5;
repeatable = 1;
cooldown = 1.25;
};
class AttackShort
{
attackName = "attackShort";
ammoType = "MeleeZombieSoldier";
stanceName = "erect";
moveAnimNames[] = {"idle","walk"};
minDistance = 0.5;
distance = 1.3;
time = 1.0;
yawAngle = 0;
pitchAngle = 0;
attackWidth = 1.5;
repeatable = 1;
cooldown = 1.25;
};
class AttackShortLow
{
attackName = "attackShortLow";
ammoType = "MeleeZombieSoldier";
stanceName = "erect";
moveAnimNames[] = {"idle","walk","run"};
minDistance = 0;
distance = 2;
time = 1.0;
yawAngle = 0;
pitchAngle = -45;
attackWidth = 2;
repeatable = 1;
cooldown = 1.25;
};
class CrawlAttackMove
{
attackName = "crawlAttackMove";
ammoType = "MeleeZombieSoldier";
stanceName = "crawl";
moveAnimNames[] = {"walk"};
distance = 2;
time = 1.5;
yawAngle = 0;
pitchAngle = 45;
attackWidth = 2;
cooldown = 1.25;
};
class CrawlAttackStill
{
attackName = "crawlAttackStill";
ammoType = "MeleeZombieSoldier";
stanceName = "crawl";
moveAnimNames[] = {"idle"};
distance = 2;
time = 1.1;
yawAngle = 0;
pitchAngle = 45;
attackWidth = 2;
cooldown = 1.25;
};
};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_SoldierNormal: ZmbM_SoldierNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\soldier_normal_m_co.paa"};
};
class ZmbM_usSoldier_normal_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\usSoldier_normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\usSoldier_normal_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_usSoldier_normal_Woodland: ZmbM_usSoldier_normal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\usSoldier_normal_m_MarpatWoodland_CO.paa"};
};
class ZmbM_usSoldier_normal_Desert: ZmbM_usSoldier_normal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\ussoldier_normal_m_marpatdesert_co.paa"};
};
class ZmbM_CommercialPilotOld_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\commercialPilot_old_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\commercialpilot_old_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_CommercialPilotOld_Blue: ZmbM_CommercialPilotOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\commercialpilot_old_m_co.paa"};
};
class ZmbM_CommercialPilotOld_Olive: ZmbM_CommercialPilotOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\commercialpilot_old_m_olive_co.paa"};
};
class ZmbM_CommercialPilotOld_Brown: ZmbM_CommercialPilotOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\commercialpilot_old_m_brown_co.paa"};
};
class ZmbM_CommercialPilotOld_Grey: ZmbM_CommercialPilotOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\commercialpilot_old_m_grey_co.paa"};
};
class ZmbM_PatrolNormal_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\Patrol_normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\patrol_normal_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_PatrolNormal_PautRev: ZmbM_PatrolNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\patrol_normal_m_pautrev_co.paa"};
};
class ZmbM_PatrolNormal_Autumn: ZmbM_PatrolNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\patrol_normal_m_Autumn_co.paa"};
};
class ZmbM_PatrolNormal_Flat: ZmbM_PatrolNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\patrol_normal_m_flat_co.paa"};
};
class ZmbM_PatrolNormal_Summer: ZmbM_PatrolNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\patrol_normal_m_Summer_co.paa"};
};
class ZmbM_JoggerSkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\jogger_skinny_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\jogger_skinny_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_JoggerSkinny_Blue: ZmbM_JoggerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jogger_skinny_m_blue_CO.paa"};
};
class ZmbM_JoggerSkinny_Green: ZmbM_JoggerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jogger_skinny_m_green_CO.paa"};
};
class ZmbM_JoggerSkinny_Red: ZmbM_JoggerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jogger_skinny_m_red_CO.paa"};
};
class ZmbF_JoggerSkinny_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\jogger_skinny_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\jogger_skinny_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_JoggerSkinny_Blue: ZmbF_JoggerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jogger_skinny_f_Blue_CO.paa"};
};
class ZmbF_JoggerSkinny_Brown: ZmbF_JoggerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jogger_skinny_f_Brown_CO.paa"};
};
class ZmbF_JoggerSkinny_Green: ZmbF_JoggerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jogger_skinny_f_Green_CO.paa"};
};
class ZmbF_JoggerSkinny_Red: ZmbF_JoggerSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jogger_skinny_f_Red_CO.paa"};
};
class ZmbM_MotobikerFat_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\motobiker_fat_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\motobiker_fat_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Fat_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Fat_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Fat_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Fat_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Fat_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Fat_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_MotobikerFat_Beige: ZmbM_MotobikerFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\motobiker_fat_m_beige_co.paa"};
};
class ZmbM_MotobikerFat_Black: ZmbM_MotobikerFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\motobiker_fat_m_black_co.paa"};
};
class ZmbM_MotobikerFat_Blue: ZmbM_MotobikerFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\motobiker_fat_m_co.paa"};
};
class ZmbM_VillagerOld_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\villager_old_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\villager_old_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_VillagerOld_Blue: ZmbM_VillagerOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\villager_old_m_blue_CO.paa"};
};
class ZmbM_VillagerOld_Green: ZmbM_VillagerOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\villager_old_m_green_CO.paa"};
};
class ZmbM_VillagerOld_White: ZmbM_VillagerOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\villager_old_m_CO.paa"};
};
class ZmbM_SkaterYoung_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\skater_young_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\skater_young_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal2_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal2_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal2_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal2_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal2_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal2_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_SkaterYoung_Blue: ZmbM_SkaterYoung_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\skater_young_m_blue_CO.paa"};
};
class ZmbM_SkaterYoung_Brown: ZmbM_SkaterYoung_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\skater_young_m_brown_CO.paa"};
};
class ZmbM_SkaterYoung_Green: ZmbM_SkaterYoung_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\skater_young_m_green_CO.paa"};
};
class ZmbM_SkaterYoung_Grey: ZmbM_SkaterYoung_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\skater_young_m_grey_CO.paa"};
};
class ZmbF_SkaterYoung_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\skater_young_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\skater_young_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_SkaterYoung_Brown: ZmbF_SkaterYoung_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\skater_young_f_brown_co.paa"};
};
class ZmbF_SkaterYoung_Striped: ZmbF_SkaterYoung_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\skater_young_f_co.paa"};
};
class ZmbF_SkaterYoung_Violet: ZmbF_SkaterYoung_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\skater_young_f_violet_co.paa"};
};
class ZmbF_DoctorSkinny_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\doctor_skinny_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\doctor_skinny_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_DoctorSkinny: ZmbF_DoctorSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\doctor_skinny_f_CO.paa"};
};
class ZmbF_BlueCollarFat_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\blueCollar_fat_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\blueCollar_fat_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Fat_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Fat_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Fat_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Fat_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Fat_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Fat_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_BlueCollarFat_Blue: ZmbF_BlueCollarFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\blueCollar_fat_f_blue_CO.paa"};
};
class ZmbF_BlueCollarFat_Green: ZmbF_BlueCollarFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\blueCollar_fat_f_green_CO.paa"};
};
class ZmbF_BlueCollarFat_Red: ZmbF_BlueCollarFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\blueCollar_fat_f_red_CO.paa"};
};
class ZmbF_BlueCollarFat_White: ZmbF_BlueCollarFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\blueCollar_fat_f_white_CO.paa"};
};
class ZmbF_MechanicNormal_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\mechanic_normal_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\mechanic_normal_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Sneakers_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_MechanicNormal_Beige: ZmbF_MechanicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\mechanic_normal_f_beige_CO.paa"};
};
class ZmbF_MechanicNormal_Green: ZmbF_MechanicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\mechanic_normal_f_green_CO.paa"};
};
class ZmbF_MechanicNormal_Grey: ZmbF_MechanicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\mechanic_normal_f_grey_CO.paa"};
};
class ZmbF_MechanicNormal_Orange: ZmbF_MechanicNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\mechanic_normal_f_orange_CO.paa"};
};
class ZmbM_MechanicSkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\Mechanic_skinny_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\mechanic_skinny_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_MechanicSkinny_Blue: ZmbM_MechanicSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\mechanic_skinny_m_Blue_co.paa"};
};
class ZmbM_MechanicSkinny_Grey: ZmbM_MechanicSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\mechanic_skinny_m_Grey_co.paa"};
};
class ZmbM_MechanicSkinny_Green: ZmbM_MechanicSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\mechanic_skinny_m_Green_co.paa"};
};
class ZmbM_MechanicSkinny_Red: ZmbM_MechanicSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\mechanic_skinny_m_Red_co.paa"};
};
class ZmbM_ConstrWorkerNormal_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\constructionWorker_normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\constructionWorker_normal_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal2_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal2_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal2_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal2_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal2_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal2_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_ConstrWorkerNormal_Beige: ZmbM_ConstrWorkerNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\constructionworker_normal_m_beige_co.paa"};
};
class ZmbM_ConstrWorkerNormal_Black: ZmbM_ConstrWorkerNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\constructionworker_normal_m_black_co.paa"};
};
class ZmbM_ConstrWorkerNormal_Green: ZmbM_ConstrWorkerNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\constructionworker_normal_m_green_co.paa"};
};
class ZmbM_ConstrWorkerNormal_Grey: ZmbM_ConstrWorkerNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\constructionworker_normal_m_grey_co.paa"};
};
class ZmbM_HeavyIndustryWorker_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\HeavyIndustryWorker_normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\HeavyIndustryWorker_normal_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal2_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal2_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal2_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal2_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal2_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal2_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_HeavyIndustryWorker: ZmbM_HeavyIndustryWorker_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\HeavyIndustryWorker_normal_m_co.paa"};
};
class ZmbM_OffshoreWorker_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\offshoreWorker_normal_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\offshoreWorker_normal_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal2_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal2_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal2_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal2_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal2_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal2_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_OffshoreWorker_Green: ZmbM_OffshoreWorker_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\offshoreWorker_normal_m_green.paa"};
};
class ZmbM_OffshoreWorker_Orange: ZmbM_OffshoreWorker_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\offshoreWorker_normal_m_orange.paa"};
};
class ZmbM_OffshoreWorker_Red: ZmbM_OffshoreWorker_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\offshoreWorker_normal_m_red.paa"};
};
class ZmbM_OffshoreWorker_Yellow: ZmbM_OffshoreWorker_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\offshoreWorker_normal_m_yellow.paa"};
};
class ZmbF_NurseFat_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\nurse_fat_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\nurse_fat_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Fat_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Fat_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Fat_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Fat_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Fat_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Fat_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_NurseFat: ZmbF_NurseFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\nurse_fat_f_co.paa"};
};
class ZmbM_HandymanNormal_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\coveralls.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\coveralls.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal2_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal2_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal2_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal2_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal2_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal2_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_HandymanNormal_Beige: ZmbM_HandymanNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\coveralls_beige_co.paa"};
};
class ZmbM_HandymanNormal_Blue: ZmbM_HandymanNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\coveralls_blue_co.paa"};
};
class ZmbM_HandymanNormal_Green: ZmbM_HandymanNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\coveralls_green_co.paa"};
};
class ZmbM_HandymanNormal_Grey: ZmbM_HandymanNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\coveralls_grey_co.paa"};
};
class ZmbM_HandymanNormal_White: ZmbM_HandymanNormal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\coveralls_white_co.paa"};
};
class ZmbM_DoctorFat_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\doctor_fat_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\doctor_fat_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Fat_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Fat_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Fat_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Fat_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Fat_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Fat_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_DoctorFat: ZmbM_DoctorFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\doctor_fat_m_co.paa"};
};
class ZmbM_Jacket_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\jacket_above0.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\jacket.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Normal2_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Normal2_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Normal2_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Normal2_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Normal2_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Normal2_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_Jacket_beige: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_beige_co.paa"};
};
class ZmbM_Jacket_black: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_black_co.paa"};
};
class ZmbM_Jacket_blue: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_blue_co.paa"};
};
class ZmbM_Jacket_bluechecks: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_bluechecks_co.paa"};
};
class ZmbM_Jacket_brown: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_brown_co.paa"};
};
class ZmbM_Jacket_greenchecks: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_greenchecks_co.paa"};
};
class ZmbM_Jacket_grey: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_grey_co.paa"};
};
class ZmbM_Jacket_khaki: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_khaki_co.paa"};
};
class ZmbM_Jacket_magenta: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_magenta_co.paa"};
};
class ZmbM_Jacket_stripes: ZmbM_Jacket_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\jacket_stripes_co.paa"};
};
class ZmbF_PatientOld_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\patient_old_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\patient_old_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_PatientOld: ZmbF_PatientOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\patient_old_f_CO.paa"};
};
class ZmbM_PatientSkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\patient_skinny_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\patient_skinny_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Bare_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_PatientSkinny: ZmbM_PatientSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\patient_skinny_m_co.paa"};
};
class ZmbF_ShortSkirt_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\shortskirt_above0.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\shortskirt.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_ShortSkirt_beige: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_beige_co.paa"};
};
class ZmbF_ShortSkirt_black: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_black_co.paa"};
};
class ZmbF_ShortSkirt_brown: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_brown_co.paa"};
};
class ZmbF_ShortSkirt_green: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_green_co.paa"};
};
class ZmbF_ShortSkirt_grey: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_grey_co.paa"};
};
class ZmbF_ShortSkirt_checks: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_checks_co.paa"};
};
class ZmbF_ShortSkirt_red: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_red_co.paa"};
};
class ZmbF_ShortSkirt_stripes: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_stripes_co.paa"};
};
class ZmbF_ShortSkirt_white: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_white_co.paa"};
};
class ZmbF_ShortSkirt_yellow: ZmbF_ShortSkirt_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\shortskirt_yellow_co.paa"};
};
class ZmbF_VillagerOld_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\villager_old_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\villager_old_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_VillagerOld_Blue: ZmbF_VillagerOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\villager_old_f_blue_CO.paa"};
};
class ZmbF_VillagerOld_Green: ZmbF_VillagerOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\villager_old_f_green_CO.paa"};
};
class ZmbF_VillagerOld_Red: ZmbF_VillagerOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\villager_old_f_red_CO.paa"};
};
class ZmbF_VillagerOld_White: ZmbF_VillagerOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\villager_old_f_white_CO.paa"};
};
class ZmbF_MilkMaidOld_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\milkmaid_old_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\milkmaid_old_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Old_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Old_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Old_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Old_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Old_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Old_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_MilkMaidOld_Beige: ZmbF_MilkMaidOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\milkmaid_old_f_beige_co.paa"};
};
class ZmbF_MilkMaidOld_Black: ZmbF_MilkMaidOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\milkmaid_old_f_black_co.paa"};
};
class ZmbF_MilkMaidOld_Green: ZmbF_MilkMaidOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\milkmaid_old_f_green_co.paa"};
};
class ZmbF_MilkMaidOld_Grey: ZmbF_MilkMaidOld_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\milkmaid_old_f_grey_co.paa"};
};
class ZmbM_priestPopSkinny_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\priestPop_skinny_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\priestPop_skinny_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Skinny_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Skinny_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Skinny_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Skinny_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Skinny_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Skinny_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_priestPopSkinny: ZmbM_priestPopSkinny_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\priestPop_skinny_m_co.paa"};
};
class ZmbM_ClerkFat_Base: ZombieMaleBase
{
scope = 0;
model = "\DZ\characters\zombies\clerk_fat_m.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\clerk_fat_m.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbM_Fat_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbM_Fat_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbM_Fat_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbM_Fat_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbM_Fat_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbM_Fat_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbM_ClerkFat_Brown: ZmbM_ClerkFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerk_fat_m_brown_CO.paa"};
};
class ZmbM_ClerkFat_Grey: ZmbM_ClerkFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerk_fat_m_grey_CO.paa"};
};
class ZmbM_ClerkFat_Khaki: ZmbM_ClerkFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerk_fat_m_khaki_CO.paa"};
};
class ZmbM_ClerkFat_White: ZmbM_ClerkFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerk_fat_m_white_CO.paa"};
};
class ZmbF_Clerk_Normal_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\clerkA_normal_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\clerkA_normal_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_Clerk_Normal_Blue: ZmbF_Clerk_Normal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerkA_normal_f_04_CO.paa"};
};
class ZmbF_Clerk_Normal_White: ZmbF_Clerk_Normal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerkA_normal_f_02_CO.paa"};
};
class ZmbF_Clerk_Normal_Green: ZmbF_Clerk_Normal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerkA_normal_f_03_CO.paa"};
};
class ZmbF_Clerk_Normal_Red: ZmbF_Clerk_Normal_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerkA_normal_f_01_CO.paa"};
};
class ZmbF_ClerkFat_Base: ZombieFemaleBase
{
scope = 0;
model = "\DZ\characters\zombies\clerkB_fat_f.p3d";
hiddenSelectionsMaterials[] = {"dz\characters\zombies\data\clerkB_fat_f.rvmat"};
class AnimEvents
{
class Steps
{
class Walk1
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 1;
};
class Walk2
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 2;
};
class Walk3
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 3;
};
class Walk4
{
soundLookupTable = "walkErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 4;
};
class Run1
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 5;
};
class Run2
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 6;
};
class Run3
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 7;
};
class Run4
{
soundLookupTable = "runErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 8;
};
class Sprint1
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 9;
};
class Sprint2
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 10;
};
class Sprint3
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 11;
};
class Sprint4
{
soundLookupTable = "sprintErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 12;
};
class Scuff1
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 17;
};
class Scuff2
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 18;
};
class Sccuff3
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 19;
};
class Scuff4
{
soundLookupTable = "scuffErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 20;
};
class landFeetErc
{
soundLookupTable = "landFeetErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 21;
};
class landFootErc
{
soundLookupTable = "landFootErc_Boots_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 22;
};
class Bodyfall
{
soundLookupTable = "bodyfall_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 23;
};
class Bodyfall_Hand
{
soundLookupTable = "bodyfall_hand_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 24;
};
class Bodyfall_Slide
{
soundLookupTable = "bodyfall_slide_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 25;
};
class Prone_Walk_L
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 27;
};
class Prone_Walk_R
{
soundLookupTable = "walkProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 28;
};
class Prone_Run_L
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 29;
};
class Prone_Run_R
{
soundLookupTable = "runProne_Zmb_LookupTable";
noise = "ZombieStepNoise";
id = 30;
};
};
class Sounds
{
class Attack_Light1
{
soundSet = "Zmb_Attack_Light1_SoundSet";
id = 1;
};
class Attack_Light2
{
soundSet = "Zmb_Attack_Light2_SoundSet";
id = 2;
};
class Attack_Heavy1
{
soundSet = "Zmb_Attack_Heavy1_SoundSet";
id = 3;
};
class Attack_Heavy2
{
soundSet = "Zmb_Attack_Heavy2_SoundSet";
id = 4;
};
class TwoHands
{
soundSet = "Zmb_Attack_TwoHands_SoundSet";
id = 5;
};
};
class SoundVoice
{
class LightHit
{
soundSet = "ZmbF_Normal_LightHit_Soundset";
id = 1;
};
class HeavyHit
{
soundSet = "ZmbF_Normal_HeavyHit_Soundset";
id = 2;
};
class Attack
{
soundSet = "ZmbF_Normal_Attack_Soundset";
id = 5;
};
class Jump
{
soundSet = "ZmbF_Normal_Jump_Soundset";
id = 10;
};
class Land
{
soundSet = "ZmbF_Normal_Land_Soundset";
id = 11;
};
class CallToArmsShort
{
soundSet = "ZmbF_Normal_CallToArmsShort_Soundset";
id = 20;
};
};
};
};
class ZmbF_ClerkFat_Black: ZmbF_ClerkFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerkB_fat_f_black_co.paa"};
};
class ZmbF_ClerkFat_GreyPattern: ZmbF_ClerkFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerkB_fat_f_greypattern_co.paa"};
};
class ZmbF_ClerkFat_BluePattern: ZmbF_ClerkFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerkB_fat_f_bluepattern_co.paa"};
};
class ZmbF_ClerkFat_White: ZmbF_ClerkFat_Base
{
scope = 2;
hiddenSelectionsTextures[] = {"dz\characters\zombies\data\clerkB_fat_f_white_co.paa"};
};
};
class CfgNonAIVehicles
{
class ProxyHands;
class ProxyAK_47_v58_Proxy: ProxyHands
{
model = "\dz\Characters\Proxies\ak_47_v58_proxy.p3d";
};
class ProxyBack;
class ProxyBackpack_DZ: ProxyBack
{
model = "\dz\Characters\Proxies\Backpack_DZ.p3d";
};
class ProxyHeadgear;
class ProxyHeadgear_DZ: ProxyHeadgear
{
model = "\dz\Characters\Proxies\Headgear_DZ.p3d";
};
class ProxyMask;
class ProxyMask_DZ: ProxyMask
{
model = "\dz\Characters\Proxies\Mask_DZ.p3d";
};
class ProxyVest;
class ProxyVest_DZ: ProxyVest
{
model = "\dz\Characters\Proxies\Vest_DZ.p3d";
};
class ProxyMelee;
class ProxyMelee_DZ: ProxyMelee
{
model = "\dz\Characters\Proxies\Melee_DZ.p3d";
};
};
| [
"GThurston00@gmail.com"
] | GThurston00@gmail.com |
4c275afea751d065ae35a262abbe658da34376ea | e4978f1cfac58a0676e58d88d8f3a2f5ddda7aba | /FamilyVacation.cpp | 105634134fc4dc62db1f46c4e8a00f1fe2b3f18e | [] | no_license | ohaluminum/COSC1430_Exercise1 | abfca5ea3a94662069be7eb6ecc0ee73c84c2156 | f729aa18be0c95a90e48dc5167b037620251776d | refs/heads/master | 2021-04-22T17:24:48.441839 | 2020-03-25T23:12:08 | 2020-03-25T23:12:08 | 249,864,874 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,379 | cpp | #include "FamilyVacation.h"
//Mutators
void FamilyVacation::setNumDays(int dayCount)
{
numDays = dayCount;
}
void FamilyVacation::setNumPeople(int peopleCount)
{
numPeople = peopleCount;
}
void FamilyVacation::setNames(string* who, int people)
{
if (people == 0) return;
numPeople = people;
names = new string[numPeople];
for (int i = 0; i < numPeople; i++)
{
names[i] = who[i];
}
}
//Accessors
int FamilyVacation::getNumDays()
{
return numDays;
}
int FamilyVacation::getNumPeople()
{
return numPeople;
}
string* FamilyVacation::getNames()
{
return names;
}
// Implement the default constructor
FamilyVacation::FamilyVacation()
{
numDays = 0;
numPeople = 0;
names = nullptr;
}
// Implement the overloaded constructors with three parameters, in the order of int, int, *string
FamilyVacation::FamilyVacation(int days, int people, string* names)
{
numDays = days;
numPeople = people;
if (numPeople == 0)
{
this->names = nullptr;
}
else
{
this->names = new string[numPeople];
for (int i = 0; i < numPeople; i++)
{
this->names[i] = names[i];
}
}
}
// Implement the destructor
FamilyVacation::~FamilyVacation()
{
if (names != nullptr)
{
delete[] names;
names = nullptr;
}
}
// Implement the copy constructor that does the deep copy for the 'names' member
FamilyVacation::FamilyVacation(const FamilyVacation& copy)
{
numDays = copy.numDays;
numPeople = copy.numPeople;
if (numPeople == 0)
{
names = nullptr;
}
else
{
names = new string[numPeople];
for (int i = 0; i < numPeople; i++)
{
names[i] = copy.names[i];
}
}
}
// Implement the overloaded + operator
FamilyVacation FamilyVacation::operator+(int moreDays)
{
FamilyVacation newVacation;
newVacation.setNumDays(numDays + moreDays);
newVacation.setNumPeople(numPeople);
newVacation.names = new string[newVacation.numPeople];
for (int i = 0; i < newVacation.numPeople; i++)
{
newVacation.names[i] = names[i];
}
return newVacation;
}
// Implement the second overloaded + operator
FamilyVacation FamilyVacation::operator+(FamilyVacation other)
{
FamilyVacation newVacation;
newVacation.setNumDays(numDays + other.numDays);
newVacation.setNumPeople(numPeople + other.numPeople);
newVacation.names = new string[newVacation.numPeople];
for (int i = 0; i < numPeople; i++)
{
newVacation.names[i] = names[i];
}
for (int j = numPeople; j < numPeople + other.numPeople; j++)
{
newVacation.names[j] = other.names[j - numPeople];
}
return newVacation;
}
// Implement the overloaded == operator
bool FamilyVacation::operator==(FamilyVacation other)
{
if (numDays == other.numDays)
{
if (numPeople == other.numPeople)
{
for (int i = 0; i < numPeople; i++)
{
if (names[i].compare(other.names[i]) != 0)
{
return false;
}
}
return true;
}
else
{
return false;
}
}
else
{
return false;
}
}
// Implement the overloaded << operator
ostream &operator<<(ostream &outS, FamilyVacation v)
{
outS << "Days: " << v.getNumDays()
<< ", People: " << v.getNumPeople()
<< " and they are: ";
if (v.getNumPeople() == 0)
{
outS << endl;
return outS;
}
else
{
for (int i = 0; i < v.getNumPeople() - 1; i++)
{
outS << v.names[i] << ", ";
}
outS << v.names[v.getNumPeople() - 1] << endl;
return outS;
}
}
// Implement the overloaded = operator
FamilyVacation FamilyVacation::operator=(const FamilyVacation& other)
{
numDays = other.numDays;
numPeople = other.numPeople;
if (this != &other)
{
delete[] names;
if (numPeople == 0)
{
names = nullptr;
}
else
{
names = new string[numPeople];
for (int i = 0; i < numPeople; i++)
{
names[i] = other.names[i];
}
}
}
return *this;
}
| [
"ohaluminum@users.noreply.github.com"
] | ohaluminum@users.noreply.github.com |
0c488c747363d10027848297cbbad1a2f23b0f06 | 132faa36e3566632c89444edcf505a6ee5a74dc5 | /evaluator/evaluator.cc | 08c748bc5d7e875086900b423e7b4e95954d91b7 | [] | no_license | mohanksriram/calculator | 351b2f7b7c9bf49af779c499ec358d18c5bc5edd | 70324d151b490d3ee9012fe2c4d0eddc839f0be1 | refs/heads/master | 2023-06-02T02:49:09.352966 | 2021-06-19T12:22:44 | 2021-06-19T12:22:44 | 378,341,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,767 | cc | #include <cmath>
#include "evaluator.h"
typedef double (*EvaluateFunc)(const double &a, const double &b);
typedef double (*UnaryFuncs)(const double &a);
struct OperatorContract {
EvaluateFunc func;
OperatorContract(EvaluateFunc f): func{f} {}
};
struct UnaryContract {
UnaryFuncs func;
UnaryContract(UnaryFuncs f): func{f} {}
};
static std::map<std::string, UnaryContract> unary_contracts = {
{"sin", UnaryContract([](const double &a) { return sin(a); })},
{"cos", UnaryContract([](const double &a) { return cos(a); })},
{"tan", UnaryContract([](const double &a) { return tan(a); })},
{"log", UnaryContract([](const double &a) { return log10(a); })},
{"ln", UnaryContract([](const double &a) { return log(a); })},
};
static std::map<std::string, OperatorContract> op_contracts = {
{"+", OperatorContract([](const double &a, const double &b) { return a + b; })},
{"-", OperatorContract([](const double &a, const double &b) { return a - b; })},
{"*", OperatorContract([](const double &a, const double &b) { return a * b; })},
{"/", OperatorContract([](const double &a, const double &b) { return a / b; })},
{"^", OperatorContract([](const double &a, const double &b) { return std::pow(a, b); })}
};
double Evaluator::evaluate(std::deque<Token> rpn_tokens) {
std::stack<Token> number_tokens;
while(!rpn_tokens.empty()) {
Token op = rpn_tokens.front();
if(op.type == Token::Type::Operator) {
// pop two operands
try {
Token operand1 = number_tokens.top();
number_tokens.pop();
Token operand2 = number_tokens.top();
number_tokens.pop();
std::map<std::string, OperatorContract>::iterator search = op_contracts.find(op.str);
if (search != op_contracts.end()) {
// Evaluate with function pointer
double val = search->second.func(std::stod(operand2.str), std::stod(operand1.str));
const std::string str = std::to_string(val);
number_tokens.push(Token{Token::Type::Number, str, 0, 0});
} else {
throw std::out_of_range("Operator: " + op.str + " not supported. Please try again!");
}
}
catch(...) {
throw;
}
rpn_tokens.pop_front();
} else if(op.type == Token::Type::UnaryFunc) {
try {
Token operand1 = number_tokens.top();
number_tokens.pop();
std::map<std::string, UnaryContract>::iterator search = unary_contracts.find(op.str);
if (search != unary_contracts.end()) {
// Evaluate with function pointer
double val = search->second.func(std::stod(operand1.str));
const std::string str = std::to_string(val);
number_tokens.push(Token{Token::Type::Number, str, 0, 0});
} else {
throw std::out_of_range("Operator: " + op.str + " not supported. Please try again!");
}
}
catch(...) {
throw;
}
rpn_tokens.pop_front();
}
else if(op.type == Token::Type::Number) {
number_tokens.push(op);
rpn_tokens.pop_front();
} else {
throw std::out_of_range("Mismatched operators. Please try again!");
}
}
if (number_tokens.size() == 1) {
return std::stod(number_tokens.top().str);
} else {
throw std::out_of_range("Invalid postfix expression. Please try again!");
}
} | [
"mohankumarsriram7@gmail.com"
] | mohankumarsriram7@gmail.com |
38b0e304b2fac3c8c9304c695f1d8db2feffebe3 | f8976de87d3be3fbcff061b4b981756924a05c42 | /c++/codeblocks/insertion_paralelo/main.cpp | a4711d0634a74f37a5dffd14b4016c42626993b7 | [] | no_license | blasdch18/AED | 90610bee2d12dd2fceddfeded445acc93303ef17 | a785f1aa7572bfcbe2f75ee1b302cd4961d4d057 | refs/heads/master | 2021-05-20T10:29:35.783024 | 2020-04-01T18:18:57 | 2020-04-01T18:18:57 | 252,247,723 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,250 | cpp | #include <iostream>
#include <time.h>
#include <thread>
#include <stdlib.h>
int num_ths =2;// thread::hardware_concurrency();
using namespace std;
void insertar(int *x,int i)
{ if(x[i]>x[i+1])
{ swap(x[i],x[i+1]);
}
while(x[i]<x[i-1]&&i>=1)
{
swap(x[i-1],x[i]);
i--;//retrocede
}
}
void insertsort(int *x,int SIZE)//------| ...
{
thread B,C;
for(int i=0;i<SIZE-1;i++)
{
insertar(x,i);
}
}
void mostrar(int* num, int tam)
{
for (int i = 0; i < tam; i++)
cout << num[i] << " ";
cout << endl;
}
int main()
{
int tam_vector;
cout << "ALGORITMOS DE ORDENACION PARALELO : INSERTION" << endl;
cout << "Ingresar cantidad de datos:";
cin >> tam_vector;
int *num=new int[tam_vector];
for (int j = 0; j<tam_vector; j++){
num[j] = rand() % 1000;
cout << num[j] << " ";
}
thread A[num_ths];
for (int i =0; i < tam_vector; ++i){
if(i%((tam_vector+1)/num_ths)==0){
A[i/((tam_vector+1)/num_ths)]= thread(insertsort,num,tam_vector);
}
}
for(int i=0;i<num_ths;i++){
A[i].join();
}
cout<<endl<<endl;
mostrar(num,tam_vector);
return 0;
}
| [
"blas.cruz@ucsp.edu.pe"
] | blas.cruz@ucsp.edu.pe |
1be5e5f76e52d7350f3901c0362c9445680b36ff | 774e42cd4d51513f6c45e5ffa0aa1f310a804e5b | /LinkedLists/10-ReverseLinkedList.cpp | 4a700117f2098a2e0ab9c5fff4c1c960a32f328b | [] | no_license | olcaycoban/Data-Structures | 9a3f57056cff413d7efdc7e31faee9455067e577 | 02e50093ab887faeb9d018a6cc28d5788d482161 | refs/heads/master | 2020-08-19T08:53:32.492413 | 2020-07-06T00:39:09 | 2020-07-06T00:39:09 | 215,900,796 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | cpp | //https://www.hackerrank.com/challenges/reverse-a-linked-list/problem
/*
* For your reference:
*
* SinglyLinkedListNode {
* int data;
* SinglyLinkedListNode* next;
* };
*
*/
SinglyLinkedListNode* reverse(SinglyLinkedListNode* head) {
SinglyLinkedListNode *prev = NULL;
SinglyLinkedListNode *current = head;
SinglyLinkedListNode *next;
while (current != NULL) {
next = current -> next;
current -> next = prev;
prev = current;
current = next;
}
head = prev;
return head;
} | [
"olcaycoban3737@gmail.com"
] | olcaycoban3737@gmail.com |
ebdffefd7df920e612b85d9e98e97645338c61c5 | 528dc610bb0513b255b613d6aaa0b59d4c9af9db | /Tool/Tcp Tool/TcpInterface/TcpInterface.h | 60bfd835169913e42e59d9514ebe48eaf59f915e | [] | no_license | hesitationer/3111 | 7b7e468de38950a1a357e16f643098630e33a68a | 4fba49c2c2a6a78f9b3c5a006df85e33cfeb8b96 | refs/heads/master | 2021-05-27T19:07:55.625866 | 2014-07-31T01:15:38 | 2014-07-31T01:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,388 | h | // TcpInterface.h : main header file for the TCPINTERFACE application
//
#if !defined(AFX_TCPINTERFACE_H__3E519F8E_E2DB_4999_A432_11A17D05D144__INCLUDED_)
#define AFX_TCPINTERFACE_H__3E519F8E_E2DB_4999_A432_11A17D05D144__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CTcpInterfaceApp:
// See TcpInterface.cpp for the implementation of this class
//
class CTcpInterfaceApp : public CWinApp
{
public:
CTcpInterfaceApp();
int m_iIndex;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTcpInterfaceApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CTcpInterfaceApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
extern CTcpInterfaceApp theApp;
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TCPINTERFACE_H__3E519F8E_E2DB_4999_A432_11A17D05D144__INCLUDED_)
| [
"harper@chroma.com.tw"
] | harper@chroma.com.tw |
a25ac5c7125448ecd3eac035b157e0ae5c4d4760 | 33496dbd6eebc1e3d1b61afbf7b47c9aa3c5bfb4 | /Bai_Thuc_Hanh_2019/BT_Thưc_Hanh_So_8/tempCodeRunnerFile.cpp | 68581a1fd25a8a9174aa722657096e91dfcdf921 | [] | no_license | viettrungIT3/Cpp_can_ban_2019 | 71155d09c2db767113397914cc0fccd6399f40f0 | 418c4c3d2a7b34f1b77afac179f269d3e9091cba | refs/heads/master | 2022-12-12T01:09:28.891831 | 2020-09-13T00:50:22 | 2020-09-13T00:50:22 | 295,051,632 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | #include <iostream>
#include <malloc.h>
using namespace std;
void nhap(int *n)
{
do
{
cout<<"Enter n:";
cin>>*n;
} while ( *n <= 0);
}
void InArr( int *a, int n)
{
cout<<"Nhap vao mang "<<n<<" so nguyen: "<<endl;
for ( int i = 0; i < n; i++)
{
cout<<"Nhap phan tu thu "<<i+1<<" :";
cin>>*(a+i);
}
}
void OutArr( int *a, int n)
{
for ( int i = 0; i < n; i++)
cout<<"\t"<<*(a+i);
}
void findMin( int *a, int n)
{
int vt, *min = a;
for(int i = 1; i < n; i++)
{
if(*min < *(min+i))
{
*min = *(min+i);
}
| [
"65119701+viettrungIT3@users.noreply.github.com"
] | 65119701+viettrungIT3@users.noreply.github.com |
9d1ea083001cc1d963481044e98984f91bc6f70f | 587f0fdd79b302e736ab530fcf7824cc7e4aa349 | /tetris/Renderer.cpp | 2465a9a8f747bd0ef2bdd8793d61a6afb817f6fe | [] | no_license | wvandyk/tetris | 47943740919815c33b45a3bdb548e85be49f3a73 | 6c609a709cae2be877d76be713da518c7536c678 | refs/heads/master | 2020-12-25T19:03:50.487573 | 2014-06-30T09:26:19 | 2014-06-30T09:26:19 | 18,192,629 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,072 | cpp | #include "Renderer.h"
#include "BlockAnimator.h"
Uint64 Renderer::getFrameLenth() {
return framelength;
}
bool Renderer::sdl_initall() {
char *base_path = SDL_GetBasePath();
if (base_path) {
data_path = SDL_strdup(base_path);
SDL_free(base_path);
}
else {
data_path = "./";
}
if (SDL_Init(SDL_INIT_EVERYTHING) != 0){
std::cout << "SDL_Init Error: " << SDL_GetError() << std::endl;
return false;
}
if (TTF_Init() == -1) {
std::cout << "TTF_Init: " << TTF_GetError() << std::endl;
return false;
}
font = TTF_OpenFont((data_path + "/res/kremlin.ttf").c_str(), 32);
if (!font) {
std::cout << "TTF_OpenFontL " << TTF_GetError() << std::endl;
return false;
}
win = SDL_CreateWindow("Tetris", 400, 100, 800, 768,
SDL_WINDOW_SHOWN);
if (win == nullptr){
std::cout << "SDL_CreateWindow Error: " << SDL_GetError() << std::endl;
return false;
}
ren = SDL_CreateRenderer(win, -1,
SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
if (ren == nullptr){
std::cout << "SDL_CreateRenderer Error: " << SDL_GetError() << std::endl;
return false;
}
SDL_Surface *bmp = SDL_LoadBMP((data_path + "/res/tetris.bmp").c_str());
if (bmp == nullptr){
std::cout << "SDL_LoadBMP Error: " << SDL_GetError() << std::endl;
return false;
}
tex = SDL_CreateTextureFromSurface(ren, bmp);
SDL_FreeSurface(bmp);
if (tex == nullptr){
std::cout << "SDL_CreateTextureFromSurface Error: "
<< SDL_GetError() << std::endl;
return false;
}
buf = SDL_CreateTexture(ren, SDL_PIXELFORMAT_ABGR8888, SDL_TEXTUREACCESS_STREAMING, 800, 768);
if (tex == nullptr){
std::cout << "SDL_CreateTexture error: " << SDL_GetError() << std::endl;
return false;
}
return true;
};
Renderer::Renderer(void)
: win(NULL),
ren(NULL),
tex(NULL),
buf(NULL),
framelength(0),
orange({ 255, 128, 0 }),
red({ 255, 0, 0 }),
yellow({ 255, 255, 0 }),
blue({ 0, 0, 255 }),
violet({ 255, 0, 255 }),
green({ 0, 255, 0 }),
cyan({ 0, 255, 255 }),
black({ 0, 0, 0 }),
white({ 255, 255, 255 }),
title({
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1, 1, 1, 0, 2, 2, 2, 0, 3, 3, 3, 0, 4, 4, 4, 0, 5, 0, 6, 6, 6, 0, 0,
0, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 3, 0, 0, 4, 0, 4, 0, 5, 0, 6, 0, 0, 0, 0,
0, 0, 0, 1, 0, 0, 2, 2, 2, 0, 0, 3, 0, 0, 4, 4, 4, 0, 5, 0, 6, 6, 6, 0, 0,
0, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 3, 0, 0, 4, 4, 0, 0, 5, 0, 0, 0, 6, 0, 0,
0, 0, 0, 1, 0, 0, 2, 2, 2, 0, 0, 3, 0, 0, 4, 0, 4, 0, 5, 0, 6, 6, 6, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
}) {
blocks = { &irect, &jrect, &lrect, &orect, &srect, &trect, &zrect, &grect, &brect };
for (int x = 0; x < 9; x++) {
blocks[x]->x = 31 * x;
blocks[x]->y = 0;
blocks[x]->h = 31;
blocks[x]->w = 31;
}
sdl_initall();
}
void Renderer::buildscr(void) {
for (int y = 0; y < 24; y++) {
for (int x = 0; x < 25; x++) {
SDL_Rect t;
t.x = x * 32;
t.y = y * 32;
t.w = 32;
t.h = 32;
SDL_RenderCopy(ren, tex, &grect, &t);
}
}
for (int y = 0; y < 20; y++) {
for (int x = 0; x < 10; x++) {
SDL_Rect t;
t.x = x * 32 + 64;
t.y = y * 32 + 64;
t.w = 32;
t.h = 32;
SDL_RenderCopy(ren, tex, &brect, &t);
}
}
}
void Renderer::drawplayfield(PlayField &p) {
for (int y = 0; y < 22; y++) {
for (int x = 0; x < 10; x++) {
SDL_Rect t;
t.x = x * 32 + 64;
t.y = y * 32;
t.w = 32;
t.h = 32;
int index = p.getBoardAt(x, y) - 1;
if (index == -1) { index = 8; }
SDL_RenderCopy(ren, tex, blocks[index], &t);
}
}
}
void Renderer::drawPlayfieldGrey(PlayField &p) {
for (int y = 0; y < 22; y++) {
for (int x = 0; x < 10; x++) {
SDL_Rect t;
t.x = x * 32 + 64;
t.y = y * 32;
t.w = 32;
t.h = 32;
int index = p.getBoardAt(x, y) - 1;
if (index == -1) {
index = 8;
}
else
{
index = 7;
}
SDL_RenderCopy(ren, tex, blocks[index], &t);
}
}
}
void Renderer::drawtetri(Tetri &t) {
if (&t == NULL) {
return;
}
for (int y = 0; y < 4; y++) {
for (int x = 0; x < 4; x++) {
SDL_Rect r;
r.x = (t.get_x() + x) * 32 + 64;
r.y = (t.get_y() + y) * 32;
r.w = 32;
r.h = 32;
int index = t.getFrame()[x + y * 4] - 1;
if (index >= 0) {
SDL_RenderCopy(ren, tex, blocks[index], &r);
}
}
}
}
void Renderer::drawRawTetri(Tetri &t, int x, int y) {
if (&t == NULL) {
return;
}
for (int yy = 0; yy < 4; yy++) {
for (int xx = 0; xx < 4; xx++) {
SDL_Rect r;
r.x = (x + xx) * 32 + 64;
r.y = (y + yy) * 32;
r.w = 32;
r.h = 32;
int index = t.getFrame()[xx + yy * 4] - 1;
if (index >= 0) {
SDL_RenderCopy(ren, tex, blocks[index], &r);
}
}
}
}
void Renderer::drawTopBorder() {
for (int y = 0; y < 2; y++) {
for (int x = 0; x < 25; x++) {
SDL_Rect t;
t.x = x * 32;
t.y = y * 32;
t.w = 32;
t.h = 32;
SDL_RenderCopy(ren, tex, &grect, &t);
}
}
}
void Renderer::renderAnimator(std::vector<Animator *> &animators) {
if (animators.size() > 0) {
int i = 0;
for (int i = 0; i < animators.size(); i++) {
animators[i]->render(*this);
}
}
}
void Renderer::update(PlayField &p, Tetri &t, GameLogic &g, std::vector<Animator *> &animators) {
Uint64 tick = SDL_GetTicks();
SDL_RenderClear(ren);
buildscr();
drawplayfield(p);
drawScoreArea();
drawNextBlock(g);
drawScore(g);
drawLevel(g);
drawLines(g);
drawtetri(t);
drawTopBorder();
renderAnimator(animators);
SDL_RenderPresent(ren);
framelength = SDL_GetTicks() - tick;
}
void Renderer::renderText(int x, int y, const char *text, SDL_Color &color) {
SDL_Rect text_rect;
SDL_Surface *text_surface;
SDL_Texture *text_texture;
text_rect.x = x;
text_rect.y = y;
if (TTF_SizeText(font, text, &text_rect.w, &text_rect.h) != 0) {
std::cout << "Error! : " << TTF_GetError() << std::endl;
}
if (!(text_surface = TTF_RenderText_Blended(font, text, color))) {
std::cout << "Error! : " << TTF_GetError() << std::endl;
}
else
{
text_texture = SDL_CreateTextureFromSurface(ren, text_surface);
if (!text_texture) {
std::cout << "ERROR! " << SDL_GetError();
}
SDL_FreeSurface(text_surface);
SDL_RenderCopy(ren, text_texture, NULL, &text_rect);
SDL_DestroyTexture(text_texture);
}
}
void Renderer::renderBlock(int x, int y, int w, int h, int block) {
SDL_Rect t;
t.x = x;
t.y = y;
t.w = w;
t.h = h;
if (block >= 0) {
SDL_RenderCopy(ren, tex, blocks[block], &t);
}
}
void Renderer::drawScoreArea(void) {
for (int y = 2; y < 22; y++) {
for (int x = 14; x < 23; x++) {
SDL_Rect t;
t.x = x * 32;
t.y = y * 32;
t.w = 32;
t.h = 32;
SDL_RenderCopy(ren, tex, &brect, &t);
}
}
}
void padTo(std::string &str, const size_t num, const char paddingChar = ' ')
{
if (num > str.size())
str.insert(0, num - str.size(), paddingChar);
}
void Renderer::drawScore(GameLogic &g) {
std::string scoreString;
scoreString = std::to_string(g.getScore());
padTo(scoreString, 12, '0');
int x = 14 * 32 + 2;
int y = 7 * 32;
renderText(x, y, "SCOrE:", white);
y = 8 * 32;
renderText(x, y, scoreString.c_str(), white);
}
void Renderer::drawLevel(GameLogic &g) {
std::string levelString;
levelString = std::to_string(g.getLevel());
padTo(levelString, 2, '0');
int x = 14 * 32 + 2;
int y = 10 * 32;
renderText(x, y, "LEVEL:", white);
y = 11 * 32;
renderText(x, y, levelString.c_str(), white);
}
void Renderer::drawLines(GameLogic &g) {
std::string linesString;
linesString = std::to_string(g.getLines());
padTo(linesString, 4, '0');
int x = 14 * 32 + 2;
int y = 13 * 32;
renderText(x, y, "LINES:", white);
y = 14 * 32;
renderText(x, y, linesString.c_str(), white);
}
void Renderer::drawNextBlock(GameLogic &g) {
int x = 14 * 32 + 2;
int y = 2 * 32;
Tetri *piece = g.getNextPiece();
renderText(x, y, "NEXT:", white);
y = 3 * 32;
drawRawTetri(*piece, 10 + piece->get_x(), 4 + piece->get_y());
}
void Renderer::titleScreen() {
int block;
SDL_SetRenderDrawColor(ren, 0, 0, 0, 255);
SDL_RenderClear(ren);
for (int y = 0; y < 24; y++) {
for (int x = 0; x < 25; x++) {
SDL_Rect t;
t.x = x * 32;
t.y = y * 32;
t.w = 31;
t.h = 31;
block = title[x + y * 25];
if (block > 0) {
SDL_RenderCopy(ren, tex, blocks[block], &t);
}
}
}
renderText(7 * 32, 11 * 32, "BY WYNAND VAN DYK", green);
renderText(6 * 32, 13 * 32, "PrESS SPACE TO PLAY", white);
renderText(6 * 32, 15 * 32, "PrESS ESCAPE TO QUIT", white);
SDL_RenderPresent(ren);
}
void Renderer::gameOverScreen() {
renderText(4 * 32, 5 * 32, "GAME OVER!", red);
renderText(3 * 32, 7 * 32, "PrESS ESCAPE", blue);
SDL_RenderPresent(ren);
}
Renderer::~Renderer(void) {
SDL_DestroyTexture(tex);
SDL_DestroyRenderer(ren);
SDL_DestroyWindow(win);
TTF_CloseFont(font);
font = NULL;
TTF_Quit();
SDL_Quit();
}
| [
"wvd@hetzner.co.za"
] | wvd@hetzner.co.za |
50c3c621de56b6d06bdec894cbd7debf6934036b | cf3f9398c4ab23847a01fef9843d8560b518319f | /Portfolio/BF/BF/PoolMgr.h | d5959578d600abae6e65571cb6652d5076522424 | [] | no_license | beanflour/basic | 6d85dd6873154abe3e41d71ede415a7b8fbf3463 | 491dd2dd8b213d15a0edc32a485c496bf8290aff | refs/heads/master | 2020-05-23T00:31:40.790314 | 2018-05-23T08:13:28 | 2018-05-23T08:13:28 | 41,468,999 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,800 | h | #pragma once
#include <vector>
#include <Windows.h>
#include "PoolBase.h"
#include "AutoLock.h"
namespace BF
{
typedef std::vector<int> CONT_BOOL;
typedef std::vector<CPoolBase*> CONT_POOLBASEPTR;
typedef bool (*pSetRule)(CPoolBase*);
#define D_RETURN_FAIL 2147483646
namespace EPoolType
{
enum Enum
{
Object, // 지역변수
Heap, // 동적할당 데이터
};
}
/*
- 데이터 관리용 클래스.
사용 조건은 다음과 같다.
1. PoolMgr를 생성할때 동적할당이 필요한 데이터만 집어넣을것인지 아닌지 정한다.
- 메모리 해제를 해주기 위함이며 두가지를 섞어 넣을경우 에러가 발생한다.
1. CPoolBase를 상속받은 데이터만 큐에 등록할 수 있다.
2. 사용자는 사용큐에 등록된 데이터에만 접근 할 수 있다.
3. 사용큐에 새로운 데이터를 등록하는경우 Enter가 호출된다.
4. 사용큐에서 데이터를 삭제하려 할 때 실제 삭제가 되는것이 아니라 대기큐로 이동되며 Exit가 호출된다
5. 사용큐에는 큐 index와 큐에 들어간 메모리정보로 접근 할 수 있다.
6. AllDelete의 경우 정말 삭제한다. 단, 동적할당 데이터의 경우 메모리 해제까지 해준다.
*/
class CPoolMgr
{
public:
CPoolMgr(UINT _nMaxSize, EPoolType::Enum _eDataType = EPoolType::Object);
~CPoolMgr();
bool InitPool(UINT const &_nMaxSize, bool const &_b_Reset = false);
void AddWaitObject(CPoolBase* pObject);
void AddWaitObjectArray(CPoolBase *_pObjectArray[], UINT const &_unSize);
/*
대기큐에서 사용큐로 이동시키는 함수.
매개변수를 넣지 않으면 대기큐의 0번에서부터 순서대로 이동됨.
매개변수1은 초기화 과련 데이터를 주고받을 LPVOID로 형변환해서 초기화에 활용한다. 안넣어두 됨.
매개변수2는 함수 포인터로 bool name(CPoolBase*)형의 함수를 사용할수 있으며
람다를 사용할때엔 [](CPoolBase *_pPoolBase)->bool{}형식으로 사용 가능하다.
넣어준 함수 포인터는 규칙으로. return true에 해당하는 데이터를 사용큐로 이동시킨다.
이것을 사용하여 원하는 데이터를 사용큐로 이동 가능하다.
*/
CPoolBase* GetNewObject(LPVOID _p = nullptr, pSetRule pRuleFunc = nullptr);
/*
GetNewObject와 마찬가지로 규칙에 해당하는 오브젝트를 사용큐에서 대기큐로 옮긴다.
디폴트 매개변수가 없음.
규칙에 해당하는 모든 사용큐 데이터를 대기큐로 옮긴다.( 하나만 옮기는게 아님)
*/
bool DelObjects(pSetRule pRulFunc);
// 사용큐에서 해당 index에 해당하는 데이터를 가져오기 위한 함수
CPoolBase* GetObject(UINT const &_Index);
CPoolBase* operator [](UINT i) ;
// 오브젝트 삭제(사용컨테이너에서 총 컨테이너로 옮김)
void DelObject(CPoolBase const * const _obj);
// 이게 사용될 일은 없을것 같지만 index로 접근해서 삭제.
void DelObject(UINT const &_unIndex);
// 전체 삭제. 아예 대기큐 데이터까지 삭제한다.
void AllDelete();
void SetWaitLimitSize(UINT const &_un_MaxLimit);
size_t GetWaitLimitSize() const;
UINT GetWaitSize() const;
UINT GetUseSize() const;
UINT GetObjectNumber(CPoolBase const * const _obj) const;
private:
EPoolType::Enum me_DataType;
CONT_POOLBASEPTR mCont_Ptr;
CONT_POOLBASEPTR mCont_UsePtr;
// 대기큐 매칭큐. 매칭되는 대기큐에 데이터가 현재 사용중인지 아닌지를 알려줌.
CONT_BOOL mCont_WaitQueue;
// 사용큐 매칭큐. 매칭되는 사용큐의 데이터의 대기 컨테이너 위치를 알려줌.
CONT_BOOL mCont_UseQueue;
BF::S_CS m_cs;
};
} | [
"beanflours@gmail.com"
] | beanflours@gmail.com |
5affbe45bcbffd6812435af9c62e525e131deb4c | 9426ad6e612863451ad7aac2ad8c8dd100a37a98 | /Samples/smplWndCtrl/smplWndCtrl.cpp | 51dc9cfd89468a870f01a1143e0ac332d80c48d6 | [] | no_license | piroxiljin/ullib | 61f7bd176c6088d42fd5aa38a4ba5d4825becd35 | 7072af667b6d91a3afd2f64310c6e1f3f6a055b1 | refs/heads/master | 2020-12-28T19:46:57.920199 | 2010-02-17T01:43:44 | 2010-02-17T01:43:44 | 57,068,293 | 0 | 0 | null | 2016-04-25T19:05:41 | 2016-04-25T19:05:41 | null | WINDOWS-1251 | C++ | false | false | 832 | cpp |
#ifdef _DEBUG
#pragma comment(lib,"..\\..\\ULLib\\Lib\\uULLibd.lib")
#else
#pragma comment(lib,"..\\..\\ULLib\\Lib\\uULLib.lib")
#endif
#include "smplWndCtrl.h"
#include "..\..\ULLib\Include\ULApp.h"
#include ".\mainframe.h"
#include "..\..\ULLib\Include\ULStates.h"
class CCWApp:public ULApps::CULApp
{
public:
CCWApp():CULApp()
{
LOGFILE_ADD(_T("CCWApp"));
}
~CCWApp()
{
#ifdef _DEBUG
delete m_pMainWnd;m_pMainWnd=NULL;
#endif
LOGFILE_SAVE(_T("CCWApp"));
}
virtual BOOL InitInstance()
{
CMainFrame* m_pMainFrame=new CMainFrame;
m_pMainFrame->Create(_T("Пример CtrlWnd"),IDR_MENU_MAIN,
0,0,COLOR_WINDOWFRAME);
m_pMainFrame->ShowWindow(m_nCmdShow);
m_pMainFrame->UpdateWindow();
m_pMainWnd=m_pMainFrame;
return (*m_pMainFrame!=NULL);
}
};
CCWApp g_app;
| [
"UncleLab@a8b69a72-a546-0410-9fb4-5106a01aa11f"
] | UncleLab@a8b69a72-a546-0410-9fb4-5106a01aa11f |
7acf84aa600851d1ee032a184c4192a34e61d6b0 | e277300498af8583f70d04adc4c7c4e366f97975 | /AsteroidB.hpp | e53fc9ca13462cb08004561ad4efceb8ddf6ac5a | [] | no_license | sukatto/spaceship-demo | c997a791c3138deede1b622dc6aa36e74d8948d7 | 3c83a24f725be2cb2dc097c77f7e81efd8f7b94a | refs/heads/master | 2021-08-08T13:57:17.508917 | 2018-09-29T19:33:34 | 2018-09-29T19:33:34 | 133,902,440 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | hpp | #ifndef ASTEROIDB_H
#define ASTEROIDB_H
#include <SFML/Graphics.hpp>
#include "Asteroid.hpp"
using namespace std;
class AsteroidB: public Asteroid
{
public:
AsteroidB();
AsteroidB(float initX, float initY, float angle, float linSpeed);
// setter and getter functions for the x and y coordinates of the first point on the asteroid
virtual void setLocation(float newX, float newY);
};
# endif
| [
"norton.scott.t@gmail.com"
] | norton.scott.t@gmail.com |
58ef8dfb131ddba6add1848eb240efd65ede8803 | 5aad40ba5a1eb29799c1ad1c21495faa07e99b36 | /src/nv_nvb/nv_nvbfactory.h | 8fae99ce67ee059192af093599d53cf6de1504a2 | [] | no_license | q4a/navidia_proj | 3525bcfdb12dc20dcecf08f2603324feceef7394 | 32c839744ad849f8d4d0273c635c4d601cc1980f | refs/heads/master | 2023-04-16T10:44:39.466782 | 2019-11-30T10:26:47 | 2019-11-30T10:26:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,603 | h | /*********************************************************************NVMH1****
File:
nv_nvbfactory.h
Copyright (C) 1999, 2002 NVIDIA Corporation
This file is provided without support, instruction, or implied warranty of any
kind. NVIDIA makes no guarantee of its fitness for a particular purpose and is
not liable under any circumstances for any damages or loss whatsoever arising
from the use or inability to use this file or items derived from it.
Comments:
******************************************************************************/
#ifndef _nv_nvbfactory_h_
#define _nv_nvbfactory_h_
#include "NVBBreaker.h"
extern long gNVB_options;
struct vert_opt;
struct vert_opt
{
vert_opt() { num_tmaps = 0; v = vec3_null; n = vec3_null; c = vec4_null; t = vec2_null; smg_id = NV_BAD_IDX; face_idx = NV_BAD_IDX; };
vert_opt(const vert_opt & face);
~vert_opt();
unsigned int smg_id;
unsigned int face_idx;
vec3 v;
vec2 t;
vec3 n;
vec4 c;
vec4 weights;
nv_idx bones[4];
vec3 v_offset[4];
unsigned int num_tmaps;
vec3 * tmaps;
vert_opt & operator= (const vert_opt & face);
};
typedef std::map<unsigned int,vert_opt> FaceMapType;
typedef FaceMapType::value_type FaceMapPair;
typedef FaceMapType::iterator FaceMapIt;
// keep track of duplicated vertices to limit vertex duplication
// when smoothing group defers...
struct idxvert_opt
{
unsigned int new_idx;
vert_opt face;
};
typedef std::multimap<unsigned int, idxvert_opt> FaceMMapType;
typedef FaceMMapType::value_type FaceMMapPair;
typedef FaceMMapType::iterator FaceMMapIt;
typedef struct _mesh
{
unsigned int count;
FaceMapType face_map;
FaceMMapType face_mmap;
} mesh_opt;
typedef std::list<nv_idx> IdxType;
typedef std::map<unsigned int,IdxType*> TriMapType;
typedef TriMapType::value_type TriMapPair;
typedef TriMapType::iterator TriMapIt;
typedef std::map<unsigned int,mesh_opt*> MatFaceMapType;
typedef MatFaceMapType::value_type MatFaceMapPair;
typedef MatFaceMapType::iterator MatFaceMapIt;
typedef struct _segmesh
{
TriMapType tri_map;
MatFaceMapType matface_map;
} segmesh_opt;
typedef std::map<nv_node*,segmesh_opt*> MeshMapType;
typedef MeshMapType::value_type MeshMapPair;
typedef MeshMapType::iterator MeshMapIt;
typedef MeshMapType::const_iterator MeshMapCIt;
class NVBFactory : public NVBBreaker
{
public:
// Constructor/Destructor
NVBFactory();
virtual ~NVBFactory();
virtual bool NewScene (const NVBSceneInfo& scene);
virtual bool NewCamera (const NVBCameraInfo& camera);
virtual bool NewLight (const NVBLightInfo& light);
virtual bool NewMaterial (const NVBMaterialInfo& material);
virtual bool NewTexture (const NVBTextureInfo& texture);
virtual bool NewMesh (const NVBMeshInfo& mesh);
virtual bool NewShape (const NVBShapeInfo& shape);
virtual bool NewHelper (const NVBHelperInfo& helper);
virtual bool NewController (const NVBControllerInfo& controller);
virtual bool NewMotion (const NVBMotionInfo& motion);
virtual bool EndImport();
virtual bool NVBImportError (const char* errortext, udword errorcode);
virtual void NVBLog (TLogLevel level, char *fmt, ...);
bool AddMeshModel (nv_model * model,const NVBMeshInfo& mesh, bool skin = false);
nv_node * SetNode (nv_node * node, const NVBBaseInfo & info);
void SetScene (nv_scene * scene);
virtual void SetLogCallback(TloggingCB cbfn, unsigned long userparam=0);
private:
nv_scene * _scene;
unsigned int _num_new_maps;
unsigned int _num_maps;
typedef std::multimap<unsigned int,nv_node*> IDNodeMapType;
typedef IDNodeMapType::value_type IDNodePair;
typedef IDNodeMapType::iterator IDNodeMapIt;
IDNodeMapType _idnodemap;
MeshMapType _skinmeshmap;
MeshMapType _meshmap;
// Logging callback. _loguserparam is when the callback need to have an id to know that it comes from the factory
unsigned long _loguserparam;
TloggingCB _logcb;
};
#endif // _nv_nvbfactory_h_
| [
"xtKnightMM@iCloud.com"
] | xtKnightMM@iCloud.com |
e164303827196d72d6cdc2569fab48dafd831909 | bbc3d871f1260d1d9d07c1235be0e2d619b1c25b | /src/handler/test/TestHandler.cpp | 0c2f5bbb68313e7eac7e12ce3d7bf68291978252 | [
"Apache-2.0"
] | permissive | r4dx/WiFiButton | a14039f4fbe45e0f22e48d0db07547beda2e013e | 839dc98a3af1b517b227062d1adce56d21a53e72 | refs/heads/master | 2021-05-03T18:31:56.698979 | 2018-02-26T12:49:22 | 2018-02-26T12:49:22 | 120,412,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,478 | cpp | #include "TestHandler.h"
#include "common/sentinel/storage/eeprom/EEPROM.h"
namespace wifi_button {
namespace handler {
void TestHandler::setPath(sentinel::web::Method method, std::shared_ptr<std::string> uri) {
this->uri = uri;
this->method = method;
}
bool TestHandler::canHandle() const {
return uri->compare("/test") == 0 && method == sentinel::web::Method::GET;
}
TestHandler::TestHandler(sentinel::log::Logger& logger) :
logger(logger),
sender(nullptr),
uri(std::shared_ptr<std::string>()),
method(sentinel::web::Method::DELETE) { }
void TestHandler::setArgProvider(const sentinel::web::IWebArgProvider& argProvider) {
// not required here
}
void TestHandler::setSender(sentinel::web::IWebSender& sender) {
this->sender = &sender;
}
std::string to_string(int number) {
char buff[256];
itoa(number, buff, 10);
return std::string(buff);
}
bool TestHandler::handle() {
logger.info("Test handler");
sentinel::storage::EEPROM eeprom(SDA, SCL, 0x50);
eeprom.move(5000);
eeprom.write_string("Hello, happy world");
eeprom.move(5000);
std::string result = eeprom.read_string();
sender->send(200, "text/html", "OK: " + result);
return true;
}
}
} | [
"r4dx@bk.ru"
] | r4dx@bk.ru |
8042df9c81380487ce23219c0ea542cc9e4d3d53 | 3cf9e141cc8fee9d490224741297d3eca3f5feff | /C++ Benchmark Programs/Benchmark Files 1/classtester/autogen-sources/source-7649.cpp | a716eb9cf6d4b4b40cc36a2e6278ae3a32a09e4a | [] | no_license | TeamVault/tauCFI | e0ac60b8106fc1bb9874adc515fc01672b775123 | e677d8cc7acd0b1dd0ac0212ff8362fcd4178c10 | refs/heads/master | 2023-05-30T20:57:13.450360 | 2021-06-14T09:10:24 | 2021-06-14T09:10:24 | 154,563,655 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,895 | cpp | struct c0;
void __attribute__ ((noinline)) tester0(c0* p);
struct c0
{
bool active0;
c0() : active0(true) {}
virtual ~c0()
{
tester0(this);
active0 = false;
}
virtual void f0(){}
};
void __attribute__ ((noinline)) tester0(c0* p)
{
p->f0();
}
struct c1;
void __attribute__ ((noinline)) tester1(c1* p);
struct c1
{
bool active1;
c1() : active1(true) {}
virtual ~c1()
{
tester1(this);
active1 = false;
}
virtual void f1(){}
};
void __attribute__ ((noinline)) tester1(c1* p)
{
p->f1();
}
struct c2;
void __attribute__ ((noinline)) tester2(c2* p);
struct c2 : virtual c0
{
bool active2;
c2() : active2(true) {}
virtual ~c2()
{
tester2(this);
c0 *p0_0 = (c0*)(c2*)(this);
tester0(p0_0);
active2 = false;
}
virtual void f2(){}
};
void __attribute__ ((noinline)) tester2(c2* p)
{
p->f2();
if (p->active0)
p->f0();
}
struct c3;
void __attribute__ ((noinline)) tester3(c3* p);
struct c3 : virtual c2, virtual c0
{
bool active3;
c3() : active3(true) {}
virtual ~c3()
{
tester3(this);
c0 *p0_0 = (c0*)(c2*)(c3*)(this);
tester0(p0_0);
c0 *p0_1 = (c0*)(c3*)(this);
tester0(p0_1);
c2 *p2_0 = (c2*)(c3*)(this);
tester2(p2_0);
active3 = false;
}
virtual void f3(){}
};
void __attribute__ ((noinline)) tester3(c3* p)
{
p->f3();
if (p->active0)
p->f0();
if (p->active2)
p->f2();
}
struct c4;
void __attribute__ ((noinline)) tester4(c4* p);
struct c4 : c3, c1, virtual c0
{
bool active4;
c4() : active4(true) {}
virtual ~c4()
{
tester4(this);
c0 *p0_0 = (c0*)(c2*)(c3*)(c4*)(this);
tester0(p0_0);
c0 *p0_1 = (c0*)(c3*)(c4*)(this);
tester0(p0_1);
c0 *p0_2 = (c0*)(c4*)(this);
tester0(p0_2);
c1 *p1_0 = (c1*)(c4*)(this);
tester1(p1_0);
c2 *p2_0 = (c2*)(c3*)(c4*)(this);
tester2(p2_0);
c3 *p3_0 = (c3*)(c4*)(this);
tester3(p3_0);
active4 = false;
}
virtual void f4(){}
};
void __attribute__ ((noinline)) tester4(c4* p)
{
p->f4();
if (p->active1)
p->f1();
if (p->active3)
p->f3();
if (p->active0)
p->f0();
if (p->active2)
p->f2();
}
int __attribute__ ((noinline)) inc(int v) {return ++v;}
int main()
{
c0* ptrs0[25];
ptrs0[0] = (c0*)(new c0());
ptrs0[1] = (c0*)(c2*)(new c2());
ptrs0[2] = (c0*)(c2*)(c3*)(new c3());
ptrs0[3] = (c0*)(c3*)(new c3());
ptrs0[4] = (c0*)(c2*)(c3*)(c4*)(new c4());
ptrs0[5] = (c0*)(c3*)(c4*)(new c4());
ptrs0[6] = (c0*)(c4*)(new c4());
for (int i=0;i<7;i=inc(i))
{
tester0(ptrs0[i]);
delete ptrs0[i];
}
c1* ptrs1[25];
ptrs1[0] = (c1*)(new c1());
ptrs1[1] = (c1*)(c4*)(new c4());
for (int i=0;i<2;i=inc(i))
{
tester1(ptrs1[i]);
delete ptrs1[i];
}
c2* ptrs2[25];
ptrs2[0] = (c2*)(new c2());
ptrs2[1] = (c2*)(c3*)(new c3());
ptrs2[2] = (c2*)(c3*)(c4*)(new c4());
for (int i=0;i<3;i=inc(i))
{
tester2(ptrs2[i]);
delete ptrs2[i];
}
c3* ptrs3[25];
ptrs3[0] = (c3*)(new c3());
ptrs3[1] = (c3*)(c4*)(new c4());
for (int i=0;i<2;i=inc(i))
{
tester3(ptrs3[i]);
delete ptrs3[i];
}
c4* ptrs4[25];
ptrs4[0] = (c4*)(new c4());
for (int i=0;i<1;i=inc(i))
{
tester4(ptrs4[i]);
delete ptrs4[i];
}
return 0;
}
| [
"ga72foq@mytum.de"
] | ga72foq@mytum.de |
4b403debea4a4bcc1107617b4e59582c5077b838 | b11846cb61d1157b468df1b042d727ed7f586f46 | /protos.cpp | a63e3d116997082559a99666dd09680059615b51 | [] | no_license | LinXin04/C-Primer | da3bdcf0a6e6f31dc9f6eba5a95cdf6f0867b361 | 52d6e07c90d9cb82bce1f59708ab597a9d7633fa | refs/heads/master | 2020-12-31T07:42:51.501260 | 2017-05-06T04:26:47 | 2017-05-06T04:26:47 | 86,577,217 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | cpp | #include <iostream>
using namespace std;
void cheers(int);
double cube(double);
int main()
{
cheers(5);
cout << "Give me a number: ";
double side;
cin >> side;
double volume = cube(side);
cout << "A" << side << "-foot cube has a volume of ";
cout << volume << " cubic feet.\n";
cheers(cube(2));
return 0;
}
void cheers(int n)
{
for (int i = 0; i < n; i++)
cout << "Cheers!";
cout << endl;
}
double cube(double x)
{
return x*x*x;
} | [
"1647399840@qq.com"
] | 1647399840@qq.com |
87a0f4ecd6abfba2fe7dcce621ecd63939d03322 | 2a6323b3ea6bb261d9f4f4f9a6781b4c178d9360 | /source/utils/CarlaStringList.hpp | b670f23faa2585c84979bb5cd335a076d6301943 | [] | no_license | laanwj/Carla | 2a843e5058d93679c2abd57e51ee81878fbbab7b | 38b5a04f3ca7a1814155d5e171b2900ca73b0929 | refs/heads/master | 2021-01-18T00:36:45.434515 | 2014-10-13T20:19:43 | 2014-10-13T20:19:43 | 23,951,642 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,769 | hpp | /*
* Carla String List
* Copyright (C) 2014 Filipe Coelho <falktx@falktx.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 2 of
* the License, or 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.
*
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/
#ifndef CARLA_STRING_LIST_HPP_INCLUDED
#define CARLA_STRING_LIST_HPP_INCLUDED
#include "LinkedList.hpp"
// -----------------------------------------------------------------------
// Helper class to manage the lifetime of a "char**" object
class CharStringListPtr
{
public:
CharStringListPtr() noexcept
: fCharList(nullptr) {}
CharStringListPtr(const char* const* const c) noexcept
: fCharList(c) {}
CharStringListPtr(const CharStringListPtr& ptr) noexcept
: fCharList(nullptr)
{
copy(ptr.fCharList);
}
CharStringListPtr(const LinkedList<const char*>& list) noexcept
: fCharList(nullptr)
{
copy(list);
}
~CharStringListPtr() noexcept
{
clear();
}
// -------------------------------------------------------------------
operator const char* const*() const noexcept
{
return fCharList;
}
CharStringListPtr& operator=(const char* const* const c) noexcept
{
clear();
fCharList = c;
return *this;
}
CharStringListPtr& operator=(const CharStringListPtr& ptr) noexcept
{
clear();
copy(ptr.fCharList);
return *this;
}
CharStringListPtr& operator=(const LinkedList<const char*>& list) noexcept
{
clear();
copy(list);
return *this;
}
// -------------------------------------------------------------------
protected:
void clear() noexcept
{
if (fCharList == nullptr)
return;
for (int i=0; fCharList[i] != nullptr; ++i)
delete[] fCharList[i];
delete[] fCharList;
fCharList = nullptr;
}
void copy(const char* const* const c) noexcept
{
CARLA_SAFE_ASSERT_RETURN(c != nullptr,);
CARLA_SAFE_ASSERT_RETURN(fCharList == nullptr,);
std::size_t count = 0;
for (; c[count] != nullptr; ++count) {}
CARLA_SAFE_ASSERT_RETURN(count > 0,);
const char** tmpList;
try {
tmpList = new const char*[count+1];
} CARLA_SAFE_EXCEPTION_RETURN("CharStringListPtr::copy",);
tmpList[count] = nullptr;
for (std::size_t i=0; i<count; ++i)
{
tmpList[i] = carla_strdup_safe(c[i]);
CARLA_SAFE_ASSERT_BREAK(tmpList[i] != nullptr);
}
fCharList = tmpList;
}
void copy(const LinkedList<const char*>& list) noexcept
{
CARLA_SAFE_ASSERT_RETURN(fCharList == nullptr,);
const std::size_t count(list.count());
CARLA_SAFE_ASSERT_RETURN(count > 0,);
const char** tmpList;
try {
tmpList = new const char*[count+1];
} CARLA_SAFE_EXCEPTION_RETURN("CharStringListPtr::copy",);
tmpList[count] = nullptr;
std::size_t i=0;
for (LinkedList<const char*>::Itenerator it = list.begin(); it.valid(); it.next(), ++i)
{
tmpList[i] = carla_strdup_safe(it.getValue());
CARLA_SAFE_ASSERT_BREAK(tmpList[i] != nullptr);
}
CARLA_SAFE_ASSERT(i == count);
fCharList = tmpList;
}
// -------------------------------------------------------------------
private:
const char* const* fCharList;
};
// -----------------------------------------------------------------------
// CarlaStringList
class CarlaStringList : public LinkedList<const char*>
{
public:
CarlaStringList() noexcept
: LinkedList<const char*>() {}
CarlaStringList(const CarlaStringList& list) noexcept
: LinkedList<const char*>()
{
for (Itenerator it = list.begin(); it.valid(); it.next())
LinkedList<const char*>::append(carla_strdup_safe(it.getValue()));
}
~CarlaStringList() noexcept override
{
clear();
}
// -------------------------------------------------------------------
void clear() noexcept
{
for (Itenerator it = begin(); it.valid(); it.next())
{
if (const char* const string = it.getValue())
delete[] string;
}
LinkedList<const char*>::clear();
}
// -------------------------------------------------------------------
bool append(const char* const string) noexcept
{
CARLA_SAFE_ASSERT_RETURN(string != nullptr, false);
if (const char* const stringDup = carla_strdup_safe(string))
{
if (LinkedList<const char*>::append(stringDup))
return true;
delete[] stringDup;
}
return false;
}
bool appendAt(const char* const string, const Itenerator& it) noexcept
{
CARLA_SAFE_ASSERT_RETURN(string != nullptr, false);
if (const char* const stringDup = carla_strdup_safe(string))
{
if (LinkedList<const char*>::appendAt(stringDup, it))
return true;
delete[] stringDup;
}
return false;
}
bool insert(const char* const string) noexcept
{
CARLA_SAFE_ASSERT_RETURN(string != nullptr, false);
if (const char* const stringDup = carla_strdup_safe(string))
{
if (LinkedList<const char*>::insert(stringDup))
return true;
delete[] stringDup;
}
return false;
}
bool insertAt(const char* const string, const Itenerator& it) noexcept
{
CARLA_SAFE_ASSERT_RETURN(string != nullptr, false);
if (const char* const stringDup = carla_strdup_safe(string))
{
if (LinkedList<const char*>::insertAt(stringDup, it))
return true;
delete[] stringDup;
}
return false;
}
// -------------------------------------------------------------------
void remove(Itenerator& it) noexcept
{
if (const char* const string = it.getValue())
delete[] string;
LinkedList<const char*>::remove(it);
}
bool removeOne(const char* const string) noexcept
{
CARLA_SAFE_ASSERT_RETURN(string != nullptr, false);
for (Itenerator it = begin(); it.valid(); it.next())
{
const char* const stringComp(it.getValue());
CARLA_SAFE_ASSERT_CONTINUE(stringComp != nullptr);
if (std::strcmp(string, stringComp) != 0)
continue;
delete[] stringComp;
LinkedList<const char*>::remove(it);
return true;
}
return false;
}
void removeAll(const char* const string) noexcept
{
CARLA_SAFE_ASSERT_RETURN(string != nullptr,);
for (Itenerator it = begin(); it.valid(); it.next())
{
const char* const stringComp(it.getValue());
CARLA_SAFE_ASSERT_CONTINUE(stringComp != nullptr);
if (std::strcmp(string, stringComp) != 0)
continue;
delete[] stringComp;
LinkedList<const char*>::remove(it);
}
}
// -------------------------------------------------------------------
CharStringListPtr toCharStringListPtr() const noexcept
{
return CharStringListPtr(*this);
}
CarlaStringList& operator=(const char* const* const charStringList) noexcept
{
clear();
CARLA_SAFE_ASSERT_RETURN(charStringList != nullptr, *this);
for (int i=0; charStringList[i] != nullptr; ++i)
{
if (const char* const string = carla_strdup_safe(charStringList[i]))
LinkedList<const char*>::append(string);
}
return *this;
}
CarlaStringList& operator=(const CarlaStringList& list) noexcept
{
clear();
for (Itenerator it = list.begin(); it.valid(); it.next())
{
if (const char* const string = carla_strdup_safe(it.getValue()))
LinkedList<const char*>::append(string);
}
return *this;
}
CARLA_PREVENT_VIRTUAL_HEAP_ALLOCATION
};
// -----------------------------------------------------------------------
#endif // CARLA_STRING_LIST_HPP_INCLUDED
| [
"falktx@gmail.com"
] | falktx@gmail.com |
866d898f9ed7b706c9a73f785ba3e8bf55a53949 | 6891cd2b3e5f69392ad434a818ccfb152a8f2b11 | /src/CanvasHandler.cpp | e18ba8993313297a31be4c55032408781a91b35c | [] | no_license | nicanor-romero/CommandPattern | 36fabfcfe7f028ef966f11176cb1402a7aa22c39 | 2ae3d0d0c568a9f475a5253855b61decb955dc58 | refs/heads/master | 2020-03-26T04:16:58.333513 | 2018-08-13T10:08:41 | 2018-08-13T10:08:41 | 144,496,051 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,241 | cpp | #include <QApplication>
#include <QDebug>
#include <QIcon>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickStyle>
#include "Model.h"
#include "ProcessingEngine.h"
#include "QVTKFramebufferObjectItem.h"
#include "QVTKFramebufferObjectRenderer.h"
#include "CanvasHandler.h"
CanvasHandler::CanvasHandler(int argc, char **argv)
{
QApplication app(argc, argv);
QQmlApplicationEngine engine;
app.setApplicationName("QtVTK");
app.setWindowIcon(QIcon(":/resources/bq.ico"));
// Register QML types
qmlRegisterType<QVTKFramebufferObjectItem>("QtVTK", 1, 0, "VtkFboItem");
// Create classes instances
m_processingEngine = std::shared_ptr<ProcessingEngine>(new ProcessingEngine());
// Expose C++ classes to QML
QQmlContext* ctxt = engine.rootContext();
ctxt->setContextProperty("canvasHandler", this);
QQuickStyle::setStyle("Material");
// Load main QML file
engine.load(QUrl("qrc:/resources/main.qml"));
// Get reference to the QVTKFramebufferObjectItem created in QML
// We cannot use smart pointers because this object must be deleted by QML
QObject *rootObject = engine.rootObjects().first();
m_vtkFboItem = rootObject->findChild<QVTKFramebufferObjectItem*>("vtkFboItem");
// Give the vtkFboItem reference to the CanvasHandler
if (m_vtkFboItem)
{
qDebug() << "CanvasHandler::CanvasHandler: setting vtkFboItem to CanvasHandler";
m_vtkFboItem->setProcessingEngine(m_processingEngine);
connect(m_vtkFboItem, &QVTKFramebufferObjectItem::rendererInitialized, this, &CanvasHandler::startApplication);
connect(m_vtkFboItem, &QVTKFramebufferObjectItem::isModelSelectedChanged, this, &CanvasHandler::isModelSelectedChanged);
connect(m_vtkFboItem, &QVTKFramebufferObjectItem::selectedModelPositionXChanged, this, &CanvasHandler::selectedModelPositionXChanged);
connect(m_vtkFboItem, &QVTKFramebufferObjectItem::selectedModelPositionYChanged, this, &CanvasHandler::selectedModelPositionYChanged);
connect(m_vtkFboItem, &QVTKFramebufferObjectItem::canUndoChanged, this, &CanvasHandler::canUndoChanged);
connect(m_vtkFboItem, &QVTKFramebufferObjectItem::canRedoChanged, this, &CanvasHandler::canRedoChanged);
}
else
{
qCritical() << "CanvasHandler::CanvasHandler: Unable to get vtkFboItem instance";
return;
}
int rc = app.exec();
qDebug() << "CanvasHandler::CanvasHandler: Execution finished with return code:" << rc;
}
void CanvasHandler::startApplication()
{
qDebug() << "CanvasHandler::startApplication()";
disconnect(m_vtkFboItem, &QVTKFramebufferObjectItem::rendererInitialized, this, &CanvasHandler::startApplication);
}
void CanvasHandler::closeApplication()
{
QApplication::instance()->quit();
}
void CanvasHandler::openModel(QUrl path)
{
qDebug() << "CanvasHandler::openModel():" << path;
if (path.isLocalFile())
{
// Remove the "file:///" if present
path = path.toLocalFile();
}
m_vtkFboItem->addModelFromFile(path);
}
void CanvasHandler::deleteSelectedModel()
{
qDebug() << "CanvasHandler::deleteSelectedModel()";
m_vtkFboItem->deleteSelectedModel();
}
bool CanvasHandler::isModelExtensionValid(QUrl modelPath)
{
if (modelPath.toString().toLower().endsWith(".stl") || modelPath.toString().toLower().endsWith(".obj"))
{
return true;
}
return false;
}
void CanvasHandler::mousePressEvent(int button, int screenX, int screenY)
{
qDebug() << "CanvasHandler::mousePressEvent()";
m_vtkFboItem->selectModel(screenX, screenY);
}
void CanvasHandler::mouseMoveEvent(int button, int screenX, int screenY)
{
if (!m_vtkFboItem->isModelSelected())
{
return;
}
if (!m_draggingMouse)
{
m_draggingMouse = true;
m_previousWorldX = m_vtkFboItem->getSelectedModelPositionX();
m_previousWorldY = m_vtkFboItem->getSelectedModelPositionY();
}
CommandModelTranslate::TranslateParams_t translateParams;
translateParams.screenX = screenX;
translateParams.screenY = screenY;
m_vtkFboItem->translateModel(translateParams, true);
}
void CanvasHandler::mouseReleaseEvent(int button, int screenX, int screenY)
{
qDebug() << "CanvasHandler::mouseReleaseEvent()";
if (!m_vtkFboItem->isModelSelected())
{
return;
}
if (m_draggingMouse)
{
m_draggingMouse = false;
CommandModelTranslate::TranslateParams_t translateParams;
translateParams.screenX = screenX;
translateParams.screenY = screenY;
translateParams.previousPositionX = m_previousWorldX;
translateParams.previousPositionY = m_previousWorldY;
m_vtkFboItem->translateModel(translateParams, false);
}
}
bool CanvasHandler::getIsModelSelected()
{
// QVTKFramebufferObjectItem might not be initialized when QML loads
if (!m_vtkFboItem)
{
return 0;
}
return m_vtkFboItem->isModelSelected();
}
double CanvasHandler::getSelectedModelPositionX()
{
// QVTKFramebufferObjectItem might not be initialized when QML loads
if (!m_vtkFboItem)
{
return 0;
}
return m_vtkFboItem->getSelectedModelPositionX();
}
double CanvasHandler::getSelectedModelPositionY()
{
// QVTKFramebufferObjectItem might not be initialized when QML loads
if (!m_vtkFboItem)
{
return 0;
}
return m_vtkFboItem->getSelectedModelPositionY();
}
void CanvasHandler::setModelsRepresentation(int representationOption)
{
m_vtkFboItem->setModelsRepresentation(representationOption);
}
void CanvasHandler::setModelsOpacity(double opacity)
{
m_vtkFboItem->setModelsOpacity(opacity);
}
void CanvasHandler::setGouraudInterpolation(bool gouraudInterpolation)
{
m_vtkFboItem->setGouraudInterpolation(gouraudInterpolation);
}
void CanvasHandler::setModelColorR(int colorR)
{
m_vtkFboItem->setModelColorR(colorR);
}
void CanvasHandler::setModelColorG(int colorG)
{
m_vtkFboItem->setModelColorG(colorG);
}
void CanvasHandler::setModelColorB(int colorB)
{
m_vtkFboItem->setModelColorB(colorB);
}
void CanvasHandler::undo()
{
m_vtkFboItem->undo();
}
void CanvasHandler::redo()
{
m_vtkFboItem->redo();
}
bool CanvasHandler::getCanUndo()
{
// QVTKFramebufferObjectItem might not be initialized when QML loads
if (!m_vtkFboItem)
{
return 0;
}
return m_vtkFboItem->getCanUndo();
}
bool CanvasHandler::getCanRedo()
{
// QVTKFramebufferObjectItem might not be initialized when QML loads
if (!m_vtkFboItem)
{
return 0;
}
return m_vtkFboItem->getCanRedo();
}
| [
"nicanor.romerovenier@bq.com"
] | nicanor.romerovenier@bq.com |
7ecfee11491706302d4cd21e346c86364af99941 | 1acdfac77ab3f4c1c3f55a19f8c5816e657c9e29 | /hls/bitonic_sort.cpp | 8cd72bc5ec28e3127a7fb877d5823353d9f9fd5e | [] | no_license | mmxsrup/bitonic-sort | ab574da02ce3cb61e183f4d7b27fb88089067cd3 | 9075e5a63c32672d70d0fff07527b0abba76dacd | refs/heads/master | 2021-07-11T07:35:30.062343 | 2020-07-17T15:55:03 | 2020-07-17T15:55:03 | 162,433,353 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 958 | cpp | #include "bitonic_sort.hpp"
#include "sorting_network.hpp"
void input(ap_int<DATA_W> datas[DATA_SIZE], hls::stream<ap_int<DATA_W> > axis_in[DATA_SIZE]) {
// input data from stream
for (int i = 0; i < DATA_SIZE; ++i) {
#pragma HLS unroll
datas[i] = axis_in[i].read();
}
}
void output(ap_int<DATA_W> datas[DATA_SIZE], hls::stream<ap_int<DATA_W> > axis_out[DATA_SIZE]) {
// output data to stream
for (int i = 0; i < DATA_SIZE; ++i) {
#pragma HLS unroll
axis_out[i].write(datas[i]);
}
}
void bitonic_sort(hls::stream<ap_int<DATA_W> > axis_in[DATA_SIZE], hls::stream<ap_int<DATA_W> > axis_out[DATA_SIZE]) {
#pragma HLS interface ap_ctrl_hs port=return
#pragma HLS interface axis port=axis_in register
#pragma HLS interface axis port=axis_out register
#pragma HLS dataflow
ap_int<DATA_W> datas[DATA_SIZE];
#pragma HLS ARRAY_RESHAPE variable=datas complete dim=1
input(datas, axis_in);
sorting_network(datas);
output(datas, axis_out);
}
| [
"sugiyama98i@gmail.com"
] | sugiyama98i@gmail.com |
bd784f74c77064c9de885015cf11330624d98f06 | fa0dd8f08f431a5867ff12a0be0b40eda61903c2 | /app/src/main/cpp/native-lib.cpp | 32dc295fe1b2ee8a9ae641cbca27aec54ea55ba2 | [] | no_license | zhourihu5/AndFix | 6317455e76629750f6edd98762bd3217f331dd5c | ce39bec3998e37dc82641d6b73b2101989ec7bf2 | refs/heads/master | 2023-08-23T18:38:08.552959 | 2021-09-10T12:26:53 | 2021-09-10T12:26:53 | 405,072,355 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,014 | cpp | #include <jni.h>
#include <string>
#include "art_method.h"
#include "dalvik.h"
typedef Object *(*FindObject)(void *thread, jobject jobject1);
typedef void* (*FindThread)();
FindObject findObject;
FindThread findThread;
extern "C"
JNIEXPORT void JNICALL
Java_com_dongnao_andfix_DexManager_replace(JNIEnv *env, jobject instance, jint sdk,jobject wrongMethod,
jobject rightMethod) {
// ArtMethod ----->
art::mirror::ArtMethod *wrong= reinterpret_cast<art::mirror::ArtMethod *>(env->FromReflectedMethod(wrongMethod));
art::mirror::ArtMethod *right= reinterpret_cast<art::mirror::ArtMethod *>(env->FromReflectedMethod(rightMethod));
// wrong=right;
wrong->declaring_class_ = right->declaring_class_;
wrong->dex_cache_resolved_methods_ = right->dex_cache_resolved_methods_;
wrong->access_flags_ = right->access_flags_;
wrong->dex_cache_resolved_types_ = right->dex_cache_resolved_types_;
wrong->dex_code_item_offset_ = right->dex_code_item_offset_;
wrong->dex_method_index_ = right->dex_method_index_;
wrong->method_index_ = right->method_index_;
}
//5.0
extern "C"
JNIEXPORT void JNICALL
Java_com_dongnao_andfix_DexManager_replaceDavik(JNIEnv *env, jobject instance, jint sdk,jobject wrongMethod,
jobject rightMethod) {
// 做 跟什么有关 虚拟机 java虚拟机 Method
//找到虚拟机对应的Method 结构体
Method *wrong = (Method *) env->FromReflectedMethod(wrongMethod);
Method *right =(Method *) env->FromReflectedMethod(rightMethod);
//下一步 把right 对应Object 第一个成员变量ClassObject status
// ClassObject
void *dvm_hand=dlopen("libdvm.so", RTLD_NOW);
// sdk 10 以前是这样 10会发生变化
findObject= (FindObject) dlsym(dvm_hand, sdk > 10 ?
"_Z20dvmDecodeIndirectRefP6ThreadP8_jobject" :
"dvmDecodeIndirectRef");
findThread = (FindThread) dlsym(dvm_hand, sdk > 10 ? "_Z13dvmThreadSelfv" : "dvmThreadSelf");
// method 所声明的Class
jclass methodClaz = env->FindClass("java/lang/reflect/Method");
jmethodID rightMethodId = env->GetMethodID(methodClaz, "getDeclaringClass",
"()Ljava/lang/Class;");
//dalvik odex 机器码
// firstFiled->status=CLASS_INITIALIZED
// art不需要 dalvik适配
jobject ndkObject = env->CallObjectMethod(rightMethod, rightMethodId);
// kclass
// davik ------>ClassObject
ClassObject *firstFiled = (ClassObject *) findObject(findThread(), ndkObject);
firstFiled->status=CLASS_INITIALIZED;
wrong->accessFlags |= ACC_PUBLIC;
//对于具体已经实现了的虚方法来说,这个是该方法在类虚函数表(vtable)中的偏移;对于未实现的纯接口方法来说,
// 这个是该方法在对应的接口表(假设这个方法定义在类继承的第n+1个接口中,则表示iftable[n]->methodIndexArray)中的偏移;
wrong->methodIndex=right->methodIndex;
// 这个变量记录了一些预先计算好的信息,从而不需要在调用的时候再通过方法的参数和返回值实时计算了,方便了JNI的调用,提高了调用的速度。
// 如果第一位为1(即0x80000000),则Dalvik虚拟机会忽略后面的所有信息,强制在调用时实时计算;
wrong->jniArgInfo=right->jniArgInfo;
wrong->registersSize=right->registersSize;
wrong->outsSize=right->outsSize;
// 方法参数 原型
wrong->prototype=right->prototype;
//
wrong->insns=right->insns;
// 如果这个方法是一个Dalvik虚拟机自带的Native函数(Internal Native)的话,
// 则这里存放了指向JNI实际函数机器码的首地址。如果这个方法是一个普通的Native函数的话,
// 则这里将指向一个中间的跳转JNI桥(Bridge)代码;
wrong->nativeFunc=right->nativeFunc;
} | [
"rihu.zhou@dhc.com.cn"
] | rihu.zhou@dhc.com.cn |
9dfb41e83f1e5dcda76e00704daacac908c7d0b5 | 4ea97a861b401c397555a23dcaa41be67b87a5d7 | /android_native/app/src/main/cpp/third_party/skia/include/core/SkCanvasVirtualEnforcer.h | 87c153add5f13d8c90e2c1c9c1fb58f6a7413fd5 | [] | no_license | flutter-js/engine | fb790f42a2e6365cad35c7d49cef69317bf406ae | 719550b90f4913e519aa365eefdf1d82f73f7c4f | refs/heads/master | 2020-05-15T15:22:59.699426 | 2019-04-25T16:48:30 | 2019-04-25T16:48:30 | 182,371,803 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,573 | h | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkCanvasVirtualEnforcer_DEFINED
#define SkCanvasVirtualEnforcer_DEFINED
#include "SkCanvas.h"
// If you would ordinarily want to inherit from Base (eg SkCanvas, SkNWayCanvas), instead
// inherit from SkCanvasVirtualEnforcer<Base>, which will make the build fail if you forget
// to override one of SkCanvas' key virtual hooks.
template <typename Base>
class SkCanvasVirtualEnforcer : public Base {
public:
using Base::Base;
protected:
void onDrawPaint(const SkPaint& paint) override = 0;
void onDrawRect(const SkRect& rect, const SkPaint& paint) override = 0;
void onDrawRRect(const SkRRect& rrect, const SkPaint& paint) override = 0;
void onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
const SkPaint& paint) override = 0;
void onDrawOval(const SkRect& rect, const SkPaint& paint) override = 0;
void onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, bool useCenter,
const SkPaint& paint) override = 0;
void onDrawPath(const SkPath& path, const SkPaint& paint) override = 0;
void onDrawRegion(const SkRegion& region, const SkPaint& paint) override = 0;
void onDrawTextRSXform(const void* text, size_t byteLength, const SkRSXform xform[],
const SkRect* cullRect, const SkPaint& paint) override = 0;
void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
const SkPaint& paint) override = 0;
void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
const SkPoint texCoords[4], SkBlendMode mode,
const SkPaint& paint) override = 0;
void onDrawPoints(SkCanvas::PointMode mode, size_t count, const SkPoint pts[],
const SkPaint& paint) override = 0;
void onDrawVerticesObject(const SkVertices*, const SkVertices::Bone bones[], int boneCount,
SkBlendMode, const SkPaint&) override = 0;
void onDrawImage(const SkImage* image, SkScalar dx, SkScalar dy,
const SkPaint* paint) override = 0;
void onDrawImageRect(const SkImage* image, const SkRect* src, const SkRect& dst,
const SkPaint* paint, SkCanvas::SrcRectConstraint constraint) override = 0;
void onDrawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst,
const SkPaint* paint) override = 0;
void onDrawImageLattice(const SkImage* image, const SkCanvas::Lattice& lattice,
const SkRect& dst, const SkPaint* paint) override = 0;
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
// This is under active development for Chrome and not used in Android. Hold off on adding
// implementations in Android's SkCanvas subclasses until this stabilizes.
void onDrawImageSet(const SkCanvas::ImageSetEntry[], int count, SkFilterQuality,
SkBlendMode) override {};
#else
void onDrawImageSet(const SkCanvas::ImageSetEntry[], int count, SkFilterQuality,
SkBlendMode) override = 0;
#endif
void onDrawBitmap(const SkBitmap& bitmap, SkScalar dx, SkScalar dy,
const SkPaint* paint) override = 0;
void onDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, const SkRect& dst,
const SkPaint* paint,
SkCanvas::SrcRectConstraint constraint) override = 0;
void onDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, const SkRect& dst,
const SkPaint* paint) override = 0;
void onDrawBitmapLattice(const SkBitmap& bitmap, const SkCanvas::Lattice& lattice,
const SkRect& dst, const SkPaint* paint) override = 0;
void onDrawAtlas(const SkImage* atlas, const SkRSXform xform[], const SkRect rect[],
const SkColor colors[], int count, SkBlendMode mode, const SkRect* cull,
const SkPaint* paint) override = 0;
void onDrawAnnotation(const SkRect& rect, const char key[], SkData* value) override = 0;
void onDrawShadowRec(const SkPath&, const SkDrawShadowRec&) override = 0;
void onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix) override = 0;
void onDrawPicture(const SkPicture* picture, const SkMatrix* matrix,
const SkPaint* paint) override = 0;
};
#endif
| [
"linuxomk@gmail.com"
] | linuxomk@gmail.com |
9597b8357e9af082c15feaf9bf80ac2508059ce2 | 4f9af54f9443957955e2c7dd2b5c7806464957a0 | /calculator1/calculator.h | 90ef27d00ff30d1bc3d610533caf9017b721ab05 | [] | no_license | xtaoger/simple-calculator | 93945063fed7f4c761e037bfb77809432a075415 | 58812d78399d66b45b0e37dc84928e4212b6bb28 | refs/heads/master | 2021-01-11T16:00:36.118277 | 2017-01-25T04:30:11 | 2017-01-25T04:30:11 | 79,981,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 722 | h | #ifndef __CALCULATOR_H
#define __CALCULATOR_H
#include "calculator.h"
#include <iostream>
#include <cassert>
#include <cstdlib>
#define STACK_INIT_SIZE 255;
/*类定义区*/
class Stack_char{
private:
char *stack;
size_t size = 0, top = 0;
public:
void push(char c);
char pop();
char show_the_top();
char show_the_second_top();
void free_the_stack();
};
class Stack_int{
private:
int *stack;
size_t size = 0;
public:
size_t top = 0;
void push(int num);
int pop();
void free_the_stack();
};
/*函数声明区*/
void separate(std::string str);
unsigned int priority(const char &c);
int operation(char c);
int calculator_deal();
int calculator(const std::string str);
void TEST();
#endif
| [
"noreply@github.com"
] | noreply@github.com |
b2afebb469b5c39d4902a4d3b1ea1fbfe4454927 | 15661722350d4cbb13667f7fe9dcf5f706342440 | /src/system_state.cpp | a39ea9aa7041f84455b90bbc693e46ade75b2f82 | [] | no_license | sikofitt/Oblivion2-XRM | 2d8ddf106952ef528fb4ace9f5f04d8e24d75dfe | d5aae685bd57695aa5bafb2402dd931ff0d678c1 | refs/heads/master | 2021-01-17T11:32:38.997964 | 2015-10-19T08:04:55 | 2015-10-19T08:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,042 | cpp | #include "system_state.hpp"
#include "session.hpp"
#include "menu_system.hpp"
#include <iostream>
#include <string>
const std::string SystemState::m_menuID = "SYSTEM";
/**
* @brief Handles Updates or Data Input from Client
*/
void SystemState::update(std::string character_buffer, bool is_utf8)
{
if (!m_is_active)
{
return;
}
// Need Function Array here for what interface were calling for input from!
// Return result can be a state changer or something else lateron! open for debate
m_menu_state.update(character_buffer, is_utf8);
}
/**
* @brief Startup class, setup and display initial screens / interface.
* @return
*/
bool SystemState::onEnter()
{
std::cout << "OnEnter() SystemState\n";
m_is_active = true;
// m_menu_state.readMenuAllPrompts(); // Testing!
return true;
}
/**
* @brief Exit, close down, display screens to change over data.
* @return
*/
bool SystemState::onExit()
{
std::cout << "OnExit() SystemState\n";
m_is_active = false;
return true;
}
| [
"mrmisticismo@hotmail.com"
] | mrmisticismo@hotmail.com |
136a52f57edd0c5132b364372980545f97bdd42f | 2603fcf379f2f39ab70258499406a19c7303a7d2 | /gfx/fwd/Texture.h | 1ee5fdaeb1af935348368a0400f88cab3c1b1b56 | [] | no_license | skydave/base | 8d082d4719d0fd16fc015fd4b224047223f54d21 | 1ad5ceb92732c3df4acfde54e75cde70989d93df | refs/heads/master | 2021-01-19T12:36:29.027311 | 2012-06-13T14:35:06 | 2012-06-13T14:35:06 | 1,254,275 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 103 | h | #pragma once
#include <util/shared_ptr.h>
namespace base
{
BASE_DECL_SMARTPTR_STRUCT(Texture2d);
} | [
"dk402538@googlemail.com"
] | dk402538@googlemail.com |
06173ef9130e0f4084b1fbff60d21fee839bad32 | f6f6328836511c779db8fc6f1eaffa0f8c70499a | /src/netutil.h | 11ec5712964c6c875b2d7aaaac151cf85b478945 | [] | no_license | kezeng-CN/zNetworkUtility | 6e15d0f364c6871fc6a0e864747f064bf5b5d19d | 0bcddd69979309284b5ed4c37be3ae570e26e91b | refs/heads/master | 2021-10-29T06:58:46.624524 | 2021-10-21T08:47:38 | 2021-10-21T08:47:38 | 183,163,042 | 0 | 0 | null | 2021-10-21T08:47:23 | 2019-04-24T06:30:59 | C | UTF-8 | C++ | false | false | 636 | h | #ifndef NETUTIL_H
#define NETUTIL_H
#include <map>
#define typeIPv4 0
#define typeIPv6 1
// 使用getaddrinfo识别IPv4和IPv6
class BaseSocket
{
private:
static std::map<int, BaseSocket *> smartSocketmap;
protected:
BaseSocket(/* args */);
~BaseSocket();
void DeleteSmartSocket();
public:
static BaseSocket *
CreateSmartSocket(char *ipaddr);
void DeleteSmartSocket();
};
std::map<int, BaseSocket *> BaseSocket::smartSocketmap;
class SocketV4 : public BaseSocket
{
public:
SocketV4(const char[]) {}
};
class SocketV6 : public BaseSocket
{
public:
SocketV6(const char[]) {}
};
#endif | [
"dazengke@126.com"
] | dazengke@126.com |
d47f4e2859ecbb311a9601e173beb422c5f456d1 | 077bae5fedcb7b6f5a8c4f1284482c3ad215e088 | /client/crystalSpace/include/csengine/meshobj.h | 2b51745005d2bf0facb8774ad009d358561a9a32 | [] | no_license | runngezhang/archived-chime3 | 7d59aef8c7fda432342cfdb7e68fba2a45b028da | a3b8592117436144b092922130cb2248b6a515d6 | refs/heads/master | 2021-01-23T23:46:37.708039 | 2002-05-11T21:32:02 | 2002-05-11T21:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,484 | h | /*
Copyright (C) 2000-2001 by Jorrit Tyberghein
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __CS_MESHOBJ_H__
#define __CS_MESHOBJ_H__
#include "csobject/pobject.h"
#include "csobject/nobjvec.h"
#include "csengine/movable.h"
#include "csengine/tranman.h"
#include "csengine/bspbbox.h"
#include "imeshobj.h"
struct iMeshWrapper;
struct iRenderView;
struct iMovable;
class Dumper;
class csMeshWrapper;
class csRenderView;
class csCamera;
class csMeshFactoryWrapper;
class csPolyTreeObject;
class csLight;
/**
* The holder class for all implementations of iMeshObject.
*/
class csMeshWrapper : public csPObject
{
friend class Dumper;
friend class csMovable;
protected:
/// Points to Actor class which "owns" this object.
csObject* myOwner;
/**
* Points to the parent container object of this object.
* This is usually csEngine or csParticleSystem.
*/
csObject* parent;
/**
* Camera space bounding box is cached here.
* GetCameraBoundingBox() will check the current cookie from the
* transformation manager to see if it needs to recalculate this.
*/
csBox3 camera_bbox;
/// Current cookie for camera_bbox.
csTranCookie camera_cookie;
/// Defered lighting. If > 0 then we have defered lighting.
int defered_num_lights;
/// Flags to use for defered lighting.
int defered_lighting_flags;
/**
* Flag which is set to true when the object is visible.
* This is used by the c-buffer/bsp routines. The object itself
* will not use this flag in any way at all. It is simply intended
* for external visibility culling routines.
*/
bool is_visible;
/**
* Position in the world.
*/
csMovable movable;
/**
* Pointer to the object to place in the polygon tree.
*/
csPolyTreeObject* ptree_obj;
/// Update defered lighting.
void UpdateDeferedLighting (const csVector3& pos);
private:
/// Bounding box for polygon trees.
csPolyTreeBBox bbox;
/// Mesh object corresponding with this csMeshWrapper.
iMeshObject* mesh;
/// Children of this object (other instances of csMeshWrapper).
csNamedObjVector children;
/// The callback which is called just before drawing.
csDrawCallback* draw_cb;
/// Userdata for the draw_callback.
void* draw_cbData;
/// Optional reference to the parent csMeshFactoryWrapper.
csMeshFactoryWrapper* factory;
protected:
/**
* Update this object in the polygon trees.
*/
void UpdateInPolygonTrees ();
/// Move this object to the specified sector. Can be called multiple times.
void MoveToSector (csSector* s);
/// Remove this object from all sectors it is in (but not from the engine).
void RemoveFromSectors ();
/**
* Update transformations after the object has moved
* (through updating the movable instance).
* This MUST be done after you change the movable otherwise
* some of the internal data structures will not be updated
* correctly. This function is called by movable.UpdateMove();
*/
void UpdateMove ();
public:
/// Constructor.
csMeshWrapper (csObject* theParent, iMeshObject* mesh);
/// Constructor.
csMeshWrapper (csObject* theParent);
/// Destructor.
virtual ~csMeshWrapper ();
/// Set owner (actor) for this object.
void SetMyOwner (csObject* newOwner) { myOwner = newOwner; }
/// Get owner (actor) for this object.
csObject* GetMyOwner () { return myOwner; }
/// Set parent container for this object.
void SetParentContainer (csObject* newParent) { parent = newParent; }
/// Get parent container for this object.
csObject* GetParentContainer () { return parent; }
/// Set the mesh factory.
void SetFactory (csMeshFactoryWrapper* factory)
{
csMeshWrapper::factory = factory;
}
/// Get the mesh factory.
csMeshFactoryWrapper* GetFactory ()
{
return factory;
}
/// Set the mesh object.
void SetMeshObject (iMeshObject* mesh);
/// Get the mesh object.
iMeshObject* GetMeshObject () const {return mesh;}
/// Get the pointer to the object to place in the polygon tree.
csPolyTreeObject* GetPolyTreeObject ()
{
return ptree_obj;
}
/**
* Set a callback which is called just before the object is drawn.
* This is useful to do some expensive computations which only need
* to be done on a visible object. Note that this function will be
* called even if the object is not visible. In general it is called
* if there is a likely probability that the object is visible (i.e.
* it is in the same sector as the camera for example).
*/
void SetDrawCallback (csDrawCallback* cb, void* cbData)
{
draw_cb = cb;
draw_cbData = cbData;
}
/// Get the draw callback.
csDrawCallback* GetDrawCallback ()
{
return draw_cb;
}
/**
* Do some initialization needed for visibility testing.
* i.e. clear camera transformation.
*/
void VisTestReset ()
{
bbox.ClearTransform ();
}
/// Mark this object as visible.
void MarkVisible () { is_visible = true; }
/// Mark this object as invisible.
void MarkInvisible () { is_visible = false; }
/// Return if this object is visible.
bool IsVisible () { return is_visible; }
/**
* Light object according to the given array of lights (i.e.
* fill the vertex color array).
*/
void UpdateLighting (iLight** lights, int num_lights);
/**
* Update lighting as soon as the object becomes visible.
* This will call engine->GetNearestLights with the supplied
* parameters.
*/
void DeferUpdateLighting (int flags, int num_lights);
/**
* Draw this mesh object given a camera transformation.
* If needed the skeleton state will first be updated.
* Optionally update lighting if needed (DeferUpdateLighting()).
*/
void Draw (csRenderView& rview);
/// Go the next animation frame.
void NextFrame (cs_time current_time);
/// Returns true if this object wants to die.
bool WantToDie () { return mesh->WantToDie (); }
/**
* Get the movable instance for this object.
* It is very important to call GetMovable().UpdateMove()
* after doing any kind of modification to this movable
* to make sure that internal data structures are
* correctly updated.
*/
csMovable& GetMovable () { return movable; }
/**
* Check if this object is hit by this object space vector.
* Return the collision point in object space coordinates.
*/
bool HitBeamObject (const csVector3& start, const csVector3& end,
csVector3& isect, float* pr);
/**
* Check if this object is hit by this world space vector.
* Return the collision point in world space coordinates.
*/
bool HitBeam (const csVector3& start, const csVector3& end,
csVector3& isect, float* pr);
/// Get the children of this mesh object.
csNamedObjVector& GetChildren () { return children; }
/// Get the radius of this mesh (ignoring children).
csVector3 GetRadius () { return mesh->GetRadius (); }
/**
* Do a hard transform of this object.
* This transformation and the original coordinates are not
* remembered but the object space coordinates are directly
* computed (world space coordinates are set to the object space
* coordinates by this routine). Note that some implementations
* of mesh objects will not change the orientation of the object but
* only the position.
*/
void HardTransform (const csReversibleTransform& t);
/**
* Get the bounding box of this object after applying a transformation to it.
* This is really a very inaccurate function as it will take the bounding
* box of the object in object space and then transform this bounding box.
*/
void GetTransformedBoundingBox (const csReversibleTransform& trans, csBox3& cbox);
/**
* Get a very inaccurate bounding box of the object in screen space.
* Returns -1 if object behind the camera or else the distance between
* the camera and the furthest point of the 3D box.
*/
float GetScreenBoundingBox (const csCamera& camera, csBox2& sbox, csBox3& cbox);
/**
* Rotate object in some manner in radians.
* This function operates by rotating the movable transform.
*/
void Rotate (float angle);
/**
* Scale object by this factor.
* This function operates by scaling the movable transform.
*/
void ScaleBy (float factor);
CSOBJTYPE;
DECLARE_IBASE_EXT (csPObject);
//--------------------- iMeshWrapper implementation --------------------//
struct MeshWrapper : public iMeshWrapper
{
DECLARE_EMBEDDED_IBASE (csMeshWrapper);
virtual iMeshObject* GetMeshObject ()
{
return scfParent->GetMeshObject ();
}
virtual void DeferUpdateLighting (int flags, int num_lights)
{
scfParent->DeferUpdateLighting (flags, num_lights);
}
virtual void UpdateLighting (iLight** lights, int num_lights)
{
scfParent->UpdateLighting (lights, num_lights);
}
virtual iMovable* GetMovable ()
{
return &(scfParent->movable.scfiMovable);
}
virtual bool HitBeamObject (const csVector3& start, const csVector3& end,
csVector3& isect, float* pr)
{
return scfParent->HitBeamObject (start, end, isect, pr);
}
virtual bool HitBeam (const csVector3& start, const csVector3& end,
csVector3& isect, float* pr)
{
return scfParent->HitBeam (start, end, isect, pr);
}
virtual void SetDrawCallback (csDrawCallback* cb, void* cbData)
{
scfParent->SetDrawCallback (cb, cbData);
}
virtual csDrawCallback* GetDrawCallback ()
{
return scfParent->GetDrawCallback ();
}
} scfiMeshWrapper;
friend struct MeshWrapper;
};
/**
* The holder class for all implementations of iMeshObjectFactory.
*/
class csMeshFactoryWrapper : public csObject
{
friend class Dumper;
private:
/// Mesh object factory corresponding with this csMeshFactoryWrapper.
iMeshObjectFactory* meshFact;
public:
/// Constructor.
csMeshFactoryWrapper (iMeshObjectFactory* meshFact);
/// Constructor.
csMeshFactoryWrapper ();
/// Destructor.
virtual ~csMeshFactoryWrapper ();
/// Set the mesh object factory.
void SetMeshObjectFactory (iMeshObjectFactory* meshFact);
/// Get the mesh object factory.
iMeshObjectFactory* GetMeshObjectFactory ()
{
return meshFact;
}
/**
* Create a new mesh object for this template.
*/
csMeshWrapper* NewMeshObject (csObject* parent);
CSOBJTYPE;
DECLARE_IBASE_EXT (csObject);
//--------------------- iMeshFactoryWrapper implementation --------------------//
struct MeshFactoryWrapper : public iMeshFactoryWrapper
{
DECLARE_EMBEDDED_IBASE (csMeshFactoryWrapper);
virtual iMeshObjectFactory* GetMeshObjectFactory ()
{
return scfParent->GetMeshObjectFactory ();
}
} scfiMeshFactoryWrapper;
};
#endif // __CS_MESHOBJ_H__
| [
"nst7"
] | nst7 |
04173324a85eacab6a6644a1bb05ea20f2966d25 | d86ae63a30b5dad9f277d089483a48d61c07188e | /B_Nice_Matrix.cpp | 2080e5c0e1028fb8ee75be55dfff76ac5308c8db | [] | no_license | pandaZGV2/Codeforces-Attempts | ff7fa5e3f95937763f9b09f68ac9dd5db7c9c708 | 12504cc128825a9b761bf7e048bbbbb7acb3db7b | refs/heads/main | 2023-03-12T02:02:14.206013 | 2021-03-06T08:58:07 | 2021-03-06T08:58:07 | 322,703,485 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define endl "\n"
#define iamspeed \
ios::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
ll calcmed(vector<ll> &a)
{
sort(a.begin(), a.end());
ll ans = 0;
for (int i = 0; i < a.size(); i++)
{
ans = ans + abs(a[i] - a[a.size() / 2]);
}
return ans;
}
int main(void)
{
iamspeed;
int t;
cin >> t;
while (t--)
{
int n, m;
cin >> n >> m;
ll a[n][m];
for (int i = 0; i < n; i++)
{
for (int j = 0; j < m; j++)
{
cin >> a[i][j];
}
}
ll ans = 0;
int i1 = 0, i2 = n - 1;
while (i1 <= i2)
{
int j1 = 0, j2 = m - 1;
while (j1 <= j2)
{
vector<ll> cur_numbers = {a[i1][j1]};
if (i1 != i2)
cur_numbers.push_back(a[i2][j1]);
if (j2 != j1)
cur_numbers.push_back(a[i1][j2]);
if (j2 != j1 && i1 != i2)
cur_numbers.push_back(a[i2][j2]);
ans += calcmed(cur_numbers);
j1++, j2--;
}
i1++, i2--;
}
cout << ans << endl;
}
return 0;
} | [
"aaronmonis22@gmail.com"
] | aaronmonis22@gmail.com |
be7931c8a5dce4ead7907362f549fa1111b5e58a | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/core/kernels/linalg/qr_op_complex64.cc | fc0227ef7f9ae68b8e37466d25a53af286fb26fa | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | C++ | false | false | 1,195 | cc | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
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.
==============================================================================*/
#include "tensorflow/core/kernels/linalg/qr_op_impl.h"
namespace tensorflow {
REGISTER_LINALG_OP("Qr", (QrOp<complex64>), complex64);
#if GOOGLE_CUDA
// We temporarily disable QR on GPU due to a bug in the QR implementation in
// cuSolver affecting older hardware. The cuSolver team is tracking the issue
// (https://partners.nvidia.com/bug/viewbug/2171459) and we will re-enable
// this feature when a fix is available.
// REGISTER_LINALG_OP_GPU("Qr", (QrOpGpu<complex64>), complex64);
#endif
} // namespace tensorflow
| [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
35618e11823ba60a9c5a5256812c694a06452f05 | ce20d0de4822644e2a553d33cfa5d1ba21d2ee5e | /aoj/1368.cpp | 6a7f0d358b766d413c712791f6a6aaa7b36c1112 | [] | no_license | yana87gt/procon | 08bfc87756d43a7cac9d61fad271880c421e4aca | 3f420f0b242f3e9108c780ca37288696e09522eb | refs/heads/master | 2023-08-31T01:50:13.592343 | 2023-08-26T17:11:02 | 2023-08-26T17:11:02 | 92,819,190 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,041 | cpp | #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;++i)
int t[10][10],a[5];
int check(int k){
if(k==0)return t[0][a[k]];
return t[check(k-1)][a[k]];
}
int main(void){
int cnt=0;
rep(i,10)rep(j,10)cin>>t[i][j];
rep(n,10000){
bool flag=false;
int d=1000;
a[0]=n;
rep(k,4){
a[k+1]=a[k]%d;
a[k]/=d;
d/=10;
}
a[4]=check(3);
/* Altering one single digit */
rep(k,5){
int tmp=a[k];
rep(i,10){
if(i==tmp)continue;
a[k]=i;
if(check(4)==0)flag=true;
}
a[k]=tmp;
}
/* Transposing two adjacent digits */
rep(k,4){
if(a[k]==a[k+1])continue;
swap(a[k],a[k+1]);
if(check(4)==0)flag=true;
swap(a[k],a[k+1]);
}
if(flag)cnt++;
}
cout<<cnt<<endl;
return 0;
}
| [
"syts175yana@gmail.com"
] | syts175yana@gmail.com |
2eccc198204f8ea9848f07743022226b0a1d4acf | e276303d11773362c146c4a6adbdc92d6dee9b3f | /Classes/Native/System_Core_System_Collections_Generic_HashSet_1_Li116960033.h | 9abd1c18d28ae5c00f66facce00ec7cd84e671ed | [
"Apache-2.0"
] | permissive | AkishinoShiame/Virtual-Elderly-Chatbot-IOS-Project-IOS-12 | 45d1358bfc7c8b5c5b107b9d50a90b3357dedfe1 | a834966bdb705a2e71db67f9d6db55e7e60065aa | refs/heads/master | 2020-06-14T02:22:06.622907 | 2019-07-02T13:45:08 | 2019-07-02T13:45:08 | 194,865,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,363 | h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include "mscorlib_System_ValueType3507792607.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winvalid-offsetof"
#pragma clang diagnostic ignored "-Wunused-variable"
#endif
// System.Collections.Generic.HashSet`1/Link<UnityEngine.UI.IClippable>
struct Link_t116960033
{
public:
// System.Int32 System.Collections.Generic.HashSet`1/Link::HashCode
int32_t ___HashCode_0;
// System.Int32 System.Collections.Generic.HashSet`1/Link::Next
int32_t ___Next_1;
public:
inline static int32_t get_offset_of_HashCode_0() { return static_cast<int32_t>(offsetof(Link_t116960033, ___HashCode_0)); }
inline int32_t get_HashCode_0() const { return ___HashCode_0; }
inline int32_t* get_address_of_HashCode_0() { return &___HashCode_0; }
inline void set_HashCode_0(int32_t value)
{
___HashCode_0 = value;
}
inline static int32_t get_offset_of_Next_1() { return static_cast<int32_t>(offsetof(Link_t116960033, ___Next_1)); }
inline int32_t get_Next_1() const { return ___Next_1; }
inline int32_t* get_address_of_Next_1() { return &___Next_1; }
inline void set_Next_1(int32_t value)
{
___Next_1 = value;
}
};
#ifdef __clang__
#pragma clang diagnostic pop
#endif
| [
"akishinoshiame@icloud.com"
] | akishinoshiame@icloud.com |
007c657fbaf28883b891903ada96f29c5de85f7f | d15b49fce4b3f1a5e5c39a29b8ef86936bd02112 | /Troyangles.cpp | 086eea777471012dd7b8af9bd0706754da6524ef | [] | no_license | ailyanlu1/Competitive-Programming-Solutions | 45ad3e6a7812f6cac126463f7c1391566f2d4ec7 | 9016c740e18928be38b67470e125359058c203a5 | refs/heads/master | 2020-03-26T13:03:47.201438 | 2018-08-15T04:10:59 | 2018-08-15T04:10:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | cpp | #pragma GCC optimize "Ofast"
#pragma GCC optimize "unroll-loops"
#pragma GCC target "sse,sse2,sse3,sse4,abm,avx,mmx,popcnt,tune=native"
#include <bits/stdc++.h>
#define scan(x) do{while((x=getchar_unlocked())<'0'); for(x-='0'; '0'<=(_=getchar_unlocked()); x=(x<<3)+(x<<1)+_-'0');}while(0)
char _;
#define ll long long
#define MAXN 2010
#define INF 0x3f3f3f3f
#define min(a, b) (a) < (b) ? (a) : (b)
#define max(a, b) (a) < (b) ? (b) : (a)
#define vi vector<int>
#define pb push_back
#define pii pair<int, int>
#define mp make_pair
#define f first
#define s second
#define mii map<int, int>
#define umii unordered_map<int, int>
using namespace std;
int N;
ll ans;
int DP[MAXN][MAXN];
string s[MAXN];
int main () {
#ifdef NOT_DMOJ
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#endif // NOT_DMOJ
cin.sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> N;
for (int i=1; i<=N; i++) {
cin >> s[i];
for (int j=0; j<N; j++) DP[j + 1][i] = s[i][j] == '#';
}
for (int i=N; i; i--) {
for (int j=1; j<=N; j++) {
if (DP[j][i] == 1) {
DP[j][i] += min(DP[j - 1][i + 1], min(DP[j][i + 1], DP[j + 1][i + 1]));
ans += DP[j][i];
}
}
}
cout << ans << endl;
return 0;
} | [
"noreply@github.com"
] | noreply@github.com |
619a8241f5f67cbbaa287b1dfe7960c0840866d5 | a2ffbab3aef11aeb082145fe5c08764e98495bce | /src/logex/log.h | 2fdd714fa834356e65880528873643a8cd1d87b3 | [
"MIT"
] | permissive | ggeorgiev/dbs | 1baf86ae815dde17ff5bac81b273d571ae787f54 | 27f33b05c1c6e98b3735942586b7426fd36c1237 | refs/heads/master | 2021-01-21T04:47:57.702675 | 2016-07-15T04:14:05 | 2016-07-15T04:14:05 | 44,683,331 | 0 | 0 | null | 2016-05-09T13:25:15 | 2015-10-21T14:49:53 | C++ | UTF-8 | C++ | false | false | 704 | h | // Copyright © 2016 George Georgiev. All rights reserved.
//
#pragma once
#include "option/verbose.h"
#include "doim/tag/tag.h"
#include "im/initialization_manager.hpp"
#include "log/log.h"
#include <memory>
namespace logex
{
class DbsLogger;
typedef shared_ptr<DbsLogger> DbsLoggerSPtr;
class DbsLogger
{
public:
static constexpr int rank()
{
return dbslog::rank() + im::InitializationManager::step();
}
template <typename... Args>
void log(const doim::TagSetSPtr& tags, const Args&... args)
{
if (opt::gVerbose->isVisible(tags))
ILOG(args...);
}
};
extern DbsLoggerSPtr gLogger;
#define LOGEX(...) LOG(logex::gLogger->log(__VA_ARGS__))
} | [
"george.georgiev@hotmail.com"
] | george.georgiev@hotmail.com |
1ea676bfbbe43859dc95f2bf73a05e8fc148056b | d0983ab5075a21e085d30f67d1cffae103d1b8f0 | /engine/include/textures.h | 576f3df3a0e1d186c13c33cd4e6c96b3fa6f6758 | [] | no_license | mateun/codewars_cmake | 45f602b141db6b7a82f63284e28ae4fc55a2df5b | 66fd3d940f3adf7f39f8bbc06020dce063649cd2 | refs/heads/master | 2022-06-05T05:39:50.815222 | 2018-12-25T07:22:37 | 2018-12-25T07:22:37 | 91,501,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | h | #pragma once
#include <d3d11.h>
#include <FreeImage.h>
#include <string>
class Renderer;
HRESULT loadTextureFromFile(const std::string& fileName, ID3D11Texture2D** textureTarget, Renderer* renderer);
class Texture {
public:
Texture(const std::string& fileName, Renderer& renderer);
virtual ~Texture();
ID3D11Texture2D** getTexture() { return &_tex; }
ID3D11ShaderResourceView** getSRV() { return &_srv; }
ID3D11SamplerState** getSamplerState() { return &_ss; }
private:
ID3D11Texture2D* _tex;
ID3D11ShaderResourceView* _srv;
ID3D11SamplerState* _ss;
};
| [
"m.gruscher@ttech.at"
] | m.gruscher@ttech.at |
dd48207bbf496ab00be83f075552495a716d55b8 | a0760d78724be2ae3a0489d547d12ed54d0f9265 | /Scene05_Ingame.h | 21786f0a09e2ae4b9c92085a84958eddf728ba19 | [] | no_license | jinagii/PlatformWorldSavior | b39a804a74773e1af7288c28df8d2929a41df57f | 8a42cad2c3d64470b53a199fa9f7e1d8779ad152 | refs/heads/main | 2023-07-15T08:09:11.839034 | 2021-09-05T10:42:00 | 2021-09-05T10:42:00 | 403,280,585 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 37,296 | h | #pragma once
#include "GameNode.h"
class Player;
class Scene05_Ingame : public GameNode
{
public:
// 게임 상태 체크
Game_State _gameState;
// 게임 진행 시간
float _timer;
float _limitTime[2]; // 스테이지 클리어 타임 레벨
/// 이미지
// 일반 색상 이미지
Image* _imgBg; // 백그라운드 이미지
Image* _imgBg02;
Image* _imgBg03;
Image* _imgKey; // 키
Image* _imgDoorClose; // 열린 문
Image* _imgDoorOpen; // 닫힌 문
Image* _imgSpring;
Image* _imgWood;
Image* _imgWoodL;
Image* _imgWoodM;
Image* _imgWoodR;
Image* _imgFruit;
Image* _imgWater;
Image* _imgUWater;
Image* _imgGrass02;
Image* _imgGrass03;
Image* _imgGrassL;
Image* _imgGrassL2;
Image* _imgGrassR;
Image* _imgGrassR2;
Image* _imgUnderGround02;
Image* _imgUnderGround03;
// 배치 모드시 보일 붉은 색상(비활성화) 이미지
Image* _imgKey_R; // 키
Image* _imgDoorClose_R; // 열린 문
Image* _imgDoorOpen_R; // 닫힌 문
Image* _imgSpring_R;
Image* _imgWood_R;
Image* _imgWoodL_R;
Image* _imgWoodM_R;
Image* _imgWoodR_R;
Image* _imgWater_R;
Image* _imgUWater_R;
Image* _imgGrass02_R;
Image* _imgGrass03_R;
Image* _imgGrassL_R;
Image* _imgGrassL2_R;
Image* _imgGrassR_R;
Image* _imgGrassR2_R;
Image* _imgUnderGround02_R;
Image* _imgUnderGround03_R;
// UI 이미지
Image* _imgBackBoard;
Image* _imgReset;
Image* _imgGoBack;
Image* _imgNextStage;
Image* _imgRestart;
// 장식 풀, 돌 이미지
Image* _imgRock01;
Image* _imgRock02;
Image* _imgBush01;
Image* _imgBush02;
// 게임에서 사용할 사운드
Sound* _sndBG; // BGM
Sound* _sndDie;
Sound* _sndBtnClick;
// 맵
Map* m_pMap;
// 플레이어
Player* m_pPlayer;
float m_StartPosX;
float m_StartPosY;
// 키 세팅 위치
int m_KeyStartX = 4;
int m_KeyStartY = 17;
int m_DoorStartX = 16;
int m_DoorStartY = 15;
// 카메라
float m_CameraX;
float m_CameraY;
// 변환된 마우스 좌표
POINT m_ptMouse;
// 배치(Edit)모드에서 사용할 변수들
//Image* _btnDeployTile_01; // UI에 서 선택할 타일 1
//Image* _btnDeployTile_02; // UI에 서 선택할 타일 2
bool m_IsSelectMode; // 타일을 선택 중인가 판별
// map
// 메인 게임 보드(배열을 타일단위로) -> 스크린상에서 출력될 좌표
// 맵 디자인용 빈 스테이지
int m_SampleData[MAPSIZE_Y][MAPSIZE_X] =
{
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 0, 0, 0, 16, 16, 16, 16, 16, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
};
// 첫번째 스테이지의 블록 타입 값들
int m_StageOneData[MAPSIZE_Y][MAPSIZE_X] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 16, 15, 16, 15, 16, 15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
13, 13, 13, 13, 13, 17, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 2, 3, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
};
// 두번째 스테이지의 블록 타입 값들
int m_StageTwoData[MAPSIZE_Y][MAPSIZE_X] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 15, 16, 15, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 3, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 3, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 3, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 18, 16, 15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 19, 0, 0, 0, 18, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
13, 13, 13, 17, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 2, 3, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 19, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,
};
// 맵 3번 초기 데이터
int m_StageThreeData[MAPSIZE_Y][MAPSIZE_X] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 15, 16, 15, 16, 15, 16, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 17, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 2, 3, 15, 16, 15, 20, 0, 0, 0, 0, 0, 0, 0, 18, 16, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 16, 15, 20, 0, 0, 0, 17, 15, 16, 15, 16, 15, 16, 15, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 3, 2, 3, 2, 3, 2, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 3, 2, 3, 2, 3, 2, 2, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
13, 13, 13, 13, 13, 17, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 15, 16, 19, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
14, 14, 14, 14, 14, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 3, 2, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,
};
/// 마우스가 가리키는 특정 칸
BoardSet* m_CurPickedGameBoard;
/// 마우스가 들고있는 블럭타입
Block m_PickedBlockType;
public:
Scene05_Ingame();
~Scene05_Ingame();
virtual HRESULT Init(void);
void Init_Stage_Sample();
void Init_Stage01();
void Init_Stage02();
void Init_Stage03();
virtual void Release(void);
virtual void Update(void);
virtual void Render();
public:
// 게임보드 초기화
void InputBoardData(int mapData = 0);
void MoveCamera();
// 윈도우를 기준으로 하는 마우스 좌표를 맵 좌표로 변환
void MappingMousePoint();
// UI를 백버퍼에 그릴때 카메라(뷰)에 재대로 나오기 위해 위치를 조정
void MappingUI();
// 배열 원소 번호로 캐릭터의 시작 좌표 구하기
bool CheckPlayerPos(float x, float y);
void ResetCharPos();
void CheckStageClear();
void SetClearLevel();
void SetLimitTime();
public:
/// 디버그용 함수들
void DebugingKeyInput();
void DebugDrawPlayerCollisionBox();
// 현재 마우스좌표 출력
void DebugShowInfo();
// 현재 마우스가 클릭한 배열타입 체크
void DebugShowMouseClickState();
// 마우스가 가리키는 현재 배열
void CheckCurrentBoard(int x, int y);
// 모드가 바뀌었나 체크
bool IsChangeMode();
// 배치할 버튼 선택 로직
void SelectButton();
// 타일 렌더(렌더부분에서 사용하자)
void RenderTile();
// UI 버튼 렌더
void RenderUI();
public:
void ResetStage();
}; | [
"noreply@github.com"
] | noreply@github.com |
3f2268cafbdd6d94798c53ef127d23ce5c7f0aa7 | 486e0a6c679a424377a3b2c23d0a250b133378d5 | /lumina-config/AppDialog.h | acc6c73e96a717d95dcef5c40ce8a27bf14b0cf8 | [
"BSD-3-Clause"
] | permissive | grayed/lumina | aaf1d5a6fe92125e2f9f178f9e397d3c483325fd | 0a5b8e32467c9c388d74a53ed69aed8275a10098 | refs/heads/master | 2020-07-15T07:33:15.034538 | 2015-05-04T23:49:28 | 2015-05-04T23:49:28 | 35,066,673 | 0 | 1 | null | 2015-05-04T23:48:20 | 2015-05-04T23:48:20 | null | UTF-8 | C++ | false | false | 2,230 | h | //===========================================
// Lumina-DE source code
// Copyright (c) 2014, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
// This is the dialog for catching keyboard events and converting them to X11 keycodes
//===========================================
#ifndef _LUMINA_FILE_MANAGER_APP_SELECT_DIALOG_H
#define _LUMINA_FILE_MANAGER_APP_SELECT_DIALOG_H
#include <QDialog>
#include <QString>
#include <QList>
#include <QPoint>
#include <QDesktopWidget>
#include <QCursor>
#include <LuminaXDG.h>
#include "ui_AppDialog.h"
namespace Ui{
class AppDialog;
};
class AppDialog : public QDialog{
Q_OBJECT
private:
Ui::AppDialog *ui;
QList<XDGDesktop> APPS;
public:
AppDialog(QWidget *parent = 0, QList<XDGDesktop> applist = QList<XDGDesktop>()) : QDialog(parent), ui(new Ui::AppDialog){
ui->setupUi(this); //load the designer file
APPS = applist; //save this for later
appreset = false;
ui->comboBox->clear();
for(int i=0; i<APPS.length(); i++){
ui->comboBox->addItem( LXDG::findIcon(APPS[i].icon,"application-x-executable"), APPS[i].name );
}
this->setWindowIcon( LXDG::findIcon("system-search","") );
QPoint center = QApplication::desktop()->screenGeometry(QCursor::pos()).center();
this->move(center.x()-(this->width()/2), center.y()-(this->height()/2) );
}
~AppDialog(){}
void allowReset(bool allow){
if(allow){
ui->buttonBox->setStandardButtons(QDialogButtonBox::RestoreDefaults | QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
}else{
ui->buttonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
}
}
XDGDesktop appselected; //selected application (empty template for cancelled/reset)
bool appreset; //Did the user select to reset to defaults?
private slots:
void on_buttonBox_accepted(){
appselected = APPS[ ui->comboBox->currentIndex() ];
this->close();
}
void on_buttonBox_rejected(){
this->close();
}
void on_buttonBox_clicked(QAbstractButton *button){
if(ui->buttonBox->standardButton(button) == QDialogButtonBox::RestoreDefaults){
appreset = true;
this->close();
}
}
};
#endif
| [
"ken@pcbsd.org"
] | ken@pcbsd.org |
0cccd2fbba718ffa3f0bfa011ebeca0f87995dd8 | a6daa0878f8003298a4fe6d07d16c838f27c1881 | /Linked List/Circular Linked List/Delete_Kth_Node.cpp | a88755cbd717fbbac8a7d815cb11c2e14d2ab04d | [
"MIT"
] | permissive | NikhilRajPandey/Fork_CPP | e3f812f1a3a889dfbd7dbafa9cc49c9813944909 | 898877598e796c33266ea54a29ce6a220eb6b268 | refs/heads/main | 2023-08-12T09:12:37.534894 | 2021-10-18T10:45:43 | 2021-10-18T10:45:43 | 418,815,923 | 1 | 0 | MIT | 2021-10-19T07:26:25 | 2021-10-19T07:26:24 | null | UTF-8 | C++ | false | false | 1,077 | cpp | #include <bits/stdc++.h>
using namespace std;
struct Node{
int data;
Node* next;
Node(int d){
data=d;
next=NULL;
}
};
void printlist(Node *head){
if(head==NULL)return;
Node *p=head;
do{
cout<<p->data<<" ";
p=p->next;
}while(p!=head);
}
Node *deleteHead(Node *head){
if(head==NULL)return NULL;
if(head->next==head){
delete head;
return NULL;
}
head->data=head->next->data;
Node *temp=head->next;
head->next=head->next->next;
delete temp;
return head;
}
Node *deleteKth(Node *head,int k){
if(head==NULL)return head;
if(k==1)return deleteHead(head);
Node *curr=head;
for(int i=0;i<k-2;i++)
curr=curr->next;
Node *temp=curr->next;
curr->next=curr->next->next;
delete temp;
return head;
}
int main()
{
Node *head=new Node(10);
head->next=new Node(20);
head->next->next=new Node(30);
head->next->next->next=new Node(40);
head->next->next->next->next=head;
head=deleteKth(head,3);
printlist(head);
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
11f4a66fb6b8d2ef65b20ae558309b0a0fac70b1 | 3eb6988fad8160e053064be8da65fa7e19d4140f | /ejercicio_complejos/test/test_complejos.cc | c379f84f26cc23d8d9269af9feb4b1bf8f573bee | [
"MIT"
] | permissive | ULL-ESIT-IB-2020-2021/ib-practica12-oop-gtests-exercism-imh-lab | 6a225c3c13d835d3680ca38c225ea216db629629 | 3a0c93ac730c6cf23e3b68d389207c48cf39d88d | refs/heads/master | 2023-02-14T00:13:52.309976 | 2021-01-14T12:43:54 | 2021-01-14T12:43:54 | 325,094,059 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cc | #include <gtest/gtest.h>
#include <iostream>
#include "complejo.h"
TEST(ComplejosTest, resta){
Complejo operar;
Complejo complejo1{2,2};
Complejo complejo2{2,2};
EXPECT_EQ((1,1),operar.Resta(complejo1,complejo2));
EXPECT_GT((5,6),operar.Resta(complejo1,complejo2));
}
TEST(ComplejosTest2, suma){
Complejo operar;
Complejo complejo1{2,2};
Complejo complejo2{2,2};
EXPECT_EQ((4,4),operar.Suma(complejo1,complejo2));
EXPECT_GT((5,6),operar.Suma(complejo1,complejo2));
} | [
"alu0101397375@ull.edu.es"
] | alu0101397375@ull.edu.es |
cfbdffccc8de5515cedb0795b73c72d7dd93cdf0 | 532e04a3de2a3ddb67055addaf113947b7fb83fe | /Graphics大作业/Graphics_2/ClassView.cpp | cbc4fa56ef0b7971698d7233eab28c4001ceb0b1 | [] | no_license | igoguojia/OpenGL_Graphics | 50d93f06eeb33d91bf4de4f13081096df14bf6a4 | 627875e46660b749c11080aa2871c49318bb5e2c | refs/heads/main | 2023-04-06T06:02:17.819885 | 2021-04-08T10:54:22 | 2021-04-08T10:54:22 | 355,864,471 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,937 | cpp |
#include "pch.h"
#include "framework.h"
#include "MainFrm.h"
#include "ClassView.h"
#include "Resource.h"
#include "Graphics_2.h"
class CClassViewMenuButton : public CMFCToolBarMenuButton
{
friend class CClassView;
DECLARE_SERIAL(CClassViewMenuButton)
public:
CClassViewMenuButton(HMENU hMenu = nullptr) noexcept : CMFCToolBarMenuButton((UINT)-1, hMenu, -1)
{
}
virtual void OnDraw(CDC* pDC, const CRect& rect, CMFCToolBarImages* pImages, BOOL bHorz = TRUE,
BOOL bCustomizeMode = FALSE, BOOL bHighlight = FALSE, BOOL bDrawBorder = TRUE, BOOL bGrayDisabledButtons = TRUE)
{
pImages = CMFCToolBar::GetImages();
CAfxDrawState ds;
pImages->PrepareDrawImage(ds);
CMFCToolBarMenuButton::OnDraw(pDC, rect, pImages, bHorz, bCustomizeMode, bHighlight, bDrawBorder, bGrayDisabledButtons);
pImages->EndDrawImage(ds);
}
};
IMPLEMENT_SERIAL(CClassViewMenuButton, CMFCToolBarMenuButton, 1)
//////////////////////////////////////////////////////////////////////
// 构造/析构
//////////////////////////////////////////////////////////////////////
CClassView::CClassView() noexcept
{
m_nCurrSort = ID_SORTING_GROUPBYTYPE;
}
CClassView::~CClassView()
{
}
BEGIN_MESSAGE_MAP(CClassView, CDockablePane)
ON_WM_CREATE()
ON_WM_SIZE()
ON_WM_CONTEXTMENU()
ON_COMMAND(ID_CLASS_ADD_MEMBER_FUNCTION, OnClassAddMemberFunction)
ON_COMMAND(ID_CLASS_ADD_MEMBER_VARIABLE, OnClassAddMemberVariable)
ON_COMMAND(ID_CLASS_DEFINITION, OnClassDefinition)
ON_COMMAND(ID_CLASS_PROPERTIES, OnClassProperties)
ON_COMMAND(ID_NEW_FOLDER, OnNewFolder)
ON_WM_PAINT()
ON_WM_SETFOCUS()
ON_COMMAND_RANGE(ID_SORTING_GROUPBYTYPE, ID_SORTING_SORTBYACCESS, OnSort)
ON_UPDATE_COMMAND_UI_RANGE(ID_SORTING_GROUPBYTYPE, ID_SORTING_SORTBYACCESS, OnUpdateSort)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CClassView 消息处理程序
int CClassView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CDockablePane::OnCreate(lpCreateStruct) == -1)
return -1;
CRect rectDummy;
rectDummy.SetRectEmpty();
// 创建视图:
const DWORD dwViewStyle = WS_CHILD | WS_VISIBLE | TVS_HASLINES | TVS_LINESATROOT | TVS_HASBUTTONS | WS_CLIPSIBLINGS | WS_CLIPCHILDREN;
if (!m_wndClassView.Create(dwViewStyle, rectDummy, this, 2))
{
TRACE0("未能创建类视图\n");
return -1; // 未能创建
}
// 加载图像:
m_wndToolBar.Create(this, AFX_DEFAULT_TOOLBAR_STYLE, IDR_SORT);
m_wndToolBar.LoadToolBar(IDR_SORT, 0, 0, TRUE /* 已锁定*/);
OnChangeVisualStyle();
m_wndToolBar.SetPaneStyle(m_wndToolBar.GetPaneStyle() | CBRS_TOOLTIPS | CBRS_FLYBY);
m_wndToolBar.SetPaneStyle(m_wndToolBar.GetPaneStyle() & ~(CBRS_GRIPPER | CBRS_SIZE_DYNAMIC | CBRS_BORDER_TOP | CBRS_BORDER_BOTTOM | CBRS_BORDER_LEFT | CBRS_BORDER_RIGHT));
m_wndToolBar.SetOwner(this);
// 所有命令将通过此控件路由,而不是通过主框架路由:
m_wndToolBar.SetRouteCommandsViaFrame(FALSE);
CMenu menuSort;
menuSort.LoadMenu(IDR_POPUP_SORT);
m_wndToolBar.ReplaceButton(ID_SORT_MENU, CClassViewMenuButton(menuSort.GetSubMenu(0)->GetSafeHmenu()));
CClassViewMenuButton* pButton = DYNAMIC_DOWNCAST(CClassViewMenuButton, m_wndToolBar.GetButton(0));
if (pButton != nullptr)
{
pButton->m_bText = FALSE;
pButton->m_bImage = TRUE;
pButton->SetImage(GetCmdMgr()->GetCmdImage(m_nCurrSort));
pButton->SetMessageWnd(this);
}
// 填入一些静态树视图数据(此处只需填入虚拟代码,而不是复杂的数据)
FillClassView();
return 0;
}
void CClassView::OnSize(UINT nType, int cx, int cy)
{
CDockablePane::OnSize(nType, cx, cy);
AdjustLayout();
}
void CClassView::FillClassView()
{
HTREEITEM hRoot = m_wndClassView.InsertItem(_T("FakeApp 类"), 0, 0);
m_wndClassView.SetItemState(hRoot, TVIS_BOLD, TVIS_BOLD);
HTREEITEM hClass = m_wndClassView.InsertItem(_T("CFakeAboutDlg"), 1, 1, hRoot);
m_wndClassView.InsertItem(_T("CFakeAboutDlg()"), 3, 3, hClass);
m_wndClassView.Expand(hRoot, TVE_EXPAND);
hClass = m_wndClassView.InsertItem(_T("CFakeApp"), 1, 1, hRoot);
m_wndClassView.InsertItem(_T("CFakeApp()"), 3, 3, hClass);
m_wndClassView.InsertItem(_T("InitInstance()"), 3, 3, hClass);
m_wndClassView.InsertItem(_T("OnAppAbout()"), 3, 3, hClass);
hClass = m_wndClassView.InsertItem(_T("CFakeAppDoc"), 1, 1, hRoot);
m_wndClassView.InsertItem(_T("CFakeAppDoc()"), 4, 4, hClass);
m_wndClassView.InsertItem(_T("~CFakeAppDoc()"), 3, 3, hClass);
m_wndClassView.InsertItem(_T("OnNewDocument()"), 3, 3, hClass);
hClass = m_wndClassView.InsertItem(_T("CFakeAppView"), 1, 1, hRoot);
m_wndClassView.InsertItem(_T("CFakeAppView()"), 4, 4, hClass);
m_wndClassView.InsertItem(_T("~CFakeAppView()"), 3, 3, hClass);
m_wndClassView.InsertItem(_T("GetDocument()"), 3, 3, hClass);
m_wndClassView.Expand(hClass, TVE_EXPAND);
hClass = m_wndClassView.InsertItem(_T("CFakeAppFrame"), 1, 1, hRoot);
m_wndClassView.InsertItem(_T("CFakeAppFrame()"), 3, 3, hClass);
m_wndClassView.InsertItem(_T("~CFakeAppFrame()"), 3, 3, hClass);
m_wndClassView.InsertItem(_T("m_wndMenuBar"), 6, 6, hClass);
m_wndClassView.InsertItem(_T("m_wndToolBar"), 6, 6, hClass);
m_wndClassView.InsertItem(_T("m_wndStatusBar"), 6, 6, hClass);
hClass = m_wndClassView.InsertItem(_T("Globals"), 2, 2, hRoot);
m_wndClassView.InsertItem(_T("theFakeApp"), 5, 5, hClass);
m_wndClassView.Expand(hClass, TVE_EXPAND);
}
void CClassView::OnContextMenu(CWnd* pWnd, CPoint point)
{
CTreeCtrl* pWndTree = (CTreeCtrl*)&m_wndClassView;
ASSERT_VALID(pWndTree);
if (pWnd != pWndTree)
{
CDockablePane::OnContextMenu(pWnd, point);
return;
}
if (point != CPoint(-1, -1))
{
// 选择已单击的项:
CPoint ptTree = point;
pWndTree->ScreenToClient(&ptTree);
UINT flags = 0;
HTREEITEM hTreeItem = pWndTree->HitTest(ptTree, &flags);
if (hTreeItem != nullptr)
{
pWndTree->SelectItem(hTreeItem);
}
}
pWndTree->SetFocus();
CMenu menu;
menu.LoadMenu(IDR_POPUP_SORT);
CMenu* pSumMenu = menu.GetSubMenu(0);
if (AfxGetMainWnd()->IsKindOf(RUNTIME_CLASS(CMDIFrameWndEx)))
{
CMFCPopupMenu* pPopupMenu = new CMFCPopupMenu;
if (!pPopupMenu->Create(this, point.x, point.y, (HMENU)pSumMenu->m_hMenu, FALSE, TRUE))
return;
((CMDIFrameWndEx*)AfxGetMainWnd())->OnShowPopupMenu(pPopupMenu);
UpdateDialogControls(this, FALSE);
}
}
void CClassView::AdjustLayout()
{
if (GetSafeHwnd() == nullptr)
{
return;
}
CRect rectClient;
GetClientRect(rectClient);
int cyTlb = m_wndToolBar.CalcFixedLayout(FALSE, TRUE).cy;
m_wndToolBar.SetWindowPos(nullptr, rectClient.left, rectClient.top, rectClient.Width(), cyTlb, SWP_NOACTIVATE | SWP_NOZORDER);
m_wndClassView.SetWindowPos(nullptr, rectClient.left + 1, rectClient.top + cyTlb + 1, rectClient.Width() - 2, rectClient.Height() - cyTlb - 2, SWP_NOACTIVATE | SWP_NOZORDER);
}
BOOL CClassView::PreTranslateMessage(MSG* pMsg)
{
return CDockablePane::PreTranslateMessage(pMsg);
}
void CClassView::OnSort(UINT id)
{
if (m_nCurrSort == id)
{
return;
}
m_nCurrSort = id;
CClassViewMenuButton* pButton = DYNAMIC_DOWNCAST(CClassViewMenuButton, m_wndToolBar.GetButton(0));
if (pButton != nullptr)
{
pButton->SetImage(GetCmdMgr()->GetCmdImage(id));
m_wndToolBar.Invalidate();
m_wndToolBar.UpdateWindow();
}
}
void CClassView::OnUpdateSort(CCmdUI* pCmdUI)
{
pCmdUI->SetCheck(pCmdUI->m_nID == m_nCurrSort);
}
void CClassView::OnClassAddMemberFunction()
{
AfxMessageBox(_T("添加成员函数..."));
}
void CClassView::OnClassAddMemberVariable()
{
// TODO: 在此处添加命令处理程序代码
}
void CClassView::OnClassDefinition()
{
// TODO: 在此处添加命令处理程序代码
}
void CClassView::OnClassProperties()
{
// TODO: 在此处添加命令处理程序代码
}
void CClassView::OnNewFolder()
{
AfxMessageBox(_T("新建文件夹..."));
}
void CClassView::OnPaint()
{
CPaintDC dc(this); // 用于绘制的设备上下文
CRect rectTree;
m_wndClassView.GetWindowRect(rectTree);
ScreenToClient(rectTree);
rectTree.InflateRect(1, 1);
dc.Draw3dRect(rectTree, ::GetSysColor(COLOR_3DSHADOW), ::GetSysColor(COLOR_3DSHADOW));
}
void CClassView::OnSetFocus(CWnd* pOldWnd)
{
CDockablePane::OnSetFocus(pOldWnd);
m_wndClassView.SetFocus();
}
void CClassView::OnChangeVisualStyle()
{
m_ClassViewImages.DeleteImageList();
UINT uiBmpId = theApp.m_bHiColorIcons ? IDB_CLASS_VIEW_24 : IDB_CLASS_VIEW;
CBitmap bmp;
if (!bmp.LoadBitmap(uiBmpId))
{
TRACE(_T("无法加载位图: %x\n"), uiBmpId);
ASSERT(FALSE);
return;
}
BITMAP bmpObj;
bmp.GetBitmap(&bmpObj);
UINT nFlags = ILC_MASK;
nFlags |= (theApp.m_bHiColorIcons) ? ILC_COLOR24 : ILC_COLOR4;
m_ClassViewImages.Create(16, bmpObj.bmHeight, nFlags, 0, 0);
m_ClassViewImages.Add(&bmp, RGB(255, 0, 0));
m_wndClassView.SetImageList(&m_ClassViewImages, TVSIL_NORMAL);
m_wndToolBar.CleanUpLockedImages();
m_wndToolBar.LoadBitmap(theApp.m_bHiColorIcons ? IDB_SORT_24 : IDR_SORT, 0, 0, TRUE /* 锁定*/);
}
| [
"71238172+igoguojia@users.noreply.github.com"
] | 71238172+igoguojia@users.noreply.github.com |
7311415658335c75a60dd071b01d32a7a4165165 | 8a8a9a02ff426e36ba772955facbf4a72891ea6c | /MARTIAN.cpp | f34fbba3544c861da9c650ee86fb3cb090c03a34 | [] | no_license | krishnaanaril/SPOJ | d9549ee313f6b6e7429bc950aa8d3b0860211f7e | 74eb572318edc18470af1c2b3e6060e295ceb52b | refs/heads/master | 2020-06-08T22:23:35.325838 | 2018-02-10T17:13:11 | 2018-02-10T17:13:11 | 12,751,622 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,930 | cpp | /*
Name: Krishna Mohan
Date: 2/28/2015
Algorithm:
Site: SPOJ
Contest: MARTIAN
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef pair<int,int> pi;
typedef vector<string> vs;
typedef vector<pi> vpi;
// Basic macros
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()
#define ini(a, v) memset(a, v, sizeof(a))
#define re(i,s,n) for(int i=s;i<(n);++i)
#define rep(i,s,n) for(int i=s;i<=(n);++i)
#define fo(i,n) re(i,0,n)
#define rev(i,n,s) for(int i=(n)-1;i>=s;--i)
#define repv(i,n,s) for(int i=(n);i>=s;--i)
#define fov(i,n) rev(i,n,0)
#define pb push_back
#define mp make_pair
#define si(x) (int)(x.size())
#define MAX 501
#define INF 1000000007
#define MOD 1000000007
int main()
{
ios_base::sync_with_stdio(0);
int m, n, y[MAX][MAX], b[MAX][MAX], i, j;
ll sum;
while(true)
{
sum=0;
cin>>m>>n;
if(m==0 && n==0) break;
fo(i, m)
{
fo(j, n)
{
cin>>y[i][j];
if(j>0) y[i][j]+=y[i][j-1];
cout<<y[i][j]<<" ";
}
cout<<endl;
}
cout<<endl;
fo(i, m)
{
fo(j, n)
{
cin>>b[i][j];
if(i>0) b[i][j]+=b[i-1][j];
cout<<b[i][j]<<" ";
}
cout<<endl;
}
cout<<endl;
int i=0, j=0;
while(i<m && j<n)
{
if(y[i][j]>=b[i][j])
{
sum+=y[i][j];
cout<<y[i][j]<<" ";
i++;
}
else
{
sum+=b[i][j];
cout<<b[i][j]<<" ";
j++;
}
}
cout<<sum<<endl;
}
return 0;
}
| [
"krishnamohan.a.m@gmail.com"
] | krishnamohan.a.m@gmail.com |
c18b711d3610d56577b82e2bfd00298784d6fdc0 | ec2d8729d794cd682d17b5b6cf6d74c729ca2ca1 | /server/Pawn.h | 2511906fe26acc08a66eacde29cfbd904d3c5a85 | [
"MIT"
] | permissive | Jekmant/sampvoice | 640bea3aa94adf545e0027b5a49d0a02109109a4 | 13cab77a740d456e3ca6109c24563344312271fd | refs/heads/master | 2022-11-28T15:00:12.033481 | 2020-08-11T18:25:34 | 2020-08-11T18:25:34 | 286,818,282 | 2 | 0 | null | 2020-08-11T18:23:31 | 2020-08-11T18:23:30 | null | UTF-8 | C++ | false | false | 11,364 | h | /*
This is a SampVoice project file
Developer: CyberMor <cyber.mor.2020@gmail.ru>
See more here https://github.com/CyberMor/sampvoice
Copyright (c) Daniel (CyberMor) 2020 All rights reserved
*/
#pragma once
#include <cstdint>
#include <functional>
#include <vector>
#include <string>
#include <pawn/amx/amx.h>
#include <pawn/plugincommon.h>
#include "Stream.h"
#include "LocalStream.h"
#include "PointStream.h"
class Pawn {
public:
using InitHandlerType = std::function<void(const uint32_t)>;
using GetVersionHandlerType = std::function<uint8_t(const uint16_t)>;
using HasMicroHandlerType = std::function<bool(const uint16_t)>;
using StartRecordHandlerType = std::function<bool(const uint16_t)>;
using StopRecordHandlerType = std::function<bool(const uint16_t)>;
using AddKeyHandlerType = std::function<bool(const uint16_t, const uint8_t)>;
using HasKeyHandlerType = std::function<bool(const uint16_t, const uint8_t)>;
using RemoveKeyHandlerType = std::function<bool(const uint16_t, const uint8_t)>;
using RemoveAllKeysHandlerType = std::function<void(const uint16_t)>;
using MutePlayerStatusHandlerType = std::function<bool(const uint16_t)>;
using MutePlayerEnableHandlerType = std::function<void(const uint16_t)>;
using MutePlayerDisableHandlerType = std::function<void(const uint16_t)>;
using CreateGStreamHandlerType = std::function<Stream* (const uint32_t, const std::string&)>;
using CreateSLStreamAtPointHandlerType = std::function<Stream* (const float, const float, const float, const float, const uint32_t, const std::string&)>;
using CreateSLStreamAtVehicleHandlerType = std::function<Stream* (const float, const uint16_t, const uint32_t, const std::string&)>;
using CreateSLStreamAtPlayerHandlerType = std::function<Stream* (const float, const uint16_t, const uint32_t, const std::string&)>;
using CreateSLStreamAtObjectHandlerType = std::function<Stream* (const float, const uint16_t, const uint32_t, const std::string&)>;
using CreateDLStreamAtPointHandlerType = std::function<Stream* (const float, const uint32_t, const float, const float, const float, const uint32_t, const std::string&)>;
using CreateDLStreamAtVehicleHandlerType = std::function<Stream* (const float, const uint32_t, const uint16_t, const uint32_t, const std::string&)>;
using CreateDLStreamAtPlayerHandlerType = std::function<Stream* (const float, const uint32_t, const uint16_t, const uint32_t, const std::string&)>;
using CreateDLStreamAtObjectHandlerType = std::function<Stream* (const float, const uint32_t, const uint16_t, const uint32_t, const std::string&)>;
using UpdatePositionForLPStreamHandlerType = std::function<void(PointStream* const, const float, const float, const float)>;
using UpdateDistanceForLStreamHandlerType = std::function<void(LocalStream* const, const float)>;
using AttachListenerToStreamHandlerType = std::function<bool(Stream* const, const uint16_t)>;
using HasListenerInStreamHandlerType = std::function<bool(Stream* const, const uint16_t)>;
using DetachListenerFromStreamHandlerType = std::function<bool(Stream* const, const uint16_t)>;
using DetachAllListenersFromStreamHandlerType = std::function<void(Stream* const)>;
using AttachSpeakerToStreamHandlerType = std::function<bool(Stream* const, const uint16_t)>;
using HasSpeakerInStreamHandlerType = std::function<bool(Stream* const, const uint16_t)>;
using DetachSpeakerFromStreamHandlerType = std::function<bool(Stream* const, const uint16_t)>;
using DetachAllSpeakersFromStreamHandlerType = std::function<void(Stream* const)>;
using DeleteStreamHandlerType = std::function<void(Stream* const)>;
private:
static InitHandlerType initHandler;
static GetVersionHandlerType getVersionHandler;
static HasMicroHandlerType hasMicroHandler;
static StartRecordHandlerType startRecordHandler;
static StopRecordHandlerType stopRecordHandler;
static AddKeyHandlerType addKeyHandler;
static HasKeyHandlerType hasKeyHandler;
static RemoveKeyHandlerType removeKeyHandler;
static RemoveAllKeysHandlerType removeAllKeysHandler;
static MutePlayerStatusHandlerType mutePlayerStatusHandler;
static MutePlayerEnableHandlerType mutePlayerEnableHandler;
static MutePlayerDisableHandlerType mutePlayerDisableHandler;
static CreateGStreamHandlerType createGStreamHandler;
static CreateSLStreamAtPointHandlerType createSLStreamAtPointHandler;
static CreateSLStreamAtVehicleHandlerType createSLStreamAtVehicleHandler;
static CreateSLStreamAtPlayerHandlerType createSLStreamAtPlayerHandler;
static CreateSLStreamAtObjectHandlerType createSLStreamAtObjectHandler;
static CreateDLStreamAtPointHandlerType createDLStreamAtPointHandler;
static CreateDLStreamAtVehicleHandlerType createDLStreamAtVehicleHandler;
static CreateDLStreamAtPlayerHandlerType createDLStreamAtPlayerHandler;
static CreateDLStreamAtObjectHandlerType createDLStreamAtObjectHandler;
static UpdatePositionForLPStreamHandlerType updatePositionForLPStreamHandler;
static UpdateDistanceForLStreamHandlerType updateDistanceForLStreamHandler;
static AttachListenerToStreamHandlerType attachListenerToStreamHandler;
static HasListenerInStreamHandlerType hasListenerInStreamHandler;
static DetachListenerFromStreamHandlerType detachListenerFromStreamHandler;
static DetachAllListenersFromStreamHandlerType detachAllListenersFromStreamHandler;
static AttachSpeakerToStreamHandlerType attachSpeakerToStreamHandler;
static HasSpeakerInStreamHandlerType hasSpeakerInStreamHandler;
static DetachSpeakerFromStreamHandlerType detachSpeakerFromStreamHandler;
static DetachAllSpeakersFromStreamHandlerType detachAllSpeakersFromStreamHandler;
static DeleteStreamHandlerType deleteStreamHandler;
class AmxCallback {
private:
AMX* const amx;
const int index;
public:
AmxCallback(AMX* const amx, const int index)
: amx(amx), index(index) {}
template<class... ARGS>
inline cell Call(ARGS... args) const {
cell returnValue = NULL;
(amx_Push(this->amx, static_cast<cell>(args)), ...); // reverse order of arguments
amx_Exec(this->amx, &returnValue, this->index);
return returnValue;
}
};
static bool initStatus;
static bool debugStatus;
static std::vector<AmxCallback> callbacksOnPlayerActivationKeyPress;
static std::vector<AmxCallback> callbacksOnPlayerActivationKeyRelease;
static cell AMX_NATIVE_CALL n_SvDebug(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvInit(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvGetVersion(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvHasMicro(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvStartRecord(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvStopRecord(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvAddKey(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvHasKey(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvRemoveKey(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvRemoveAllKeys(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvMutePlayerStatus(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvMutePlayerEnable(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvMutePlayerDisable(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateGStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateSLStreamAtPoint(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateSLStreamAtVehicle(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateSLStreamAtPlayer(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateSLStreamAtObject(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateDLStreamAtPoint(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateDLStreamAtVehicle(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateDLStreamAtPlayer(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvCreateDLStreamAtObject(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvUpdateDistanceForLStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvUpdatePositionForLPStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvAttachListenerToStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvHasListenerInStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvDetachListenerFromStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvDetachAllListenersFromStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvAttachSpeakerToStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvHasSpeakerInStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvDetachSpeakerFromStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvDetachAllSpeakersFromStream(AMX* amx, cell* params);
static cell AMX_NATIVE_CALL n_SvDeleteStream(AMX* amx, cell* params);
public:
static bool Init(
const InitHandlerType& initHandler,
const GetVersionHandlerType& getVersionHandler,
const HasMicroHandlerType& hasMicroHandler,
const StartRecordHandlerType& startRecordHandler,
const StopRecordHandlerType& stopRecordHandler,
const AddKeyHandlerType& addKeyHandler,
const HasKeyHandlerType& hasKeyHandler,
const RemoveKeyHandlerType& removeKeyHandler,
const RemoveAllKeysHandlerType& removeAllKeysHandler,
const MutePlayerStatusHandlerType& mutePlayerStatusHandler,
const MutePlayerEnableHandlerType& mutePlayerEnableHandler,
const MutePlayerDisableHandlerType& mutePlayerDisableHandler,
const CreateGStreamHandlerType& createGStreamHandler,
const CreateSLStreamAtPointHandlerType& createSLStreamAtPointHandler,
const CreateSLStreamAtVehicleHandlerType& createSLStreamAtVehicleHandler,
const CreateSLStreamAtPlayerHandlerType& createSLStreamAtPlayerHandler,
const CreateSLStreamAtObjectHandlerType& createSLStreamAtObjectHandler,
const CreateDLStreamAtPointHandlerType& createDLStreamAtPointHandler,
const CreateDLStreamAtVehicleHandlerType& createDLStreamAtVehicleHandler,
const CreateDLStreamAtPlayerHandlerType& createDLStreamAtPlayerHandler,
const CreateDLStreamAtObjectHandlerType& createDLStreamAtObjectHandler,
const UpdatePositionForLPStreamHandlerType& updatePositionForLPStreamHandler,
const UpdateDistanceForLStreamHandlerType& updateDistanceForLStreamHandler,
const AttachListenerToStreamHandlerType& attachListenerToStreamHandler,
const HasListenerInStreamHandlerType& hasListenerInStreamHandler,
const DetachListenerFromStreamHandlerType& detachListenerFromStreamHandler,
const DetachAllListenersFromStreamHandlerType& detachAllListenersFromStreamHandler,
const AttachSpeakerToStreamHandlerType& attachSpeakerToStreamHandler,
const HasSpeakerInStreamHandlerType& hasSpeakerInStreamHandler,
const DetachSpeakerFromStreamHandlerType& detachSpeakerFromStreamHandler,
const DetachAllSpeakersFromStreamHandlerType& detachAllSpeakersFromStreamHandler,
const DeleteStreamHandlerType& deleteStreamHandler
);
static void OnPlayerActivationKeyPressForAll(const uint16_t playerid, const uint8_t keyid);
static void OnPlayerActivationKeyReleaseForAll(const uint16_t playerid, const uint8_t keyid);
static void RegisterScript(AMX* const amx);
static void Free();
};
| [
"cyber.mor.2020@gmail.com"
] | cyber.mor.2020@gmail.com |
0f4b3de3c4030c6313270e28a99989deed34b883 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/old_hunk_6704.cpp | a784d1df5ad51e4aa7c01facfceac26d44801080 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | cpp | struct cache_entry *ce;
ce = make_cache_entry(one->mode, one->sha1, one->path,
0, 0);
add_cache_entry(ce, ADD_CACHE_OK_TO_ADD |
ADD_CACHE_OK_TO_REPLACE);
} else | [
"993273596@qq.com"
] | 993273596@qq.com |
b7c8a3c2086a97ef34907f8cf557c6fea8f2a068 | 315317171916294cb0c1f26243748d4a44102dcf | /Johnston_project3/binTree.h | fe487a6e09ed3c063714574fc939eb89135c5ad2 | [] | no_license | benjdj6/CS2304 | 4d605fe4d7f9d109daaaa70f5e308a73e719c48b | 77e8532b6abfa2d4c108bcf511e91f85b92d69ae | refs/heads/master | 2021-01-13T16:11:30.076807 | 2013-12-22T03:11:47 | 2013-12-22T03:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | h | #ifndef BINTREE_H_
#define BINTREE_H_
// A generic binary search tree class. For some type T, the basic
// functions (insert, find, etc) assume that T has some meaningful
// implementation for the operators <, >, and ==, such that the
// values can be appropriately placed and found in the tree.
template<class T> class binTree {
public:
binTree();
~binTree();
void insert(T val);
T find(T val) const;
T remove(T val);
private:
struct node {
T val;
node* left;
node* right;
node(T v, node* l, node* r) : val(v), left(l), right(r) { }
};
void destruct(node* n);
void insert(T val, node* n);
T find(T val, node* n) const;
T remove(T val, node* n, node* parent);
node* root;
};
class not_found { };
#endif /* BINTREE_H_ */
#include "binTree.cc"
| [
"benjdj6@gmail.com"
] | benjdj6@gmail.com |
ff84d20454e2bbbd947046401453c79208589921 | 9c6c82bcdd8d63569e883b0bbef6cbcece7153ac | /Recursion 2/replace_characters_recursively.cpp | f3c332047ca8631ca68505e2f531915e3f0d4a66 | [] | no_license | subhanjan160901/Data-structures-and-Algorithms | 2de1f2c3df0034bb888f6fe16589b4b258dc5e62 | 812cec081d1c84b1fcfabf61ca768f7cabcf9d9a | refs/heads/main | 2023-08-16T22:02:51.048883 | 2021-09-25T18:32:02 | 2021-09-25T18:32:02 | 409,969,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | /* Given an input string S and two characters c1 and c2, you need to recursively replace every
occurence of c1 with c2 in the given string */
#include<iostream>
#include<string.h>
using namespace std;
void replaceCharacter(char input[], char c1, char c2)
{
if (strlen(input)==0)
return;
if (input[0]== c1)
input[0]= c2;
replaceCharacter(input+1, c1, c2);
}
int main()
{
char c1, c2;
cin>>c1>>c2;
char input[100];
cin>>input;
replaceCharacter(input, c1, c2);
cout<<input;
}
| [
"noreply@github.com"
] | noreply@github.com |
353ef025361d76106e0f823db199ceb23e2ba230 | c93d2a22f17b4017985acb6eaec046e7ddb99ccd | /Samples/UWP/D3D12DepthBoundsTest/src/D3D12DepthBoundsTest.h | 0e6b5ab71dd594c0862e893a513cae4fbdd56a1e | [
"MIT"
] | permissive | mvisic/DirectX-Graphics-Samples | 6318d636c2b7f8b60e93da68c81670fa295f16b4 | 5055b4f062bbc2e5f746cca377f5760c394bc2d6 | refs/heads/master | 2020-03-30T15:11:34.096065 | 2018-10-03T02:46:57 | 2018-10-03T02:46:57 | 151,352,244 | 0 | 0 | MIT | 2018-10-03T02:42:04 | 2018-10-03T02:42:03 | null | UTF-8 | C++ | false | false | 2,247 | h | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
#pragma once
#include "DXSample.h"
using namespace DirectX;
// Note that while ComPtr is used to manage the lifetime of resources on the CPU,
// it has no understanding of the lifetime of resources on the GPU. Apps must account
// for the GPU lifetime of resources to avoid destroying objects that may still be
// referenced by the GPU.
// An example of this can be found in the class method: OnDestroy().
using Microsoft::WRL::ComPtr;
class D3D12DepthBoundsTest : public DXSample
{
public:
D3D12DepthBoundsTest(UINT width, UINT height, std::wstring name);
virtual void OnInit();
virtual void OnUpdate();
virtual void OnRender();
virtual void OnDestroy();
private:
static const UINT FrameCount = 2;
struct Vertex
{
XMFLOAT3 position;
XMFLOAT4 color;
};
// Pipeline objects.
CD3DX12_VIEWPORT m_viewport;
CD3DX12_RECT m_scissorRect;
ComPtr<IDXGISwapChain3> m_swapChain;
ComPtr<ID3D12Device2> m_device;
ComPtr<ID3D12Resource> m_depthStencil;
ComPtr<ID3D12Resource> m_renderTargets[FrameCount];
ComPtr<ID3D12CommandAllocator> m_commandAllocator;
ComPtr<ID3D12CommandQueue> m_commandQueue;
ComPtr<ID3D12RootSignature> m_rootSignature;
ComPtr<ID3D12DescriptorHeap> m_rtvHeap;
ComPtr<ID3D12DescriptorHeap> m_dsvHeap;
ComPtr<ID3D12PipelineState> m_pipelineState;
ComPtr<ID3D12PipelineState> m_depthOnlyPipelineState;
ComPtr<ID3D12GraphicsCommandList1> m_commandList;
UINT m_rtvDescriptorSize;
bool DepthBoundsTestSupported;
// App resources.
ComPtr<ID3D12Resource> m_vertexBuffer;
D3D12_VERTEX_BUFFER_VIEW m_vertexBufferView;
// Synchronization objects.
UINT m_frameIndex;
UINT m_frameNumber;
HANDLE m_fenceEvent;
ComPtr<ID3D12Fence> m_fence;
UINT64 m_fenceValue;
void LoadPipeline();
void LoadAssets();
void PopulateCommandList();
void WaitForPreviousFrame();
};
| [
"swhsu@microsoft.com"
] | swhsu@microsoft.com |
2c5c6b210c8ef47b85b6d04a549288e8bd03b665 | ea3391c98fd97cab65654944093af63a2e6c38a1 | /dasm/writer/ObjectWriter.cpp | f39fbb0466286d5cf3ec6d6a56a3af1ad2265529 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | donno/dlx | 28f2527f154c0b8a0093b3d7175700373881d318 | c596bd75effe31d1f653c45fc854be3396440943 | refs/heads/master | 2022-12-01T05:55:33.657499 | 2022-11-28T12:13:13 | 2022-11-28T12:13:13 | 10,333,184 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,734 | cpp | //===----------------------------------------------------------------------===//
//
// DLX Assembly Parser
//
// NAME : ObjectWriter
// NAMESPACE : dlx::assembly
// PURPOSE : Provides operators and functions for writing DLX machine code.
// COPYRIGHT : (c) 2014 Sean Donnellan.
// LICENSE : The MIT License (see LICENSE.txt)
//
//===----------------------------------------------------------------------===//
#include "ObjectWriter.hpp"
dlx::assembly::ObjectWriter::ObjectWriter(std::ostream& writer)
: myWriter(writer),
myBytesWrittenToLine(0),
myAddressOfLine(0),
myStartAddress(0),
isStartAddressKnown(false)
{
myWriter << ".abs" << std::endl;
myWriter << std::hex << std::uppercase;
}
dlx::assembly::ObjectWriter::~ObjectWriter()
{
if (isStartAddressKnown)
{
if (myBytesWrittenToLine != 0)
{
myWriter << std::endl;
}
myWriter << std::endl << std::endl << std::endl << std::endl << ".start "
<< std::hex << std::uppercase << std::setfill('0') << std::setw(2)
<< myStartAddress << std::endl;
}
}
void dlx::assembly::ObjectWriter::SetStartAddress(size_t startAddress)
{
myStartAddress = startAddress;
isStartAddressKnown = true;
}
void dlx::assembly::ObjectWriter::PreByteWritten()
{
if (myBytesWrittenToLine == 16)
{
myWriter << std::endl;
myBytesWrittenToLine = 0;
myAddressOfLine += 16;
}
else if (myBytesWrittenToLine > 0)
{
myWriter << ' ';
}
if (myBytesWrittenToLine == 0)
{
myWriter << std::setfill('0') << std::setw(8) << myAddressOfLine << " ";
}
++myBytesWrittenToLine;
}
//===--------------------------- End of the file --------------------------===// | [
"darkdonno@gmail.com"
] | darkdonno@gmail.com |
74fa10d45807249306d4494d6e9fddfc9b2189fc | 3baa9814f66462bf957655e4e63307ac7ee6f65c | /main.cpp | 6c615743f8c028a31b84a5938460ef30648844e0 | [] | no_license | dartuso/RoutingTradeoffs | 4804ac960e38be6098ed485960448a822b785998 | 31d77f69643874cce841dca18cf399eb00eda95c | refs/heads/master | 2022-04-17T22:27:59.321662 | 2020-03-22T06:46:27 | 2020-03-22T06:46:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,107 | cpp | #include <iostream>
#include <utility>
#include <vector>
#include <string>
#include <fstream>
#include <climits>
#include <algorithm>
#include <list>
#include <iomanip>
#include "Event.h"
#include "Result.h"
#include "Edge.h"
using namespace std;
#define SHORTEST_HOP_PATH_FIRST "SHPF"
#define SHORTEST_DELAY_PATH_FIRST "SDPF"
#define LEAST_LOADED_PATH "LLP"
#define MAXIMUM_FREE_CIRCUITS "MFC"
#define SHORTEST_HOP_PATH_ONLY "SHPO"
#define MY_PATH
#define MAX_EVENTS 20000
#define MAX_VERTEX 20
/*Event Types*/
#define CALL_ARRIVAL 1
#define CALL_DEPARTURE 2
/*Two types
* Call arrival
* Call completion (if not blocked)
*
* When accepted
* Need to keep track of completed calls
* Time of when things arrive and leave
*
* */
bool algorithmMinMax(Event &event, Result &result);
bool shortestHopPathFirst(Event &event, Result &result);
bool shortestDelayPath(Event &event, Result &result);
bool leastLoadedPath(Event &event, Result &result);
bool maximumFreeCircuits(Event &event, Result &result);
void ReleaseCall(Event &event, Result &result);
int minDistance(int pInt[20], bool pBoolean[20]);
int minDistanceD(double *pInt, bool *pBoolean);
int maxDistance(int dist[20], bool found[20]);
int main() {
vector<Result> results;
#ifdef SHORTEST_HOP_PATH_FIRST
Result SHPF(SHORTEST_HOP_PATH_FIRST);
results.push_back(SHPF);
#endif
#ifdef SHORTEST_DELAY_PATH_FIRST
Result SDPF(SHORTEST_DELAY_PATH_FIRST);
results.push_back(SDPF);
#endif
#ifdef LEAST_LOADED_PATH
Result LLP(LEAST_LOADED_PATH);
results.push_back(LLP);
#endif
#ifdef MAXIMUM_FREE_CIRCUITS
Result MFC(MAXIMUM_FREE_CIRCUITS);
results.push_back(MFC);
#endif
ifstream topology("st.dat");
if (!topology) {
cerr << "Error reading topology file\n";
exit(-1);
}
vector<Edge> network;
while (!topology.eof()) {
char nodes[2];
float delay = 0;
int total = 0;
topology >> nodes[0];
topology >> nodes[1];
topology >> delay;
topology >> total;
int row = nodes[0] - 'A';
int col = nodes[1] - 'A';
// cout << "adding " << row << " " << col << " " << delay << " " << total << endl;
for (auto &result : results) {
result.graph[row][col] = Edge(row, col, delay, total);
result.graph[col][row] = Edge(row, col, delay, total);
}
}
topology.close();
ifstream eventFile("sc.dat");
if (!eventFile) {
cerr << "Error reading event file\n";
exit(-1);
}
int counter = 0;
while (!eventFile.eof()) {
float start = 0, duration = 0;
char startN, endN;
eventFile >> start;
eventFile >> startN;
eventFile >> endN;
eventFile >> duration;
int src = startN - 'A';
int dst = endN - 'A';
// cout << "adding " << src << " " << dst << " " << start << " " << duration << " " << events.size() << endl;
Event startEvent(src, dst, start, duration, counter, CALL_ARRIVAL);
for (auto &result : results){
result.events.push_back(startEvent);
}
counter++;
}
eventFile.close();
// std::sort(events.begin(),events.end());
/* Now simulate the call arrivals and departures */
cout << std::setprecision(5);
for (auto &result : results) {
// result.printCapacity();
for (auto &event : result.events) {
char src = event.getSource() + 'A';
char dst = event.getDestination() + 'A';
// cout << "Performing Event: " << event.getCallid() << " " << src << " " << dst << " type: " << event.getEventType() << " time: " << event.getEventTime() << endl;
if (event.getEventType() == CALL_ARRIVAL) {
result.incrTotalCalls();
if (algorithmMinMax(event, result)) {
result.incrSuccessCalls();
Event endEvent(event, CALL_DEPARTURE);
result.events.insert(std::lower_bound(result.events.begin(), result.events.end(), endEvent), endEvent);
} else {
result.incrBlockedCalls();
}
} else {
ReleaseCall(event, result);
}
// result.printCapacity();
}
}
//Print Results
cout << "Policy Calls Succ Block (%) Hops Delay\n";
cout << "-------------------------------------------------------------------" << endl;
for (auto &result : results) {
cout << result.getAlgo() << " \t" <<
result.getTotalCalls() << "\t\t" <<
result.getSuccessCalls() << "\t\t" <<
result.getBlockedCalls() << " (" <<
result.getBlocked() << "%)\t" <<
result.getHopsAvg() << "\t" <<
result.getDelayAvg() << endl;
}
return 0;
}
void ReleaseCall(Event &event, Result &result) {
/* cout << "Releasing: ";
for (auto node : event.path) {
cout << node;
}
cout << endl;*/
while (event.path.size() != 1) {
int id = event.path.back();
event.path.pop_back();
int id2 = event.path.back();
result.graph[id][id2].removeEvent();
result.graph[id2][id].removeEvent();
}
}
bool algorithmMinMax(Event &event, Result &result) {
switch (result.getAlgorithmEnum()){
case SHPF:
return shortestHopPathFirst(event,result);
break;
case SDPF:
return shortestDelayPath(event,result);
break;
case LLP:
return leastLoadedPath(event, result);
break;
case MFC:
return maximumFreeCircuits(event,result);
break;
default:
cerr << "Error in algorithm" << endl;
break;
}
}
int minDistance(int dist[20], bool found[20]) {
int min = INT_MAX, min_index = 21;
for (int v = 0; v < MAX_VERTEX; v++) {
if (!found[v] && dist[v] <= min) {
min = dist[v], min_index = v;
}
}
return min_index;
}
int minDistanceD(double *pInt, bool *pBoolean) {
double min = INT_MAX;
int min_index = 21;
for (int v = 0; v < MAX_VERTEX; v++) {
if (!pBoolean[v] && pInt[v] <= min) {
min = pInt[v], min_index = v;
}
}
return min_index;
}
bool shortestHopPathFirst(Event &event, Result &result) {
int dist[MAX_VERTEX];
int prev[MAX_VERTEX];
bool found[MAX_VERTEX] = {false};
for (int i = 0; i < MAX_VERTEX; ++i) {
dist[i] = INT_MAX;
prev[i] = INT_MAX;
}
dist[event.getSource()] = 0;
for (int j = 0; j < MAX_VERTEX; ++j) {
int u = minDistance(dist, found);
if (u == event.getDestination()) {
break;
}
found[u] = true;
for (int v = 0; v < MAX_VERTEX; ++v) {
int temp;
if (result.graph[u][v].getCapacity() != 0) {
temp = 1;
} else {
temp = 0;
}
if (!found[v] &&
result.graph[u][v].getCapacity() &&
dist[u] != INT_MAX &&
dist[u] + temp <= dist[v]) {
dist[v] = dist[u] + temp;
prev[v] = u;
}
}
}
int target = event.getDestination();
if (prev[target] != INT_MAX) {
// cout << "Path:";
while (target != event.getSource()) {
int temp = prev[target];
result.graph[temp][target].addEvent();
result.graph[target][temp].addEvent();
result.addDelay(result.graph[target][temp].getDelay());
// cout << target;
event.path.push_front(target);
target = prev[target];
}
result.addHops(event.path.size());
event.path.push_front(event.getSource());
// cout << " Size:" << event.path.size() << endl;
return true;
}
return false;
}
bool shortestDelayPath(Event &event, Result &result) {
int dist[MAX_VERTEX];
int prev[MAX_VERTEX];
bool found[MAX_VERTEX] = {false};
for (int i = 0; i < MAX_VERTEX; ++i) {
dist[i] = INT_MAX;
prev[i] = INT_MAX;
}
dist[event.getSource()] = 0;
for (int j = 0; j < MAX_VERTEX; ++j) {
int u = minDistance(dist, found);
if (u == event.getDestination()) {
break;
}
found[u] = true;
for (int v = 0; v < MAX_VERTEX; ++v) {
if (!found[v] &&
result.graph[u][v].getCapacity() &&
dist[u] != INT_MAX &&
dist[u] + result.graph[u][v].getDelay() < dist[v]) {
dist[v] = dist[u] + result.graph[u][v].getDelay();
prev[v] = u;
}
}
}
int target = event.getDestination();
if (prev[target] != INT_MAX) {
// cout << "Path:";
while (target != event.getSource()) {
int temp = prev[target];
result.graph[temp][target].addEvent();
result.graph[target][temp].addEvent();
result.addDelay(result.graph[target][temp].getDelay());
// cout << target;
event.path.push_front(target);
target = prev[target];
}
result.addHops(event.path.size());
event.path.push_front(event.getSource());
// cout << " Size:" << event.path.size() << endl;
return true;
}
return !event.path.empty();
}
bool leastLoadedPath(Event &event, Result &result) {
double dist[MAX_VERTEX];
double prev[MAX_VERTEX];
bool found[MAX_VERTEX] = {false};
double cost = 0;
for (int i = 0; i < MAX_VERTEX; ++i) {
dist[i] = INT_MAX;
prev[i] = INT_MAX;
}
dist[event.getSource()] = 0;
/*
* get a loads and sorted by lowest load
* from lowest load try to get to dest
*
*
* */
for (int j = 0; j < MAX_VERTEX; ++j) {
int u = minDistanceD(dist, found);
found[u] = true;
for (int v = 0; v < MAX_VERTEX; ++v) {
double cost = 0;
if (result.graph[u][v].getCapacity()) {
cost = (1.0 - ((double) result.graph[u][v].getCapacity() / (double) result.graph[u][v].getMaxcircuit()));
}
cost = max(dist[u], cost);
if (!found[v] &&
result.graph[u][v].getCapacity() &&
dist[u] != INT_MAX &&
cost < dist[v]) {
dist[v] = cost;
prev[v] = u;
}
}
}
int target = event.getDestination();
if (prev[target] != INT_MAX) {
// cout << "Path:";
while (target != event.getSource()) {
int temp = prev[target];
result.graph[temp][target].addEvent();
result.graph[target][temp].addEvent();
result.addDelay(result.graph[target][temp].getDelay());
// cout << target;
event.path.push_front(target);
target = prev[target];
}
result.addHops(event.path.size());
event.path.push_front(event.getSource());
// cout << " Size:" << event.path.size() << endl;
return true;
}
return false;
}
bool maximumFreeCircuits(Event &event, Result &result) {
int dist[MAX_VERTEX];
int prev[MAX_VERTEX];
bool found[MAX_VERTEX] = {false};
for (int i = 0; i < MAX_VERTEX; ++i) {
dist[i] = INT_MIN;
prev[i] = INT_MIN;
}
dist[event.getSource()] = INT_MAX;
for (int j = 0; j < MAX_VERTEX; ++j) {
int u = maxDistance(dist, found);
/* if (u == event.getDestination()) {
break;
}*/
found[u] = true;
for (int v = 0; v < MAX_VERTEX; ++v) {
int load = INT_MAX;
if (result.graph[u][v].getCapacity() > 0) {
load = result.graph[u][v].getCapacity();
}
load = min(dist[u], load);
if (!found[v] &&
result.graph[u][v].getCapacity() &&
dist[u] != INT_MIN &&
load > dist[v]
) {
dist[v] = load;
prev[v] = u;
}
}
}
int target = event.getDestination();
if (prev[target] != INT_MIN) {
// cout << "Path:";
while (target != event.getSource()) {
int temp = prev[target];
result.graph[temp][target].addEvent();
result.graph[target][temp].addEvent();
result.addDelay(result.graph[target][temp].getDelay());
// cout << target;
event.path.push_front(target);
target = prev[target];
}
result.addHops(event.path.size());
event.path.push_front(event.getSource());
// cout << " Size:" << event.path.size() << endl;
return true;
}
return false;
}
int maxDistance(int dist[20], bool found[20]) {
int min = INT_MIN, min_index = 21;
for (int v = 0; v < MAX_VERTEX; v++) {
if (!found[v] && dist[v] >= min) {
min = dist[v], min_index = v;
}
}
return min_index;
}
| [
"daniel.artuso1@gmail.com"
] | daniel.artuso1@gmail.com |
1b41aa14d705ebffd3b2547bae9119efe3bba8f2 | f7ec68288d24a91d672618452e188425946edd91 | /HW08_AhmetEmin_Kaplan_131044042/textfile.h | 2e143f1cf3db1b1c550676d774f072df5e262b87 | [] | no_license | aeminkaplan/CSE-241-Introduction-to-Object-Oriented-Programming-Cpp-and-Java- | c99b66b0ce60c3da9810ed42ce0557b172798f67 | 32babd9396408de8352e2dc59cab31d8cda9cb41 | refs/heads/master | 2021-04-09T11:20:14.338985 | 2016-06-11T12:43:06 | 2016-06-11T12:43:06 | 60,906,259 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 887 | h | /*
* File: textfile.h
* Author: aek
*
* Created on December 19, 2015, 8:37 PM
*/
#ifndef TEXTFILE_H
#define TEXTFILE_H
#include "file.h"
namespace AEminKaplan{
class textfile:public file{
public:
file& cd(const string name);
void ls(const string mode) const;
bool cp(const file& cpfile);
textfile(string _name,string _owner,string _lastmodification,string _size,string _texttype)
:file(_name,_owner,_lastmodification,_size){
texttype=_texttype;
}
textfile():file(){
set_texttype("unicode");
}
string get_texttype()const{
return texttype;
}
void set_texttype(string _texttype){
texttype=_texttype;
}
private:
string texttype;
};
}
#endif /* TEXTFILE_H */
| [
"noreply@github.com"
] | noreply@github.com |
2a776357a845ea352a01d85b0a9b4ed8a1561301 | be0282afa8dd436619c71d6118c9db455eaf1a29 | /Intermediate/Build/Win64/Design3D/Inc/Engine/MaterialExpressionLightmapUVs.generated.h | f138a6c60b55bba528f185d33a660021c3768685 | [] | no_license | Quant2017/Design3D | 0f915580b222af40ab911021cceef5c26375d7f9 | 94a22386be4aa37aa0f546354cc62958820a4bf6 | refs/heads/master | 2022-04-23T10:44:12.398772 | 2020-04-22T01:02:39 | 2020-04-22T01:02:39 | 262,966,755 | 1 | 0 | null | 2020-05-11T07:12:37 | 2020-05-11T07:12:36 | null | UTF-8 | C++ | false | false | 5,297 | h | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
===========================================================================*/
#include "UObject/ObjectMacros.h"
#include "UObject/ScriptMacros.h"
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#ifdef ENGINE_MaterialExpressionLightmapUVs_generated_h
#error "MaterialExpressionLightmapUVs.generated.h already included, missing '#pragma once' in MaterialExpressionLightmapUVs.h"
#endif
#define ENGINE_MaterialExpressionLightmapUVs_generated_h
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_RPC_WRAPPERS
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_RPC_WRAPPERS_NO_PURE_DECLS
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_INCLASS_NO_PURE_DECLS \
private: \
static void StaticRegisterNativesUMaterialExpressionLightmapUVs(); \
friend struct Z_Construct_UClass_UMaterialExpressionLightmapUVs_Statics; \
public: \
DECLARE_CLASS(UMaterialExpressionLightmapUVs, UMaterialExpression, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/Engine"), NO_API) \
DECLARE_SERIALIZER(UMaterialExpressionLightmapUVs)
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_INCLASS \
private: \
static void StaticRegisterNativesUMaterialExpressionLightmapUVs(); \
friend struct Z_Construct_UClass_UMaterialExpressionLightmapUVs_Statics; \
public: \
DECLARE_CLASS(UMaterialExpressionLightmapUVs, UMaterialExpression, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/Engine"), NO_API) \
DECLARE_SERIALIZER(UMaterialExpressionLightmapUVs)
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_STANDARD_CONSTRUCTORS \
/** Standard constructor, called after all reflected properties have been initialized */ \
NO_API UMaterialExpressionLightmapUVs(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); \
DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(UMaterialExpressionLightmapUVs) \
DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, UMaterialExpressionLightmapUVs); \
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(UMaterialExpressionLightmapUVs); \
private: \
/** Private move- and copy-constructors, should never be used */ \
NO_API UMaterialExpressionLightmapUVs(UMaterialExpressionLightmapUVs&&); \
NO_API UMaterialExpressionLightmapUVs(const UMaterialExpressionLightmapUVs&); \
public:
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_ENHANCED_CONSTRUCTORS \
/** Standard constructor, called after all reflected properties have been initialized */ \
NO_API UMaterialExpressionLightmapUVs(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()) : Super(ObjectInitializer) { }; \
private: \
/** Private move- and copy-constructors, should never be used */ \
NO_API UMaterialExpressionLightmapUVs(UMaterialExpressionLightmapUVs&&); \
NO_API UMaterialExpressionLightmapUVs(const UMaterialExpressionLightmapUVs&); \
public: \
DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, UMaterialExpressionLightmapUVs); \
DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(UMaterialExpressionLightmapUVs); \
DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(UMaterialExpressionLightmapUVs)
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_PRIVATE_PROPERTY_OFFSET
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_15_PROLOG
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_GENERATED_BODY_LEGACY \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_PRIVATE_PROPERTY_OFFSET \
Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_RPC_WRAPPERS \
Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_INCLASS \
Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_STANDARD_CONSTRUCTORS \
public: \
PRAGMA_ENABLE_DEPRECATION_WARNINGS
#define Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_GENERATED_BODY \
PRAGMA_DISABLE_DEPRECATION_WARNINGS \
public: \
Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_PRIVATE_PROPERTY_OFFSET \
Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_RPC_WRAPPERS_NO_PURE_DECLS \
Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_INCLASS_NO_PURE_DECLS \
Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h_18_ENHANCED_CONSTRUCTORS \
static_assert(false, "Unknown access specifier for GENERATED_BODY() macro in class MaterialExpressionLightmapUVs."); \
PRAGMA_ENABLE_DEPRECATION_WARNINGS
template<> ENGINE_API UClass* StaticClass<class UMaterialExpressionLightmapUVs>();
#undef CURRENT_FILE_ID
#define CURRENT_FILE_ID Engine_Source_Runtime_Engine_Classes_Materials_MaterialExpressionLightmapUVs_h
PRAGMA_ENABLE_DEPRECATION_WARNINGS
| [
"Snake_Jenny@126.com"
] | Snake_Jenny@126.com |
e13d03d44f8129d60edf8daa45006f03a13ee922 | 0e340c9bca96ece6e8d74861a0a59d423f92cc6f | /main.cpp | a2a85ea00ddfd5f685815aefd0569d76f7ef2897 | [] | no_license | hamzasamla/N-ary_Tree | 2173186c4ba287ee385dd2c84541350b069da7e5 | d7044c357a687a9c08fad6ffe976a251ae85f214 | refs/heads/master | 2020-05-26T04:51:16.265557 | 2018-10-08T17:59:05 | 2018-10-08T17:59:05 | 188,111,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,333 | cpp | #include <iostream>
#include <stdlib.h>
using namespace std;
struct NODE
{
NODE **child;
int data;
};
void insert(struct NODE** root, int val, int nchild, struct NODE* temp,int noChild)
{
struct NODE* curr=(struct NODE*)malloc(sizeof(struct NODE));
curr->child=(struct NODE**)malloc(sizeof(struct NODE)*nchild);
curr->data=val;
for(int i=0;i<nchild;i++)
{
curr->child[i]=NULL;
}
if(*root==NULL)
{
*root=curr;
}
else
{
temp->child[noChild]=curr;
}
}
int main()
{
struct NODE *root=NULL;
insert(&root,1,3,NULL,0);
insert(&root,2,2,root,0);
insert(&root,3,1,root,1);
insert(&root,4,0,root,2);
insert(&root,5,0,root->child[0],0);
insert(&root,6,0,root->child[0],1);
insert(&root,7,2,root->child[1],0);
insert(&root,9,0,root->child[1]->child[0],0);
insert(&root,8,0,root->child[1]->child[0],1);
cout<<root->data<<endl;
cout<<root->child[0]->data<<endl;
cout<<root->child[1]->data<<endl;
cout<<root->child[2]->data<<endl;
cout<<root->child[0]->child[0]->data<<endl;
cout<<root->child[0]->child[1]->data<<endl;
cout<<root->child[1]->child[0]->data<<endl;
cout<<root->child[1]->child[0]->child[0]->data<<endl;
cout<<root->child[1]->child[0]->child[1]->data<<endl;
}
| [
"hamzasohailsamla@gmail.com"
] | hamzasohailsamla@gmail.com |
40b75746c6ee7b96729bd3e890665e9efff94058 | d88b105a7871e448e71f5a20d7baf1d65ceb1f05 | /Brainless/Brainless/CoinTwineItem.h | 6e95f63d3851d6cc444ba1cb75518d6e7a0923ee | [] | no_license | Symphonym/Brainless | cb2a1b124ae39ab23d27c772939e83d8561f06da | 6f9f516d2afc8bbd9a1b08917340c71477f44088 | refs/heads/master | 2016-09-06T05:57:07.604834 | 2015-05-25T18:19:40 | 2015-05-25T18:19:40 | 29,669,104 | 0 | 2 | null | 2015-02-03T21:32:41 | 2015-01-22T08:35:47 | C++ | UTF-8 | C++ | false | false | 242 | h | #ifndef INCLUDED_COIN_TWINE_ITEM_H
#define INCLUDED_COIN_TWINE_ITEM_H
#include "Item.h"
class CoinTwineItem : public Item
{
public:
CoinTwineItem(int id);
bool onInteract(Item &otherItem, Game &game);
virtual Item* clone();
};
#endif | [
"symphonymdev@gmail.com"
] | symphonymdev@gmail.com |
9c07ca889a38b7340d78590290463e7b57a61f1f | 0307233373b9d1ab1866edc5f6588a0a3df5ba1a | /spoj-comdiv.cpp | 4813ad7898cffbda06811d0651654cb9b9089886 | [] | no_license | MuntasirNahid/oj-solution | 67750f7e72f454dfe3ae15a7f1d169a12c4b2957 | e99269d73e400206e096d38b1a5415b3ff8fd7b9 | refs/heads/master | 2023-04-23T09:40:54.608961 | 2021-05-12T08:54:08 | 2021-05-12T08:54:08 | 343,897,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 715 | cpp | #include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define pi acos(-1)
#define INF 1e18
#define MN7 ios::sync_with_stdio(0);cin.tie(nullptr);
#define MOD 1000000007
#define popb pop_back()
#define popf pop_front()
#define revers(x) reverse(x.begin(),x.end())
#define fo(i,a,n) for(i=a;i<n;i++)
using namespace std;
int t, n, i, j, k, a, b, c, d, p, q, r, x, y, z, m, cnt, flag, ans, u, v, w;
string s;
int gcd(ll a , ll b)
{
if (a == 0)return b;
return gcd(b % a, a);
}
void nahid()
{
cin >> a >> b;
cnt = 0;
x = gcd(a, b);
for (i = 1; i * i <= x; i++)
{
if (i * i == x)cnt++;
else if ( x % i == 0)cnt+= 2;
}
cout << cnt << endl;
}
int main()
{ MN7 cin >> t; while (t--)
nahid();
}
| [
"muntasirnahid87@gmail.com"
] | muntasirnahid87@gmail.com |
8eece010f677ccc5a70cb4634a1d3357cfbc0178 | 66586b174c89ec21000b9a97cc5ca33e06019378 | /Cam3dCppClrWrapper/DisparityMapWrapper.cpp | 28f3ae49d48b10ba61b1ac35d71ded412b282784 | [] | no_license | eglrp/Cam3dCpp | 86ac2fa4e78d1fc244b46282a47997eae04765ff | 92fa8ed927ef6bf4437028cfd581e50f0adfbe15 | refs/heads/master | 2020-04-07T04:53:38.224229 | 2017-10-16T05:08:44 | 2017-10-16T05:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cpp | #include "Stdafx.h"
#include "DisparityMapWrapper.h"
namespace Cam3dWrapper
{
DisparityMapWrapper::DisparityMapWrapper(int rows_, int cols_) :
rows(rows_),
cols(cols_)
{
native = new cam3d::DisparityMap(rows, cols);
}
DisparityMapWrapper::~DisparityMapWrapper()
{
delete native;
}
void DisparityMapWrapper::Update()
{
for (int r = 0; r < rows; ++r)
{
for (int c = 0; c < cols; ++c)
{
(*native)(r, c) = DisparityWrapper::_toNative(map[r, c]);
}
}
}
void DisparityMapWrapper::updateNative()
{
for (int r = 0; r < rows; ++r)
{
for (int c = 0; c < cols; ++c)
{
map[r, c] = DisparityWrapper::_fromNative((*native)(r, c));
}
}
}
} | [
"flagerkamil@gmail.com"
] | flagerkamil@gmail.com |
1fe04ad55703ba5165ca83003ecbc62f92ed68d0 | aaff0a475ba8195d622b6989c089ba057f180d54 | /backup/2/hackerrank/c++/happy-ladybugs.cpp | 4a7569c0ef68fcdacb940fa151f7aa708578c4db | [
"Apache-2.0"
] | permissive | DandelionLU/code-camp | 328b2660391f1b529f1187a87c41e15a3eefb3ee | 0fd18432d0d2c4123b30a660bae156283a74b930 | refs/heads/master | 2023-08-24T00:01:48.900746 | 2021-10-30T06:37:42 | 2021-10-30T06:37:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,337 | cpp | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage) : https://yanzhan.site .
// For this specific algothmic problem, visit my Youtube Video : .
// It's fascinating to solve algothmic problems, follow Yanzhan to learn more!
// Blog URL for this problem: https://yanzhan.site/hackerrank/happy-ladybugs.html .
string happyLadybugs(string colors) {
map<char, int> cache;
for (auto color : colors) {
if (cache.find(color) == cache.end()) {
cache[color] = 0;
}
cache[color]++;
}
for (auto it : cache) {
if (it.first != '_' && it.second == 1) {
return "NO";
}
}
if (cache.find('_') == cache.end()) {
char pre = '_';
int count = 0;
for (auto color : colors) {
if (color == pre) {
count++;
} else {
if (count == 1) {
return "NO";
} else {
pre = color;
count = 1;
}
}
}
}
return "YES";
}
| [
"yangyanzhan@gmail.com"
] | yangyanzhan@gmail.com |
dacd9a46ee76a30624baaff176c8f629c0896e92 | ef4ceae20089359f3d40e5f03abc8935300707f8 | /OpenFrameworks/JimmyChooShopWindowApp/src/Main/AppManager.cpp | c210296fc38bdd30c439ff9d3067ec94ca3058e9 | [] | no_license | ImanolGo/Jimmy-Choo-Shop-Window | 13293d4179057d5234e91c0ade929a68cbaddf12 | 08f12fe301033f1f14b6744bb98b86a61c14fc49 | refs/heads/master | 2021-01-01T19:21:52.842398 | 2017-09-05T15:15:37 | 2017-09-05T15:15:37 | 98,570,591 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,485 | cpp | /*
* AppManager.cpp
* Jimmy Choo Shop Window
*
* Created by Imanol Gomez on 27/07/17.
*
*/
#include "ofMain.h"
#include "AppManager.h"
AppManager& AppManager::getInstance()
{
// The only instance
// Guaranteed to be lazy initialized
// Guaranteed that it will be destroyed correctly
static AppManager m_instance;
return m_instance;
}
AppManager::AppManager(): Manager(), m_debugMode(false)
{
//Intentionally left empty
}
AppManager::~AppManager()
{
ofLogNotice() <<"AppManager::Destructor";
}
void AppManager::setup()
{
if(m_initialized)
return;
ofLogNotice() << "AppManager::initialized";
Manager::setup();
this->setupOF();
this->setupManagers();
ofSetLogLevel(OF_LOG_NOTICE);
//setDebugMode(m_debugMode);
}
void AppManager::setupOF()
{
ofSetLogLevel(OF_LOG_NOTICE);
//ofSetVerticalSync(true);
ofSetEscapeQuitsApp(true);
ofSetBackgroundAuto(true);
ofDisableSmoothing();
ofDisableAntiAliasing();
}
void AppManager::setupManagers()
{
m_settingsManager.setup();
m_resourceManager.setup();
m_viewManager.setup();
m_visualEffectsManager.setup();
m_layoutManager.setup();
m_keyboardManager.setup();
m_instagramManager.setup();
m_audioManager.setup();
m_sceneManager.setup();
m_serialManager.setup();
m_dmxManager.setup();
m_guiManager.setup();
}
void AppManager::update()
{
if(!m_initialized)
return;
m_visualEffectsManager.update();
m_viewManager.update();
m_audioManager.update();
m_sceneManager.update();
m_instagramManager.update();
m_layoutManager.update();
m_guiManager.update();
}
void AppManager::draw()
{
if(!m_initialized)
return;
auto color = AppManager::getInstance().getSettingsManager().getColor("BackgroundColor");
ofBackground(color);
//ofBackground(50,50,50);
// m_viewManager.draw();
m_layoutManager.draw();
m_guiManager.draw();
}
void AppManager::toggleDebugMode()
{
m_debugMode = !m_debugMode;
setDebugMode(m_debugMode);
}
void AppManager::exit()
{
m_guiManager.saveGuiValues();
}
void AppManager::setDebugMode(bool showDebug)
{
m_debugMode = showDebug;
ofLogNotice()<<"AppManager::setDebugMode-> " << m_debugMode;
if(m_debugMode){
//ofSetLogLevel(OF_LOG_VERBOSE);
}
else{
ofSetLogLevel(OF_LOG_NOTICE);
}
m_guiManager.showGui(m_debugMode);
}
| [
"yo@imanolgomez.net"
] | yo@imanolgomez.net |
9a178d978d4b13a7388d9741638e00b040a4e372 | 5ff10b372f99b3eed9bde75ac0007e4383dc42a6 | /00 Source File/SpriteObject.h | c53908227cc51d49c30a02d988f6079ddab0c36c | [] | no_license | RyunosukeHonda/Util | 4a3dc94413068b408785e973a3bb7a5f00d23a9f | d9e235eeee0f336009545bc20e60c92471eae31b | refs/heads/master | 2020-05-18T16:07:39.315632 | 2019-05-28T14:42:57 | 2019-05-28T14:42:57 | 184,518,192 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,075 | h | /**
* @file SpriteObject.h
* @brief スプライトオブジェクトクラス定義ファイル
* @author Ryunosuke Honda.
*/
#pragma once
#include "IObject.h"
#include "Transform.h"
#include "TextureID.h"
#include "SpriteRenderDesc.h"
/**
* スプライトオブジェクトクラス
* トランスフォーム、画像IDなど
* 描画に必要な情報をまとめたクラス
*/
class SpriteObject : public Transform, public IObject
{
public:
/**
* @fn
* コンストラクタ
* @param (id) 画像ID
*/
SpriteObject(const TextureID& id);
/**
* @fn
* デストラクタ
*/
~SpriteObject();
/**
* @fn
* 色設定
* @param (color) 設定する色
* @detail
* シェーダーに送る色を設定するだけなので
* 対応しているシェーダーのみ色が変わります
*/
void setColor(const Color4& color);
// IObject を介して継承されました
virtual void draw(IRenderer & renderer) override;
private:
//!描画記述子
SpriteRenderDesc mDesc;
};
/* End of File *****************************************************/ | [
"ryuh19961105@gmail.com"
] | ryuh19961105@gmail.com |
25a920efc5730831f979427c500666bf1d848ab7 | bd3bbdd7580d927df185143f410045aaa3d36d79 | /VisitorPattern/VisitorPattern/BaseNode.h | 1c451c80f4950f7d799934dc2ac9140cf7183a76 | [] | no_license | Vermillio/OOP_2_course | 7a67d46ceae3ca6b077835052f78ce35bc3ccaed | c58df2a2f38e5a2c3f98ef6558e2b18779a54859 | refs/heads/master | 2020-03-07T12:01:59.716735 | 2019-11-28T06:41:45 | 2019-11-28T06:41:45 | 127,468,754 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | h | #ifndef BASE_NODE_H
#define BASE_NODE_H
template<class T>
class Visitor;
class Manager;
template<class T>
class BaseNode {
virtual int accept(Manager *) = 0;
};
#endif | [
"anna.khodyreva21@gmail.com"
] | anna.khodyreva21@gmail.com |
f2956662d4440fff077b3082eae5edc754277699 | b0b894f13b7ba52392ff6ce3e24acb7647bceecc | /rawmesh.cpp | d544ce24ec7b776e3752fa97012ea960c69f1028 | [
"MIT"
] | permissive | ionaic/rendering-architecture | f2b460b9477e7fec255399ac3c700f2340ddd958 | 924fc02a3bdc07f668918b062cd7c67f61793846 | refs/heads/master | 2021-01-24T09:46:40.785971 | 2016-10-09T02:44:25 | 2016-10-09T02:44:25 | 70,121,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,219 | cpp | #include "rawmesh.h"
RawMesh::RawMesh() {
}
void RawMesh::addPositions(const std::vector<glm::vec4> &poss) {
this->positions.insert(this->positions.end(), poss.begin(), poss.end());
}
void RawMesh::addColors(const std::vector<glm::vec4> &cols) {
this->colors.insert(this->colors.end(), cols.begin(), cols.end());
}
void RawMesh::addNormals(const std::vector<glm::vec3> &norms) {
this->normals.insert(this->normals.end(), norms.begin(), norms.end());
}
void RawMesh::addUvs(const std::vector<glm::vec2> &uvs) {
this->uvs.insert(this->uvs.end(), uvs.begin(), uvs.end());
}
void RawMesh::addUvs(const std::vector<glm::vec3> &uvs) {
for (std::vector<glm::vec3>::const_iterator itr = uvs.begin(); itr != uvs.end(); ++itr) {
this->uvs.push_back(glm::vec2((*itr)[0], (*itr)[1]));
}
}
void RawMesh::addPosition(const glm::vec4 &pos) {
this->positions.push_back(pos);
}
void RawMesh::addColor(const glm::vec4 &col) {
this->colors.push_back(col);
}
void RawMesh::addNormal(const glm::vec3 &norm) {
this->normals.push_back(norm);
}
void RawMesh::addUv(const glm::vec2 &uv) {
this->uvs.push_back(uv);
}
void RawMesh::addUv(const glm::vec3 &uv) {
this->uvs.push_back(glm::vec2(uv[0], uv[1]));
}
//void RawMesh::addIndexSet(const unsigned int position, const unsigned int color, const unsigned int normal, const unsigned int uv) {
// IndexSet tmp;
// tmp.position = position;
// tmp.color = color;
// tmp.normal = normal;
// tmp.uv = uv;
// indices.push_back(tmp);
//}
void RawMesh::addVertex(const Vertex &v) {
this->vertices.push_back(v);
}
void RawMesh::addVertices(const std::vector<Vertex> &vertices) {
this->vertices.insert(this->vertices.end(), vertices.begin(), vertices.end());
}
void RawMesh::addFace(const Face &f) {
this->indices.push_back(f);
}
void RawMesh::addFace(const unsigned int &a, const unsigned int &b, const unsigned int &c) {
Face f;
f.a = a;
f.b = b;
f.c = c;
this->addFace(f);
}
void RawMesh::addFaces(const std::vector<Face> &faces) {
this->indices.insert(this->indices.end(), faces.begin(), faces.end());
}
std::string RawMesh::toString() const {
std::stringstream out;
out << "Position data: ";
for (std::vector<glm::vec4>::const_iterator pos = this->positions.begin(); pos != this->positions.end(); ++pos) {
out << "\n\t(" << (*pos)[0] << ", " << (*pos)[1] << ", " << (*pos)[2] << ", " << (*pos)[3] << ")";
}
out << std::endl << "Color data: ";
for (std::vector<glm::vec4>::const_iterator col = this->colors.begin(); col != this->colors.end(); ++col) {
out << "\n\t(" << (*col)[0] << ", " << (*col)[1] << ", " << (*col)[2] << ", " << (*col)[3] << ")";
}
out << std::endl << "Normal data: ";
for (std::vector<glm::vec3>::const_iterator norm = this->normals.begin(); norm != this->normals.end(); ++norm) {
out << "\n\t(" << (*norm)[0] << ", " << (*norm)[1] << ", " << (*norm)[2] << ")";
}
out << std::endl << "UV data: ";
for (std::vector<glm::vec2>::const_iterator uv = this->uvs.begin(); uv != this->uvs.end(); ++uv) {
out << "\n\t(" << (*uv)[0] << ", " << (*uv)[1] << ")";
}
return out.str();
}
| [
"ionaic@gmail.com"
] | ionaic@gmail.com |
e5ce0c6b077d28eb6b0273eeb92a40ae184c2a6d | cfaa40ef480f05cec23e56a1e93991149bc259a6 | /Q8.cpp | f80fa607489861465ef58a8b71f1e736846d560f | [] | no_license | omega07/Credit-Suisse-Global-Coding-Challenge | ee1a31e8a2181e51e2485f78ce9b7d83419c96be | f14f7a31de9c971323413d2c566e16ff3b887516 | refs/heads/main | 2023-02-03T05:35:07.083295 | 2020-12-10T05:02:09 | 2020-12-10T05:02:09 | 320,162,962 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 766 | cpp | #include <bits/stdc++.h>
#define int long long
#define inf 5e18
#define MOD (int)(1e9 + 7)
#define pb push_back
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(),x.rend()
#define pii pair<int,int>
#define vii vector<pii>
#define vi vector<int>
using namespace std;
int n,m;
const int N = 2500;
vi a(N);
int dp[N][N];
int f(int id, int sum) {
if(sum < 0) return 0;
if(sum == 0) return 1;
if(dp[id][sum] != -1) return dp[id][sum];
int ans = 0;
for(int i=id;i<m;i++) {
ans += f(i,sum-a[i]);
}
return dp[id][sum] = ans;
}
void solve() {
cin>>n>>m;
a.resize(m);
for(int i=0;i<m;i++) cin>>a[i];
sort(all(a));
memset(dp,-1,sizeof(dp));
cout<<f(0,n);
}
signed main()
{
solve();
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
6a6492d070340282934e3b8cb81c281589b0d3e4 | ff9854ccafd47c9a33db587903493faea6ae3263 | /Baekjoon Online Judge/15685_00.cpp | 3cfb4547db38b8fd2fffe6ccfe482bc3f7471dfb | [] | no_license | peter4549/problems | 779cffe0bac283bef0e8a2fd62f715effb251dce | 788fc8831f17f931b644ed9fc381c225d018469a | refs/heads/master | 2023-03-22T19:22:25.416031 | 2021-03-06T15:47:31 | 2021-03-06T15:47:31 | 299,646,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 855 | cpp | #include <cstdio>
const int dy[4] = { 0, -1, 0, 1 };
const int dx[4] = { 1, 0, -1, 0 };
int N;
int grid[101][101];
int main() {
int x, y, d, g;
scanf("%d", &N);
for (int i(0); i < N; ++i) {
int curve_count = 0;
int curve[1024] = { 0, };
scanf("%d %d %d %d", &x, &y, &d, &g);
curve[curve_count++] = d;
grid[y][x] = 1;
for (int j(0); j < g; ++j) {
for (int k = curve_count - 1; k >= 0; --k)
curve[curve_count++] = (curve[k] + 1) % 4;
}
for (int j(0); j < curve_count; ++j) {
y += dy[curve[j]];
x += dx[curve[j]];
if (y < 0 || y >= 101 || x < 0 || x > 101)
break;
grid[y][x] = 1;
}
}
int count(0);
for (int i(0); i < 100; ++i) {
for (int j(0); j < 100; ++j) {
if (grid[i][j] && grid[i][j + 1] && grid[i + 1][j] && grid[i + 1][j + 1])
++count;
}
}
printf("%d", count);
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
0951c0a1e0c5f836fa09c1e73e77f7112893ef55 | 24e7e78eed3bde0ada6d90f94a82b9f7d90b84e3 | /faceDetection/src/main/cpp/include/ncnn.h | 0f07a6dfc04512ce70906cb45ad68abd140f0b4d | [] | no_license | w8713015050275/ZhcApplication | b1fc9e01810338e04f7cb644fec99b5fabbdfe6f | 6512d6707da07c8f26538f0f9209a2e420397a0b | refs/heads/master | 2023-03-25T20:23:27.958443 | 2021-03-25T02:37:07 | 2021-03-25T02:37:07 | 324,350,591 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,957 | h | // Created by luozhiwang (luozw1994@outlook.com)
// Date: 2020/6/3
#ifndef NCNN_NCNN_H
#define NCNN_NCNN_H
#include <string>
#include <chrono>
#include <vector>
#include <iostream>
#include <memory>
#include <android/log.h>
#include <arm_neon.h>
#include "ncnn/net.h"
#include "thread_safety_stl.h"
#include "common.h"
#include "utils.h"
class Ncnn{
protected:
std::shared_ptr<ncnn::Net> mNet;
common::InputParams mInputParams;
common::NcnnParams mNcnnParams;
// tss::thread_pool mThreadPool;
protected:
Ncnn(common::InputParams inputParams, common::NcnnParams ncnnParams);
bool constructNetwork(const std::string& param, const std::string& model);
bool constructNetwork(AAssetManager* mgr, const std::string& param, const std::string& model);
virtual common::Image preProcess(JNIEnv* env, const jobject &image, bool rgb);
virtual float infer(const ncnn::Mat &inputDatas, std::vector<ncnn::Mat> &outputDatas);
};
class Detection : protected Ncnn{
protected:
common::DetectParams mDetectParams;
public:
void transformBbox(const int &oh, const int &ow, const int &nh, const int &nw, std::vector<common::Bbox> &bboxes);
Detection(common::InputParams inputParams, common::NcnnParams ncnnParams, common::DetectParams detectParams);
virtual common::Image preProcess(JNIEnv* env, const jobject &image, bool rgb);
virtual float infer(const ncnn::Mat &inputDatas, std::vector<ncnn::Mat> &outputDatas);
virtual std::vector<common::Bbox> postProcess(const std::vector<ncnn::Mat> &outputDatas, int H, int W, float postThres, float nmsThres) = 0;
virtual bool initSession(AAssetManager* mgr);
virtual std::vector<common::Bbox> predOneImage(JNIEnv* env, const jobject &image, float postThres, float nmsThres);
virtual bool setNumThread(int num);
virtual bool setNcnnWorkThread(int num);
virtual float benchmark();
virtual int convertSize();
};
#endif //NCNN_NCNN_H
| [
"huancheng.zhang@zhangmen.com"
] | huancheng.zhang@zhangmen.com |
4ac765c3130e91195fc8ee514f93bc6e1a2030bb | 8159fb5a12a1c392a75fe0bee9c83df596b8979b | /xo/system/log.h | d3456252730569fbb8601fcd676c9b6484929dde | [
"Apache-2.0"
] | permissive | chatmoon/xo | 34175f7fb040505a24d990de3cf7b27fc1894a32 | 1ebdcfebe1b233a8380e71aa095361ef9b30545a | refs/heads/master | 2020-06-12T21:34:19.747978 | 2019-06-28T13:30:21 | 2019-06-28T13:30:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,152 | h | #pragma once
#include "xo/system/xo_config.h"
#include "xo/string/string_type.h"
#include "xo/string/string_cast.h"
#include "xo/system/log_level.h"
#define xo_logvar( var_ ) xo::log::trace( #var_"=", var_ )
#define xo_logvar2( var1_, var2_ ) xo::log::trace( #var1_"=", var1_, "\t", #var2_"=", var2_ )
#define xo_logvar3( var1_, var2_, var3_ ) xo::log::trace( #var1_"=", var1_, "\t", #var2_"=", var2_, "\t", #var3_"=", var3_ )
#define xo_logvar4( var1_, var2_, var3_, var4_ ) xo::log::trace( #var1_"=", var1_, "\t", #var2_"=", var2_, "\t", #var3_"=", var3_, "\t", #var4_"=", var4_ )
#define xo_do_periodic( interval_, statement_ ) { static local_count_ = 0; if ( local_count_++ % interval_ == 0 ) { statement_; } }
#define xo_trace_call( function_ ) xo::log::trace( "--> "#function_ ); function_; xo::log::trace( "<-- "#function_ )
#define xo_log_if_different( var1_, var2_ ) if ( var1_ != var2_ ) xo::log::debug( #var1_"=", var1_, "\t", #var2_"=", var2_ )
namespace xo
{
namespace log
{
// output sink
class sink;
XO_API void add_sink( sink* s );
XO_API void remove_sink( sink* s );
// dynamic log level
XO_API void set_global_log_level( level l );
XO_API level get_global_log_level();
XO_API bool test_log_level( level l );
// log independent of level
XO_API void log_string( level l, const string& s );
XO_API void log_vstring( level l, const char* format, va_list list );
template< typename T, typename... Args > void log_string( level l, std::string& s, T v, const Args&... args ) {
s += to_str( v );
log_string( l, s, args... );
}
// log at specified level
template< typename... Args > void message( level l, const Args&... args ) {
if ( test_log_level( l ) ) {
std::string s;
s.reserve( 256 );
log_string( l, s, args... );
}
}
void messagef( level l, const char* format, ... );
template< typename... Args > void trace( const Args&... args ) {
if constexpr ( XO_STATIC_LOG_LEVEL <= trace_level )
message( trace_level, args... );
}
XO_API void tracef( const char* format, ... );
template< typename... Args > void debug( const Args&... args ) {
if constexpr ( XO_STATIC_LOG_LEVEL <= debug_level )
message( debug_level, args... );
}
XO_API void debugf( const char* format, ... );
template< typename... Args > void info( const Args&... args ) {
if constexpr ( XO_STATIC_LOG_LEVEL <= info_level )
message( info_level, args... );
}
XO_API void infof( const char* format, ... );
template< typename... Args > void warning( const Args&... args ) {
if constexpr ( XO_STATIC_LOG_LEVEL <= warning_level )
message( warning_level, args... );
}
XO_API void warningf( const char* format, ... );
template< typename... Args > void error( const Args&... args ) {
if constexpr ( XO_STATIC_LOG_LEVEL <= error_level )
message( error_level, args... );
}
XO_API void errorf( const char* format, ... );
template< typename... Args > void critical( const Args&... args ) {
if constexpr ( XO_STATIC_LOG_LEVEL <= critical_level )
message( critical_level, args... );
}
XO_API void criticalf( const char* format, ... );
}
}
| [
"tgeijten@gmail.com"
] | tgeijten@gmail.com |
65aa30d9bb93a8157a79a814cf383f7a4c930ac4 | b37c38e67616a30ab92eb07e7c1cea33b1ac90d9 | /UTIPC-2020/template.cpp | 3ea123bbd2845d233051213cf78f3089dcb4d5cb | [] | no_license | vlchen888/icpc-training | 358a64f7284c2d367455a02489bf73347c5ca8f2 | 1e5e15ef8669563c8c2397e96f46d4129013e15d | refs/heads/master | 2021-02-11T21:43:27.119501 | 2020-12-25T05:08:39 | 2020-12-25T05:08:39 | 244,531,448 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 103 | cpp | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(0);
cin.sync_with_stdio(0);
}
| [
"bluezebragames@gmail.com"
] | bluezebragames@gmail.com |
b1a713d96fddb4541992cb90bb947a4cb4bf2952 | cd50eac7166505a8d2a9ef35a1e2992072abac92 | /templates/graph-theory/Kruskal.cpp | 0b57ff0272f18d36294fc10dc74066ae0a010ef8 | [] | no_license | AvaLovelace1/competitive-programming | 8cc8e6c8de13cfdfca9a63e125e648ec60d1e0f7 | a0e37442fb7e9bf1dba4b87210f02ef8a134e463 | refs/heads/master | 2022-06-17T04:01:08.461081 | 2022-04-28T00:08:16 | 2022-04-28T00:08:16 | 123,814,632 | 8 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | cpp | /*
~ Kruskal's Minimum Spanning Tree Algorithm ~
(with disjoint set data structure)
Finds the minimum spanning tree of a graph.
Easier to type than Prim's IMO.
Time complexity: O(ElogE)
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int, int> pii;
typedef pair<int, pii> piii;
const int INF = 0x3F3F3F3F;
const int MOD = 1e9 + 7;
const int MAX = 1e5 + 5;
const int MAXE = 1e6 + 5;
int N, M;
piii edges[MAXE];
int par[MAX], ranks[MAX];
int Find(int x) {
if (par[x] != x) {
par[x] = Find(par[x]);
}
return par[x];
}
bool Union(int a, int b) {
a = Find(a);
b = Find(b);
if (a == b) {
return false;
}
if (ranks[a] < ranks[b]) {
par[a] = b;
} else {
par[b] = a;
if (ranks[a] == ranks[b]) {
ranks[a]++;
}
}
return true;
}
int krus() {
sort(edges, edges + M);
fill(ranks, ranks + N + 1, 0);
for (int i = 1; i <= N; i++) {
par[i] = i;
}
int ans = 0;
for (int i = 0; i < M; i++) {
piii e = edges[i];
int u = e.second.first;
int v = e.second.second;
int w = e.first;
if (Union(u, v)) {
ans += w;
}
}
return ans;
}
int main() {
scanf("%d%d", &N, &M);
for (int i = 0; i < M; i++) {
scanf("%d%d%d", &edges[i].second.first, &edges[i].second.second, &edges[i].first);
}
printf("Weight of minimum spanning tree: %d\n", krus());
return 0;
}
| [
"noreply@github.com"
] | noreply@github.com |
f9170e99aa5a93d07d83d6d05eedc9a78f2239db | 47f42044db71893c6de134b739e49e651b60c084 | /main.cpp | a47dbe2a2df491af966c51327088814876a5f97f | [] | no_license | choudhariashish/ParallelFileProcessing | 814bf1853b6bfb6390db2b82ba9900bfeb6eb7fc | c5a36631b57472869beb3028a6c553738e80e222 | refs/heads/master | 2021-01-13T13:48:15.702851 | 2016-12-13T23:38:35 | 2016-12-13T23:38:35 | 76,321,922 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 93 | cpp | #include "Reader.h"
int main()
{
Reader reader;
reader.parseFile();
return 0;
}
| [
"ashish@seriforge.com"
] | ashish@seriforge.com |
7c7782b109f660b798abd979cf472321ac78fe4a | 24f26275ffcd9324998d7570ea9fda82578eeb9e | /chrome/browser/search/ntp_icon_source.h | 314b757609d82c730a101a3f1d389039f8982832 | [
"BSD-3-Clause"
] | permissive | Vizionnation/chromenohistory | 70a51193c8538d7b995000a1b2a654e70603040f | 146feeb85985a6835f4b8826ad67be9195455402 | refs/heads/master | 2022-12-15T07:02:54.461083 | 2019-10-25T15:07:06 | 2019-10-25T15:07:06 | 217,557,501 | 2 | 1 | BSD-3-Clause | 2022-11-19T06:53:07 | 2019-10-25T14:58:54 | null | UTF-8 | C++ | false | false | 2,658 | h | // Copyright 2018 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_BROWSER_SEARCH_NTP_ICON_SOURCE_H_
#define CHROME_BROWSER_SEARCH_NTP_ICON_SOURCE_H_
#include <memory>
#include <string>
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/task/cancelable_task_tracker.h"
#include "components/image_fetcher/core/image_fetcher.h"
#include "components/image_fetcher/core/image_fetcher_types.h"
#include "content/public/browser/url_data_source.h"
class GURL;
class Profile;
class SkBitmap;
namespace favicon_base {
struct FaviconRawBitmapResult;
}
namespace gfx {
class Image;
}
// NTP Icon Source is the gateway between network-level chrome: requests for
// NTP icons and the various backends that may serve them.
class NtpIconSource : public content::URLDataSource {
public:
explicit NtpIconSource(Profile* profile);
~NtpIconSource() override;
// content::URLDataSource implementation.
std::string GetSource() override;
void StartDataRequest(
const GURL& url,
const content::WebContents::Getter& wc_getter,
const content::URLDataSource::GotDataCallback& callback) override;
std::string GetMimeType(const std::string& path) override;
bool ShouldServiceRequest(const GURL& url,
content::ResourceContext* resource_context,
int render_process_id) override;
private:
struct NtpIconRequest;
void OnLocalFaviconAvailable(
const NtpIconRequest& request,
const favicon_base::FaviconRawBitmapResult& bitmap_result);
// Returns whether |url| is in the set of server suggestions.
bool IsRequestedUrlInServerSuggestions(const GURL& url);
void RequestServerFavicon(const NtpIconRequest& request);
void OnServerFaviconAvailable(const NtpIconRequest& request,
const gfx::Image& fetched_image,
const image_fetcher::RequestMetadata& metadata);
// Will call |request.callback| with the rendered icon. |bitmap| can be empty,
// in which case the returned icon is a fallback circle with a letter drawn
// into it.
void ReturnRenderedIconForRequest(const NtpIconRequest& request,
const SkBitmap& bitmap);
base::CancelableTaskTracker cancelable_task_tracker_;
Profile* profile_;
std::unique_ptr<image_fetcher::ImageFetcher> const image_fetcher_;
base::WeakPtrFactory<NtpIconSource> weak_ptr_factory_{this};
DISALLOW_COPY_AND_ASSIGN(NtpIconSource);
};
#endif // CHROME_BROWSER_SEARCH_NTP_ICON_SOURCE_H_
| [
"rjkroege@chromium.org"
] | rjkroege@chromium.org |
a597a4649469557621cd3476b53b3310b5dbd7dc | c7830d7c16df7b0fbff1bc7759da53a095fe9482 | /doodle/vec2.cpp | f84c87d0640a9cb821c4141a4aa7e4612a4c2915 | [] | no_license | donga-DigiPen/lab | d079f113db60b340545202151f55587127e0bf20 | ea3bf08dbac25d6dbce7118f142fefe01ad3b9ed | refs/heads/master | 2022-12-20T06:27:46.479764 | 2020-10-15T09:30:03 | 2020-10-15T09:30:03 | 304,274,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 437 | cpp | #include "vec2.h"
vec2::vec2(double x_value, double y_value) : x{x_value}, y{y_value} {}
vec2::vec2(double fill_value) : vec2(fill_value, fill_value) {}
void vec2::AddTo(vec2 b)
{
x += b.x;
this->y += b.y;
}
void vec2::MultiplyBy(double scale)
{
x *= scale;
y *= scale;
}
vec2 Add(vec2 a, vec2 b) { return vec2{a.x + b.x, a.y + b.y}; }
vec2 Multiply(vec2 a, double scale) { return vec2{a.x * scale, a.y * scale}; }
| [
"donga.choi@digipen.edu"
] | donga.choi@digipen.edu |
faf2b444d2abf5db22c8b927f89214a8fcea0474 | 2ec289dc0e3151708e9f50a41a13ca0e1c363998 | /Codeforces/Manthan, Codefest 18 (rated, Div. 1 + Div. 2)/C.cpp | 0caa689c5b170c6efc7a4c0549bf333050e81e1a | [] | no_license | sayedgkm/ProgrammingContest | eb71cae6850dd7fac12f49895bfabd58f2f4c70e | 8f3c07e9ebee3b8a662cb5ce0a7c3d53d6f8c72a | refs/heads/master | 2021-04-30T08:54:26.830730 | 2020-07-05T17:03:57 | 2020-07-05T17:03:57 | 121,387,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,924 | cpp | /// Bismillahir-Rahmanir-Rahim
#include <bits/stdc++.h>
#define ll long long int
#define FOR(x,y,z) for(int x=y;x<z;x++)
#define pii pair<int,int>
#define pll pair<ll,ll>
#define CLR(a) memset(a,0,sizeof(a))
#define SET(a) memset(a,-1,sizeof(a))
#define N 1000010
#define M 1000000007
#define pi acos(-1.0)
#define ff first
#define ss second
#define pb push_back
#define inf (1e9)+1000
#define eps 1e-9
#define ALL(x) x.begin(),x.end()
using namespace std;
int dx[]={0,0,1,-1,-1,-1,1,1};
int dy[]={1,-1,0,0,-1,1,1,-1};
template < class T> inline T biton(T n,T pos){return n |((T)1<<pos);}
template < class T> inline T bitoff(T n,T pos){return n & ~((T)1<<pos);}
template < class T> inline T ison(T n,T pos){return (bool)(n & ((T)1<<pos));}
template < class T> inline T gcd(T a, T b){while(b){a%=b;swap(a,b);}return a;}
template <typename T> string NumberToString ( T Number ) { ostringstream ss; ss << Number; return ss.str(); }
inline int nxt(){int aaa;scanf("%d",&aaa);return aaa;}
inline ll lxt(){ll aaa;scanf("%lld",&aaa);return aaa;}
inline double dxt(){double aaa;scanf("%lf",&aaa);return aaa;}
template <class T> inline T bigmod(T p,T e,T m){T ret = 1;
for(; e > 0; e >>= 1){
if(e & 1) ret = (ret * p) % m;p = (p * p) % m;
} return (T)ret;}
#ifdef sayed
#define debug(...) __f(#__VA_ARGS__, __VA_ARGS__)
template < typename Arg1 >
void __f(const char* name, Arg1&& arg1){
cerr << name << " is " << arg1 << std::endl;
}
template < typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
const char* comma = strchr(names+1, ',');
cerr.write(names, comma - names) << " is " << arg1 <<" | ";
__f(comma+1, args...);
}
#else
#define debug(...)
#endif
///******************************************START******************************************
int ar[N];
int main(){
#ifdef sayed
//freopen("out.txt","w",stdout);
// freopen("in.txt","r",stdin);
#endif
ios_base::sync_with_stdio(false);
cin.tie(0);
int n;
cin>>n;
string s;
string t;
cin>>s>>t;
s+='0';
t+='0';
int cnt = 0;
for(int i = 0;i<n;i++) {
if(s[i]!=t[i]) {
if(s[i+1]==t[i]&&t[i+1]==s[i]) {
swap(s[i],s[i+1]);
cnt++;
} else {
cnt++;
}
}
}
cout<<cnt<<endl;
return 0;
}
| [
"sayedgkm@gmail.com"
] | sayedgkm@gmail.com |
7eb164e2f8a7db3f79ab76134cd6aded7bb822d4 | 41448ed071f23d6dbe6c5cdb67952fc4eb3d78ca | /src/Lights/PointLight.cpp | 3e916ff004a19b9090b042df9ef17f2695d99dd0 | [] | no_license | janisozaur/foto-results | 2c4ec433bf5654aa7a4eb581622f61317efeafc7 | 5363c4805e5a09840cd64726eff21faa72547589 | refs/heads/master | 2020-03-27T03:41:27.780006 | 2012-05-22T11:01:41 | 2012-05-22T11:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,327 | cpp | #include "PointLight.h"
#include <algorithm>
#include <cfloat>
#include <Scene.h>
using namespace std;
PointLight::PointLight() : AmbientLight()
{
position.Zero();
attenuation.One();
type = POINT;
projectionMap=0;
}
PointLight::PointLight(Vector3 position, Color color, Vector3 attenuation) : AmbientLight() {
this->position = position;
this->color = color;
this->attenuation = attenuation;
type = POINT;
projectionMap=0;
}
PointLight::~PointLight() {
if(projectionMap) {
delete projectionMap;
projectionMap=0;
}
}
bool PointLight::IsInShadow(IntersectionResult *ir, QList<Geometry *> &geometry) {
//chec if ray from light to intersection point intersects some geometry
Ray lightToPoint(position, ir->point-position);
float dist = (position-ir->point).GetLength() - 0.001;
for(int i=0;i<geometry.count();i++) {
IntersectionResult intersect = geometry.at(i)->Intersects(lightToPoint);
if(intersect.type==HIT && intersect.distance<dist && intersect.object!=ir->object)
return true;
}
return false;
}
Vector3 PointLight::GetPosition() const {
return position;
}
LightIntensity PointLight::GetLightIntensity(Vector3 cameraPosition, IntersectionResult *ir,
QList<Geometry *> &geometry) {
LightIntensity result(0,0,0);
if(IsInShadow(ir, geometry))
return result;
Vector3 normal = ir->intersectionPointNormal;
Vector3 light(position - ir->point);
float lightDistance = light.GetLength();
normal.Normalize();
light.Normalize();
Material* mat = ir->object->GetMaterial();
//if geometry has diffuse material calculate phong lighting
if(mat->type==DIFFUSE) {
DiffuseMaterial* diffMat = (DiffuseMaterial*)mat;
float diffuseFactor = normal.DotProduct(light);
if(diffuseFactor > 0.0f) {
float specPower = diffMat->specularCoeff;
Vector3 eye = cameraPosition - ir->point;
eye.Normalize();
Vector3 reflected = (-light).Reflect(normal);
float specFactor = pow(max(reflected.DotProduct(eye), 0.0f), specPower);
result += diffMat->diffuse*color*diffuseFactor;
result += diffMat->specular*color*specFactor;
}
result /= (attenuation.x+attenuation.y*lightDistance+attenuation.z*lightDistance*lightDistance);
}
return result;
}
//generate photon from unit sphere
Ray PointLight::GetPhoton(bool useProjectionMap) const {
float x,y,z;
bool ok=false;
do {
x = 2.0f*((float)qrand())/RAND_MAX-1.0f;
y = 2.0f*((float)qrand())/RAND_MAX-1.0f;
z = 2.0f*((float)qrand())/RAND_MAX-1.0f;
if(x*x+y*y+z*z<=1) {
if(useProjectionMap && projectionMap) {
Vector3 dir(x,y,z);
dir.Normalize();
/*if(hemisphere) {
if(dir.DotProduct(Vector3(0,-1,0)))
dir*=-1;
}
*/
//if we use projection map
//generated photon must be directed into reflective/refractive geometry
if(projectionMap->SampleSpherical(dir)==Color(1,1,1))
ok = true;
}
else {
ok = true;
}
}
}
while(!ok);
return Ray(position, Vector3(x,y,z));
}
void PointLight::CreateProjectionMap(const Scene* scene) {
if(projectionMap)
delete projectionMap;
projectionMap = new Texture(512,512);
//for each pixel in projection map
for(int y=0;y<projectionMap->GetHeight();y++) {
for(int x=0;x<projectionMap->GetWidth();x++) {
float u = (float)x/projectionMap->GetWidth();
float v = (float)y/projectionMap->GetHeight();
u = 1.0f-u;
v = 1.0f-v;
//calculate spherical coordinates
float phi = u*2*M_PI;
float theta = (1.0f-v)*M_PI;
Vector3 direction(sin(theta)*sin(phi), cos(theta), sin(theta)*cos(phi));
//chec if ray for given pixel intersects reflective/refractive geometry
Ray ray(position, direction);
int closest=-1;
float closestDist=FLT_MAX;
IntersectionResult closestIntersection;
IntersectionResult result;
for(int j=0;j<scene->geometry.count();j++) {
result = scene->geometry.at(j)->Intersects(ray);
if(result.type!=MISS) {
if(closestDist>result.distance) {
closestDist = result.distance;
closest = j;
closestIntersection = result;
}
}
}
if(closest!=-1 && (closestIntersection.object->GetMaterial()->type == REFRACTIVE || closestIntersection.object->GetMaterial()->type == REFLECTIVE))
projectionMap->SetPixel(x,y,Color(1,1,1));
else
projectionMap->SetPixel(x,y,Color(0,0,0));
}
}
projectionMap->SaveToFile("projectionMap.png");
}
float PointLight::GetProjectionMapRatio() const {
if(projectionMap)
return projectionMap->GetWhiteToBlackPixelRatio();
return 0;
}
| [
"janisozaur@gmail.com"
] | janisozaur@gmail.com |
0c00963f86da5e5046f600caa4dc1512da075b48 | 0bdae58b14fed97e768d4f7884003c2b6eea4150 | /src/User.h | 0c86fcc499773b9483101afdfe980ba5f38bbdfb | [] | no_license | Heronalps/Catland | cd2a9b2307ba4d8d1b17e75379095203f559813e | b0a0a21a69f4463e4b5fa25e870bf5fe735d5246 | refs/heads/master | 2022-11-06T09:36:53.458595 | 2020-06-13T04:54:38 | 2020-06-13T04:54:38 | 267,430,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | h | #ifndef USER_H_
#define USER_H_
#include <Wt/WDateTime.h>
#include <Wt/Dbo/Types.h>
#include <Wt/Dbo/WtSqlTraits.h>
#include <Wt/Auth/Dbo/AuthInfo.h>
#include <string>
using namespace Wt;
namespace dbo = Wt::Dbo;
class User;
typedef Auth::Dbo::AuthInfo<User> AuthInfo;
typedef dbo::collection< dbo::ptr<User> > Users;
class User
{
public:
User();
std::string name; /* a copy of auth info's user name */
int gamesPlayed;
long long score;
WDateTime lastGame;
dbo::collection<dbo::ptr<AuthInfo>> authInfos;
template<class Action>
void persist(Action& a)
{
dbo::field(a, gamesPlayed, "gamesPlayed");
dbo::field(a, score, "score");
dbo::field(a, lastGame, "lastGame");
dbo::hasMany(a, authInfos, dbo::ManyToOne, "user");
}
};
DBO_EXTERN_TEMPLATES(User);
#endif // USER_H_
| [
"heronalps@gmail.com"
] | heronalps@gmail.com |
303dc1adc778c79c843452bfcccb054c42115308 | a37060e0d03df1bb2cce3e8e7b67ebae4d198f36 | /Practicas/Practica2/tomaTiemposV2.cpp | 2cf2ffa7758c9e06328769e279cab7604c5d29ca | [] | no_license | mariofg92/Data-Structures | 7c1ff1f83617d29e661e600bcc3059d9af0b7f7c | 32e535efcf6dc5e7a4cf918366f5520377a85c50 | refs/heads/master | 2023-01-12T15:52:37.738241 | 2020-11-21T17:04:28 | 2020-11-21T17:04:28 | 314,835,160 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,826 | cpp | #include "priority_queue_v2.h"
#include <functional>
#include <string>
#include <vector>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <stdlib.h>
#include <vector>
#include <string>
#include <time.h>
#include <algorithm>
#include <map>
#define POS_NULA -1
using namespace std;
/* Lee un fichero sobre un vector de string
nf: nombre del fichero
V: vector sobre el que se lee el fichero
*/
void lee_fichero( const char * nf, vector<string> & V) {
ifstream fe;
string s;
fe.open(nf, ifstream::in);
while ( !fe.eof() ){
fe >> s;
if (!fe.eof())
V.push_back(s);
}
fe.close();
}
// Ordena un vector de string en orden creciente
//@param[in,out] V vector a ordenar
//
void ordenar(vector<string> & V, int tama){
priority_queue<string> aux;
int pos;
for (int i=0;i<tama; i++)
aux.push(V[i]);
pos = tama-1;
while (!aux.empty()) {
V[pos]=aux.top();
aux.pop();
pos--;
}
}
int main() {
vector<string> Dicc;
vector<string> Q;
int pos;
clock_t start,end;
vector<int> frecuencia;
vector<string> palabra;
int contador =0;
lee_fichero("lema.txt", Dicc); // Ojo, el vector no esta ordenado!!!
//cout << Dicc.size() << " " << Dicc.capacity() << endl;
lee_fichero("quijote.txt", Q);
//cout << Q.size() << " " << Q.capacity() << endl;
////////////////////////////////////////////////////
// ORDENACION POR INSERCION
////////////////////////////////////////////////////
vector<string> aux;
for (int tama = 100; tama < Dicc.size() ; tama+= 5000){
aux = Dicc;
start = clock();
for (int iteraciones = 0; iteraciones < 2; iteraciones++) // Numero de iteraciones se debe ajustar a cada caso
ordenar(aux, tama);
end= clock();
double dif = end-start;
cout << tama << " " << dif/(double) (CLOCKS_PER_SEC * 2.0) << endl;
}
}
| [
"mariofg92@gmail.com"
] | mariofg92@gmail.com |
70b727defe6a9ec4fbe2d729d12a6fc5a178ca2e | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /components/payments/core/error_strings.h | 01d75a83d21c6f63c9d5f01c4f7f17ee7e170e2e | [
"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 | 3,623 | h | // 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.
#ifndef COMPONENTS_PAYMENTS_CORE_ERROR_STRINGS_H_
#define COMPONENTS_PAYMENTS_CORE_ERROR_STRINGS_H_
namespace payments {
namespace errors {
// Please keep the list alphabetized.
// Only a single PaymentRequest UI can be displayed at a time.
extern const char kAnotherUiShowing[];
// Mojo call PaymentRequest::Init() must precede PaymentRequest::Show().
extern const char kAttemptedInitializationTwice[];
// Mojo call PaymentRequest::Init() must precede PaymentRequest::Abort().
extern const char kCannotAbortWithoutInit[];
// Mojo call PaymentRequest::Show() must precede PaymentRequest::Abort().
extern const char kCannotAbortWithoutShow[];
// Mojo call PaymentRequest::Init() must precede
// PaymentRequest::CanMakePayment().
extern const char kCannotCallCanMakePaymentWithoutInit[];
// Mojo call PaymentRequest::Init() must precede
// PaymentRequest::HasEnrolledInstrument().
extern const char kCannotCallHasEnrolledInstrumentWithoutInit[];
// Mojo call PaymentRequest::Init() must precede PaymentRequest::Complete().
extern const char kCannotCompleteWithoutInit[];
// Mojo call PaymentRequest::Show() must precede PaymentRequest::Complete().
extern const char kCannotCompleteWithoutShow[];
// Mojo call PaymentRequest::Init() must precede PaymentRequest::Retry().
extern const char kCannotRetryWithoutInit[];
// Mojo call PaymentRequest::Show() must precede PaymentRequest::Retry().
extern const char kCannotRetryWithoutShow[];
// Payment Request UI must be shown in the foreground tab, as a result of user
// interaction.
extern const char kCannotShowInBackgroundTab[];
// Mojo call PaymentRequest::Show() cannot happen more than once per Mojo pipe.
extern const char kCannotShowTwice[];
// Mojo call PaymentRequest::Init() must precede PaymentRequest::Show().
extern const char kCannotShowWithoutInit[];
// Mojo call PaymentRequest::Init() must precede PaymentRequest::UpdateWith().
extern const char kCannotUpdateWithoutInit[];
// Mojo call PaymentRequest::Show() must precede PaymentRequest::UpdateWith().
extern const char kCannotUpdateWithoutShow[];
// Chrome refuses to provide any payment information to a website with an
// invalid SSL certificate.
extern const char kInvalidSslCertificate[];
// Used when an invalid state is encountered generically.
extern const char kInvalidState[];
// Used when the {"supportedMethods": "", data: {}} is required, but not
// provided.
extern const char kMethodDataRequired[];
// Used when non-empty "supportedMethods": "" is required, but not provided.
extern const char kMethodNameRequired[];
// The PaymentRequest API is available only on secure origins.
extern const char kNotInASecureOrigin[];
// Used when PaymentRequest::Init() has not been called, but should have been.
extern const char kNotInitialized[];
// Used when PaymentRequest::Show() has not been called, but should have been.
extern const char kNotShown[];
// Chrome provides payment information only to a whitelist of origin types.
extern const char kProhibitedOrigin[];
// A long form explanation of Chrome's behavior in the case of kProhibitedOrigin
// or kInvalidSslCertificate error.
extern const char kProhibitedOriginOrInvalidSslExplanation[];
// Used when "total": {"label": "Total", "amount": {"currency": "USD", "value":
// "0.01"}} is required, bot not provided.
extern const char kTotalRequired[];
} // namespace errors
} // namespace payments
#endif // COMPONENTS_PAYMENTS_CORE_ERROR_STRINGS_H_
| [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
ced2a6e8ef0ebcef6d412fb1be99da92dbed712d | f34d9b10b608f314121e658dd973eb17a4ef5624 | /lw2/task1/VectorHandler/VectorHandlerTests/VectorHandlerTests.cpp | 5e731c4db83d818ed1c95a5da72173c83a339288 | [] | no_license | Osch-1/oop | c1eb8c90318326d765523ce76984063d9bd2d428 | d8f50b7645d33c4a9160453d1cfb71a919679cfb | refs/heads/main | 2023-06-07T22:47:20.979074 | 2021-07-04T21:47:58 | 2021-07-04T21:47:58 | 350,163,142 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,970 | cpp | #include "pch.h"
#include "VectorHandler/VectorHandler/ReadVectorFromStream.h"
#include "VectorHandler/VectorHandler/HandleVector.h"
#include "VectorHandler/VectorHandler/SortVector.h"
bool IsDoubleEquals(double first, double second)
{
return fabs(first - second) < numeric_limits<double>::epsilon();
}
TEST_CASE("ReadVectorFromStream() returns empty vector if argument is an empty stream")
{
//arrange
istringstream emptyInputStream;
size_t readedVectorSize;
//act
readedVectorSize = ReadVectorFromStream(emptyInputStream).size();
//assert
CHECK(readedVectorSize == 0);
}
TEST_CASE("ReadVectorFromStream() returns empty vector input is incorrect")
{
//arrange
stringstream streamWithIncorrectData;
streamWithIncorrectData << "incorrect data";
vector<double> readedVector;
//act
readedVector = ReadVectorFromStream(streamWithIncorrectData);
//assert
CHECK(readedVector.size() == 0);
}
TEST_CASE("ReadVectorFromStream() returns vector which contains all floating point numbers from input stream")
{
//arrange
stringstream stringStream;
stringStream << "2.0 3.2 -212";
vector<double> readedVector;
//act
readedVector = ReadVectorFromStream(stringStream);
//assert
CHECK(IsDoubleEquals(readedVector[0], 2.0));
CHECK(IsDoubleEquals(readedVector[1], 3.2));
CHECK(IsDoubleEquals(readedVector[2], -212.0));
}
TEST_CASE("SortVector() does nothing if empty vector has been provided")
{
//arrange
vector<double> emptyVector;
//act
SortVector(emptyVector);
//assert
CHECK(emptyVector.size() == 0);
}
TEST_CASE("SortVector() sorts vector in ascending order")
{
//arrange
vector<double> vector = { 10, 11, -2.0, 3.0 };
//act
SortVector(vector);
//assert
CHECK(IsDoubleEquals(vector[0], -2.0));
CHECK(IsDoubleEquals(vector[1], 3.0));
CHECK(IsDoubleEquals(vector[2], 10.0));
CHECK(IsDoubleEquals(vector[3], 11.0));
}
TEST_CASE("HandleVector() does nothing if empty vector has been provided")
{
//arrange
vector<double> emptyVector;
//act
HandleVector(emptyVector);
//assert
CHECK(emptyVector.size() == 0);
}
TEST_CASE("HandleVector() multiplies every negative element on product of min and max elem")
{
//arrange
double min = -10.0;
double max = 10.0;
vector<double> vector = { -10.0, 2.0, 10.0, -2.0 };
double productOfMinAndMax = min * max;
double expectedFirstValue = (vector[0] * productOfMinAndMax);
double expectedSecondValue = (vector[1]);
double expectedThirdValue = (vector[2]);
double expectedFourthValue = (vector[3] * productOfMinAndMax);
//act
HandleVector(vector);
//assert
CHECK(IsDoubleEquals(vector[0], expectedFirstValue));
CHECK(IsDoubleEquals(vector[1], expectedSecondValue));
CHECK(IsDoubleEquals(vector[2], expectedThirdValue));
CHECK(IsDoubleEquals(vector[3], expectedFourthValue));
} | [
"61602969+Osch-1@users.noreply.github.com"
] | 61602969+Osch-1@users.noreply.github.com |
0c64c577ccd90c489fefc529db067de64b51c093 | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /third_party/blink/renderer/modules/mediastream/track_audio_renderer.cc | 6a482ccc42554bd26217367ee43d0b66b0bf4ec3 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | C++ | false | false | 14,838 | cc | // Copyright (c) 2012 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 "third_party/blink/renderer/modules/mediastream/track_audio_renderer.h"
#include <utility>
#include "base/location.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/synchronization/lock.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/trace_event/trace_event.h"
#include "media/audio/audio_sink_parameters.h"
#include "media/base/audio_bus.h"
#include "media/base/audio_latency.h"
#include "media/base/audio_shifter.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/modules/mediastream/media_stream_local_frame_wrapper.h"
#include "third_party/blink/renderer/platform/mediastream/media_stream_audio_track.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace WTF {
template <>
struct CrossThreadCopier<media::AudioParameters> {
STATIC_ONLY(CrossThreadCopier);
using Type = media::AudioParameters;
static Type Copy(Type pointer) { return pointer; }
};
} // namespace WTF
namespace blink {
namespace {
enum LocalRendererSinkStates {
kSinkStarted = 0,
kSinkNeverStarted,
kSinkStatesMax // Must always be last!
};
// Translates |num_samples_rendered| into a TimeDelta duration and adds it to
// |prior_elapsed_render_time|.
base::TimeDelta ComputeTotalElapsedRenderTime(
base::TimeDelta prior_elapsed_render_time,
int64_t num_samples_rendered,
int sample_rate) {
return prior_elapsed_render_time +
base::TimeDelta::FromMicroseconds(num_samples_rendered *
base::Time::kMicrosecondsPerSecond /
sample_rate);
}
} // namespace
// media::AudioRendererSink::RenderCallback implementation
int TrackAudioRenderer::Render(base::TimeDelta delay,
base::TimeTicks delay_timestamp,
int prior_frames_skipped,
media::AudioBus* audio_bus) {
TRACE_EVENT2("audio", "TrackAudioRenderer::Render", "delay (ms)",
delay.InMillisecondsF(), "delay_timestamp (ms)",
(delay_timestamp - base::TimeTicks()).InMillisecondsF());
base::AutoLock auto_lock(thread_lock_);
if (!audio_shifter_) {
audio_bus->Zero();
return 0;
}
// TODO(miu): Plumbing is needed to determine the actual playout timestamp
// of the audio, instead of just snapshotting TimeTicks::Now(), for proper
// audio/video sync. https://crbug.com/335335
const base::TimeTicks playout_time = base::TimeTicks::Now() + delay;
DVLOG(2) << "Pulling audio out of shifter to be played "
<< delay.InMilliseconds() << " ms from now.";
audio_shifter_->Pull(audio_bus, playout_time);
num_samples_rendered_ += audio_bus->frames();
return audio_bus->frames();
}
void TrackAudioRenderer::OnRenderError() {
NOTIMPLEMENTED();
}
// WebMediaStreamAudioSink implementation
void TrackAudioRenderer::OnData(const media::AudioBus& audio_bus,
base::TimeTicks reference_time) {
DCHECK(!reference_time.is_null());
TRACE_EVENT1("audio", "TrackAudioRenderer::OnData", "reference time (ms)",
(reference_time - base::TimeTicks()).InMillisecondsF());
base::AutoLock auto_lock(thread_lock_);
if (!audio_shifter_)
return;
std::unique_ptr<media::AudioBus> audio_data(
media::AudioBus::Create(audio_bus.channels(), audio_bus.frames()));
audio_bus.CopyTo(audio_data.get());
// Note: For remote audio sources, |reference_time| is the local playout time,
// the ideal point-in-time at which the first audio sample should be played
// out in the future. For local sources, |reference_time| is the
// point-in-time at which the first audio sample was captured in the past. In
// either case, AudioShifter will auto-detect and do the right thing when
// audio is pulled from it.
audio_shifter_->Push(std::move(audio_data), reference_time);
}
void TrackAudioRenderer::OnSetFormat(const media::AudioParameters& params) {
DVLOG(1) << "TrackAudioRenderer::OnSetFormat: "
<< params.AsHumanReadableString();
// If the parameters changed, the audio in the AudioShifter is invalid and
// should be dropped.
{
base::AutoLock auto_lock(thread_lock_);
if (audio_shifter_ &&
(audio_shifter_->sample_rate() != params.sample_rate() ||
audio_shifter_->channels() != params.channels())) {
HaltAudioFlowWhileLockHeld();
}
}
// Post a task on the main render thread to reconfigure the |sink_| with the
// new format.
PostCrossThreadTask(*task_runner_, FROM_HERE,
CrossThreadBindOnce(&TrackAudioRenderer::ReconfigureSink,
WrapRefCounted(this), params));
}
TrackAudioRenderer::TrackAudioRenderer(const WebMediaStreamTrack& audio_track,
WebLocalFrame* playout_web_frame,
const base::UnguessableToken& session_id,
const String& device_id)
: audio_track_(audio_track),
internal_playout_frame_(
std::make_unique<MediaStreamInternalFrameWrapper>(playout_web_frame)),
session_id_(session_id),
task_runner_(
playout_web_frame->GetTaskRunner(blink::TaskType::kInternalMedia)),
num_samples_rendered_(0),
playing_(false),
output_device_id_(device_id),
volume_(0.0),
sink_started_(false) {
DCHECK(MediaStreamAudioTrack::From(audio_track_));
DCHECK(task_runner_->BelongsToCurrentThread());
DVLOG(1) << "TrackAudioRenderer::TrackAudioRenderer()";
}
TrackAudioRenderer::~TrackAudioRenderer() {
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK(!sink_);
DVLOG(1) << "TrackAudioRenderer::~TrackAudioRenderer()";
}
void TrackAudioRenderer::Start() {
DVLOG(1) << "TrackAudioRenderer::Start()";
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK_EQ(playing_, false);
// We get audio data from |audio_track_|...
WebMediaStreamAudioSink::AddToAudioTrack(this, audio_track_);
// ...and |sink_| will get audio data from us.
DCHECK(!sink_);
sink_ = Platform::Current()->NewAudioRendererSink(
WebAudioDeviceSourceType::kNonRtcAudioTrack,
internal_playout_frame_->web_frame(),
{session_id_, output_device_id_.Utf8()});
base::AutoLock auto_lock(thread_lock_);
prior_elapsed_render_time_ = base::TimeDelta();
num_samples_rendered_ = 0;
}
void TrackAudioRenderer::Stop() {
DVLOG(1) << "TrackAudioRenderer::Stop()";
DCHECK(task_runner_->BelongsToCurrentThread());
Pause();
// Stop the output audio stream, i.e, stop asking for data to render.
// It is safer to call Stop() on the |sink_| to clean up the resources even
// when the |sink_| is never started.
if (sink_) {
sink_->Stop();
sink_ = nullptr;
}
if (!sink_started_ && IsLocalRenderer()) {
UMA_HISTOGRAM_ENUMERATION("Media.LocalRendererSinkStates",
kSinkNeverStarted, kSinkStatesMax);
}
sink_started_ = false;
// Ensure that the capturer stops feeding us with captured audio.
WebMediaStreamAudioSink::RemoveFromAudioTrack(this, audio_track_);
}
void TrackAudioRenderer::Play() {
DVLOG(1) << "TrackAudioRenderer::Play()";
DCHECK(task_runner_->BelongsToCurrentThread());
if (!sink_)
return;
playing_ = true;
MaybeStartSink();
}
void TrackAudioRenderer::Pause() {
DVLOG(1) << "TrackAudioRenderer::Pause()";
DCHECK(task_runner_->BelongsToCurrentThread());
if (!sink_)
return;
playing_ = false;
base::AutoLock auto_lock(thread_lock_);
HaltAudioFlowWhileLockHeld();
}
void TrackAudioRenderer::SetVolume(float volume) {
DVLOG(1) << "TrackAudioRenderer::SetVolume(" << volume << ")";
DCHECK(task_runner_->BelongsToCurrentThread());
// Cache the volume. Whenever |sink_| is re-created, call SetVolume() with
// this cached volume.
volume_ = volume;
if (sink_)
sink_->SetVolume(volume);
}
base::TimeDelta TrackAudioRenderer::GetCurrentRenderTime() {
DCHECK(task_runner_->BelongsToCurrentThread());
base::AutoLock auto_lock(thread_lock_);
if (source_params_.IsValid()) {
return ComputeTotalElapsedRenderTime(prior_elapsed_render_time_,
num_samples_rendered_,
source_params_.sample_rate());
}
return prior_elapsed_render_time_;
}
bool TrackAudioRenderer::IsLocalRenderer() {
DCHECK(task_runner_->BelongsToCurrentThread());
return MediaStreamAudioTrack::From(audio_track_)->is_local_track();
}
void TrackAudioRenderer::SwitchOutputDevice(
const std::string& device_id,
media::OutputDeviceStatusCB callback) {
DVLOG(1) << "TrackAudioRenderer::SwitchOutputDevice()";
DCHECK(task_runner_->BelongsToCurrentThread());
{
base::AutoLock auto_lock(thread_lock_);
HaltAudioFlowWhileLockHeld();
}
scoped_refptr<media::AudioRendererSink> new_sink =
Platform::Current()->NewAudioRendererSink(
WebAudioDeviceSourceType::kNonRtcAudioTrack,
internal_playout_frame_->web_frame(), {session_id_, device_id});
media::OutputDeviceStatus new_sink_status =
new_sink->GetOutputDeviceInfo().device_status();
UMA_HISTOGRAM_ENUMERATION("Media.Audio.TrackAudioRenderer.SwitchDeviceStatus",
new_sink_status,
media::OUTPUT_DEVICE_STATUS_MAX + 1);
if (new_sink_status != media::OUTPUT_DEVICE_STATUS_OK) {
new_sink->Stop();
std::move(callback).Run(new_sink_status);
return;
}
output_device_id_ = String(device_id.data(), device_id.size());
bool was_sink_started = sink_started_;
if (sink_)
sink_->Stop();
sink_started_ = false;
sink_ = new_sink;
if (was_sink_started)
MaybeStartSink();
std::move(callback).Run(media::OUTPUT_DEVICE_STATUS_OK);
}
void TrackAudioRenderer::MaybeStartSink() {
DCHECK(task_runner_->BelongsToCurrentThread());
DVLOG(1) << "TrackAudioRenderer::MaybeStartSink()";
if (!sink_ || !source_params_.IsValid() || !playing_) {
return;
}
// Re-create the AudioShifter to drop old audio data and reset to a starting
// state. MaybeStartSink() is always called in a situation where either the
// source or sink has changed somehow and so all of AudioShifter's internal
// time-sync state is invalid.
CreateAudioShifter();
if (sink_started_)
return;
const media::OutputDeviceInfo& device_info = sink_->GetOutputDeviceInfo();
UMA_HISTOGRAM_ENUMERATION("Media.Audio.TrackAudioRenderer.DeviceStatus",
device_info.device_status(),
media::OUTPUT_DEVICE_STATUS_MAX + 1);
if (device_info.device_status() != media::OUTPUT_DEVICE_STATUS_OK)
return;
// Output parameters consist of the same channel layout and sample rate as the
// source, but having the buffer duration preferred by the hardware.
const media::AudioParameters& hardware_params = device_info.output_params();
media::AudioParameters sink_params(
hardware_params.format(), source_params_.channel_layout(),
source_params_.sample_rate(),
media::AudioLatency::GetRtcBufferSize(
source_params_.sample_rate(), hardware_params.frames_per_buffer()));
if (sink_params.channel_layout() == media::CHANNEL_LAYOUT_DISCRETE) {
DCHECK_LE(source_params_.channels(), 2);
sink_params.set_channels_for_discrete(source_params_.channels());
}
DVLOG(1) << ("TrackAudioRenderer::MaybeStartSink() -- Starting sink. "
"source_params={")
<< source_params_.AsHumanReadableString() << "}, hardware_params={"
<< hardware_params.AsHumanReadableString() << "}, sink parameters={"
<< sink_params.AsHumanReadableString() << '}';
// Specify the latency info to be passed to the browser side.
sink_params.set_latency_tag(Platform::Current()->GetAudioSourceLatencyType(
WebAudioDeviceSourceType::kNonRtcAudioTrack));
sink_->Initialize(sink_params, this);
sink_->Start();
sink_->SetVolume(volume_);
sink_->Play(); // Not all the sinks play on start.
sink_started_ = true;
if (IsLocalRenderer()) {
UMA_HISTOGRAM_ENUMERATION("Media.LocalRendererSinkStates", kSinkStarted,
kSinkStatesMax);
}
}
void TrackAudioRenderer::ReconfigureSink(const media::AudioParameters& params) {
DCHECK(task_runner_->BelongsToCurrentThread());
if (source_params_.Equals(params))
return;
source_params_ = params;
if (!sink_)
return; // TrackAudioRenderer has not yet been started.
// Stop |sink_| and re-create a new one to be initialized with different audio
// parameters. Then, invoke MaybeStartSink() to restart everything again.
sink_->Stop();
sink_started_ = false;
sink_ = Platform::Current()->NewAudioRendererSink(
WebAudioDeviceSourceType::kNonRtcAudioTrack,
internal_playout_frame_->web_frame(),
{session_id_, output_device_id_.Utf8()});
MaybeStartSink();
}
void TrackAudioRenderer::CreateAudioShifter() {
DCHECK(task_runner_->BelongsToCurrentThread());
// Note 1: The max buffer is fairly large to cover the case where
// remotely-sourced audio is delivered well ahead of its scheduled playout
// time (e.g., content streaming with a very large end-to-end
// latency). However, there is no penalty for making it large in the
// low-latency use cases since AudioShifter will discard data as soon as it is
// no longer needed.
//
// Note 2: The clock accuracy is set to 20ms because clock accuracy is
// ~15ms on Windows machines without a working high-resolution clock. See
// comments in base/time/time.h for details.
media::AudioShifter* const new_shifter = new media::AudioShifter(
base::TimeDelta::FromSeconds(5), base::TimeDelta::FromMilliseconds(20),
base::TimeDelta::FromSeconds(20), source_params_.sample_rate(),
source_params_.channels());
base::AutoLock auto_lock(thread_lock_);
audio_shifter_.reset(new_shifter);
}
void TrackAudioRenderer::HaltAudioFlowWhileLockHeld() {
thread_lock_.AssertAcquired();
audio_shifter_.reset();
if (source_params_.IsValid()) {
prior_elapsed_render_time_ = ComputeTotalElapsedRenderTime(
prior_elapsed_render_time_, num_samples_rendered_,
source_params_.sample_rate());
num_samples_rendered_ = 0;
}
}
} // namespace blink
| [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
13ee623684e3435b4b9151acdcd98da5b235a770 | 87aba51b1f708b47d78b5c4180baf731d752e26d | /Replication/DataFileSystem/PRODUCT_SOURCE_CODE/itk/Modules/IO/CSV/include/itkCSVArray2DFileReader.hxx | 1b95b812fdae9db03acd98aad4b7af3ea499fd06 | [] | no_license | jstavr/Architecture-Relation-Evaluator | 12c225941e9a4942e83eb6d78f778c3cf5275363 | c63c056ee6737a3d90fac628f2bc50b85c6bd0dc | refs/heads/master | 2020-12-31T05:10:08.774893 | 2016-05-14T16:09:40 | 2016-05-14T16:09:40 | 58,766,508 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,290 | hxx | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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.txt
*
* 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.
*
*=========================================================================*/
#ifndef __itkCSVArray2DFileReader_hxx
#define __itkCSVArray2DFileReader_hxx
#include "itkCSVArray2DFileReader.h"
#include "itksys/SystemTools.hxx"
#include <vcl_limits.h>
namespace itk
{
template <typename TData>
CSVArray2DFileReader<TData>
::CSVArray2DFileReader()
{
this->m_Array2DDataObject = Array2DDataObjectType::New();
}
template <typename TData>
void
CSVArray2DFileReader<TData>
::PrintSelf(std::ostream & os, Indent indent) const
{
Superclass::PrintSelf(os,indent);
os << this->m_Array2DDataObject << std::endl;
}
template <typename TData>
void
CSVArray2DFileReader <TData>
::Parse()
{
SizeValueType rows = 0;
SizeValueType columns = 0;
this->PrepareForParsing();
this->m_InputStream.clear();
this->m_InputStream.open(this->m_FileName.c_str());
if ( this->m_InputStream.fail() )
{
itkExceptionMacro(
"The file " << this->m_FileName <<" cannot be opened for reading!"
<< std::endl
<< "Reason: "
<< itksys::SystemTools::GetLastSystemError() );
}
// Get the data dimension and set the matrix size
this->GetDataDimension(rows,columns);
this->m_Array2DDataObject->SetMatrixSize(rows,columns);
/** initialize the matrix to NaN so that missing data will automatically be
* set to this value. */
this->m_Array2DDataObject->FillMatrix(vcl_numeric_limits<TData>::quiet_NaN());
std::string entry;
// Get the Column Headers if there are any.
if ( this->m_HasColumnHeaders )
{
this->m_Array2DDataObject->HasColumnHeadersOn();
// push the entries into the column headers vector.
for (unsigned int i = 0; i < columns+1; i++)
{
this->GetNextField(entry);
this->m_Array2DDataObject->ColumnHeadersPushBack(entry);
if ( this->m_Line.empty() )
{
break;
}
}
/** if there are row headers, get rid of the first entry in the column
* headers as it will just be the name of the table. */
if ( this->m_HasRowHeaders )
{
this->m_Array2DDataObject->EraseFirstColumnHeader();
}
}
// Get the rest of the data
for (unsigned int i = 0; i < rows; i++)
{
// if there are row headers, push them into the vector for row headers
if ( this->m_HasRowHeaders )
{
this->m_Array2DDataObject->HasRowHeadersOn();
this->GetNextField(entry);
this->m_Array2DDataObject->RowHeadersPushBack(entry);
}
// parse the numeric data into the Array2D object
for (unsigned int j = 0; j < columns; j++)
{
this->GetNextField(entry);
this->m_Array2DDataObject->SetMatrixData(i,j,
this->ConvertStringToValueType<TData>(entry));
/** if the file contains missing data, m_Line will contain less data
* fields. So we check if m_Line is empty and if it is, we break out of
* this loop and move to the next line. */
if ( this->m_Line.empty() )
{
break;
}
}
}
this->m_InputStream.close();
}
/** Update method */
template<typename TData>
void
CSVArray2DFileReader<TData>
::Update()
{
this->Parse();
}
/** Get the output */
template <typename TData>
typename CSVArray2DFileReader<TData>::Array2DDataObjectPointer
CSVArray2DFileReader<TData>
::GetOutput()
{
return this->GetModifiableArray2DDataObject();
}
} //end namespace itk
#endif
| [
"jstavr2@gmail.com"
] | jstavr2@gmail.com |
6f709e9162333e025acf765a97f6dd68b798f40f | fa889d051a1b3c4d861fb06b10aa5b2e21f97123 | /kbe/src/lib/pyscript/py_memorystream.cpp | 88e1f8f4077732c3f2aa74de693c9458be53b207 | [
"MIT",
"LGPL-3.0-only"
] | permissive | BuddhistDeveloper/HeroLegendServer | bcaa837e3bbd6544ce0cf8920fd54a1a324d95c8 | 8bf77679595a2c49c6f381c961e6c52d31a88245 | refs/heads/master | 2022-12-08T00:32:45.623725 | 2018-01-15T02:01:44 | 2018-01-15T02:01:44 | 117,069,431 | 1 | 1 | MIT | 2022-11-19T15:58:30 | 2018-01-11T08:05:32 | Python | UTF-8 | C++ | false | false | 18,035 | cpp | /*
This source file is part of KBEngine
For the latest info, see http://www.kbengine.org/
Copyright (c) 2008-2017 KBEngine.
KBEngine is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
KBEngine 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 Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with KBEngine. If not, see <http://www.gnu.org/licenses/>.
*/
#include "pickler.h"
#include "py_memorystream.h"
#include "py_gc.h"
#ifndef CODE_INLINE
#include "py_memorystream.inl"
#endif
namespace KBEngine{ namespace script{
PySequenceMethods PyMemoryStream::seqMethods =
{
seq_length, // inquiry sq_length; len(x)
0, // binaryfunc sq_concat; x + y
0, // intargfunc sq_repeat; x * n
0, // intargfunc sq_item; x[i]
0, //seq_slice, // intintargfunc sq_slice; x[i:j]
0, // intobjargproc sq_ass_item; x[i] = v
0, //seq_ass_slice, // intintobjargproc sq_ass_slice; x[i:j] = v
0, // objobjproc sq_contains; v in x
0, // binaryfunc sq_inplace_concat; x += y
0 // intargfunc sq_inplace_repeat; x *= n
};
SCRIPT_METHOD_DECLARE_BEGIN(PyMemoryStream)
SCRIPT_METHOD_DECLARE("append", append, METH_VARARGS, 0)
SCRIPT_METHOD_DECLARE("pop", pop, METH_VARARGS, 0)
SCRIPT_METHOD_DECLARE("bytes", bytes, METH_VARARGS, 0)
SCRIPT_METHOD_DECLARE("rpos", rpos, METH_VARARGS, 0)
SCRIPT_METHOD_DECLARE("wpos", wpos, METH_VARARGS, 0)
SCRIPT_METHOD_DECLARE("fill", fill, METH_VARARGS, 0)
SCRIPT_METHOD_DECLARE("__reduce_ex__", reduce_ex__, METH_VARARGS, 0)
SCRIPT_METHOD_DECLARE_END()
SCRIPT_MEMBER_DECLARE_BEGIN(PyMemoryStream)
SCRIPT_MEMBER_DECLARE_END()
SCRIPT_GETSET_DECLARE_BEGIN(PyMemoryStream)
SCRIPT_GETSET_DECLARE_END()
SCRIPT_INIT(PyMemoryStream, 0, &PyMemoryStream::seqMethods, 0, 0, 0)
//-------------------------------------------------------------------------------------
PyMemoryStream::PyMemoryStream(PyTypeObject* pyType, bool isInitialised, bool readonly):
ScriptObject(pyType, isInitialised),
readonly_(readonly)
{
}
//-------------------------------------------------------------------------------------
PyMemoryStream::PyMemoryStream(std::string& strDictInitData, bool readonly) :
ScriptObject(getScriptType(), false),
readonly_(readonly)
{
initialize(strDictInitData);
script::PyGC::incTracing("MemoryStream");
}
//-------------------------------------------------------------------------------------
PyMemoryStream::PyMemoryStream(PyObject* pyDictInitData, bool readonly) :
ScriptObject(getScriptType(), false),
readonly_(readonly)
{
initialize(pyDictInitData);
script::PyGC::incTracing("MemoryStream");
}
//-------------------------------------------------------------------------------------
PyMemoryStream::PyMemoryStream(MemoryStream* streamInitData, bool readonly) :
ScriptObject(getScriptType(), false),
readonly_(readonly)
{
initialize(streamInitData);
script::PyGC::incTracing("MemoryStream");
}
//-------------------------------------------------------------------------------------
PyMemoryStream::PyMemoryStream(bool readonly) :
ScriptObject(getScriptType(), false),
readonly_(readonly)
{
initialize("");
script::PyGC::incTracing("MemoryStream");
}
//-------------------------------------------------------------------------------------
PyMemoryStream::~PyMemoryStream()
{
}
//-------------------------------------------------------------------------------------
void PyMemoryStream::initialize(std::string strDictInitData)
{
if (strDictInitData.size() > 0)
stream_.append(strDictInitData.data(), strDictInitData.size());
}
//-------------------------------------------------------------------------------------
void PyMemoryStream::initialize(PyObject* pyBytesInitData)
{
char *buffer;
Py_ssize_t length;
if (PyBytes_AsStringAndSize(pyBytesInitData, &buffer, &length) < 0)
{
SCRIPT_ERROR_CHECK();
return;
}
if (length > 0)
stream_.append(buffer, length);
}
//-------------------------------------------------------------------------------------
void PyMemoryStream::initialize(MemoryStream* streamInitData)
{
if (streamInitData)
stream_ = *streamInitData;
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::__py_reduce_ex__(PyObject* self, PyObject* protocol)
{
PyMemoryStream* pPyMemoryStream = static_cast<PyMemoryStream*>(self);
PyObject* args = PyTuple_New(2);
PyObject* unpickleMethod = script::Pickler::getUnpickleFunc("MemoryStream");
PyTuple_SET_ITEM(args, 0, unpickleMethod);
PyObject* args1 = PyTuple_New(3);
PyTuple_SET_ITEM(args1, 0, PyLong_FromUnsignedLong(pPyMemoryStream->stream().rpos()));
PyTuple_SET_ITEM(args1, 1, PyLong_FromUnsignedLong(pPyMemoryStream->stream().wpos()));
PyTuple_SET_ITEM(args1, 2, pPyMemoryStream->pyBytes());
PyTuple_SET_ITEM(args, 1, args1);
if (unpickleMethod == NULL){
Py_DECREF(args);
return NULL;
}
return args;
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::__unpickle__(PyObject* self, PyObject* args)
{
Py_ssize_t size = PyTuple_Size(args);
if (size != 3)
{
ERROR_MSG("PyMemoryStream::__unpickle__: args is wrong! (size != 3)");
S_Return;
}
PyObject* pyRpos = PyTuple_GET_ITEM(args, 0);
PyObject* pyWpos = PyTuple_GET_ITEM(args, 1);
PyObject* pybytes = PyTuple_GET_ITEM(args, 2);
if (pybytes == NULL)
{
ERROR_MSG("PyMemoryStream::__unpickle__: args is wrong!");
S_Return;
}
PyMemoryStream* pPyMemoryStream = new PyMemoryStream(pybytes);
pPyMemoryStream->stream().rpos(PyLong_AsUnsignedLong(pyRpos));
pPyMemoryStream->stream().wpos(PyLong_AsUnsignedLong(pyWpos));
return pPyMemoryStream;
}
//-------------------------------------------------------------------------------------
void PyMemoryStream::onInstallScript(PyObject* mod)
{
static PyMethodDef __unpickle__Method =
{ "MemoryStream", (PyCFunction)&PyMemoryStream::__unpickle__, METH_VARARGS, 0 };
PyObject* pyFunc = PyCFunction_New(&__unpickle__Method, NULL);
script::Pickler::registerUnpickleFunc(pyFunc, "MemoryStream");
Py_DECREF(pyFunc);
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::py_new()
{
return new PyMemoryStream();
}
//-------------------------------------------------------------------------------------
void PyMemoryStream::addToStream(MemoryStream* mstream)
{
ArraySize size = stream().size();
(*mstream) << size;
if(size > 0)
{
ArraySize rpos = stream().rpos(), wpos = stream().wpos();
(*mstream) << rpos;
(*mstream) << wpos;
(*mstream).append(stream().data(), size);
}
}
//-------------------------------------------------------------------------------------
void PyMemoryStream::createFromStream(MemoryStream* mstream)
{
ArraySize size;
ArraySize rpos, wpos;
(*mstream) >> size;
if(size > 0)
{
(*mstream) >> rpos;
(*mstream) >> wpos;
stream().append(mstream->data() + mstream->rpos(), size);
stream().rpos(rpos);
stream().wpos(wpos);
mstream->read_skip(size);
}
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::tp_repr()
{
PyObject* pybytes = this->pyBytes();
PyObject* pyStr = PyObject_Str(pybytes);
Py_DECREF(pybytes);
return pyStr;
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::tp_str()
{
return tp_repr();
}
//-------------------------------------------------------------------------------------
Py_ssize_t PyMemoryStream::seq_length(PyObject* self)
{
PyMemoryStream* seq = static_cast<PyMemoryStream*>(self);
return seq->length();
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::__py_bytes(PyObject* self, PyObject* args, PyObject* kwargs)
{
PyMemoryStream* pyobj = static_cast<PyMemoryStream*>(self);
return pyobj->pyBytes();
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::__py_append(PyObject* self, PyObject* args, PyObject* kwargs)
{
PyMemoryStream* pyobj = static_cast<PyMemoryStream*>(self);
if(pyobj->readonly())
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::append: read only!");
PyErr_PrintEx(0);
S_Return;
}
int argCount = PyTuple_Size(args);
if(argCount != 2)
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::append: args error! arg1 is type[UINT8|STRING|...], arg2 is val.");
PyErr_PrintEx(0);
}
char* type;
PyObject* pyVal = NULL;
if(PyArg_ParseTuple(args, "s|O", &type, &pyVal) == -1)
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::append: args error!");
PyErr_PrintEx(0);
S_Return;
}
if(strcmp(type, "UINT8") == 0)
{
uint8 v = (uint8)PyLong_AsUnsignedLong(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "UINT16") == 0)
{
uint16 v = (uint16)PyLong_AsUnsignedLong(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "UINT32") == 0)
{
uint32 v = PyLong_AsUnsignedLong(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "UINT64") == 0)
{
uint64 v = PyLong_AsUnsignedLongLong(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "INT8") == 0)
{
int8 v = (int8)PyLong_AsLong(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "INT16") == 0)
{
int16 v = (int16)PyLong_AsLong(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "INT32") == 0)
{
int32 v = PyLong_AsLong(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "INT64") == 0)
{
int64 v = PyLong_AsLongLong(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "FLOAT") == 0)
{
float v = (float)PyFloat_AsDouble(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "DOUBLE") == 0)
{
double v = (double)PyFloat_AsDouble(pyVal);
pyobj->stream() << v;
}
else if(strcmp(type, "STRING") == 0)
{
wchar_t* ws = PyUnicode_AsWideCharString(pyVal, NULL);
char* s = strutil::wchar2char(ws);
PyMem_Free(ws);
pyobj->stream() << s;
free(s);
}
else if(strcmp(type, "UNICODE") == 0)
{
PyObject* obj = PyUnicode_AsUTF8String(pyVal);
if(obj == NULL)
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::append: val is not UNICODE!");
PyErr_PrintEx(0);
S_Return;
}
pyobj->stream().appendBlob(PyBytes_AS_STRING(obj), PyBytes_GET_SIZE(obj));
Py_DECREF(obj);
}
else if(strcmp(type, "PYTHON") == 0 || strcmp(type, "PY_DICT") == 0
|| strcmp(type, "PY_TUPLE") == 0 || strcmp(type, "PY_LIST") == 0)
{
std::string datas = Pickler::pickle(pyVal);
pyobj->stream().appendBlob(datas);
}
else if(strcmp(type, "BLOB") == 0)
{
if(!PyObject_TypeCheck(pyVal, PyMemoryStream::getScriptType()) && !PyBytes_Check(pyVal))
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::append: val is not BLOB!");
PyErr_PrintEx(0);
S_Return;
}
if(PyBytes_Check(pyVal))
{
char *buffer;
Py_ssize_t length;
if(PyBytes_AsStringAndSize(pyVal, &buffer, &length) < 0)
{
SCRIPT_ERROR_CHECK();
S_Return;
}
pyobj->stream().appendBlob(buffer, length);
}
else
{
PyMemoryStream* obj = static_cast<PyMemoryStream*>(pyVal);
pyobj->stream().appendBlob(&obj->stream());
}
}
else
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::append: type %s no support!", type);
PyErr_PrintEx(0);
S_Return;
}
S_Return;
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::__py_pop(PyObject* self, PyObject* args, PyObject* kwargs)
{
PyMemoryStream* pyobj = static_cast<PyMemoryStream*>(self);
if(pyobj->readonly())
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::pop: read only!");
PyErr_PrintEx(0);
S_Return;
}
int argCount = PyTuple_Size(args);
if(argCount != 1)
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::pop: args error! arg1 is type[UINT8|STRING|...].");
PyErr_PrintEx(0);
}
char* type;
if(PyArg_ParseTuple(args, "s", &type) == -1)
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::pop: args error!");
PyErr_PrintEx(0);
S_Return;
}
try
{
if(strcmp(type, "UINT8") == 0)
{
uint8 v;
pyobj->stream() >> v;
return PyLong_FromUnsignedLong(v);
}
else if(strcmp(type, "UINT16") == 0)
{
uint16 v;
pyobj->stream() >> v;
return PyLong_FromUnsignedLong(v);
}
else if(strcmp(type, "UINT32") == 0)
{
uint32 v;
pyobj->stream() >> v;
return PyLong_FromUnsignedLong(v);
}
else if(strcmp(type, "UINT64") == 0)
{
uint64 v;
pyobj->stream() >> v;
return PyLong_FromUnsignedLongLong(v);
}
else if(strcmp(type, "INT8") == 0)
{
int8 v;
pyobj->stream() >> v;
return PyLong_FromLong(v);
}
else if(strcmp(type, "INT16") == 0)
{
int16 v;
pyobj->stream() >> v;
return PyLong_FromLong(v);
}
else if(strcmp(type, "INT32") == 0)
{
int32 v;
pyobj->stream() >> v;
return PyLong_FromLong(v);
}
else if(strcmp(type, "INT64") == 0)
{
int8 v;
pyobj->stream() >> v;
return PyLong_FromLongLong(v);
}
else if(strcmp(type, "FLOAT") == 0)
{
float v;
pyobj->stream() >> v;
return PyFloat_FromDouble(v);
}
else if(strcmp(type, "DOUBLE") == 0)
{
double v;
pyobj->stream() >> v;
return PyFloat_FromDouble(v);
}
else if(strcmp(type, "STRING") == 0)
{
std::string s;
pyobj->stream() >> s;
return PyUnicode_FromString(s.c_str());
}
else if(strcmp(type, "UNICODE") == 0)
{
std::string s;
pyobj->stream().readBlob(s);
PyObject* ret = PyUnicode_DecodeUTF8(s.data(), s.length(), NULL);
if(ret == NULL)
{
SCRIPT_ERROR_CHECK();
PyErr_Format(PyExc_TypeError, "PyMemoryStream::pop: val is not UNICODE!");
PyErr_PrintEx(0);
S_Return;
}
return ret;
}
else if(strcmp(type, "PYTHON") == 0 || strcmp(type, "PY_DICT") == 0
|| strcmp(type, "PY_TUPLE") == 0 || strcmp(type, "PY_LIST") == 0)
{
std::string s;
pyobj->stream().readBlob(s);
return Pickler::unpickle(s);
}
else if (strcmp(type, "BLOB") == 0)
{
std::string s;
pyobj->stream().readBlob(s);
PyObject* ret = PyBytes_FromStringAndSize((char*)s.data(), s.length());
if (ret == NULL)
{
SCRIPT_ERROR_CHECK();
PyErr_Format(PyExc_TypeError, "PyMemoryStream::pop: val is not BLOB!");
PyErr_PrintEx(0);
S_Return;
}
return ret;
}
else
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::pop: type %s no support!", type);
PyErr_PrintEx(0);
S_Return;
}
}
catch(MemoryStreamException &e)
{
PyErr_Format(PyExc_Exception, "PyMemoryStream::pop: stream error!");
PyErr_PrintEx(0);
S_Return;
}
S_Return;
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::__py_rpos(PyObject* self, PyObject* args, PyObject* kwargs)
{
PyMemoryStream* pyobj = static_cast<PyMemoryStream*>(self);
int argCount = PyTuple_Size(args);
if (argCount > 1)
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::rpos: args error! arg1 is type[UINT32].");
PyErr_PrintEx(0);
}
else if (argCount == 1)
{
uint32 pos = 0;
if (PyArg_ParseTuple(args, "I", &pos) == -1)
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::rpos: args error!");
PyErr_PrintEx(0);
S_Return;
}
pyobj->stream().rpos(pos);
}
else
{
return PyLong_FromUnsignedLong(pyobj->stream().rpos());
}
S_Return;
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::__py_wpos(PyObject* self, PyObject* args, PyObject* kwargs)
{
PyMemoryStream* pyobj = static_cast<PyMemoryStream*>(self);
int argCount = PyTuple_Size(args);
if (argCount > 1)
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::wpos: args error! arg1 is type[UINT32].");
PyErr_PrintEx(0);
}
if (argCount > 0 && pyobj->readonly())
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::wpos: read only!");
PyErr_PrintEx(0);
S_Return;
}
if (argCount == 1)
{
uint32 pos = 0;
if (PyArg_ParseTuple(args, "I", &pos) == -1)
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::wpos: args error!");
PyErr_PrintEx(0);
S_Return;
}
pyobj->stream().wpos(pos);
}
else
{
return PyLong_FromUnsignedLong(pyobj->stream().wpos());
}
S_Return;
}
//-------------------------------------------------------------------------------------
PyObject* PyMemoryStream::__py_fill(PyObject* self, PyObject* args, PyObject* kwargs)
{
PyMemoryStream* pyobj = static_cast<PyMemoryStream*>(self);
if (pyobj->readonly())
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::fill: read only!");
PyErr_PrintEx(0);
S_Return;
}
int argCount = PyTuple_Size(args);
if (argCount != 1)
{
PyErr_Format(PyExc_AssertionError, "PyMemoryStream::fill: args error! arg1 is [bytes|PyMemoryStream].");
PyErr_PrintEx(0);
}
PyObject* pyVal = NULL;
if (PyArg_ParseTuple(args, "O", &pyVal) == -1)
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::fill: args error!");
PyErr_PrintEx(0);
S_Return;
}
if (!PyObject_TypeCheck(pyVal, PyMemoryStream::getScriptType()) && !PyBytes_Check(pyVal))
{
PyErr_Format(PyExc_TypeError, "PyMemoryStream::fill: val is not [bytes|PyMemoryStream]!");
PyErr_PrintEx(0);
S_Return;
}
if (PyBytes_Check(pyVal))
{
char *buffer;
Py_ssize_t length;
if (PyBytes_AsStringAndSize(pyVal, &buffer, &length) < 0)
{
SCRIPT_ERROR_CHECK();
S_Return;
}
pyobj->stream().append(buffer, length);
}
else
{
PyMemoryStream* obj = static_cast<PyMemoryStream*>(pyVal);
pyobj->stream().append(obj->stream());
}
S_Return;
}
//-------------------------------------------------------------------------------------
}
}
| [
"liushuaigeq@163.com"
] | liushuaigeq@163.com |
020c0aa4415b1102c41d19f4c206df0e707c7515 | 7077a9b1f49121ae1e32c9b4d40f4428d29f065a | /Sequence.hpp | 3092b05de2e0c0352b3dd30abf3aff9a3c1bf3ac | [] | no_license | artiomsa/Laba3_3sem | eeb9ee6a2e84f4e4593cce5f281a8eec886bab66 | 29de8b05025e88fd67b4f2f6297c7c6a4863a480 | refs/heads/main | 2023-02-02T18:35:47.005895 | 2020-12-27T13:52:28 | 2020-12-27T13:52:28 | 324,772,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 508 | hpp | #pragma once
#include <iostream>
template <class T>
class Sequence
{
public:
virtual T GetFirst() = 0;
virtual T GetLast() = 0;
virtual T& Get(int index) = 0;
virtual void Set(T item, int index) = 0;
virtual Sequence<T>* GetSubsequence(int startIndex, int endIndex) = 0;
virtual int GetLength() = 0;
virtual void Append(T item) = 0;
virtual void Prepend(T item) = 0;
virtual void InsertAt(T item, int index) = 0;
virtual Sequence<T>* Concat(Sequence<T>* list) = 0;
};
| [
"noreply@github.com"
] | noreply@github.com |
1c57273e10d8aee6e3ba82b888952ab14c538fb5 | cc7fd2cf46d0f52788815f51f83ad179b3d4af27 | /C++ Tests/Chapter6/ch6example4.cpp | 1e7fc93657248199dc008ffe8a0e5616aebf93cb | [] | no_license | MutableLoss/cpp-tests | f412cec5c53c949a1a44f429f19ab965c15ae9c2 | 7082caa66a96a81ea9362d6f5e9ce1dfce181d6e | refs/heads/master | 2022-04-12T15:06:52.285438 | 2020-02-26T19:24:35 | 2020-02-26T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | cpp | //
// ch6example4.cpp
// C++ Tests
//
// Created by Dennis on 2019/09/30.
// Copyright © 2019 Dennis. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <array>
int ch6example4() {
const char* pstars[] {
"Fatty Arbuckle", "Clara Bow", "Lassie",
"Slim Pickens", "Boris Karloff", "Mae West",
"Oliverr Hardy", "Greta Garbo"
};
std::cout << "Pick a lucky star! Enter a number between 1 and "
<< std::size(pstars) << ": ";
size_t choice {};
std::cin >> choice;
if(choice >= 1 && choice <= std::size(pstars)) {
std::cout << "Your lucky star is " << pstars[choice - 1] << std::endl;
} else {
std::cout << "Sorry, you haven't got a lucky star." << std::endl;
}
return 0;
}
| [
"vilesyn@gmail.com"
] | vilesyn@gmail.com |
d378b3d2218aa2539759a3c57e49054aea9f8561 | 0cfd4d8ab52658b13c1358c4f92a04be34c63350 | /deps/lcb/src/cntl.cc | 389a8ddacf90ef9cbc5fafc749b84528e6912ce4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | obazoud/couchnode | 7131c5d9826ab811cad4142aa848a0298b544b33 | c5f933bd6c845bcad6bf85df11a5e8250aaa72e0 | refs/heads/master | 2021-01-22T22:27:39.507796 | 2017-05-11T04:56:24 | 2017-05-11T07:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,241 | cc | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010-2012 Couchbase, 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.
*/
#include "internal.h"
#include "bucketconfig/clconfig.h"
#include "contrib/lcb-jsoncpp/lcb-jsoncpp.h"
#include <lcbio/iotable.h>
#include <mcserver/negotiate.h>
#include <lcbio/ssl.h>
#define CNTL__MODE_SETSTRING 0x1000
/* Basic definition/declaration for handlers */
#define HANDLER(name) static lcb_error_t name(int mode, lcb_t instance, int cmd, void *arg)
/* For handlers which only retrieve values */
#define RETURN_GET_ONLY(T, acc) \
if (mode != LCB_CNTL_GET) { return LCB_ECTL_UNSUPPMODE; } \
*reinterpret_cast<T*>(arg) = (T)acc; \
return LCB_SUCCESS; \
(void)cmd;
#define RETURN_SET_ONLY(T, acc) \
if (mode != LCB_CNTL_SET) { return LCB_ECTL_UNSUPPMODE; } \
acc = *reinterpret_cast<T*>(arg); \
return LCB_SUCCESS;
#define RETURN_GET_SET(T, acc) \
if (mode == LCB_CNTL_GET) { \
RETURN_GET_ONLY(T, acc); \
} \
else if (mode == LCB_CNTL_SET) { \
RETURN_SET_ONLY(T, acc); \
} \
else { \
return LCB_ECTL_UNSUPPMODE; \
}
typedef lcb_error_t (*ctl_handler)(int, lcb_t, int, void *);
typedef struct { const char *s; lcb_U32 u32; } STR_u32MAP;
static const STR_u32MAP* u32_from_map(const char *s, const STR_u32MAP *lookup) {
const STR_u32MAP *ret;
for (ret = lookup; ret->s; ret++) {
lcb_SIZE maxlen = strlen(ret->s);
if (!strncmp(ret->s, s, maxlen)) { return ret; }
}
return NULL;
}
#define DO_CONVERT_STR2NUM(s, lookup, v) { \
const STR_u32MAP *str__rv = u32_from_map(s, lookup); \
if (str__rv) { v = str__rv->u32; } else { return LCB_ECTL_BADARG; } }
static lcb_uint32_t *get_timeout_field(lcb_t instance, int cmd)
{
lcb_settings *settings = instance->settings;
switch (cmd) {
case LCB_CNTL_OP_TIMEOUT: return &settings->operation_timeout;
case LCB_CNTL_VIEW_TIMEOUT: return &settings->views_timeout;
case LCB_CNTL_N1QL_TIMEOUT: return &settings->n1ql_timeout;
case LCB_CNTL_DURABILITY_INTERVAL: return &settings->durability_interval;
case LCB_CNTL_DURABILITY_TIMEOUT: return &settings->durability_timeout;
case LCB_CNTL_HTTP_TIMEOUT: return &settings->http_timeout;
case LCB_CNTL_CONFIGURATION_TIMEOUT: return &settings->config_timeout;
case LCB_CNTL_CONFDELAY_THRESH: return &settings->weird_things_delay;
case LCB_CNTL_CONFIG_NODE_TIMEOUT: return &settings->config_node_timeout;
case LCB_CNTL_HTCONFIG_IDLE_TIMEOUT: return &settings->bc_http_stream_time;
case LCB_CNTL_RETRY_INTERVAL: return &settings->retry_interval;
case LCB_CNTL_RETRY_NMV_INTERVAL: return &settings->retry_nmv_interval;
default: return NULL;
}
}
HANDLER(timeout_common) {
lcb_U32 *ptr;
lcb_U32 *user = reinterpret_cast<lcb_U32*>(arg);
ptr = get_timeout_field(instance, cmd);
if (!ptr) {
return LCB_ECTL_BADARG;
}
if (mode == LCB_CNTL_GET) {
*user = *ptr;
} else {
*ptr = *user;
}
return LCB_SUCCESS;
}
HANDLER(noop_handler) {
(void)mode;(void)instance;(void)cmd;(void)arg; return LCB_SUCCESS;
}
HANDLER(get_vbconfig) {
RETURN_GET_ONLY(lcbvb_CONFIG*, LCBT_VBCONFIG(instance))
}
HANDLER(get_htype) {
RETURN_GET_ONLY(lcb_type_t, static_cast<lcb_type_t>(instance->type))
}
HANDLER(get_iops) {
RETURN_GET_ONLY(lcb_io_opt_t, instance->iotable->p)
}
HANDLER(syncmode) {
(void)mode; (void)instance; (void)cmd; (void)arg; return LCB_ECTL_UNKNOWN;
}
HANDLER(ippolicy) {
RETURN_GET_SET(lcb_ipv6_t, instance->settings->ipv6)
}
HANDLER(confthresh) {
RETURN_GET_SET(lcb_SIZE, instance->settings->weird_things_threshold)
}
HANDLER(randomize_bootstrap_hosts_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, randomize_bootstrap_nodes))
}
HANDLER(get_changeset) {
(void)instance; RETURN_GET_ONLY(char*, LCB_VERSION_CHANGESET)
}
HANDLER(ssl_mode_handler) {
RETURN_GET_ONLY(int, LCBT_SETTING(instance, sslopts))
}
HANDLER(ssl_certpath_handler) {
RETURN_GET_ONLY(char*, LCBT_SETTING(instance, certpath))
}
HANDLER(htconfig_urltype_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, bc_http_urltype));
}
HANDLER(syncdtor_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, syncdtor));
}
HANDLER(detailed_errcode_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, detailed_neterr))
}
HANDLER(retry_backoff_handler) {
RETURN_GET_SET(float, LCBT_SETTING(instance, retry_backoff))
}
HANDLER(http_poolsz_handler) {
RETURN_GET_SET(lcb_SIZE, instance->http_sockpool->maxidle)
}
HANDLER(http_refresh_config_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, refresh_on_hterr))
}
HANDLER(compmode_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, compressopts))
}
HANDLER(bucketname_handler) {
RETURN_GET_ONLY(const char*, LCBT_SETTING(instance, bucket))
}
HANDLER(schedflush_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, sched_implicit_flush))
}
HANDLER(vbguess_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, keep_guess_vbs))
}
HANDLER(fetch_mutation_tokens_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, fetch_mutation_tokens))
}
HANDLER(dur_mutation_tokens_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, dur_mutation_tokens))
}
HANDLER(nmv_imm_retry_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, nmv_retry_imm));
}
HANDLER(tcp_nodelay_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, tcp_nodelay));
}
HANDLER(readj_ts_wait_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, readj_ts_wait));
}
HANDLER(kv_hg_handler) {
RETURN_GET_ONLY(lcb_HISTOGRAM*, instance->kv_timings);
}
HANDLER(read_chunk_size_handler) {
RETURN_GET_SET(lcb_U32, LCBT_SETTING(instance, read_chunk_size));
}
HANDLER(enable_errmap_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, use_errmap));
}
HANDLER(select_bucket_handler) {
RETURN_GET_SET(int, LCBT_SETTING(instance, select_bucket));
}
HANDLER(get_kvb) {
lcb_cntl_vbinfo_st *vbi = reinterpret_cast<lcb_cntl_vbinfo_st*>(arg);
if (mode != LCB_CNTL_GET) { return LCB_ECTL_UNSUPPMODE; }
if (!LCBT_VBCONFIG(instance)) { return LCB_CLIENT_ETMPFAIL; }
if (vbi->version != 0) { return LCB_ECTL_BADARG; }
lcbvb_map_key(LCBT_VBCONFIG(instance), vbi->v.v0.key, vbi->v.v0.nkey,
&vbi->v.v0.vbucket, &vbi->v.v0.server_index);
(void)cmd; return LCB_SUCCESS;
}
HANDLER(conninfo) {
const lcbio_SOCKET *sock;
lcb_cntl_server_st *si = reinterpret_cast<lcb_cntl_server_st*>(arg);
const lcb_host_t *host;
if (mode != LCB_CNTL_GET) { return LCB_ECTL_UNSUPPMODE; }
if (si->version < 0 || si->version > 1) { return LCB_ECTL_BADARG; }
if (cmd == LCB_CNTL_MEMDNODE_INFO) {
lcb::Server *server;
int ix = si->v.v0.index;
if (ix < 0 || ix > (int)LCBT_NSERVERS(instance)) {
return LCB_ECTL_BADARG;
}
server = instance->get_server(ix);
if (!server) {
return LCB_NETWORK_ERROR;
}
sock = server->connctx->sock;
if (si->version == 1 && sock) {
lcb::SessionInfo *info = lcb::SessionInfo::get(server->connctx->sock);
if (info) {
si->v.v1.sasl_mech = info->get_mech().c_str();
}
}
} else if (cmd == LCB_CNTL_CONFIGNODE_INFO) {
sock = lcb::clconfig::http_get_conn(instance->confmon);
} else {
return LCB_ECTL_BADARG;
}
if (!sock) {
return LCB_SUCCESS;
}
host = lcbio_get_host(sock);
si->v.v0.connected = 1;
si->v.v0.host = host->host;
si->v.v0.port = host->port;
if (instance->iotable->model == LCB_IOMODEL_EVENT) {
si->v.v0.sock.sockfd = sock->u.fd;
} else {
si->v.v0.sock.sockptr = sock->u.sd;
}
return LCB_SUCCESS;
}
HANDLER(config_cache_loaded_handler) {
if (mode != LCB_CNTL_GET) { return LCB_ECTL_UNSUPPMODE; }
*(int *)arg = instance->cur_configinfo &&
instance->cur_configinfo->get_origin() == lcb::clconfig::CLCONFIG_FILE;
(void)cmd; return LCB_SUCCESS;
}
HANDLER(force_sasl_mech_handler) {
if (mode == LCB_CNTL_SET) {
free(instance->settings->sasl_mech_force);
if (arg) {
const char *s = reinterpret_cast<const char*>(arg);
instance->settings->sasl_mech_force = strdup(s);
}
} else {
*(char**)arg = instance->settings->sasl_mech_force;
}
(void)cmd; return LCB_SUCCESS;
}
HANDLER(max_redirects) {
if (mode == LCB_CNTL_SET && *(int*)arg < -1) { return LCB_ECTL_BADARG; }
RETURN_GET_SET(int, LCBT_SETTING(instance, max_redir))
}
HANDLER(logprocs_handler) {
if (mode == LCB_CNTL_GET) {
*(lcb_logprocs**)arg = LCBT_SETTING(instance, logger);
} else if (mode == LCB_CNTL_SET) {
LCBT_SETTING(instance, logger) = (lcb_logprocs *)arg;
}
(void)cmd; return LCB_SUCCESS;
}
HANDLER(config_transport) {
lcb_config_transport_t *val = reinterpret_cast<lcb_config_transport_t*>(arg);
if (mode == LCB_CNTL_SET) { return LCB_ECTL_UNSUPPMODE; }
if (!instance->cur_configinfo) { return LCB_CLIENT_ETMPFAIL; }
switch (instance->cur_configinfo->get_origin()) {
case lcb::clconfig::CLCONFIG_HTTP: *val = LCB_CONFIG_TRANSPORT_HTTP; break;
case lcb::clconfig::CLCONFIG_CCCP: *val = LCB_CONFIG_TRANSPORT_CCCP; break;
default: return LCB_CLIENT_ETMPFAIL;
}
(void)cmd; return LCB_SUCCESS;
}
HANDLER(config_nodes) {
const char *node_strs = reinterpret_cast<const char*>(arg);
lcb::clconfig::Provider *target;
lcb::Hostlist hostlist;
lcb_error_t err;
if (mode != LCB_CNTL_SET) {
return LCB_ECTL_UNSUPPMODE;
}
err = hostlist.add(node_strs, -1,
cmd == LCB_CNTL_CONFIG_HTTP_NODES
? LCB_CONFIG_HTTP_PORT : LCB_CONFIG_MCD_PORT);
if (err != LCB_SUCCESS) {
return err;
}
if (cmd == LCB_CNTL_CONFIG_HTTP_NODES) {
target = instance->confmon->get_provider(lcb::clconfig::CLCONFIG_HTTP);
} else {
target = instance->confmon->get_provider(lcb::clconfig::CLCONFIG_CCCP);
}
target->configure_nodes(hostlist);
return LCB_SUCCESS;
}
HANDLER(init_providers) {
lcb_create_st2 *opts = reinterpret_cast<lcb_create_st2*>(arg);
if (mode != LCB_CNTL_SET) { return LCB_ECTL_UNSUPPMODE; }
(void)cmd; return lcb_init_providers2(instance, opts);
}
HANDLER(config_cache_handler) {
using namespace lcb::clconfig;
Provider *provider;
provider = instance->confmon->get_provider(lcb::clconfig::CLCONFIG_FILE);
if (mode == LCB_CNTL_SET) {
bool rv = file_set_filename(provider,
reinterpret_cast<const char*>(arg),
cmd == LCB_CNTL_CONFIGCACHE_RO);
if (rv) {
instance->settings->bc_http_stream_time = LCB_MS2US(10000);
return LCB_SUCCESS;
}
return LCB_ERROR;
} else {
*(const char **)arg = file_get_filename(provider);
return LCB_SUCCESS;
}
}
HANDLER(retrymode_handler) {
lcb_U32 *val = reinterpret_cast<lcb_U32*>(arg);
lcb_U32 rmode = LCB_RETRYOPT_GETMODE(*val);
uint8_t *p = NULL;
if (rmode >= LCB_RETRY_ON_MAX) { return LCB_ECTL_BADARG; }
p = &(LCBT_SETTING(instance, retry)[rmode]);
if (mode == LCB_CNTL_SET) {
*p = LCB_RETRYOPT_GETPOLICY(*val);
} else {
*val = LCB_RETRYOPT_CREATE(rmode, *p);
}
(void)cmd;
return LCB_SUCCESS;
}
HANDLER(allocfactory_handler) {
lcb_cntl_rdballocfactory *cbw = reinterpret_cast<lcb_cntl_rdballocfactory*>(arg);
if (mode == LCB_CNTL_SET) {
LCBT_SETTING(instance, allocator_factory) = cbw->factory;
} else {
cbw->factory = LCBT_SETTING(instance, allocator_factory);
}
(void)cmd; return LCB_SUCCESS;
}
HANDLER(console_log_handler) {
lcb_U32 level;
struct lcb_CONSOLELOGGER *logger;
lcb_logprocs *procs;
level = *(lcb_U32*)arg;
if (mode != LCB_CNTL_SET) {
return LCB_ECTL_UNSUPPMODE;
}
procs = LCBT_SETTING(instance, logger);
if (!procs) {
procs = lcb_init_console_logger();
}
if (procs) {
/* don't override previous config */
return LCB_SUCCESS;
}
logger = (struct lcb_CONSOLELOGGER* ) lcb_console_logprocs;
level = LCB_LOG_ERROR - level;
logger->minlevel = level;
LCBT_SETTING(instance, logger) = &logger->base;
(void)cmd; return LCB_SUCCESS;
}
HANDLER(console_fp_handler) {
struct lcb_CONSOLELOGGER *logger =
(struct lcb_CONSOLELOGGER*)lcb_console_logprocs;
if (mode == LCB_CNTL_GET) {
*(FILE **)arg = logger->fp;
} else if (mode == LCB_CNTL_SET) {
logger->fp = *(FILE**)arg;
} else if (mode == CNTL__MODE_SETSTRING) {
FILE *fp = fopen(reinterpret_cast<const char*>(arg), "w");
if (!fp) {
return LCB_ERROR;
} else {
logger->fp = fp;
}
}
(void)cmd; (void)instance;
return LCB_SUCCESS;
}
HANDLER(reinit_spec_handler) {
if (mode == LCB_CNTL_GET) { return LCB_ECTL_UNSUPPMODE; }
(void)cmd; return lcb_reinit3(instance, reinterpret_cast<const char*>(arg));
}
HANDLER(client_string_handler) {
if (mode == LCB_CNTL_SET) {
const char *val = reinterpret_cast<const char*>(arg);
free(LCBT_SETTING(instance, client_string));
if (val) {
LCBT_SETTING(instance, client_string) = strdup(val);
}
} else {
*(const char **)arg = LCBT_SETTING(instance, client_string);
}
(void)cmd;
return LCB_SUCCESS;
}
HANDLER(unsafe_optimize) {
lcb_error_t rc;
int val = *(int *)arg;
if (mode != LCB_CNTL_SET) {
return LCB_ECTL_UNSUPPMODE;
}
if (!val) {
return LCB_ECTL_BADARG;
}
/* Simpler to just input strings here. */
#define APPLY_UNSAFE(k, v) \
if ((rc = lcb_cntl_string(instance, k, v)) != LCB_SUCCESS) { return rc; }
APPLY_UNSAFE("vbguess_persist", "1");
APPLY_UNSAFE("retry_policy", "topochange:none")
APPLY_UNSAFE("retry_policy", "sockerr:none");
APPLY_UNSAFE("retry_policy", "maperr:none");
APPLY_UNSAFE("retry_policy", "missingnode:none");
APPLY_UNSAFE("retry_backoff", "0.0");
(void)cmd;
return LCB_SUCCESS;
}
HANDLER(mutation_tokens_supported_handler) {
size_t ii;
if (mode != LCB_CNTL_GET) {
return LCB_ECTL_UNSUPPMODE;
}
*(int *)arg = 0;
for (ii = 0; ii < LCBT_NSERVERS(instance); ii++) {
if (instance->get_server(ii)->supports_mutation_tokens()) {
*(int *)arg = 1;
break;
}
}
(void)cmd;
return LCB_SUCCESS;
}
HANDLER(n1ql_cache_clear_handler) {
if (mode != LCB_CNTL_SET) {
return LCB_ECTL_UNSUPPMODE;
}
lcb_n1qlcache_clear(instance->n1ql_cache);
(void)cmd;
(void)arg;
return LCB_SUCCESS;
}
HANDLER(bucket_auth_handler) {
const lcb_BUCKETCRED *cred;
if (mode == LCB_CNTL_SET) {
/* Parse the bucket string... */
cred = (const lcb_BUCKETCRED *)arg;
return lcbauth_add_pass(instance->settings->auth, (*cred)[0], (*cred)[1], LCBAUTH_F_BUCKET);
(void)cmd; (void)arg;
} else if (mode == CNTL__MODE_SETSTRING) {
const char *ss = reinterpret_cast<const char *>(arg);
size_t sslen = strlen(ss);
Json::Value root;
if (!Json::Reader().parse(ss, ss + sslen, root)) {
return LCB_ECTL_BADARG;
}
if (!root.isArray() || root.size() != 2) {
return LCB_ECTL_BADARG;
}
return lcbauth_add_pass(instance->settings->auth,
root[0].asString().c_str(),
root[1].asString().c_str(), LCBAUTH_F_BUCKET);
} else {
return LCB_ECTL_UNSUPPMODE;
}
return LCB_SUCCESS;
}
static ctl_handler handlers[] = {
timeout_common, /* LCB_CNTL_OP_TIMEOUT */
timeout_common, /* LCB_CNTL_VIEW_TIMEOUT */
noop_handler, /* LCB_CNTL_RBUFSIZE */
noop_handler, /* LCB_CNTL_WBUFSIZE */
get_htype, /* LCB_CNTL_HANDLETYPE */
get_vbconfig, /* LCB_CNTL_VBCONFIG */
get_iops, /* LCB_CNTL_IOPS */
get_kvb, /* LCB_CNTL_VBMAP */
conninfo, /* LCB_CNTL_MEMDNODE_INFO */
conninfo, /* LCB_CNTL_CONFIGNODE_INFO */
syncmode, /* LCB_CNTL_SYNCMODE */
ippolicy, /* LCB_CNTL_IP6POLICY */
confthresh /* LCB_CNTL_CONFERRTHRESH */,
timeout_common, /* LCB_CNTL_DURABILITY_INTERVAL */
timeout_common, /* LCB_CNTL_DURABILITY_TIMEOUT */
timeout_common, /* LCB_CNTL_HTTP_TIMEOUT */
lcb_iops_cntl_handler, /* LCB_CNTL_IOPS_DEFAULT_TYPES */
lcb_iops_cntl_handler, /* LCB_CNTL_IOPS_DLOPEN_DEBUG */
timeout_common, /* LCB_CNTL_CONFIGURATION_TIMEOUT */
noop_handler, /* LCB_CNTL_SKIP_CONFIGURATION_ERRORS_ON_CONNECT */
randomize_bootstrap_hosts_handler /* LCB_CNTL_RANDOMIZE_BOOTSTRAP_HOSTS */,
config_cache_loaded_handler /* LCB_CNTL_CONFIG_CACHE_LOADED */,
force_sasl_mech_handler, /* LCB_CNTL_FORCE_SASL_MECH */
max_redirects, /* LCB_CNTL_MAX_REDIRECTS */
logprocs_handler /* LCB_CNTL_LOGGER */,
timeout_common, /* LCB_CNTL_CONFDELAY_THRESH */
config_transport, /* LCB_CNTL_CONFIG_TRANSPORT */
timeout_common, /* LCB_CNTL_CONFIG_NODE_TIMEOUT */
timeout_common, /* LCB_CNTL_HTCONFIG_IDLE_TIMEOUT */
config_nodes, /* LCB_CNTL_CONFIG_HTTP_NODES */
config_nodes, /* LCB_CNTL_CONFIG_CCCP_NODES */
get_changeset, /* LCB_CNTL_CHANGESET */
init_providers, /* LCB_CNTL_CONFIG_ALL_NODES */
config_cache_handler, /* LCB_CNTL_CONFIGCACHE */
ssl_mode_handler, /* LCB_CNTL_SSL_MODE */
ssl_certpath_handler, /* LCB_CNTL_SSL_CAPATH */
retrymode_handler, /* LCB_CNTL_RETRYMODE */
htconfig_urltype_handler, /* LCB_CNTL_HTCONFIG_URLTYPE */
compmode_handler, /* LCB_CNTL_COMPRESSION_OPTS */
allocfactory_handler, /* LCB_CNTL_RDBALLOCFACTORY */
syncdtor_handler, /* LCB_CNTL_SYNCDESTROY */
console_log_handler, /* LCB_CNTL_CONLOGGER_LEVEL */
detailed_errcode_handler, /* LCB_CNTL_DETAILED_ERRCODES */
reinit_spec_handler, /* LCB_CNTL_REINIT_CONNSTR */
timeout_common, /* LCB_CNTL_RETRY_INTERVAL */
retry_backoff_handler, /* LCB_CNTL_RETRY_BACKOFF */
http_poolsz_handler, /* LCB_CNTL_HTTP_POOLSIZE */
http_refresh_config_handler, /* LCB_CNTL_HTTP_REFRESH_CONFIG_ON_ERROR */
bucketname_handler, /* LCB_CNTL_BUCKETNAME */
schedflush_handler, /* LCB_CNTL_SCHED_IMPLICIT_FLUSH */
vbguess_handler, /* LCB_CNTL_VBGUESS_PERSIST */
unsafe_optimize, /* LCB_CNTL_UNSAFE_OPTIMIZE */
fetch_mutation_tokens_handler, /* LCB_CNTL_FETCH_MUTATION_TOKENS */
dur_mutation_tokens_handler, /* LCB_CNTL_DURABILITY_MUTATION_TOKENS */
config_cache_handler, /* LCB_CNTL_CONFIGCACHE_READONLY */
nmv_imm_retry_handler, /* LCB_CNTL_RETRY_NMV_IMM */
mutation_tokens_supported_handler, /* LCB_CNTL_MUTATION_TOKENS_SUPPORTED */
tcp_nodelay_handler, /* LCB_CNTL_TCP_NODELAY */
readj_ts_wait_handler, /* LCB_CNTL_RESET_TIMEOUT_ON_WAIT */
console_fp_handler, /* LCB_CNTL_CONLOGGER_FP */
kv_hg_handler, /* LCB_CNTL_KVTIMINGS */
timeout_common, /* LCB_CNTL_N1QL_TIMEOUT */
n1ql_cache_clear_handler, /* LCB_CNTL_N1QL_CLEARCACHE */
client_string_handler, /* LCB_CNTL_CLIENT_STRING */
bucket_auth_handler, /* LCB_CNTL_BUCKET_CRED */
timeout_common, /* LCB_CNTL_RETRY_NMV_DELAY */
read_chunk_size_handler, /*LCB_CNTL_READ_CHUNKSIZE */
enable_errmap_handler, /* LCB_CNTL_ENABLE_ERRMAP */
select_bucket_handler /* LCB_CNTL_SELECT_BUCKET */
};
/* Union used for conversion to/from string functions */
typedef union {
lcb_U32 u32;
lcb_SIZE sz;
int i;
float f;
void *p;
} u_STRCONVERT;
/* This handler should convert the string argument to the appropriate
* type needed for the actual control handler. It should return an error if the
* argument is invalid.
*/
typedef lcb_error_t (*ctl_str_cb)(const char *value, u_STRCONVERT *u);
typedef struct {
const char *key;
int opcode;
ctl_str_cb converter;
} cntl_OPCODESTRS;
static lcb_error_t convert_timeout(const char *arg, u_STRCONVERT *u) {
int rv;
unsigned long tmp;
/* Parse as a float */
double dtmp;
rv = sscanf(arg, "%lf", &dtmp);
if (rv != 1) { return LCB_ECTL_BADARG; }
tmp = dtmp * (double) 1000000;
u->u32 = tmp;
return LCB_SUCCESS;
}
static lcb_error_t convert_intbool(const char *arg, u_STRCONVERT *u) {
if (!strcmp(arg, "true")) {
u->i = 1;
} else if (!strcmp(arg, "false")) {
u->i = 0;
} else {
u->i = atoi(arg);
}
return LCB_SUCCESS;
}
static lcb_error_t convert_passthru(const char *arg, u_STRCONVERT *u) {
u->p = (void*)arg;
return LCB_SUCCESS;
}
static lcb_error_t convert_int(const char *arg, u_STRCONVERT *u) {
int rv = sscanf(arg, "%d", &u->i);
return rv == 1 ? LCB_SUCCESS : LCB_ECTL_BADARG;
}
static lcb_error_t convert_u32(const char *arg, u_STRCONVERT *u) {
return convert_timeout(arg, u);
}
static lcb_error_t convert_float(const char *arg, u_STRCONVERT *u) {
double d;
int rv = sscanf(arg, "%lf", &d);
if (rv != 1) { return LCB_ECTL_BADARG; }
u->f = d;
return LCB_SUCCESS;
}
static lcb_error_t convert_SIZE(const char *arg, u_STRCONVERT *u) {
unsigned long lu;
int rv;
rv = sscanf(arg, "%lu", &lu);
if (rv != 1) { return LCB_ECTL_BADARG; }
u->sz = lu;
return LCB_SUCCESS;
}
static lcb_error_t convert_compression(const char *arg, u_STRCONVERT *u) {
static const STR_u32MAP optmap[] = {
{ "on", LCB_COMPRESS_INOUT },
{ "off", LCB_COMPRESS_NONE },
{ "inflate_only", LCB_COMPRESS_IN },
{ "force", LCB_COMPRESS_INOUT|LCB_COMPRESS_FORCE },
{ NULL }
};
DO_CONVERT_STR2NUM(arg, optmap, u->i);
return LCB_SUCCESS;
}
static lcb_error_t convert_retrymode(const char *arg, u_STRCONVERT *u) {
static const STR_u32MAP modemap[] = {
{ "topochange", LCB_RETRY_ON_TOPOCHANGE },
{ "sockerr", LCB_RETRY_ON_SOCKERR },
{ "maperr", LCB_RETRY_ON_VBMAPERR },
{ "missingnode", LCB_RETRY_ON_MISSINGNODE }, { NULL }
};
static const STR_u32MAP polmap[] = {
{ "all", LCB_RETRY_CMDS_ALL },
{ "get", LCB_RETRY_CMDS_GET },
{ "safe", LCB_RETRY_CMDS_SAFE },
{ "none", LCB_RETRY_CMDS_NONE }, { NULL }
};
lcb_U32 polval, modeval;
const char *polstr = strchr(arg, ':');
if (!polstr) { return LCB_ECTL_BADARG; }
polstr++;
DO_CONVERT_STR2NUM(arg, modemap, modeval);
DO_CONVERT_STR2NUM(polstr, polmap, polval);
u->u32 = LCB_RETRYOPT_CREATE(modeval, polval);
return LCB_SUCCESS;
}
static cntl_OPCODESTRS stropcode_map[] = {
{"operation_timeout", LCB_CNTL_OP_TIMEOUT, convert_timeout},
{"timeout", LCB_CNTL_OP_TIMEOUT, convert_timeout},
{"views_timeout", LCB_CNTL_VIEW_TIMEOUT, convert_timeout},
{"n1ql_timeout", LCB_CNTL_N1QL_TIMEOUT, convert_timeout},
{"durability_timeout", LCB_CNTL_DURABILITY_TIMEOUT, convert_timeout},
{"durability_interval", LCB_CNTL_DURABILITY_INTERVAL, convert_timeout},
{"http_timeout", LCB_CNTL_HTTP_TIMEOUT, convert_timeout},
{"randomize_nodes", LCB_CNTL_RANDOMIZE_BOOTSTRAP_HOSTS, convert_intbool},
{"sasl_mech_force", LCB_CNTL_FORCE_SASL_MECH, convert_passthru},
{"error_thresh_count", LCB_CNTL_CONFERRTHRESH, convert_SIZE},
{"error_thresh_delay", LCB_CNTL_CONFDELAY_THRESH, convert_timeout},
{"config_total_timeout", LCB_CNTL_CONFIGURATION_TIMEOUT, convert_timeout},
{"config_node_timeout", LCB_CNTL_CONFIG_NODE_TIMEOUT, convert_timeout},
{"compression", LCB_CNTL_COMPRESSION_OPTS, convert_compression},
{"console_log_level", LCB_CNTL_CONLOGGER_LEVEL, convert_u32},
{"config_cache", LCB_CNTL_CONFIGCACHE, convert_passthru },
{"config_cache_ro", LCB_CNTL_CONFIGCACHE_RO, convert_passthru },
{"detailed_errcodes", LCB_CNTL_DETAILED_ERRCODES, convert_intbool},
{"retry_policy", LCB_CNTL_RETRYMODE, convert_retrymode},
{"http_urlmode", LCB_CNTL_HTCONFIG_URLTYPE, convert_int },
{"sync_dtor", LCB_CNTL_SYNCDESTROY, convert_intbool },
{"_reinit_connstr", LCB_CNTL_REINIT_CONNSTR },
{"retry_backoff", LCB_CNTL_RETRY_BACKOFF, convert_float },
{"retry_interval", LCB_CNTL_RETRY_INTERVAL, convert_timeout},
{"http_poolsize", LCB_CNTL_HTTP_POOLSIZE, convert_SIZE },
{"vbguess_persist", LCB_CNTL_VBGUESS_PERSIST, convert_intbool },
{"unsafe_optimize", LCB_CNTL_UNSAFE_OPTIMIZE, convert_intbool },
{"fetch_mutation_tokens", LCB_CNTL_FETCH_MUTATION_TOKENS, convert_intbool },
{"dur_mutation_tokens", LCB_CNTL_DURABILITY_MUTATION_TOKENS, convert_intbool },
{"retry_nmv_imm", LCB_CNTL_RETRY_NMV_IMM, convert_intbool },
{"tcp_nodelay", LCB_CNTL_TCP_NODELAY, convert_intbool },
{"readj_ts_wait", LCB_CNTL_RESET_TIMEOUT_ON_WAIT, convert_intbool },
{"console_log_file", LCB_CNTL_CONLOGGER_FP, NULL },
{"client_string", LCB_CNTL_CLIENT_STRING, convert_passthru},
{"retry_nmv_delay", LCB_CNTL_RETRY_NMV_INTERVAL, convert_timeout},
{"bucket_cred", LCB_CNTL_BUCKET_CRED, NULL},
{"read_chunk_size", LCB_CNTL_READ_CHUNKSIZE, convert_u32},
{"enable_errmap", LCB_CNTL_ENABLE_ERRMAP, convert_intbool},
{"select_bucket", LCB_CNTL_SELECT_BUCKET, convert_intbool},
{NULL, -1}
};
#define CNTL_NUM_HANDLERS (sizeof(handlers) / sizeof(handlers[0]))
static lcb_error_t
wrap_return(lcb_t instance, lcb_error_t retval)
{
if (retval == LCB_SUCCESS) {
return retval;
}
if (instance && LCBT_SETTING(instance, detailed_neterr) == 0) {
switch (retval) {
case LCB_ECTL_UNKNOWN:
return LCB_NOT_SUPPORTED;
case LCB_ECTL_UNSUPPMODE:
return LCB_NOT_SUPPORTED;
case LCB_ECTL_BADARG:
return LCB_EINVAL;
default:
return retval;
}
} else {
return retval;
}
}
LIBCOUCHBASE_API
lcb_error_t lcb_cntl(lcb_t instance, int mode, int cmd, void *arg)
{
ctl_handler handler;
if (cmd >= (int)CNTL_NUM_HANDLERS || cmd < 0) {
return wrap_return(instance, LCB_ECTL_UNKNOWN);
}
handler = handlers[cmd];
if (!handler) {
return wrap_return(instance, LCB_ECTL_UNKNOWN);
}
return wrap_return(instance, handler(mode, instance, cmd, arg));
}
LIBCOUCHBASE_API
lcb_error_t
lcb_cntl_string(lcb_t instance, const char *key, const char *value)
{
cntl_OPCODESTRS *cur;
u_STRCONVERT u;
lcb_error_t err;
for (cur = stropcode_map; cur->key; cur++) {
if (!strcmp(cur->key, key)) {
if (cur->converter) {
err = cur->converter(value, &u);
if (err != LCB_SUCCESS) {
return err;
}
if (cur->converter == convert_passthru) {
return lcb_cntl(instance, LCB_CNTL_SET, cur->opcode, u.p);
} else {
return lcb_cntl(instance, LCB_CNTL_SET, cur->opcode, &u);
}
}
return lcb_cntl(instance, CNTL__MODE_SETSTRING, cur->opcode,
(void *)value);
}
}
return wrap_return(instance, LCB_NOT_SUPPORTED);
}
LIBCOUCHBASE_API
int
lcb_cntl_exists(int ctl)
{
if (ctl >= (int)CNTL_NUM_HANDLERS || ctl < 0) {
return 0;
}
return handlers[ctl] != NULL;
}
LIBCOUCHBASE_API
lcb_error_t lcb_cntl_setu32(lcb_t instance, int cmd, lcb_uint32_t arg)
{
return lcb_cntl(instance, LCB_CNTL_SET, cmd, &arg);
}
LIBCOUCHBASE_API
lcb_uint32_t lcb_cntl_getu32(lcb_t instance, int cmd)
{
lcb_uint32_t ret = 0;
lcb_cntl(instance, LCB_CNTL_GET, cmd, &ret);
return ret;
}
#define DECL_DEPR_FUNC(T, name_set, name_get, ctl) \
LIBCOUCHBASE_API void name_set(lcb_t instance, T input) { \
lcb_cntl(instance, LCB_CNTL_SET, ctl, &input); } \
LIBCOUCHBASE_API T name_get(lcb_t instance) { T output = (T)0; \
lcb_cntl(instance, LCB_CNTL_GET, ctl, &output); return (T)output; }
DECL_DEPR_FUNC(lcb_ipv6_t, lcb_behavior_set_ipv6, lcb_behavior_get_ipv6, LCB_CNTL_IP6POLICY)
DECL_DEPR_FUNC(lcb_size_t, lcb_behavior_set_config_errors_threshold, lcb_behavior_get_config_errors_threshold, LCB_CNTL_CONFERRTHRESH)
DECL_DEPR_FUNC(lcb_U32, lcb_set_timeout, lcb_get_timeout, LCB_CNTL_OP_TIMEOUT)
DECL_DEPR_FUNC(lcb_U32, lcb_set_view_timeout, lcb_get_view_timeout, LCB_CNTL_VIEW_TIMEOUT)
| [
"brett19@gmail.com"
] | brett19@gmail.com |
0dfb6e09df0aa4b434a721759ef112af70ba7fa2 | 88ae8695987ada722184307301e221e1ba3cc2fa | /ash/shell_unittest.cc | 5ffd429ae841b369e7082a7b732933624f50aee4 | [
"BSD-3-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 25,117 | cc | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/shell.h"
#include <memory>
#include <queue>
#include <vector>
#include "ash/accelerators//accelerator_tracker.h"
#include "ash/accessibility/chromevox/key_accessibility_enabler.h"
#include "ash/accessibility/magnifier/fullscreen_magnifier_controller.h"
#include "ash/display/mouse_cursor_event_filter.h"
#include "ash/drag_drop/drag_drop_controller.h"
#include "ash/drag_drop/drag_drop_controller_test_api.h"
#include "ash/keyboard/ui/keyboard_ui_controller.h"
#include "ash/keyboard/ui/keyboard_util.h"
#include "ash/public/cpp/ash_prefs.h"
#include "ash/public/cpp/keyboard/keyboard_switches.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/public/cpp/test/shell_test_api.h"
#include "ash/root_window_controller.h"
#include "ash/session/session_controller_impl.h"
#include "ash/session/test_session_controller_client.h"
#include "ash/shelf/home_button.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_navigation_widget.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/system/status_area_widget.h"
#include "ash/test/ash_test_base.h"
#include "ash/test/ash_test_helper.h"
#include "ash/test/test_widget_builder.h"
#include "ash/test_shell_delegate.h"
#include "ash/wallpaper/wallpaper_widget_controller.h"
#include "ash/wm/desks/desks_util.h"
#include "ash/wm/overview/overview_controller.h"
#include "base/command_line.h"
#include "base/containers/flat_set.h"
#include "base/ranges/algorithm.h"
#include "base/strings/utf_string_conversions.h"
#include "components/account_id/account_id.h"
#include "ui/aura/env.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/display/scoped_display_for_new_windows.h"
#include "ui/events/test/event_generator.h"
#include "ui/events/test/events_test_utils.h"
#include "ui/events/test/test_event_handler.h"
#include "ui/gfx/geometry/size.h"
#include "ui/views/controls/menu/menu_controller.h"
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/views/window/dialog_delegate.h"
#include "ui/wm/core/accelerator_filter.h"
using aura::RootWindow;
namespace ash {
namespace {
aura::Window* GetActiveDeskContainer() {
return Shell::GetContainer(Shell::GetPrimaryRootWindow(),
desks_util::GetActiveDeskContainerId());
}
aura::Window* GetAlwaysOnTopContainer() {
return Shell::GetContainer(Shell::GetPrimaryRootWindow(),
kShellWindowId_AlwaysOnTopContainer);
}
// Expect ALL the containers!
void ExpectAllContainers() {
aura::Window* root_window = Shell::GetPrimaryRootWindow();
// Validate no duplicate container IDs.
base::flat_set<int> container_ids;
std::queue<aura::Window*> window_queue;
window_queue.push(root_window);
while (!window_queue.empty()) {
aura::Window* current_window = window_queue.front();
window_queue.pop();
for (aura::Window* child : current_window->children())
window_queue.push(child);
const int id = current_window->GetId();
// Skip windows with no IDs.
if (id == aura::Window::kInitialId)
continue;
EXPECT_TRUE(container_ids.insert(id).second)
<< "Found duplicate ID: " << id
<< " at window: " << current_window->GetName();
}
EXPECT_TRUE(
Shell::GetContainer(root_window, kShellWindowId_WallpaperContainer));
for (int desk_id : desks_util::GetDesksContainersIds())
EXPECT_TRUE(Shell::GetContainer(root_window, desk_id));
EXPECT_TRUE(
Shell::GetContainer(root_window, kShellWindowId_AlwaysOnTopContainer));
EXPECT_TRUE(Shell::GetContainer(root_window, kShellWindowId_ShelfContainer));
EXPECT_TRUE(
Shell::GetContainer(root_window, kShellWindowId_SystemModalContainer));
EXPECT_TRUE(Shell::GetContainer(root_window,
kShellWindowId_LockScreenWallpaperContainer));
EXPECT_TRUE(
Shell::GetContainer(root_window, kShellWindowId_LockScreenContainer));
EXPECT_TRUE(Shell::GetContainer(root_window,
kShellWindowId_LockSystemModalContainer));
EXPECT_TRUE(Shell::GetContainer(root_window, kShellWindowId_MenuContainer));
EXPECT_TRUE(Shell::GetContainer(root_window,
kShellWindowId_DragImageAndTooltipContainer));
EXPECT_TRUE(
Shell::GetContainer(root_window, kShellWindowId_SettingBubbleContainer));
EXPECT_TRUE(
Shell::GetContainer(root_window, kShellWindowId_OverlayContainer));
EXPECT_TRUE(Shell::GetContainer(root_window,
kShellWindowId_ImeWindowParentContainer));
EXPECT_TRUE(Shell::GetContainer(root_window,
kShellWindowId_VirtualKeyboardContainer));
EXPECT_TRUE(
Shell::GetContainer(root_window, kShellWindowId_MouseCursorContainer));
// Phantom window is not a container.
EXPECT_EQ(0u, container_ids.count(kShellWindowId_PhantomWindow));
EXPECT_FALSE(Shell::GetContainer(root_window, kShellWindowId_PhantomWindow));
}
std::unique_ptr<views::WidgetDelegateView> CreateModalWidgetDelegate() {
auto delegate = std::make_unique<views::WidgetDelegateView>();
delegate->SetCanResize(true);
delegate->SetModalType(ui::MODAL_TYPE_SYSTEM);
delegate->SetOwnedByWidget(true);
delegate->SetTitle(u"Modal Window");
return delegate;
}
class SimpleMenuDelegate : public ui::SimpleMenuModel::Delegate {
public:
SimpleMenuDelegate() = default;
SimpleMenuDelegate(const SimpleMenuDelegate&) = delete;
SimpleMenuDelegate& operator=(const SimpleMenuDelegate&) = delete;
~SimpleMenuDelegate() override = default;
bool IsCommandIdChecked(int command_id) const override { return false; }
bool IsCommandIdEnabled(int command_id) const override { return true; }
void ExecuteCommand(int command_id, int event_flags) override {}
};
} // namespace
class ShellTest : public AshTestBase {
public:
void TestCreateWindow(views::Widget::InitParams::Type type,
bool always_on_top,
aura::Window* expected_container) {
TestWidgetBuilder builder;
if (always_on_top)
builder.SetZOrderLevel(ui::ZOrderLevel::kFloatingWindow);
views::Widget* widget =
builder.SetWidgetType(type).BuildOwnedByNativeWidget();
EXPECT_TRUE(
expected_container->Contains(widget->GetNativeWindow()->parent()))
<< "TestCreateWindow: type=" << type
<< ", always_on_top=" << always_on_top;
widget->Close();
}
void LockScreenAndVerifyMenuClosed() {
// Verify a menu is open before locking.
views::MenuController* menu_controller =
views::MenuController::GetActiveInstance();
DCHECK(menu_controller);
EXPECT_EQ(views::MenuController::ExitType::kNone,
menu_controller->exit_type());
// Create a LockScreen window.
views::Widget* lock_widget =
TestWidgetBuilder()
.SetWidgetType(views::Widget::InitParams::TYPE_WINDOW)
.SetShow(false)
.BuildOwnedByNativeWidget();
Shell::GetContainer(Shell::GetPrimaryRootWindow(),
kShellWindowId_LockScreenContainer)
->AddChild(lock_widget->GetNativeView());
lock_widget->Show();
// Simulate real screen locker to change session state to LOCKED
// when it is shown.
GetSessionControllerClient()->LockScreen();
SessionControllerImpl* controller = Shell::Get()->session_controller();
EXPECT_TRUE(controller->IsScreenLocked());
EXPECT_TRUE(lock_widget->GetNativeView()->HasFocus());
// Verify menu is closed.
EXPECT_EQ(nullptr, views::MenuController::GetActiveInstance());
lock_widget->Close();
GetSessionControllerClient()->UnlockScreen();
}
};
TEST_F(ShellTest, CreateWindow) {
// Normal window should be created in default container.
TestCreateWindow(views::Widget::InitParams::TYPE_WINDOW,
false, // always_on_top
GetActiveDeskContainer());
TestCreateWindow(views::Widget::InitParams::TYPE_POPUP,
false, // always_on_top
GetActiveDeskContainer());
// Always-on-top window and popup are created in always-on-top container.
TestCreateWindow(views::Widget::InitParams::TYPE_WINDOW,
true, // always_on_top
GetAlwaysOnTopContainer());
TestCreateWindow(views::Widget::InitParams::TYPE_POPUP,
true, // always_on_top
GetAlwaysOnTopContainer());
}
// Verifies that a window with a preferred size is created centered on the
// default display for new windows. Mojo apps like shortcut_viewer rely on this
// behavior.
TEST_F(ShellTest, CreateWindowWithPreferredSize) {
UpdateDisplay("1024x768,800x600");
aura::Window* secondary_root = Shell::GetAllRootWindows()[1];
display::ScopedDisplayForNewWindows scoped_display(secondary_root);
views::Widget::InitParams params;
params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
// Don't specify bounds, parent or context.
{
auto delegate = std::make_unique<views::WidgetDelegateView>();
delegate->SetPreferredSize(gfx::Size(400, 300));
params.delegate = delegate.release();
}
views::Widget widget;
params.context = GetContext();
widget.Init(std::move(params));
// Widget is centered on secondary display.
EXPECT_EQ(secondary_root, widget.GetNativeWindow()->GetRootWindow());
EXPECT_EQ(GetSecondaryDisplay().work_area().CenterPoint(),
widget.GetRestoredBounds().CenterPoint());
}
TEST_F(ShellTest, ChangeZOrderLevel) {
// Creates a normal window.
views::Widget* widget = TestWidgetBuilder().BuildOwnedByNativeWidget();
// It should be in the active desk container.
EXPECT_TRUE(
GetActiveDeskContainer()->Contains(widget->GetNativeWindow()->parent()));
// Set the z-order to float.
widget->SetZOrderLevel(ui::ZOrderLevel::kFloatingWindow);
// And it should in always on top container now.
EXPECT_EQ(GetAlwaysOnTopContainer(), widget->GetNativeWindow()->parent());
// Put the z-order back to normal.
widget->SetZOrderLevel(ui::ZOrderLevel::kNormal);
// It should go back to the active desk container.
EXPECT_TRUE(
GetActiveDeskContainer()->Contains(widget->GetNativeWindow()->parent()));
// Set the z-order again to the normal value.
widget->SetZOrderLevel(ui::ZOrderLevel::kNormal);
// Should have no effect and we are still in the the active desk container.
EXPECT_TRUE(
GetActiveDeskContainer()->Contains(widget->GetNativeWindow()->parent()));
widget->Close();
}
TEST_F(ShellTest, CreateModalWindow) {
// Create a normal window.
views::Widget* widget = TestWidgetBuilder().BuildOwnedByNativeWidget();
// It should be in the active desk container.
EXPECT_TRUE(
GetActiveDeskContainer()->Contains(widget->GetNativeWindow()->parent()));
// Create a modal window.
views::Widget* modal_widget = views::Widget::CreateWindowWithParent(
CreateModalWidgetDelegate(), widget->GetNativeView());
modal_widget->Show();
// It should be in modal container.
aura::Window* modal_container = Shell::GetContainer(
Shell::GetPrimaryRootWindow(), kShellWindowId_SystemModalContainer);
EXPECT_EQ(modal_container, modal_widget->GetNativeWindow()->parent());
modal_widget->Close();
widget->Close();
}
TEST_F(ShellTest, CreateLockScreenModalWindow) {
// Create a normal window.
views::Widget* widget = TestWidgetBuilder().BuildOwnedByNativeWidget();
EXPECT_TRUE(widget->GetNativeView()->HasFocus());
// It should be in the active desk container.
EXPECT_TRUE(
GetActiveDeskContainer()->Contains(widget->GetNativeWindow()->parent()));
GetSessionControllerClient()->LockScreen();
// Create a LockScreen window.
views::Widget* lock_widget =
TestWidgetBuilder().SetShow(false).BuildOwnedByNativeWidget();
Shell::GetContainer(Shell::GetPrimaryRootWindow(),
kShellWindowId_LockScreenContainer)
->AddChild(lock_widget->GetNativeView());
lock_widget->Show();
EXPECT_TRUE(lock_widget->GetNativeView()->HasFocus());
// It should be in LockScreen container.
aura::Window* lock_screen = Shell::GetContainer(
Shell::GetPrimaryRootWindow(), kShellWindowId_LockScreenContainer);
EXPECT_EQ(lock_screen, lock_widget->GetNativeWindow()->parent());
// Create a modal window with a lock window as parent.
views::Widget* lock_modal_widget = views::Widget::CreateWindowWithParent(
CreateModalWidgetDelegate(), lock_widget->GetNativeView());
lock_modal_widget->Show();
EXPECT_TRUE(lock_modal_widget->GetNativeView()->HasFocus());
// It should be in LockScreen modal container.
aura::Window* lock_modal_container =
Shell::GetContainer(Shell::GetPrimaryRootWindow(),
kShellWindowId_LockSystemModalContainer);
EXPECT_EQ(lock_modal_container,
lock_modal_widget->GetNativeWindow()->parent());
// Create a modal window with a normal window as parent.
views::Widget* modal_widget = views::Widget::CreateWindowWithParent(
CreateModalWidgetDelegate(), widget->GetNativeView());
modal_widget->Show();
// Window on lock screen shouldn't lost focus.
EXPECT_FALSE(modal_widget->GetNativeView()->HasFocus());
EXPECT_TRUE(lock_modal_widget->GetNativeView()->HasFocus());
// It should be in non-LockScreen modal container.
aura::Window* modal_container = Shell::GetContainer(
Shell::GetPrimaryRootWindow(), kShellWindowId_SystemModalContainer);
EXPECT_EQ(modal_container, modal_widget->GetNativeWindow()->parent());
// Modal widget without parent, caused crash see crbug.com/226141
views::Widget* modal_dialog = views::DialogDelegate::CreateDialogWidget(
CreateModalWidgetDelegate(), GetContext(), nullptr);
modal_dialog->Show();
EXPECT_FALSE(modal_dialog->GetNativeView()->HasFocus());
EXPECT_TRUE(lock_modal_widget->GetNativeView()->HasFocus());
modal_dialog->Close();
modal_widget->Close();
modal_widget->Close();
lock_modal_widget->Close();
lock_widget->Close();
widget->Close();
}
TEST_F(ShellTest, IsScreenLocked) {
SessionControllerImpl* controller = Shell::Get()->session_controller();
GetSessionControllerClient()->LockScreen();
EXPECT_TRUE(controller->IsScreenLocked());
GetSessionControllerClient()->UnlockScreen();
EXPECT_FALSE(controller->IsScreenLocked());
}
TEST_F(ShellTest, LockScreenClosesActiveMenu) {
SimpleMenuDelegate menu_delegate;
std::unique_ptr<ui::SimpleMenuModel> menu_model(
new ui::SimpleMenuModel(&menu_delegate));
menu_model->AddItem(0, u"Menu item");
views::Widget* widget = Shell::GetPrimaryRootWindowController()
->wallpaper_widget_controller()
->GetWidget();
std::unique_ptr<views::MenuRunner> menu_runner(
new views::MenuRunner(menu_model.get(), views::MenuRunner::CONTEXT_MENU));
menu_runner->RunMenuAt(widget, nullptr, gfx::Rect(),
views::MenuAnchorPosition::kTopLeft,
ui::MENU_SOURCE_MOUSE);
LockScreenAndVerifyMenuClosed();
}
TEST_F(ShellTest, ManagedWindowModeBasics) {
// We start with the usual window containers.
ExpectAllContainers();
// Shelf is visible.
ShelfWidget* shelf_widget = GetPrimaryShelf()->shelf_widget();
EXPECT_TRUE(shelf_widget->IsVisible());
// Shelf is at bottom-left of screen.
EXPECT_EQ(0, shelf_widget->GetWindowBoundsInScreen().x());
EXPECT_EQ(
Shell::GetPrimaryRootWindow()->GetHost()->GetBoundsInPixels().height(),
shelf_widget->GetWindowBoundsInScreen().bottom());
// We have a wallpaper but not a bare layer.
// TODO (antrim): enable once we find out why it fails component build.
// WallpaperWidgetController* wallpaper =
// Shell::GetPrimaryRootWindow()->
// GetProperty(kWindowDesktopComponent);
// EXPECT_TRUE(wallpaper);
// EXPECT_TRUE(wallpaper->widget());
// EXPECT_FALSE(wallpaper->layer());
// Create a normal window. It is not maximized.
views::Widget* widget = TestWidgetBuilder()
.SetBounds(gfx::Rect(11, 22, 300, 400))
.BuildOwnedByNativeWidget();
EXPECT_FALSE(widget->IsMaximized());
// Clean up.
widget->Close();
}
// Tests that the cursor-filter is ahead of the drag-drop controller in the
// pre-target list.
TEST_F(ShellTest, TestPreTargetHandlerOrder) {
Shell* shell = Shell::Get();
ui::EventTargetTestApi test_api(shell);
ShellTestApi shell_test_api;
ui::EventHandlerList handlers = test_api.GetPreTargetHandlers();
ui::EventHandlerList::const_iterator cursor_filter =
base::ranges::find(handlers, shell->mouse_cursor_filter());
ui::EventHandlerList::const_iterator drag_drop =
base::ranges::find(handlers, shell_test_api.drag_drop_controller());
EXPECT_NE(handlers.end(), cursor_filter);
EXPECT_NE(handlers.end(), drag_drop);
EXPECT_GT(drag_drop, cursor_filter);
}
// Tests that the accelerator_tracker is ahead of the accelerator_filter in the
// pre-target list to make sure the accelerators won't be filtered out before
// getting AcceleratorTracker.
TEST_F(ShellTest, AcceleratorPreTargetHandlerOrder) {
Shell* shell = Shell::Get();
ui::EventTargetTestApi test_api(shell);
ui::EventHandlerList handlers = test_api.GetPreTargetHandlers();
ui::EventHandlerList::const_iterator accelerator_tracker =
base::ranges::find(handlers, shell->accelerator_tracker());
ui::EventHandlerList::const_iterator accelerator_filter =
base::ranges::find(handlers, shell->accelerator_filter());
EXPECT_NE(handlers.end(), accelerator_tracker);
EXPECT_NE(handlers.end(), accelerator_filter);
EXPECT_GT(accelerator_filter, accelerator_tracker);
}
TEST_F(ShellTest, TestAccessibilityHandlerOrder) {
Shell* shell = Shell::Get();
ui::EventTargetTestApi test_api(shell);
ShellTestApi shell_test_api;
ui::EventHandler select_to_speak;
shell->AddAccessibilityEventHandler(
&select_to_speak,
AccessibilityEventHandlerManager::HandlerType::kSelectToSpeak);
// Check ordering.
ui::EventHandlerList handlers = test_api.GetPreTargetHandlers();
ui::EventHandlerList::const_iterator cursor_filter =
base::ranges::find(handlers, shell->mouse_cursor_filter());
ui::EventHandlerList::const_iterator fullscreen_magnifier_filter =
base::ranges::find(handlers, shell->fullscreen_magnifier_controller());
ui::EventHandlerList::const_iterator chromevox_filter =
base::ranges::find(handlers, shell->key_accessibility_enabler());
ui::EventHandlerList::const_iterator select_to_speak_filter =
base::ranges::find(handlers, &select_to_speak);
EXPECT_NE(handlers.end(), cursor_filter);
EXPECT_NE(handlers.end(), fullscreen_magnifier_filter);
EXPECT_NE(handlers.end(), chromevox_filter);
EXPECT_NE(handlers.end(), select_to_speak_filter);
EXPECT_LT(cursor_filter, fullscreen_magnifier_filter);
EXPECT_LT(fullscreen_magnifier_filter, chromevox_filter);
EXPECT_LT(chromevox_filter, select_to_speak_filter);
// Removing works.
shell->RemoveAccessibilityEventHandler(&select_to_speak);
handlers = test_api.GetPreTargetHandlers();
cursor_filter = base::ranges::find(handlers, shell->mouse_cursor_filter());
fullscreen_magnifier_filter =
base::ranges::find(handlers, shell->fullscreen_magnifier_controller());
chromevox_filter =
base::ranges::find(handlers, shell->key_accessibility_enabler());
select_to_speak_filter = base::ranges::find(handlers, &select_to_speak);
EXPECT_NE(handlers.end(), cursor_filter);
EXPECT_NE(handlers.end(), fullscreen_magnifier_filter);
EXPECT_NE(handlers.end(), chromevox_filter);
EXPECT_EQ(handlers.end(), select_to_speak_filter);
// Ordering still works.
EXPECT_LT(cursor_filter, fullscreen_magnifier_filter);
EXPECT_LT(fullscreen_magnifier_filter, chromevox_filter);
// Adding another is correct.
ui::EventHandler docked_magnifier;
shell->AddAccessibilityEventHandler(
&docked_magnifier,
AccessibilityEventHandlerManager::HandlerType::kDockedMagnifier);
handlers = test_api.GetPreTargetHandlers();
cursor_filter = base::ranges::find(handlers, shell->mouse_cursor_filter());
fullscreen_magnifier_filter =
base::ranges::find(handlers, shell->fullscreen_magnifier_controller());
chromevox_filter =
base::ranges::find(handlers, shell->key_accessibility_enabler());
ui::EventHandlerList::const_iterator docked_magnifier_filter =
base::ranges::find(handlers, &docked_magnifier);
EXPECT_NE(handlers.end(), cursor_filter);
EXPECT_NE(handlers.end(), fullscreen_magnifier_filter);
EXPECT_NE(handlers.end(), docked_magnifier_filter);
EXPECT_NE(handlers.end(), chromevox_filter);
// Inserted in proper order.
EXPECT_LT(cursor_filter, fullscreen_magnifier_filter);
EXPECT_LT(fullscreen_magnifier_filter, docked_magnifier_filter);
EXPECT_LT(docked_magnifier_filter, chromevox_filter);
}
// Verifies an EventHandler added to Env gets notified from EventGenerator.
TEST_F(ShellTest, EnvPreTargetHandler) {
ui::test::TestEventHandler event_handler;
aura::Env::GetInstance()->AddPreTargetHandler(&event_handler);
ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
generator.MoveMouseBy(1, 1);
EXPECT_NE(0, event_handler.num_mouse_events());
aura::Env::GetInstance()->RemovePreTargetHandler(&event_handler);
}
// Verifies that pressing tab on an empty shell (one with no windows visible)
// will put focus on the shelf. This enables keyboard only users to get to the
// shelf without knowing the more obscure accelerators. Tab should move focus to
// the home button, shift + tab to the status widget. From there, normal shelf
// tab behaviour takes over, and the shell no longer catches that event.
TEST_F(ShellTest, NoWindowTabFocus) {
ExpectAllContainers();
StatusAreaWidget* status_area_widget =
GetPrimaryShelf()->status_area_widget();
ShelfNavigationWidget* home_button = GetPrimaryShelf()->navigation_widget();
// Create a normal window. It is not maximized.
auto widget = CreateTestWidget();
// Hit tab with window open, and expect that focus is not on the navigation
// widget or status widget.
PressAndReleaseKey(ui::VKEY_TAB);
EXPECT_FALSE(home_button->GetNativeView()->HasFocus());
EXPECT_FALSE(status_area_widget->GetNativeView()->HasFocus());
// Minimize the window, hit tab and expect that focus is on the launcher.
widget->Minimize();
PressAndReleaseKey(ui::VKEY_TAB);
EXPECT_TRUE(home_button->GetNativeView()->HasFocus());
// Show (to steal focus back before continuing testing) and close the window.
widget->Show();
widget->Close();
EXPECT_FALSE(home_button->GetNativeView()->HasFocus());
// Confirm that pressing tab when overview mode is open does not go to home
// button. Tab should be handled by overview mode and not hit the shell event
// handler.
EnterOverview();
PressAndReleaseKey(ui::VKEY_TAB);
EXPECT_FALSE(home_button->GetNativeView()->HasFocus());
ExitOverview();
// Hit shift tab and expect that focus is on status widget.
PressAndReleaseKey(ui::VKEY_TAB, ui::EF_SHIFT_DOWN);
EXPECT_TRUE(status_area_widget->GetNativeView()->HasFocus());
}
// This verifies WindowObservers are removed when a window is destroyed after
// the Shell is destroyed. This scenario (aura::Windows being deleted after the
// Shell) occurs if someone is holding a reference to an unparented Window, as
// is the case with a RenderWidgetHostViewAura that isn't on screen. As long as
// everything is ok, we won't crash. If there is a bug, window's destructor will
// notify some deleted object (say VideoDetector or ActivationController) and
// this will crash.
class ShellTest2 : public AshTestBase {
public:
ShellTest2() = default;
ShellTest2(const ShellTest2&) = delete;
ShellTest2& operator=(const ShellTest2&) = delete;
~ShellTest2() override = default;
protected:
std::unique_ptr<aura::Window> window_;
};
TEST_F(ShellTest2, DontCrashWhenWindowDeleted) {
window_ = std::make_unique<aura::Window>(nullptr,
aura::client::WINDOW_TYPE_UNKNOWN);
window_->Init(ui::LAYER_NOT_DRAWN);
}
using ShellLoginTest = NoSessionAshTestBase;
TEST_F(ShellLoginTest, DragAndDropDisabledBeforeLogin) {
DragDropController* drag_drop_controller =
ShellTestApi().drag_drop_controller();
DragDropControllerTestApi drag_drop_controller_test_api(drag_drop_controller);
EXPECT_FALSE(drag_drop_controller_test_api.enabled());
SimulateUserLogin("user1@test.com");
EXPECT_TRUE(drag_drop_controller_test_api.enabled());
}
using NoDuplicateShellContainerIdsTest = AshTestBase;
TEST_F(NoDuplicateShellContainerIdsTest, ValidateContainersIds) {
ExpectAllContainers();
}
} // namespace ash
| [
"jengelh@inai.de"
] | jengelh@inai.de |
54f00f3b9a6844b89a04d8021d712d43ca57bc4b | 3e70eda6819fec5bf5ba2299573b333a3a610131 | /mole/gamesvr/games/new_tug/match.cpp | a3b10e7b6b11df2ebe9374baed46a5b6560ea83e | [] | no_license | dawnbreaks/taomee | cdd4f9cecaf659d134d207ae8c9dd2247bef97a1 | f21b3633680456b09a40036d919bf9f58c9cd6d7 | refs/heads/master | 2021-01-17T10:45:31.240038 | 2013-03-14T08:10:27 | 2013-03-14T08:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,216 | cpp | #include <cstdlib>
#include <cstring>
extern "C" {
#include <time.h>
#include <libtaomee/log.h>
#include <libxml/tree.h>
#include <gameserv/dll.h>
#include <gameserv/timer.h>
#include <gameserv/proto.h>
#include <gameserv/config.h>
#include <gameserv/dbproxy.h>
}
#include "match.hpp"
#include "player.hpp"
#include <ant/inet/pdumanip.hpp>
/**
* @brief 玩家进入
* @param sprite_t* p 玩家指针
* @return 无
*/
void Cmatch::init (sprite_t* p)
{
DEBUG_LOG("Cmatch::init user:%u", p->id);
player_cards_info_t *my_cards_info = NULL;
my_cards_info = new player_cards_info_t;
my_cards_info->total_cnt = 60;
for (uint32_t i = 0; i < 60; i++)
{
my_cards_info->card_id[i] = i;
}
Cplayer *p_player = NULL;
p_player = new Cplayer;
p_player->set_sprite(p);
p_player->set_cards_info(my_cards_info);
p_player->create_cards_seq();
if (COMPETE_MODE_GAME(p->group->game))
{
DEBUG_LOG("%lu\t COMPETE_MODE_GAME %d", p->group->id, p->id);
mgr_player_match(p, p_player);
}
return ;
}
/**
* @brief 用户中途或者意外离开时,竞赛模式退出队列,游戏组的游戏指针置空,防止Match被析构
* @param
* @return GER_end_of_game 结束游戏
*/
int Cmatch::handle_data(sprite_t* p, int cmd, const uint8_t body[], int len)
{
switch (cmd)
{
case proto_player_leave:
DEBUG_LOG("match: handle_data, player %d leave, %d", p->id, cmd);
break;
default:
DEBUG_LOG("match: handle_data, player %d undef cmd %d",p->id, cmd);
break;
}
int pos = -1;
//离开竞赛游戏队列
if (COMPETE_MODE_GAME(p->group->game))
{
std::vector<Cplayer*>::iterator it;
pos = -1;
for (it = tug_players.begin(); it != tug_players.end(); it++)
{
pos++;
Cplayer* p_player = *it;
if (p_player != NULL)
{
if(p_player->get_sprite() == p)
{
player_cards_info_t* p_cards_info = p_player->get_cards_info();
delete p_cards_info;
p_cards_info = NULL;
delete p_player;
p_player = NULL;
tug_players.erase(tug_players.begin()+pos);
DEBUG_LOG("%lu COMPETE LEAVE %d", p->group->id, p->id);
break;
}
}
}
}
if ( pos == -1)
{
ERROR_LOG("new_tug:compete mode: player %d leave ,but not found", p->id);
return GER_end_of_game;
}
p->group->game_handler = NULL;
for (int i = 0; i < p->group->count; i++)
{
p->group->players[i]->waitcmd = 0;
}
return GER_end_of_game;
}
/**
* @brief 告诉玩家服务器端已经获得了玩家信息,可以开始请求卡牌队列了
* @param sprite_t* p 玩家指针
* @return -1 发送失败
* @return 0 发送成功
*/
int Cmatch::notify_server_ready(sprite_t *p)
{
int l = sizeof (protocol_t);
init_proto_head(pkg, NEW_TUG_SERVER_READY, l);
if (send_to_self (p, pkg, l, 1 ) == 0) {
} else {
ERROR_LOG("notify server ready error");
return 0;
}
return 0;
}
int Cmatch::notify_user_info(Cnew_tug* tuggame)
{
int l = sizeof (protocol_t);
uint32_t gameid = tuggame->m_grp->game->id;
uint32_t groupid = tuggame->m_grp->id;
ant::pack(pkg, gameid, l);
ant::pack(pkg, groupid, l);
uint32_t count = tuggame->players.size();
ant::pack(pkg, count, l);
for (uint32_t i = 0; i < count; i++ )
{
ant::pack(pkg, tuggame->players[i]->id(), l);
DEBUG_LOG(" notify_user_info player userid:%u", tuggame->players[i]->id());
}
init_proto_head(pkg, NEW_TUG_USER_INFO, l);
send_to_players(tuggame->m_grp, pkg, l);
return 0;
}
int Cmatch::notify_user_info( )
{
int l = sizeof (protocol_t);
uint32_t gameid = 0;
uint32_t groupid = 0;
ant::pack(pkg, gameid, l);
ant::pack(pkg, groupid, l);
uint32_t count = tug_players.size();
if (count >= 2)
{
return 0;
}
ant::pack(pkg, count, l);
for (uint32_t i = 0; i < count; i++ )
{
ant::pack(pkg, tug_players[i]->id(), l);
}
init_proto_head(pkg, NEW_TUG_USER_INFO, l);
for (uint32_t i = 0; i < count; i++ )
{
sprite_t* p = tug_players[i]->get_sprite();
send_to_self(p, pkg, l, 1 );
}
return 0;
}
/**
* @brief 处理数据库返回的玩家信息
* @param
* @return GER_end_of_game 玩家卡牌没有激活时结束游戏
* @return 0 正常处理结束
*/
int Cmatch::handle_db_return(sprite_t *p, uint32_t id, const void *buf, int len, uint32_t ret_code)
{
return 0 ;
}
/**
* @brief 超时返回处理函数
* @param
* @return
* @return 0 正常处理结束
*/
int Cmatch::handle_timeout(void* data)
{
return 0;
}
/**
* @brief 玩家加入游戏或创建新的游戏
* @param sprite_t *p
* @param Cplayer * 玩家的游戏信息
* @return 0 成功
*/
int Cmatch::mgr_player_match(sprite_t *p, Cplayer *p_player)
{
uint32_t game_count = 2;
tug_players.push_back(p_player);
Cnew_tug* tuggame = NULL;
if (tug_players.size() < game_count)
{
//通知玩家加入游戏
notify_user_info();
}
else
{
sprite_t* pp = tug_players[0]->get_sprite();
tuggame= new Cnew_tug(pp->group);
assert (tuggame);
DEBUG_LOG(" Cmatch::tuggame :%u, grp:%u", tuggame, tuggame->m_grp);
pp->group->game_handler = tuggame;
tuggame->set_all_card_info(&all_cards);
tuggame->m_grp->count = 1;
for (uint32_t i = 0; i < game_count; i++)
{
Cplayer* pplayer = NULL;
pplayer = tug_players[i];
tuggame->set_player(pplayer);
sprite_t *p_sprite = pplayer->get_sprite();
if (p_sprite != pp)
{
tuggame->m_grp->count += 1;
uint32_t count = tuggame->m_grp->count;
free_game_group(p_sprite->group);
p_sprite->group = tuggame->m_grp;
pp->group->players[count-1] = p_sprite;
}
notify_server_ready(p_sprite);
}
notify_user_info(tuggame);
tuggame->players_cnt = tuggame->m_grp->count;
tug_players.erase(tug_players.begin(), tug_players.begin() + game_count);
}
return 0;
}
/**
* @brief 游戏服务器启动时读取tug配置信息
* @param const char *file 文件地址
* @return 0 正常 -1 错误
*/
int Cmatch::load_tugs_conf (const char *file)
{
int i, err = -1;
int cards_num = 0;
xmlDocPtr doc;
xmlNodePtr cur;
doc = xmlParseFile (file);
if (!doc)
ERROR_RETURN (("load items config failed"), -1);
cur = xmlDocGetRootElement(doc);
if (!cur) {
ERROR_LOG ("xmlDocGetRootElement error");
goto exit;
}
DECODE_XML_PROP_INT (cards_num, cur, "Count");
if (cards_num < 0 || cards_num > CARD_ID_MAX) {
ERROR_LOG ("error cards_num: %d", cards_num);
goto exit;
}
cur = cur->xmlChildrenNode;
i = 0;
while (cur) {
if ((!xmlStrcmp(cur->name, (const xmlChar *)"Card"))){
DECODE_XML_PROP_INT(all_cards[i].id, cur, "ID");
if (all_cards[i].id != i)
ERROR_RETURN(("%s parse error: id=%u, num=%d",
config_get_strval("new_cards_conf"), all_cards[i].id, cards_num), -1);
DECODE_XML_PROP_INT(all_cards[i].type, cur, "Type");
// DEBUG_LOG("Card[%d] Type:%d", i, all_cards[i].type);
if ( all_cards[i].type > CARD_TYPE_MAX) {
ERROR_LOG("Card[%d] Type configuration Error", i);
goto exit;
}
++i;
}
if (i == cards_num)
break;
cur = cur->next;
}
if (i != cards_num) {
ERROR_LOG ("parse %s failed, cards Count=%d, get Count=%d",
file, cards_num, i);
goto exit;
}
err = 0;
exit:
xmlFreeDoc (doc);
return err;
}
| [
"smyang.ustc@gmail.com"
] | smyang.ustc@gmail.com |
c1ddc1bfc0a84f8f62379e3bbe8b6682512611cd | a4e43dbf839e7fb2a12c6d3b87106ddb09a57709 | /include/stoc/Scanner/Token.h | d85ee291a184d5a019f61cbf58738408549a1918 | [] | no_license | jgarciapueyo/stoc | aacc54bf5550ad92bf27325079aef7d2a86c064b | 3231105da882c1f1d906cb9c98c797752a517216 | refs/heads/master | 2022-12-22T02:39:28.775616 | 2020-09-21T12:29:05 | 2020-09-21T12:29:05 | 260,972,410 | 8 | 0 | null | 2020-06-12T10:15:59 | 2020-05-03T16:27:23 | C++ | UTF-8 | C++ | false | false | 3,495 | h | //===- stoc/Scanner/Token.h - Defintion of Token related constructs -----------------*- C++ -*-===//
//
//===------------------------------------------------------------------------------------------===//
//
// This file defines the TokenType enum and Token class
//
//===------------------------------------------------------------------------------------------===//
#ifndef STOC_TOKEN_H
#define STOC_TOKEN_H
#include <string>
/// Representation of the types a token can be
enum TokenType {
// To add a new TokenType, it must be added here and in TokenTypeAsString vector [Token.cpp] (in
// the same relative order to other token) to store the string representation
// Operators
ADD, // +
SUB, // -
STAR, // *
SLASH, // /
LAND, // && (logical AND)
LOR, // || (logical OR)
NOT, // !
ASSIGN, // =
EQUAL, // == (logical EQUAL)
NOT_EQUAL, // !=
LESS, // <
GREATER, // >
LESS_EQUAL, // <=
GREATER_EQUAL, // >=
// Delimiters
LPAREN, // (
RPAREN, // )
LBRACE, // {
RBRACE, // }
SEMICOLON, // ;
COMMA, // ,
// Keywords
VAR, //
CONST, //
IF, // if
ELSE, // else
FOR, // for
WHILE, // while
FUNC, // func
RETURN, // return
// Basic types keywords
BOOL, // bool
INT, // int
FLOAT, // float
STRING, // string
// Basic type literals
LIT_TRUE, // true
LIT_FALSE, // false
LIT_INT, // 12345
LIT_FLOAT, // 123.45
LIT_STRING, // "a"
LIT_NIL, // nil (absence of value)
IDENTIFIER, //
// Special tokens
// TODO: (Improvement) consider creating a comment TokenType
ILLEGAL, // tokens that are not allowed or errors
T_EOF // end of file
};
/// returns the type of the token \type as a string: e.g. EQUAL -> '==', LPAREN -> '('
std::string to_string(TokenType type);
std::ostream &operator<<(std::ostream &os, TokenType type);
/// Representation of the precedence of TokenTypes (used in Pratt Parser for expressions)
/// e.g. A FACTOR (*, /) binds tighter than a TERM(+,/) so it has higher precedence
/// Important: all equality and comparison have the same precedence (different from C precedence).
/// This implies that parenthesis is mandatory to indicate the precedence correctly.
enum Prec {
PREC_LOWEST, // 0 (non operators)
PREC_OR, // 1 Token: LOR
PREC_AND, // 2 Token: LAND
PREC_EQUALITY, // 3 Token: EQUAL, NOT_EQUAL, LESS, GREATER, LESS_EQUAL, GREATER_EQUAL
PREC_TERM, // 4 Token: ADD, SUB
PREC_FACTOR, // 5 Token: STAR, SLASH
PREC_UNARY, // 6 Token: NOT, unary SUB, unary ADD
};
/// returns the precedence of \param type (as a binary operator)
int tokenPrec(TokenType type);
/// Representation of a token.
/// It contains a type and the string representing its value.
class Token {
public:
Token(TokenType type, int begin, int line, int column, std::string value);
Token(TokenType type, int begin, int line, int column);
Token() = default;
TokenType tokenType;
/// position where the token starts in the raw source code
int begin{};
/// line where the token is in the raw source code
int line{};
/// column of the line where the token starts in the raw source code
int column{};
/// value of the token. (e.g. for ADD is '+', for INT is 'int',
/// for an identifier is the string representing it 'identifier)
std::string value;
};
std::ostream &operator<<(std::ostream &os, const Token &t);
#endif // STOC_TOKEN_H
| [
"jgarciapueyo@gmail.com"
] | jgarciapueyo@gmail.com |
78b5063cdac43023128b65a75d86ba2b9c7be412 | c6e8e5dbf17182e9a674c31271d3d7e2470274a6 | /Homework_4/Homework_4/main.cpp | 1f20778014d2952b12f00cda9f66b5a658559283 | [] | no_license | chunyou0830/EE2410 | 9c3e9e23d00707920952572d71bb2cf083f24fd2 | 590b12be758760839ae0e4248df89c7166236461 | refs/heads/master | 2021-01-24T02:29:26.943794 | 2015-06-10T07:32:04 | 2015-06-10T07:32:04 | 32,865,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,438 | cpp | /* EE2410 Data Structure
* Homework 4 - Building a dictionary
* Yang, Chun You 103061142 */
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <map>
#include <string>
#include <string.h>
#include <vector>
using namespace std;
void process_a_line(string, map<string, int>&);
int main(int argc, char **argv)
{
if(argc<2){
cout << "Too few arguments" << endl; return(-1);
}
ifstream in_fp(argv[1], ios::in);
if(! in_fp){
cout << "Input file " << argv[1] << " is not valid\n" << endl;
return(0);
}
// create a map
map<string,int> book;
string cpp_line;
int line_count=0;
// Building dictionary
getline(in_fp, cpp_line);
while(!cpp_line.empty()){
process_a_line(cpp_line, book);
line_count++;
getline(in_fp, cpp_line);
}
cout << "Total no. of lines: " << line_count << endl;
cout << "*** Word Count ***" << endl;
map<string,int>::iterator it;
int max_count=atoi(argv[2]);
string most_freq_word[max_count];
int most_freq_word_times[max_count];
for(auto &i : book){
// word and its count
for(int n=0; n<max_count; n++){
if(i.second > most_freq_word_times[n]){
for(int x=max_count-1; x>n; x--){
most_freq_word[x] = most_freq_word[x-1];
most_freq_word_times[x] = most_freq_word_times[x-1];
}
most_freq_word[n] = i.first;
most_freq_word_times[n] = i.second;
break;
}
}
}
for(int n=1; n<max_count; n++){
cout << most_freq_word[n] << " " << most_freq_word_times[n] << endl;
}
}
/*----------- process a line -------------*/
void process_a_line(string cpp_line, map<string, int>& book)
{
char c_line[1000000], *word;
string cpp_word;
map<string,int>::iterator it;
strcpy(c_line, cpp_line.c_str());
word = strtok(c_line, "\"-,:;.() ");
while(word != 0){
/************************************/
/* Process a word here */
/************************************/
cpp_word = word;
it = book.find(cpp_word);
if(it != book.end()){
// An existing word
it->second = (it->second)+1;
}
else {// A new word
book[cpp_word]=1;
}
word = strtok(NULL, "\"-,:;.() ");
}
}
| [
"chunyou0830@gmail.com"
] | chunyou0830@gmail.com |
7791ed8cd8c57be80efc9c46de6c6b0ce0d508ef | 1c444bdf16632d78a3801a7fe6b35c054c4cddde | /include/bds/bedrock/actor/behavior/ActivateToolNode.h | b45bdd1da95278b6cc0ba5e4d613585176851d6e | [] | no_license | maksym-pasichnyk/symbols | 962a082bf6a692563402c87eb25e268e7e712c25 | 7673aa52391ce93540f0e65081f16cd11c2aa606 | refs/heads/master | 2022-04-11T03:17:18.078103 | 2020-03-15T11:30:36 | 2020-03-15T11:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | h | #pragma once
#include "BehaviorNode.h"
class ActivateToolNode : public BehaviorNode {
public:
~ActivateToolNode(); // _ZN16ActivateToolNodeD2Ev
virtual void tick(Actor &); // _ZN16ActivateToolNode4tickER5Actor
virtual void initializeFromDefinition(Actor &); // _ZN16ActivateToolNode24initializeFromDefinitionER5Actor
ActivateToolNode(); // _ZN16ActivateToolNodeC2Ev
};
| [
"honzaxp01@gmail.com"
] | honzaxp01@gmail.com |
5b877f7cb05516b9b9689c774656339dc46e57ed | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir7942/dir8062/dir8063/dir12766/dir12767/dir13029/dir15097/dir15260/dir15321/dir15524/dir17021/file17133.cpp | a60fb46d8eb91fefbf925e471035101598514416 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | #ifndef file17133
#error "macro file17133 must be defined"
#endif
static const char* file17133String = "file17133"; | [
"tgeng@google.com"
] | tgeng@google.com |
56209ec0cf96c8d6d00ed1eb8c7f1ee4bea4a0b7 | 874986698ea59d916e41528f24df97acd90082e6 | /c++study/5. Ponteiros/ponteiro1.cpp | cea4e824b86d0f176f1759c8dd39fd66ca9e6d02 | [] | no_license | 314H/competitive-programming | 7310a176e7a7cfb17dbf60447f28d4e1eb2ab4f7 | 1f572ec260bfe6a2e6676b8898d22ee52fd906eb | refs/heads/master | 2022-11-16T11:35:39.495516 | 2020-07-02T02:24:57 | 2020-07-02T02:24:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 776 | cpp | #include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int var; // Declarar variável
// Ponteiro é definido pelo '*'
// VocÊ pode colocálo de duas formas
// Junto ao tipo ou antes do id da variavel
int* pvar;
int *pvar_other;
// Ponteiro deve receber um endereço para o qual possa apontar
pvar = &var; // o ponteiro aponta para o endereço de var, devem ter o mesm tipo
// Para mostrar o conteudo desse endereço, usadmo o '*'
cout << *pvar << endl; // > 10
// Como aponta para um endereço eu posso mudar o valor qu esta nesse enderço
// Usando '*' sobre um ponteiro, eu acesso seu valor
// Assim, a patir de pvar1, posso mudar a variavel var
*pvar = 20;
std::cout << "var" << std::endl; // > 20
return 0;
}
| [
"rafaassis15@gmail.com"
] | rafaassis15@gmail.com |
7b15a7cd655a4369691f8fa35eb56e5e2b459f5f | 26e7c550fc703858117cb06cc83a4b1d017612df | /Fall/Data Structures/Week 6/templateUnion.h | c35c01ef8e2da58676e0922e0c0f0a0a526270ae | [] | no_license | elisobylak/StudentOriginatedSoftware | 3998f36b2504ade9917b04c5a1febc171dd29583 | c23b1b293799584781f7db6bb7ac83934178c72e | refs/heads/master | 2016-08-11T08:13:16.007987 | 2016-04-25T00:30:24 | 2016-04-25T00:30:24 | 54,294,231 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | h | template <class InputIterator1, class InputIterator2, class OutputIterator>
OutputIterator set_union (InputIterator1 first1, InputIterator1 last1,
InputIterator2 first2, InputIterator2 last2,
OutputIterator result)
{
while (true)
{
if (first1==last1) return std::copy(first2,last2,result);
if (first2==last2) return std::copy(first1,last1,result);
if (*first1<*first2) { *result = *first1; ++first1; }
else if (*first2<*first1) { *result = *first2; ++first2; }
else { *result = *first1; ++first1; ++first2; }
++result;
}
} | [
"elsobylak@gmail.com"
] | elsobylak@gmail.com |
ebf14ea320563d3bd57bbb1b34f18eb0351eb190 | e7428bcf823db625cdd988f9a2a57e146f3b74d8 | /src/qt/z4xtcontroldialog.cpp | b7f82afc4ff8c52096f67a890204307f33eed2ab | [
"MIT"
] | permissive | 4XT-Forex-Trading/4xt | bf8ddcc7df0d76f7def4531a3e37b8c16ee0ca50 | ab8d27b4e760281e8e4d974044e1ddca4ae626f0 | refs/heads/master | 2021-05-17T01:32:43.492049 | 2020-03-27T14:34:59 | 2020-03-27T14:34:59 | 250,557,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,413 | cpp | // Copyright (c) 2015-2019 The PIVX developers
// Copyright (c) 2020 The Forex Trading developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "z4xtcontroldialog.h"
#include "ui_z4xtcontroldialog.h"
#include "accumulators.h"
#include "main.h"
#include "walletmodel.h"
using namespace std;
using namespace libzerocoin;
std::set<std::string> ZPscsControlDialog::setSelectedMints;
std::set<CMintMeta> ZPscsControlDialog::setMints;
ZPscsControlDialog::ZPscsControlDialog(QWidget *parent) :
QDialog(parent, Qt::WindowSystemMenuHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint),
ui(new Ui::ZPscsControlDialog),
model(0)
{
ui->setupUi(this);
setMints.clear();
privacyDialog = (PrivacyDialog*)parent;
// click on checkbox
connect(ui->treeWidget, SIGNAL(itemChanged(QTreeWidgetItem*, int)), this, SLOT(updateSelection(QTreeWidgetItem*, int)));
// push select/deselect all button
connect(ui->pushButtonAll, SIGNAL(clicked()), this, SLOT(ButtonAllClicked()));
}
ZPscsControlDialog::~ZPscsControlDialog()
{
delete ui;
}
void ZPscsControlDialog::setModel(WalletModel *model)
{
this->model = model;
updateList();
}
//Update the tree widget
void ZPscsControlDialog::updateList()
{
// need to prevent the slot from being called each time something is changed
ui->treeWidget->blockSignals(true);
ui->treeWidget->clear();
// add a top level item for each denomination
QFlags<Qt::ItemFlag> flgTristate = Qt::ItemIsEnabled | Qt::ItemIsUserCheckable | Qt::ItemIsTristate;
map<libzerocoin::CoinDenomination, int> mapDenomPosition;
for (auto denom : libzerocoin::zerocoinDenomList) {
QTreeWidgetItem* itemDenom(new QTreeWidgetItem);
ui->treeWidget->addTopLevelItem(itemDenom);
//keep track of where this is positioned in tree widget
mapDenomPosition[denom] = ui->treeWidget->indexOfTopLevelItem(itemDenom);
itemDenom->setFlags(flgTristate);
itemDenom->setText(COLUMN_DENOMINATION, QString::number(denom));
}
// select all unused coins - including not mature. Update status of coins too.
std::set<CMintMeta> set;
model->listZerocoinMints(set, true, false, true);
this->setMints = set;
//populate rows with mint info
int nBestHeight = chainActive.Height();
map<CoinDenomination, int> mapMaturityHeight = GetMintMaturityHeight();
for (const CMintMeta& mint : setMints) {
// assign this mint to the correct denomination in the tree view
libzerocoin::CoinDenomination denom = mint.denom;
QTreeWidgetItem *itemMint = new QTreeWidgetItem(ui->treeWidget->topLevelItem(mapDenomPosition.at(denom)));
// if the mint is already selected, then it needs to have the checkbox checked
std::string strPubCoinHash = mint.hashPubcoin.GetHex();
if (setSelectedMints.count(strPubCoinHash))
itemMint->setCheckState(COLUMN_CHECKBOX, Qt::Checked);
else
itemMint->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked);
itemMint->setText(COLUMN_DENOMINATION, QString::number(mint.denom));
itemMint->setText(COLUMN_PUBCOIN, QString::fromStdString(strPubCoinHash));
itemMint->setText(COLUMN_VERSION, QString::number(mint.nVersion));
int nConfirmations = (mint.nHeight ? nBestHeight - mint.nHeight : 0);
if (nConfirmations < 0) {
// Sanity check
nConfirmations = 0;
}
itemMint->setText(COLUMN_CONFIRMATIONS, QString::number(nConfirmations));
// check for maturity
bool isMature = false;
if (mapMaturityHeight.count(mint.denom))
isMature = mint.nHeight < mapMaturityHeight.at(denom);
// disable selecting this mint if it is not spendable - also display a reason why
bool fSpendable = isMature && nConfirmations >= Params().Zerocoin_MintRequiredConfirmations();
if(!fSpendable) {
itemMint->setDisabled(true);
itemMint->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked);
//if this mint is in the selection list, then remove it
if (setSelectedMints.count(strPubCoinHash))
setSelectedMints.erase(strPubCoinHash);
string strReason = "";
if(nConfirmations < Params().Zerocoin_MintRequiredConfirmations())
strReason = strprintf("Needs %d more confirmations", Params().Zerocoin_MintRequiredConfirmations() - nConfirmations);
else
strReason = strprintf("Needs %d more mints added to network", Params().Zerocoin_RequiredAccumulation());
itemMint->setText(COLUMN_ISSPENDABLE, QString::fromStdString(strReason));
} else {
itemMint->setText(COLUMN_ISSPENDABLE, QString("Yes"));
}
}
ui->treeWidget->blockSignals(false);
updateLabels();
}
// Update the list when a checkbox is clicked
void ZPscsControlDialog::updateSelection(QTreeWidgetItem* item, int column)
{
// only want updates from non top level items that are available to spend
if (item->parent() && column == COLUMN_CHECKBOX && !item->isDisabled()){
// see if this mint is already selected in the selection list
std::string strPubcoin = item->text(COLUMN_PUBCOIN).toStdString();
bool fSelected = setSelectedMints.count(strPubcoin);
// set the checkbox to the proper state and add or remove the mint from the selection list
if (item->checkState(COLUMN_CHECKBOX) == Qt::Checked) {
if (fSelected) return;
setSelectedMints.insert(strPubcoin);
} else {
if (!fSelected) return;
setSelectedMints.erase(strPubcoin);
}
updateLabels();
}
}
// Update the Quantity and Amount display
void ZPscsControlDialog::updateLabels()
{
int64_t nAmount = 0;
for (const CMintMeta& mint : setMints) {
if (setSelectedMints.count(mint.hashPubcoin.GetHex()))
nAmount += mint.denom;
}
//update this dialog's labels
ui->labelZPscs_int->setText(QString::number(nAmount));
ui->labelQuantity_int->setText(QString::number(setSelectedMints.size()));
//update PrivacyDialog labels
privacyDialog->setZPscsControlLabels(nAmount, setSelectedMints.size());
}
std::vector<CMintMeta> ZPscsControlDialog::GetSelectedMints()
{
std::vector<CMintMeta> listReturn;
for (const CMintMeta& mint : setMints) {
if (setSelectedMints.count(mint.hashPubcoin.GetHex()))
listReturn.emplace_back(mint);
}
return listReturn;
}
// select or deselect all of the mints
void ZPscsControlDialog::ButtonAllClicked()
{
ui->treeWidget->blockSignals(true);
Qt::CheckState state = Qt::Checked;
for (int i = 0; i < ui->treeWidget->topLevelItemCount(); i++) {
if(ui->treeWidget->topLevelItem(i)->checkState(COLUMN_CHECKBOX) != Qt::Unchecked) {
state = Qt::Unchecked;
break;
}
}
//much quicker to start from scratch than to have QT go through all the objects and update
ui->treeWidget->clear();
if (state == Qt::Checked) {
for(const CMintMeta& mint : setMints)
setSelectedMints.insert(mint.hashPubcoin.GetHex());
} else {
setSelectedMints.clear();
}
updateList();
}
| [
"4XT-Forex-Trading@users.noreply.github.com"
] | 4XT-Forex-Trading@users.noreply.github.com |
cd97ef0332ea7544095c5b49a7adc803d7e05da6 | 23e393f8c385a4e0f8f3d4b9e2d80f98657f4e1f | /Professional C++, 3rd Edition/c17_code/FunctionObjects/WritingFunctionObjectLocal.cpp | cb4996251b316d805ad07a6a94887f04ffc663ba | [] | no_license | IgorYunusov/Mega-collection-cpp-1 | c7c09e3c76395bcbf95a304db6462a315db921ba | 42d07f16a379a8093b6ddc15675bf777eb10d480 | refs/heads/master | 2020-03-24T10:20:15.783034 | 2018-06-12T13:19:05 | 2018-06-12T13:19:05 | 142,653,486 | 3 | 1 | null | 2018-07-28T06:36:35 | 2018-07-28T06:36:35 | null | UTF-8 | C++ | false | false | 631 | cpp | #include <functional>
#include <algorithm>
#include <cctype>
#include <string>
#include <iostream>
using namespace std;
bool isNumber(const string& str)
{
class myIsDigit : public unary_function<char, bool>
{
public:
bool operator()(char c) const
{
return ::isdigit(c) != 0;
}
};
auto endIter = end(str);
auto it = find_if(begin(str), endIter, not1(myIsDigit()));
return (it == endIter);
}
int main()
{
cout << isNumber("12345") << endl;
cout << isNumber("hello") << endl;
cout << isNumber("1234a") << endl;
return 0;
}
| [
"wyrover@gmail.com"
] | wyrover@gmail.com |
f5ca9a612fb0404879461edf469aae56c04fe1cb | 1761efd0ccfa06531e3a67ddcb2e21a9df2b56f4 | /training/uva_judge/10926/10926.cpp | 15483552063d4d7da17185e897a59808c611ca7e | [] | no_license | alpeshjamgade/competitive_programming | f8da8b38fa513887071c5c60e823d4e7ddb74f83 | bf3d77cbf7cacf75e2a124361ede0522d3959a57 | refs/heads/master | 2023-02-05T12:29:24.227106 | 2020-12-25T15:31:12 | 2020-12-25T15:31:12 | 324,194,385 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 775 | cpp | #include <bits/stdc++.h>
using namespace std;
const int mxN = 100;
int t, n, m, cnt;
vector<int> adj[mxN];
bool vis[mxN];
void dfs(int u){
vis[u] = 1;
for(int v : adj[u]){
if(!vis[v])
dfs(v);
}
cnt++;
}
void init(){
for(int i = 0; i < n; i++){
adj[i].clear();
}
cnt = 0;
memset(vis, 0, sizeof(vis));
}
int main()
{
while(cin >> n && n){
init();
for(int i = 0, u, v; i < n; i++){
cin >> u;
for(int j = 0; j < u; j++){
cin >> v, v--;
adj[i].emplace_back(v);
}
}
int index = INT_MAX;
int d = -1;
for(int i = 0; i < n; i++){
memset(vis, 0, sizeof(vis));
cnt = 0;
dfs(i);
if(cnt > d){
d = cnt;
index = i;
}else if(cnt == d){
index = min(i, index);
}
}
cout << index+1 << '\n';
}
return 0;
}
| [
"alpesh@gitlab.in"
] | alpesh@gitlab.in |
6f2077d9baa7204b509c823ebfedcd024b3704a9 | 2446967f95e6ecf28508f6ccfe8f950e9dca9d12 | /xcsp2test/bbstest/new_FCbit3.cpp | 3765d898abb06fbf95ab9a014a54ee52280f0339 | [] | no_license | JLUCPGROUP/xcsp2test | b9721fd7d9d49c394183a9dd2e41748c025cb62d | f7ebcea8b5334896a0c8ce7bb2630de7d097c211 | refs/heads/master | 2018-12-15T15:03:08.092900 | 2018-09-14T14:31:07 | 2018-09-14T14:31:07 | 118,115,301 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,958 | cpp | //#pragma once
//#include <gecode/search.hh>
//#include <string>
////#include "BuildGModel.h"
//#include "CPUSolver.h"
//#include <windows.h>
//#include <io.h>
//#include "XBuilder.h"
//#include <fstream>
//#include "commonline.h"
//using namespace cp;
//using namespace std;
//
//#define LOGFILE
//const string XPath = "BMPath.xml";
//const int64_t TimeLimit = 1800000;
//const string bmp_root = "E:\\Projects\\benchmarks\\";
//const string bmp_ext = ".xml";
//
//
//int main(const int argc, char ** argv) {
//
// if (argc <= 3) {
// std::cout << "no argument" << endl;
// return 0;
// }
// SearchScheme ss;
// const bool no_error = getScheme(argv, ss);
// if (!no_error) {
// cout << "error" << endl;
// return 0;
// }
// vector<string> files;
// //getFilesAll(bmp_root + argv[1], files);
// const auto tt = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
//#ifdef LOGFILE
// ofstream lofi;
// const string bm_res = bmp_root + "res2\\efc\\" + ss.vrh_str + "\\" + argv[1] + "-" + std::to_string(tt) + ".csv";
// lofi.open(bm_res, ios::out | ios::trunc);
// cout << bm_res << endl;
// if (!lofi.is_open())
// return 0;
// lofi << "files" << "," << "cpu" << "," << "#nodes" << "," << "test" << "," << "solution" << endl;
//#endif
// getFilesAll(bmp_root + argv[1], files);
//
// double ts = 0;
// double tn = 0;
// u64 to = 0;
//
// for (const auto f : files) {
// cout << f << endl;
// XBuilder builder(f, XRT_BM);
// HModel* hm = new HModel();
// builder.GenerateHModel(hm);
// Network *n = new Network(hm);
//
// //SAC1 sac(n, AC_3bit);
// //Timer t;
// //const auto result = sac.one_pass(n->vars, 0);
// //const int64_t sac_time = t.elapsed();
// vector<int> solution;
// //if (result) {
// const SearchStatistics statistics = StartSearch(n, hm, ss.ds, ss.vrh, Heuristic::VLH_MIN, TimeLimit, false, solution, 0);
// stringstream strs;
// for (int a : solution) {
// strs << a << " ";
// }
// string sol_str = strs.str();
// sol_str.pop_back();
// //const SearchStatistics statistics = StartSearch(hm, ss.ds, ss.vrh, Heuristic::VLH_MIN, TimeLimit, true, sac_time);
// //build_times.push_back(statistics.build_time);
// //search_times.push_back(statistics.solve_time);
// //nodes.push_back(statistics.nodes);
// //}
// //else {
// // build_times.push_back(0);
// // search_times.push_back(0);
// // nodes.push_back(0);
//
// //}
//#ifdef LOGFILE
// lofi << builder.file_name() << "," << statistics.total_time << "," << statistics.nodes << "," << statistics.pass << "," << "" << endl;
//#endif
// ts += statistics.total_time;
// tn += statistics.nodes;
// if (statistics.total_time > TimeLimit)
// ++to;
//
// delete n;
// delete hm;
// }
//
// const double avg_ts = ts / files.size() / 1000;
// const double avg_tn = tn / files.size() / 1000000;
//#ifdef LOGFILE
// lofi << avg_ts << endl;
// lofi << avg_tn << "M" << endl;
// lofi << to << endl;
// lofi.close();
//#endif
//
// return 0;
//} | [
"leezear@live.cn"
] | leezear@live.cn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.