blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
146
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
7
license_type
stringclasses
2 values
repo_name
stringlengths
6
79
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
4 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.07k
426M
star_events_count
int64
0
27
fork_events_count
int64
0
12
gha_license_id
stringclasses
3 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
6 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
20
6.28M
extension
stringclasses
20 values
content
stringlengths
20
6.28M
authors
sequencelengths
1
16
author_lines
sequencelengths
1
16
eb276f38b49ea82cadbdda87bf5258a992306698
5dc78c30093221b4d2ce0e522d96b0f676f0c59a
/src/modules/physics/box2d/Body.cpp
4e2f7abcd253a0464ac3a2551280408caa2daf6d
[ "Zlib" ]
permissive
JackDanger/love
f03219b6cca452530bf590ca22825170c2b2eae1
596c98c88bde046f01d6898fda8b46013804aad6
refs/heads/master
2021-01-13T02:32:12.708770
2009-07-22T17:21:13
2009-07-22T17:21:13
142,595
1
0
null
null
null
null
UTF-8
C++
false
false
6,144
cpp
/** * Copyright (c) 2006-2009 LOVE Development Team * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. **/ #include "Body.h" #include <common/math.h> #include "World.h" namespace love { namespace physics { namespace box2d { Body::Body(World * world, b2Vec2 p, float m, float i) : world(world) { world->retain(); b2BodyDef def; def.position = world->scaleDown(p); def.massData.mass = m; def.massData.I = i; body = world->world->CreateBody(&def); } Body::~Body() { world->world->DestroyBody(body); world->release(); body = 0; } float Body::getX() { return world->scaleUp(body->GetPosition().x); } float Body::getY() { return world->scaleUp(body->GetPosition().y); } int Body::getPosition(lua_State * L) { return pushVector(L, world->scaleUp(body->GetPosition())); } int Body::getVelocity(lua_State * L) { return pushVector(L, world->scaleUp(body->GetLinearVelocity())); } float Body::getAngle() { return body->GetAngle(); } int Body::getWorldCenter(lua_State * L) { return pushVector(L, world->scaleUp(body->GetWorldCenter())); } int Body::getLocalCenter(lua_State * L) { return pushVector(L, world->scaleUp(body->GetLocalCenter())); } float Body::getSpin() const { return body->GetAngularVelocity(); } float Body::getMass() const { return body->GetMass(); } float Body::getInertia() const { return body->GetInertia(); } float Body::getAngularDamping() const { return body->m_angularDamping; } float Body::getDamping() const { return body->m_linearDamping; } void Body::applyImpulse(float jx, float jy) { body->ApplyImpulse(b2Vec2(jx, jy), world->scaleDown(body->GetWorldCenter())); } void Body::applyImpulse(float jx, float jy, float rx, float ry) { body->ApplyImpulse(b2Vec2(jx, jy), world->scaleDown(b2Vec2(rx, ry))); } void Body::applyTorque(float t) { body->ApplyTorque(t); } void Body::applyForce(float fx, float fy, float rx, float ry) { body->ApplyForce(b2Vec2(fx, fy), world->scaleDown(b2Vec2(rx, ry))); } void Body::applyForce(float fx, float fy) { body->ApplyForce(b2Vec2(fx, fy), world->scaleDown(body->GetWorldCenter())); } void Body::setX(float x) { body->SetXForm(world->scaleDown(b2Vec2(x, getY())), getAngle()); } void Body::setY(float y) { body->SetXForm(world->scaleDown(b2Vec2(getX(), y)), getAngle()); } void Body::setVelocity(float x, float y) { body->SetLinearVelocity(world->scaleDown(b2Vec2(x, y))); } void Body::setAngle(float d) { body->SetXForm(body->GetPosition(), d); } void Body::setSpin(float r) { body->SetAngularVelocity(r); } void Body::setPosition(float x, float y) { body->SetXForm(world->scaleDown(b2Vec2(x, y)), body->GetAngle()); } void Body::setAngularDamping(float d) { body->m_angularDamping = d; } void Body::setDamping(float d) { body->m_linearDamping = d; } void Body::setMassFromShapes() { body->SetMassFromShapes(); } void Body::setMass(float x, float y, float m, float i) { b2MassData massData; massData.center = world->scaleDown(b2Vec2(x, y)); massData.mass = m; massData.I = i; body->SetMass(&massData); } int Body::getWorldPoint(lua_State * L) { b2Vec2 v = world->scaleDown(getVector(L)); return pushVector(L, world->scaleUp(body->GetWorldPoint(v))); } int Body::getWorldVector(lua_State * L) { b2Vec2 v = world->scaleDown(getVector(L)); return pushVector(L, world->scaleUp(body->GetWorldVector(v))); } int Body::getLocalPoint(lua_State * L) { b2Vec2 v = world->scaleDown(getVector(L)); return pushVector(L, world->scaleUp(body->GetLocalPoint(v))); } int Body::getLocalVector(lua_State * L) { b2Vec2 v = world->scaleDown(getVector(L)); return pushVector(L, world->scaleUp(body->GetLocalVector(v))); } int Body::getVelocityWorldPoint(lua_State * L) { b2Vec2 v = world->scaleDown(getVector(L)); return pushVector(L, world->scaleUp(body->GetLinearVelocityFromWorldPoint(v))); } int Body::getVelocityLocalPoint(lua_State * L) { b2Vec2 v = world->scaleDown(getVector(L)); return pushVector(L, world->scaleUp(body->GetLinearVelocityFromLocalPoint(v))); } bool Body::isBullet() const { return body->IsBullet(); } void Body::setBullet(bool bullet) { return body->SetBullet(bullet); } bool Body::isStatic() const { return body->IsStatic(); } bool Body::isDynamic() const { return body->IsDynamic(); } bool Body::isFrozen() const { return body->IsFrozen(); } bool Body::isSleeping() const { return body->IsSleeping(); } void Body::setAllowSleep(bool allow) { body->AllowSleeping(true); } void Body::setSleep(bool sleep) { if(sleep) body->PutToSleep(); else body->WakeUp(); } b2Vec2 Body::getVector(lua_State * L) { love::luax_assert_argc(L, 2, 2); b2Vec2 v((float)lua_tonumber(L, 1), (float)lua_tonumber(L, 2)); lua_pop(L, 2); return v; } int Body::pushVector(lua_State * L, const b2Vec2 & v) { lua_pushnumber(L, v.x); lua_pushnumber(L, v.y); return 2; } } // box2d } // physics } // love
[ "prerude@3494dbca-881a-0410-bd34-8ecbaf855390" ]
[ [ [ 1, 286 ] ] ]
b91845517a2b2880b09731fb778494ea708d9e59
502efe97b985c69d6378d9c428c715641719ee03
/src/uslscore/USLuaObject.h
c27f02d67d027cededc116e1d985fe86fd7b447e
[]
no_license
neojjang/moai-beta
c3933bca2625bca4f4da26341de6b855e41b9beb
6bc96412d35192246e35bff91df101bd7c7e41e1
refs/heads/master
2021-01-16T20:33:59.443558
2011-09-19T23:45:06
2011-09-19T23:45:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,050
h
// Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved. // http://getmoai.com #ifndef USLUAOBJECT_H #define USLUAOBJECT_H #include <uslscore/STLString.h> #include <uslscore/USLuaRef.h> #include <uslscore/USObject.h> class USLuaClass; class USLuaSerializer; class USLuaState; class USLuaStateHandle; //================================================================// // USLuaObject //================================================================// class USLuaObject : public virtual USObject { protected: USLuaRef mInstanceTable; // strong ref to instance table stack USLuaRef mUserdata; // weak ref to handle userdata //----------------------------------------------------------------// static int _gc ( lua_State* L ); static int _getClass ( lua_State* L ); static int _getClassName ( lua_State* L ); //static int _tostring ( lua_State* L ); //----------------------------------------------------------------// void OnRelease ( u32 refCount ); void OnRetain ( u32 refCount ); public: friend class USLuaClass; //----------------------------------------------------------------// void DebugDump (); virtual STLString ToString (); STLString ToStringWithType (); virtual USLuaClass* GetLuaClass (); USLuaStateHandle GetSelf (); bool IsBound (); void LuaUnbind ( USLuaState& state ); void PushLuaClassTable ( USLuaState& state ); void PushLuaUserdata ( USLuaState& state ); virtual void RegisterLuaClass ( USLuaState& state ); virtual void RegisterLuaFuncs ( USLuaState& state ); static void ReportLeaks ( FILE *f, bool clearAfter ); virtual void SerializeIn ( USLuaState& state, USLuaSerializer& serializer ); virtual void SerializeOut ( USLuaState& state, USLuaSerializer& serializer ); void SetLuaInstanceTable ( USLuaState& state, int idx ); USLuaObject (); virtual ~USLuaObject (); }; //================================================================// // USLuaClass //================================================================// class USLuaClass : public USObject { protected: USLuaRef mClassTable; // global factory class for type USLuaRef mMemberTable; // metatable shared by all instances of type //----------------------------------------------------------------// void InitLuaFactoryClass ( USLuaObject& data, USLuaState& state ); void InitLuaInstanceTable ( USLuaObject* data, USLuaState& state, int idx ); void InitLuaSingletonClass ( USLuaObject& data, USLuaState& state ); virtual void RegisterLuaClass ( USLuaState& state ) = 0; public: friend class USLuaObject; //----------------------------------------------------------------// virtual USLuaObject* GetSingleton (); bool IsSingleton (); virtual void Register () = 0; USLuaClass (); virtual ~USLuaClass (); }; #endif
[ "[email protected]", "[email protected]", "[email protected]", "Patrick@agile.(none)" ]
[ [ [ 1, 20 ], [ 22, 24 ], [ 26, 27 ], [ 32, 32 ], [ 37, 52 ], [ 54, 89 ] ], [ [ 21, 21 ], [ 29, 30 ], [ 53, 53 ] ], [ [ 25, 25 ] ], [ [ 28, 28 ], [ 31, 31 ], [ 33, 36 ] ] ]
04d29a10bb934426522ebdd3f036fdc49eb05ba2
2b32433353652d705e5558e7c2d5de8b9fbf8fc3
/Dm_new_idz/Mlita/Exam/Stack.h
e05ecd63c92ad8eb352e96e885cc86a9c8294161
[]
no_license
smarthaert/d-edit
70865143db2946dd29a4ff52cb36e85d18965be3
41d069236748c6e77a5a457280846a300d38e080
refs/heads/master
2020-04-23T12:21:51.180517
2011-01-30T00:37:18
2011-01-30T00:37:18
35,532,200
0
0
null
null
null
null
UTF-8
C++
false
false
602
h
// Stack.h: interface for the CStack class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_STACK_H__5B030EE2_9F61_4494_B020_CA71DC52E99D__INCLUDED_) #define AFX_STACK_H__5B030EE2_9F61_4494_B020_CA71DC52E99D__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CStackElement; class CStack { public: BOOL IsEmpty(); int Pop(); void FreeMemory(); CStackElement* Top; void Push(int V); CStack(); virtual ~CStack(); }; #endif // !defined(AFX_STACK_H__5B030EE2_9F61_4494_B020_CA71DC52E99D__INCLUDED_)
[ [ [ 1, 26 ] ] ]
fcec0e90b4d1e2e5b0b7ac3f7735c255a3eaed3f
d6a28d9d845a20463704afe8ebe644a241dc1a46
/source/Irrlicht/CB3DMeshFileLoader.cpp
842e28cc55ef636e8fb70f2239d7b973e0e935b7
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "Zlib" ]
permissive
marky0720/irrlicht-android
6932058563bf4150cd7090d1dc09466132df5448
86512d871eeb55dfaae2d2bf327299348cc5202c
refs/heads/master
2021-04-30T08:19:25.297407
2010-10-08T08:27:33
2010-10-08T08:27:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
31,852
cpp
// Copyright (C) 2006-2009 Luke Hoschke // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h // B3D Mesh loader // File format designed by Mark Sibly for the Blitz3D engine and has been // declared public domain #include "IrrCompileConfig.h" #ifdef _IRR_COMPILE_WITH_B3D_LOADER_ #include "CB3DMeshFileLoader.h" #include "IVideoDriver.h" #include "IFileSystem.h" #include "os.h" #ifdef _DEBUG #define _B3D_READER_DEBUG #endif namespace irr { namespace scene { //! Constructor CB3DMeshFileLoader::CB3DMeshFileLoader(scene::ISceneManager* smgr) : SceneManager(smgr), AnimatedMesh(0), B3DFile(0), NormalsInFile(false), HasVertexColors(false), ShowWarning(true) { #ifdef _DEBUG setDebugName("CB3DMeshFileLoader"); #endif } //! returns true if the file maybe is able to be loaded by this class //! based on the file extension (e.g. ".bsp") bool CB3DMeshFileLoader::isALoadableFileExtension(const io::path& filename) const { return core::hasFileExtension ( filename, "b3d" ); } //! creates/loads an animated mesh from the file. //! \return Pointer to the created mesh. Returns 0 if loading failed. //! If you no longer need the mesh, you should call IAnimatedMesh::drop(). //! See IReferenceCounted::drop() for more information. IAnimatedMesh* CB3DMeshFileLoader::createMesh(io::IReadFile* f) { if (!f) return 0; B3DFile = f; AnimatedMesh = new scene::CSkinnedMesh(); ShowWarning = true; // If true a warning is issued if too many textures are used if ( load() ) { AnimatedMesh->finalize(); } else { AnimatedMesh->drop(); AnimatedMesh = 0; } return AnimatedMesh; } bool CB3DMeshFileLoader::load() { B3dStack.clear(); NormalsInFile=false; HasVertexColors=false; //------ Get header ------ SB3dChunkHeader header; B3DFile->read(&header, sizeof(header)); #ifdef __BIG_ENDIAN__ header.size = os::Byteswap::byteswap(header.size); #endif if ( strncmp( header.name, "BB3D", 4 ) != 0 ) { os::Printer::log("File is not a b3d file. Loading failed (No header found)", B3DFile->getFileName(), ELL_ERROR); return false; } // Add main chunk... B3dStack.push_back(SB3dChunk(header, B3DFile->getPos()-8)); // Get file version, but ignore it, as it's not important with b3d files... s32 fileVersion; B3DFile->read(&fileVersion, sizeof(fileVersion)); #ifdef __BIG_ENDIAN__ fileVersion = os::Byteswap::byteswap(fileVersion); #endif //------ Read main chunk ------ while ( (B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos() ) { B3DFile->read(&header, sizeof(header)); #ifdef __BIG_ENDIAN__ header.size = os::Byteswap::byteswap(header.size); #endif B3dStack.push_back(SB3dChunk(header, B3DFile->getPos()-8)); if ( strncmp( B3dStack.getLast().name, "TEXS", 4 ) == 0 ) { if (!readChunkTEXS()) return false; } else if ( strncmp( B3dStack.getLast().name, "BRUS", 4 ) == 0 ) { if (!readChunkBRUS()) return false; } else if ( strncmp( B3dStack.getLast().name, "NODE", 4 ) == 0 ) { if (!readChunkNODE((CSkinnedMesh::SJoint*)0) ) return false; } else { os::Printer::log("Unknown chunk found in mesh base - skipping"); B3DFile->seek(B3dStack.getLast().startposition + B3dStack.getLast().length); B3dStack.erase(B3dStack.size()-1); } } B3dStack.clear(); BaseVertices.clear(); AnimatedVertices_VertexID.clear(); AnimatedVertices_BufferID.clear(); Materials.clear(); Textures.clear(); return true; } bool CB3DMeshFileLoader::readChunkNODE(CSkinnedMesh::SJoint *inJoint) { CSkinnedMesh::SJoint *joint = AnimatedMesh->addJoint(inJoint); readString(joint->Name); #ifdef _B3D_READER_DEBUG os::Printer::log("read ChunkNODE", joint->Name.c_str()); #endif f32 position[3], scale[3], rotation[4]; readFloats(position, 3); readFloats(scale, 3); readFloats(rotation, 4); joint->Animatedposition = core::vector3df(position[0],position[1],position[2]) ; joint->Animatedscale = core::vector3df(scale[0],scale[1],scale[2]); joint->Animatedrotation = core::quaternion(rotation[1], rotation[2], rotation[3], rotation[0]); //Build LocalMatrix: core::matrix4 positionMatrix; positionMatrix.setTranslation( joint->Animatedposition ); core::matrix4 scaleMatrix; scaleMatrix.setScale( joint->Animatedscale ); core::matrix4 rotationMatrix = joint->Animatedrotation.getMatrix(); joint->LocalMatrix = positionMatrix * rotationMatrix * scaleMatrix; if (inJoint) joint->GlobalMatrix = inJoint->GlobalMatrix * joint->LocalMatrix; else joint->GlobalMatrix = joint->LocalMatrix; while(B3dStack.getLast().startposition + B3dStack.getLast().length > B3DFile->getPos()) // this chunk repeats { SB3dChunkHeader header; B3DFile->read(&header, sizeof(header)); #ifdef __BIG_ENDIAN__ header.size = os::Byteswap::byteswap(header.size); #endif B3dStack.push_back(SB3dChunk(header, B3DFile->getPos()-8)); if ( strncmp( B3dStack.getLast().name, "NODE", 4 ) == 0 ) { if (!readChunkNODE(joint)) return false; } else if ( strncmp( B3dStack.getLast().name, "MESH", 4 ) == 0 ) { if (!readChunkMESH(joint)) return false; } else if ( strncmp( B3dStack.getLast().name, "BONE", 4 ) == 0 ) { if (!readChunkBONE(joint)) return false; } else if ( strncmp( B3dStack.getLast().name, "KEYS", 4 ) == 0 ) { if(!readChunkKEYS(joint)) return false; } else if ( strncmp( B3dStack.getLast().name, "ANIM", 4 ) == 0 ) { if (!readChunkANIM()) return false; } else { os::Printer::log("Unknown chunk found in node chunk - skipping"); B3DFile->seek(B3dStack.getLast().startposition + B3dStack.getLast().length); B3dStack.erase(B3dStack.size()-1); } } B3dStack.erase(B3dStack.size()-1); return true; } bool CB3DMeshFileLoader::readChunkMESH(CSkinnedMesh::SJoint *inJoint) { #ifdef _B3D_READER_DEBUG os::Printer::log("read ChunkMESH"); #endif const s32 vertices_Start=BaseVertices.size(); //B3Ds have Vertex ID's local within the mesh I don't want this s32 brush_id; B3DFile->read(&brush_id, sizeof(brush_id)); #ifdef __BIG_ENDIAN__ brush_id = os::Byteswap::byteswap(brush_id); #endif NormalsInFile=false; HasVertexColors=false; while((B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) //this chunk repeats { SB3dChunkHeader header; B3DFile->read(&header, sizeof(header)); #ifdef __BIG_ENDIAN__ header.size = os::Byteswap::byteswap(header.size); #endif B3dStack.push_back(SB3dChunk(header, B3DFile->getPos()-8)); if ( strncmp( B3dStack.getLast().name, "VRTS", 4 ) == 0 ) { if (!readChunkVRTS(inJoint)) return false; } else if ( strncmp( B3dStack.getLast().name, "TRIS", 4 ) == 0 ) { scene::SSkinMeshBuffer *meshBuffer = AnimatedMesh->addMeshBuffer(); if (brush_id!=-1) { loadTextures(Materials[brush_id]); meshBuffer->Material=Materials[brush_id].Material; } if(readChunkTRIS(meshBuffer,AnimatedMesh->getMeshBuffers().size()-1, vertices_Start)==false) return false; if (!NormalsInFile) { s32 i; for ( i=0; i<(s32)meshBuffer->Indices.size(); i+=3) { core::plane3df p(meshBuffer->getVertex(meshBuffer->Indices[i+0])->Pos, meshBuffer->getVertex(meshBuffer->Indices[i+1])->Pos, meshBuffer->getVertex(meshBuffer->Indices[i+2])->Pos); meshBuffer->getVertex(meshBuffer->Indices[i+0])->Normal += p.Normal; meshBuffer->getVertex(meshBuffer->Indices[i+1])->Normal += p.Normal; meshBuffer->getVertex(meshBuffer->Indices[i+2])->Normal += p.Normal; } for ( i = 0; i<(s32)meshBuffer->getVertexCount(); ++i ) { meshBuffer->getVertex(i)->Normal.normalize(); BaseVertices[vertices_Start+i].Normal=meshBuffer->getVertex(i)->Normal; } } } else { os::Printer::log("Unknown chunk found in mesh - skipping"); B3DFile->seek(B3dStack.getLast().startposition + B3dStack.getLast().length); B3dStack.erase(B3dStack.size()-1); } } B3dStack.erase(B3dStack.size()-1); return true; } /* VRTS: int flags ;1=normal values present, 2=rgba values present int tex_coord_sets ;texture coords per vertex (eg: 1 for simple U/V) max=8 but we only support 3 int tex_coord_set_size ;components per set (eg: 2 for simple U/V) max=4 { float x,y,z ;always present float nx,ny,nz ;vertex normal: present if (flags&1) float red,green,blue,alpha ;vertex color: present if (flags&2) float tex_coords[tex_coord_sets][tex_coord_set_size] ;tex coords } */ bool CB3DMeshFileLoader::readChunkVRTS(CSkinnedMesh::SJoint *inJoint) { #ifdef _B3D_READER_DEBUG os::Printer::log("read ChunkVRTS"); #endif const s32 max_tex_coords = 3; s32 flags, tex_coord_sets, tex_coord_set_size; B3DFile->read(&flags, sizeof(flags)); B3DFile->read(&tex_coord_sets, sizeof(tex_coord_sets)); B3DFile->read(&tex_coord_set_size, sizeof(tex_coord_set_size)); #ifdef __BIG_ENDIAN__ flags = os::Byteswap::byteswap(flags); tex_coord_sets = os::Byteswap::byteswap(tex_coord_sets); tex_coord_set_size = os::Byteswap::byteswap(tex_coord_set_size); #endif if (tex_coord_sets >= max_tex_coords || tex_coord_set_size >= 4) // Something is wrong { os::Printer::log("tex_coord_sets or tex_coord_set_size too big", B3DFile->getFileName(), ELL_ERROR); return false; } //------ Allocate Memory, for speed -----------// s32 numberOfReads = 3; if (flags & 1) { NormalsInFile = true; numberOfReads += 3; } if (flags & 2) { numberOfReads += 4; HasVertexColors=true; } numberOfReads += tex_coord_sets*tex_coord_set_size; const s32 memoryNeeded = (B3dStack.getLast().length / sizeof(f32)) / numberOfReads; BaseVertices.reallocate(memoryNeeded + BaseVertices.size() + 1); AnimatedVertices_VertexID.reallocate(memoryNeeded + AnimatedVertices_VertexID.size() + 1); //--------------------------------------------// while( (B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) // this chunk repeats { f32 position[3]; f32 normal[3]={0.f, 0.f, 0.f}; f32 color[4]={1.0f, 1.0f, 1.0f, 1.0f}; f32 tex_coords[max_tex_coords][4]; readFloats(position, 3); if (flags & 1) readFloats(normal, 3); if (flags & 2) readFloats(color, 4); for (s32 i=0; i<tex_coord_sets; ++i) readFloats(tex_coords[i], tex_coord_set_size); f32 tu=0.0f, tv=0.0f; if (tex_coord_sets >= 1 && tex_coord_set_size >= 2) { tu=tex_coords[0][0]; tv=tex_coords[0][1]; } f32 tu2=0.0f, tv2=0.0f; if (tex_coord_sets>1 && tex_coord_set_size>1) { tu2=tex_coords[1][0]; tv2=tex_coords[1][1]; } // Create Vertex... video::S3DVertex2TCoords Vertex(position[0], position[1], position[2], normal[0], normal[1], normal[2], video::SColorf(color[0], color[1], color[2], color[3]).toSColor(), tu, tv, tu2, tv2); // Transform the Vertex position by nested node... inJoint->GlobalMatrix.transformVect(Vertex.Pos); inJoint->GlobalMatrix.rotateVect(Vertex.Normal); //Add it... BaseVertices.push_back(Vertex); AnimatedVertices_VertexID.push_back(-1); AnimatedVertices_BufferID.push_back(-1); } B3dStack.erase(B3dStack.size()-1); return true; } bool CB3DMeshFileLoader::readChunkTRIS(scene::SSkinMeshBuffer *meshBuffer, u32 meshBufferID, s32 vertices_Start) { #ifdef _B3D_READER_DEBUG os::Printer::log("read ChunkTRIS"); #endif bool showVertexWarning=false; s32 triangle_brush_id; // Note: Irrlicht can't have different brushes for each triangle (using a workaround) B3DFile->read(&triangle_brush_id, sizeof(triangle_brush_id)); #ifdef __BIG_ENDIAN__ triangle_brush_id = os::Byteswap::byteswap(triangle_brush_id); #endif SB3dMaterial *B3dMaterial; if (triangle_brush_id != -1) { loadTextures(Materials[triangle_brush_id]); B3dMaterial = &Materials[triangle_brush_id]; meshBuffer->Material = B3dMaterial->Material; } else B3dMaterial = 0; const s32 memoryNeeded = B3dStack.getLast().length / sizeof(s32); meshBuffer->Indices.reallocate(memoryNeeded + meshBuffer->Indices.size() + 1); while((B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) // this chunk repeats { s32 vertex_id[3]; B3DFile->read(vertex_id, 3*sizeof(s32)); #ifdef __BIG_ENDIAN__ vertex_id[0] = os::Byteswap::byteswap(vertex_id[0]); vertex_id[1] = os::Byteswap::byteswap(vertex_id[1]); vertex_id[2] = os::Byteswap::byteswap(vertex_id[2]); #endif //Make Ids global: vertex_id[0] += vertices_Start; vertex_id[1] += vertices_Start; vertex_id[2] += vertices_Start; for(s32 i=0; i<3; ++i) { if ((u32)vertex_id[i] >= AnimatedVertices_VertexID.size()) { os::Printer::log("Illegal vertex index found", B3DFile->getFileName(), ELL_ERROR); return false; } if (AnimatedVertices_VertexID[ vertex_id[i] ] != -1) { if ( AnimatedVertices_BufferID[ vertex_id[i] ] != (s32)meshBufferID ) //If this vertex is linked in a different meshbuffer { AnimatedVertices_VertexID[ vertex_id[i] ] = -1; AnimatedVertices_BufferID[ vertex_id[i] ] = -1; showVertexWarning=true; } } if (AnimatedVertices_VertexID[ vertex_id[i] ] == -1) //If this vertex is not in the meshbuffer { //Check for lightmapping: if (BaseVertices[ vertex_id[i] ].TCoords2 != core::vector2df(0.f,0.f)) meshBuffer->convertTo2TCoords(); //Will only affect the meshbuffer the first time this is called //Add the vertex to the meshbuffer: if (meshBuffer->VertexType == video::EVT_STANDARD) meshBuffer->Vertices_Standard.push_back( BaseVertices[ vertex_id[i] ] ); else meshBuffer->Vertices_2TCoords.push_back(BaseVertices[ vertex_id[i] ] ); //create vertex id to meshbuffer index link: AnimatedVertices_VertexID[ vertex_id[i] ] = meshBuffer->getVertexCount()-1; AnimatedVertices_BufferID[ vertex_id[i] ] = meshBufferID; if (B3dMaterial) { // Apply Material/Color/etc... video::S3DVertex *Vertex=meshBuffer->getVertex(meshBuffer->getVertexCount()-1); if (!HasVertexColors) Vertex->Color=B3dMaterial->Material.DiffuseColor; else if (Vertex->Color.getAlpha() == 255) Vertex->Color.setAlpha( (s32)(B3dMaterial->alpha * 255.0f) ); // Use texture's scale if (B3dMaterial->Textures[0]) { Vertex->TCoords.X *= B3dMaterial->Textures[0]->Xscale; Vertex->TCoords.Y *= B3dMaterial->Textures[0]->Yscale; } /* if (B3dMaterial->Textures[1]) { Vertex->TCoords2.X *=B3dMaterial->Textures[1]->Xscale; Vertex->TCoords2.Y *=B3dMaterial->Textures[1]->Yscale; } */ } } } meshBuffer->Indices.push_back( AnimatedVertices_VertexID[ vertex_id[0] ] ); meshBuffer->Indices.push_back( AnimatedVertices_VertexID[ vertex_id[1] ] ); meshBuffer->Indices.push_back( AnimatedVertices_VertexID[ vertex_id[2] ] ); } B3dStack.erase(B3dStack.size()-1); if (showVertexWarning) os::Printer::log("B3dMeshLoader: Warning, different meshbuffers linking to the same vertex, this will cause problems with animated meshes"); return true; } bool CB3DMeshFileLoader::readChunkBONE(CSkinnedMesh::SJoint *inJoint) { #ifdef _B3D_READER_DEBUG os::Printer::log("read ChunkBONE"); #endif if (B3dStack.getLast().length > 8) { while((B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) // this chunk repeats { u32 globalVertexID; f32 strength; B3DFile->read(&globalVertexID, sizeof(globalVertexID)); B3DFile->read(&strength, sizeof(strength)); #ifdef __BIG_ENDIAN__ globalVertexID = os::Byteswap::byteswap(globalVertexID); strength = os::Byteswap::byteswap(strength); #endif if (AnimatedVertices_VertexID[globalVertexID]==-1) { os::Printer::log("B3dMeshLoader: Weight has bad vertex id (no link to meshbuffer index found)"); } else if (strength >0) { CSkinnedMesh::SWeight *weight=AnimatedMesh->addWeight(inJoint); weight->strength=strength; //Find the meshbuffer and Vertex index from the Global Vertex ID: weight->vertex_id = AnimatedVertices_VertexID[globalVertexID]; weight->buffer_id = AnimatedVertices_BufferID[globalVertexID]; } } } B3dStack.erase(B3dStack.size()-1); return true; } bool CB3DMeshFileLoader::readChunkKEYS(CSkinnedMesh::SJoint *inJoint) { #ifdef _B3D_READER_DEBUG // os::Printer::log("read ChunkKEYS"); #endif s32 flags; B3DFile->read(&flags, sizeof(flags)); #ifdef __BIG_ENDIAN__ flags = os::Byteswap::byteswap(flags); #endif CSkinnedMesh::SPositionKey *oldPosKey=0; core::vector3df oldPos[2]; CSkinnedMesh::SScaleKey *oldScaleKey=0; core::vector3df oldScale[2]; CSkinnedMesh::SRotationKey *oldRotKey=0; core::quaternion oldRot[2]; bool isFirst[3]={true,true,true}; while((B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) //this chunk repeats { s32 frame; B3DFile->read(&frame, sizeof(frame)); #ifdef __BIG_ENDIAN__ frame = os::Byteswap::byteswap(frame); #endif // Add key frames, frames in Irrlicht are zero-based f32 data[4]; if (flags & 1) { readFloats(data, 3); if ((oldPosKey!=0) && (oldPos[0]==oldPos[1])) { const core::vector3df pos(data[0], data[1], data[2]); if (oldPos[1]==pos) oldPosKey->frame = (f32)frame-1; else { oldPos[0]=oldPos[1]; oldPosKey=AnimatedMesh->addPositionKey(inJoint); oldPosKey->frame = (f32)frame-1; oldPos[1].set(oldPosKey->position.set(pos)); } } else if (oldPosKey==0 && isFirst[0]) { oldPosKey=AnimatedMesh->addPositionKey(inJoint); oldPosKey->frame = (f32)frame-1; oldPos[0].set(oldPosKey->position.set(data[0], data[1], data[2])); oldPosKey=0; isFirst[0]=false; } else { if (oldPosKey!=0) oldPos[0]=oldPos[1]; oldPosKey=AnimatedMesh->addPositionKey(inJoint); oldPosKey->frame = (f32)frame-1; oldPos[1].set(oldPosKey->position.set(data[0], data[1], data[2])); } } if (flags & 2) { readFloats(data, 3); if ((oldScaleKey!=0) && (oldScale[0]==oldScale[1])) { const core::vector3df scale(data[0], data[1], data[2]); if (oldScale[1]==scale) oldScaleKey->frame = (f32)frame-1; else { oldScale[0]=oldScale[1]; oldScaleKey=AnimatedMesh->addScaleKey(inJoint); oldScaleKey->frame = (f32)frame-1; oldScale[1].set(oldScaleKey->scale.set(scale)); } } else if (oldScaleKey==0 && isFirst[1]) { oldScaleKey=AnimatedMesh->addScaleKey(inJoint); oldScaleKey->frame = (f32)frame-1; oldScale[0].set(oldScaleKey->scale.set(data[0], data[1], data[2])); oldScaleKey=0; isFirst[1]=false; } else { if (oldScaleKey!=0) oldScale[0]=oldScale[1]; oldScaleKey=AnimatedMesh->addScaleKey(inJoint); oldScaleKey->frame = (f32)frame-1; oldScale[1].set(oldScaleKey->scale.set(data[0], data[1], data[2])); } } if (flags & 4) { readFloats(data, 4); if ((oldRotKey!=0) && (oldRot[0]==oldRot[1])) { // meant to be in this order since b3d stores W first const core::quaternion rot(data[1], data[2], data[3], data[0]); if (oldRot[1]==rot) oldRotKey->frame = (f32)frame-1; else { oldRot[0]=oldRot[1]; oldRotKey=AnimatedMesh->addRotationKey(inJoint); oldRotKey->frame = (f32)frame-1; oldRot[1].set(oldRotKey->rotation.set(data[1], data[2], data[3], data[0])); } } else if (oldRotKey==0 && isFirst[2]) { oldRotKey=AnimatedMesh->addRotationKey(inJoint); oldRotKey->frame = (f32)frame-1; // meant to be in this order since b3d stores W first oldRot[0].set(oldRotKey->rotation.set(data[1], data[2], data[3], data[0])); oldRotKey=0; isFirst[2]=false; } else { if (oldRotKey!=0) oldRot[0]=oldRot[1]; oldRotKey=AnimatedMesh->addRotationKey(inJoint); oldRotKey->frame = (f32)frame-1; // meant to be in this order since b3d stores W first oldRot[1].set(oldRotKey->rotation.set(data[1], data[2], data[3], data[0])); } } } B3dStack.erase(B3dStack.size()-1); return true; } bool CB3DMeshFileLoader::readChunkANIM() { #ifdef _B3D_READER_DEBUG os::Printer::log("read ChunkANIM"); #endif s32 animFlags; //not stored\used s32 animFrames;//not stored\used f32 animFPS; //not stored\used B3DFile->read(&animFlags, sizeof(s32)); B3DFile->read(&animFrames, sizeof(s32)); readFloats(&animFPS, 1); #ifdef __BIG_ENDIAN__ animFlags = os::Byteswap::byteswap(animFlags); animFrames = os::Byteswap::byteswap(animFrames); #endif B3dStack.erase(B3dStack.size()-1); return true; } bool CB3DMeshFileLoader::readChunkTEXS() { #ifdef _B3D_READER_DEBUG os::Printer::log("read ChunkTEXS"); #endif while((B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) //this chunk repeats { Textures.push_back(SB3dTexture()); SB3dTexture& B3dTexture = Textures.getLast(); readString(B3dTexture.TextureName); B3dTexture.TextureName.replace('\\','/'); #ifdef _B3D_READER_DEBUG os::Printer::log("read Texture", B3dTexture.TextureName.c_str()); #endif B3DFile->read(&B3dTexture.Flags, sizeof(s32)); B3DFile->read(&B3dTexture.Blend, sizeof(s32)); #ifdef __BIG_ENDIAN__ B3dTexture.Flags = os::Byteswap::byteswap(B3dTexture.Flags); B3dTexture.Blend = os::Byteswap::byteswap(B3dTexture.Blend); #endif #ifdef _B3D_READER_DEBUG os::Printer::log("Flags", core::stringc(B3dTexture.Flags).c_str()); os::Printer::log("Blend", core::stringc(B3dTexture.Blend).c_str()); #endif readFloats(&B3dTexture.Xpos, 1); readFloats(&B3dTexture.Ypos, 1); readFloats(&B3dTexture.Xscale, 1); readFloats(&B3dTexture.Yscale, 1); readFloats(&B3dTexture.Angle, 1); } B3dStack.erase(B3dStack.size()-1); return true; } bool CB3DMeshFileLoader::readChunkBRUS() { #ifdef _B3D_READER_DEBUG os::Printer::log("read ChunkBRUS"); #endif u32 n_texs; B3DFile->read(&n_texs, sizeof(u32)); #ifdef __BIG_ENDIAN__ n_texs = os::Byteswap::byteswap(n_texs); #endif // number of texture ids read for Irrlicht const u32 num_textures = core::min_(n_texs, video::MATERIAL_MAX_TEXTURES); // number of bytes to skip (for ignored texture ids) const u32 n_texs_offset = (num_textures<n_texs)?(n_texs-num_textures):0; while((B3dStack.getLast().startposition + B3dStack.getLast().length) > B3DFile->getPos()) //this chunk repeats { // This is what blitz basic calls a brush, like a Irrlicht Material core::stringc name; readString(name); #ifdef _B3D_READER_DEBUG os::Printer::log("read Material", name); #endif Materials.push_back(SB3dMaterial()); SB3dMaterial& B3dMaterial=Materials.getLast(); readFloats(&B3dMaterial.red, 1); readFloats(&B3dMaterial.green, 1); readFloats(&B3dMaterial.blue, 1); readFloats(&B3dMaterial.alpha, 1); readFloats(&B3dMaterial.shininess, 1); B3DFile->read(&B3dMaterial.blend, sizeof(B3dMaterial.blend)); B3DFile->read(&B3dMaterial.fx, sizeof(B3dMaterial.fx)); #ifdef __BIG_ENDIAN__ B3dMaterial.blend = os::Byteswap::byteswap(B3dMaterial.blend); B3dMaterial.fx = os::Byteswap::byteswap(B3dMaterial.fx); #endif #ifdef _B3D_READER_DEBUG os::Printer::log("Blend", core::stringc(B3dMaterial.blend).c_str()); os::Printer::log("FX", core::stringc(B3dMaterial.fx).c_str()); #endif u32 i; for (i=0; i<num_textures; ++i) { s32 texture_id=-1; B3DFile->read(&texture_id, sizeof(s32)); #ifdef __BIG_ENDIAN__ texture_id = os::Byteswap::byteswap(texture_id); #endif //--- Get pointers to the texture, based on the IDs --- if ((u32)texture_id < Textures.size()) { B3dMaterial.Textures[i]=&Textures[texture_id]; #ifdef _B3D_READER_DEBUG os::Printer::log("Layer", core::stringc(i).c_str()); os::Printer::log("using texture", Textures[texture_id].TextureName.c_str()); #endif } else B3dMaterial.Textures[i]=0; } // skip other texture ids for (i=0; i<n_texs_offset; ++i) { s32 texture_id=-1; B3DFile->read(&texture_id, sizeof(s32)); #ifdef __BIG_ENDIAN__ texture_id = os::Byteswap::byteswap(texture_id); #endif if (ShowWarning && (texture_id != -1) && (n_texs>video::MATERIAL_MAX_TEXTURES)) { os::Printer::log("Too many textures used in one material", B3DFile->getFileName(), ELL_WARNING); ShowWarning = false; } } //Fixes problems when the lightmap is on the first texture: if (B3dMaterial.Textures[0] != 0) { if (B3dMaterial.Textures[0]->Flags & 65536) // 65536 = secondary UV { SB3dTexture *TmpTexture; TmpTexture = B3dMaterial.Textures[1]; B3dMaterial.Textures[1] = B3dMaterial.Textures[0]; B3dMaterial.Textures[0] = TmpTexture; } } //If a preceeding texture slot is empty move the others down: for (i=num_textures; i>0; --i) { for (u32 j=i-1; j<num_textures-1; ++j) { if (B3dMaterial.Textures[j+1] != 0 && B3dMaterial.Textures[j] == 0) { B3dMaterial.Textures[j] = B3dMaterial.Textures[j+1]; B3dMaterial.Textures[j+1] = 0; } } } //------ Convert blitz flags/blend to irrlicht ------- //Two textures: if (B3dMaterial.Textures[1]) { if (B3dMaterial.alpha==1.f) { if (B3dMaterial.Textures[1]->Blend == 5) //(Multiply 2) B3dMaterial.Material.MaterialType = video::EMT_LIGHTMAP_M2; else B3dMaterial.Material.MaterialType = video::EMT_LIGHTMAP; B3dMaterial.Material.Lighting = false; } else { B3dMaterial.Material.MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA; B3dMaterial.Material.ZWriteEnable = false; } } else if (B3dMaterial.Textures[0]) //One texture: { // Flags & 0x1 is usual SOLID, 0x8 is mipmap (handled before) if (B3dMaterial.Textures[0]->Flags & 0x2) //(Alpha mapped) { B3dMaterial.Material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; B3dMaterial.Material.ZWriteEnable = false; } else if (B3dMaterial.Textures[0]->Flags & 0x4) //(Masked) B3dMaterial.Material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF; // TODO: create color key texture else if (B3dMaterial.Textures[0]->Flags & 0x40) B3dMaterial.Material.MaterialType = video::EMT_SPHERE_MAP; else if (B3dMaterial.Textures[0]->Flags & 0x80) B3dMaterial.Material.MaterialType = video::EMT_SPHERE_MAP; // TODO: Should be cube map else if (B3dMaterial.alpha == 1.f) B3dMaterial.Material.MaterialType = video::EMT_SOLID; else { B3dMaterial.Material.MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA; B3dMaterial.Material.ZWriteEnable = false; } } else //No texture: { if (B3dMaterial.alpha == 1.f) B3dMaterial.Material.MaterialType = video::EMT_SOLID; else { B3dMaterial.Material.MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA; B3dMaterial.Material.ZWriteEnable = false; } } B3dMaterial.Material.DiffuseColor = video::SColorf(B3dMaterial.red, B3dMaterial.green, B3dMaterial.blue, B3dMaterial.alpha).toSColor(); B3dMaterial.Material.ColorMaterial=video::ECM_NONE; //------ Material fx ------ if (B3dMaterial.fx & 1) //full-bright { B3dMaterial.Material.AmbientColor = video::SColor(255, 255, 255, 255); B3dMaterial.Material.Lighting = false; } else B3dMaterial.Material.AmbientColor = B3dMaterial.Material.DiffuseColor; if (B3dMaterial.fx & 2) //use vertex colors instead of brush color B3dMaterial.Material.ColorMaterial=video::ECM_DIFFUSE_AND_AMBIENT; if (B3dMaterial.fx & 4) //flatshaded B3dMaterial.Material.GouraudShading = false; if (B3dMaterial.fx & 16) //disable backface culling B3dMaterial.Material.BackfaceCulling = false; if (B3dMaterial.fx & 32) //force vertex alpha-blending { B3dMaterial.Material.MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA; B3dMaterial.Material.ZWriteEnable = false; } B3dMaterial.Material.Shininess = B3dMaterial.shininess; } B3dStack.erase(B3dStack.size()-1); return true; } void CB3DMeshFileLoader::loadTextures(SB3dMaterial& material) const { const bool previous32BitTextureFlag = SceneManager->getVideoDriver()->getTextureCreationFlag(video::ETCF_ALWAYS_32_BIT); SceneManager->getVideoDriver()->setTextureCreationFlag(video::ETCF_ALWAYS_32_BIT, true); // read texture from disk // note that mipmaps might be disabled by Flags & 0x8 const bool doMipMaps = SceneManager->getVideoDriver()->getTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS); for (u32 i=0; i<video::MATERIAL_MAX_TEXTURES; ++i) { SB3dTexture* B3dTexture = material.Textures[i]; if (B3dTexture && B3dTexture->TextureName.size() && !material.Material.getTexture(i)) { if (!SceneManager->getParameters()->getAttributeAsBool(B3D_LOADER_IGNORE_MIPMAP_FLAG)) SceneManager->getVideoDriver()->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, (B3dTexture->Flags & 0x8) ? true:false); { video::ITexture* tex = 0; io::IFileSystem* fs = SceneManager->getFileSystem(); io::path texnameWithUserPath( SceneManager->getParameters()->getAttributeAsString(B3D_TEXTURE_PATH) ); if ( texnameWithUserPath.size() ) { texnameWithUserPath += '/'; texnameWithUserPath += B3dTexture->TextureName; } if (fs->existFile(texnameWithUserPath)) tex = SceneManager->getVideoDriver()->getTexture(texnameWithUserPath); else if (fs->existFile(B3dTexture->TextureName)) tex = SceneManager->getVideoDriver()->getTexture(B3dTexture->TextureName); else if (fs->existFile(fs->getFileDir(B3DFile->getFileName()) +"/"+ fs->getFileBasename(B3dTexture->TextureName))) tex = SceneManager->getVideoDriver()->getTexture(fs->getFileDir(B3DFile->getFileName()) +"/"+ fs->getFileBasename(B3dTexture->TextureName)); else tex = SceneManager->getVideoDriver()->getTexture(fs->getFileBasename(B3dTexture->TextureName)); material.Material.setTexture(i, tex); } if (material.Textures[i]->Flags & 0x10) // Clamp U material.Material.TextureLayer[i].TextureWrapU=video::ETC_CLAMP; if (material.Textures[i]->Flags & 0x20) // Clamp V material.Material.TextureLayer[i].TextureWrapV=video::ETC_CLAMP; } } SceneManager->getVideoDriver()->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, doMipMaps); SceneManager->getVideoDriver()->setTextureCreationFlag(video::ETCF_ALWAYS_32_BIT, previous32BitTextureFlag); } void CB3DMeshFileLoader::readString(core::stringc& newstring) { newstring=""; while (B3DFile->getPos() <= B3DFile->getSize()) { c8 character; B3DFile->read(&character, sizeof(character)); if (character==0) return; newstring.append(character); } } void CB3DMeshFileLoader::readFloats(f32* vec, u32 count) { B3DFile->read(vec, count*sizeof(f32)); #ifdef __BIG_ENDIAN__ for (u32 n=0; n<count; ++n) vec[n] = os::Byteswap::byteswap(vec[n]); #endif } } // end namespace scene } // end namespace irr #endif // _IRR_COMPILE_WITH_B3D_LOADER_
[ "hybrid@dfc29bdd-3216-0410-991c-e03cc46cb475", "engineer_apple@dfc29bdd-3216-0410-991c-e03cc46cb475", "irrlicht@dfc29bdd-3216-0410-991c-e03cc46cb475", "lukeph@dfc29bdd-3216-0410-991c-e03cc46cb475", "cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475" ]
[ [ [ 1, 41 ], [ 43, 48 ], [ 50, 386 ], [ 388, 434 ], [ 437, 480 ], [ 483, 483 ], [ 490, 539 ], [ 543, 1002 ], [ 1012, 1060 ] ], [ [ 42, 42 ] ], [ [ 49, 49 ] ], [ [ 387, 387 ], [ 435, 436 ], [ 481, 482 ], [ 484, 489 ], [ 540, 542 ] ], [ [ 1003, 1011 ] ] ]
ad491f4e1eb3d5204e325fe10dbe5248ad545c89
ce262ae496ab3eeebfcbb337da86d34eb689c07b
/SEWarehouse/SEStaticStackArray.h
f97c89746d69105ace441cc0d2f9d08cad4d9dac
[]
no_license
pizibing/swingengine
d8d9208c00ec2944817e1aab51287a3c38103bea
e7109d7b3e28c4421c173712eaf872771550669e
refs/heads/master
2021-01-16T18:29:10.689858
2011-06-23T04:27:46
2011-06-23T04:27:46
33,969,301
0
0
null
null
null
null
GB18030
C++
false
false
1,739
h
#ifndef Swing_StaticStackArray_H #define Swing_StaticStackArray_H #include "SESystem.h" #include "SEStaticArray.h" namespace Swing { //---------------------------------------------------------------------------- // 名称:静态堆栈数组类 // 说明: //---------------------------------------------------------------------------- template<class Type> class StaticStackArray : public StaticArray<Type> { public: INDEX sa_UsedCount; // 当前使用数量 INDEX sa_ctAllocationStep; // 堆栈溢出时新分配的内存大小 public: StaticStackArray(void); virtual ~StaticStackArray(void); public: inline void SetAllocationStep(INDEX ctStep); inline void Append(INDEX iCount); // 释放内存,恢复初始空状态 inline void Delete(void); // 调用Delete释放内存,恢复初始空状态 inline void Clear(void); // 在堆栈顶部压入新对象 // Push只增加堆栈使用计数,并没有立刻压入新对象,需要程序稍后手动压入新对象, // example:Push() = Type,没有参数传递,直接访问数组赋值,效率较高 inline Type &Push(void); inline Type *Push(INDEX ct); // 从堆栈顶部弹出一个对象,保留堆栈内存 inline Type &Pop(void); // 弹出比iNewTop索引值高的所有对象,保留堆栈内存 inline void PopUntil(INDEX iNewTop); // 弹出所有对象,但保留堆栈内存 inline void PopAll(void); inline Type &operator[](INDEX iObject); inline const Type &operator[](INDEX iObject) const; INDEX Count(void) const; INDEX Index(Type *ptObject); void MoveArray(StaticStackArray<Type> &arOther); StaticStackArray<Type> &operator=(const StaticStackArray<Type> &arOriginal); }; } #endif
[ "[email protected]@876e9856-8d94-11de-b760-4d83c623b0ac" ]
[ [ [ 1, 58 ] ] ]
3db2948ab76658f7d617a7bae5e307e43845fc4e
105cc69f4207a288be06fd7af7633787c3f3efb5
/HovercraftUniverse/OgreMax/OgreMaxTypes.hpp
d086fe280ed0260a1c04418eb1c48919cf58a466
[]
no_license
allenjacksonmaxplayio/uhasseltaacgua
330a6f2751e1d6675d1cf484ea2db0a923c9cdd0
ad54e9aa3ad841b8fc30682bd281c790a997478d
refs/heads/master
2020-12-24T21:21:28.075897
2010-06-09T18:05:23
2010-06-09T18:05:23
56,725,792
0
0
null
null
null
null
UTF-8
C++
false
false
33,556
hpp
/* * OgreMax Sample Viewer and Scene Loader - Ogre3D-based viewer and code for loading and displaying .scene files * Copyright 2010 AND Entertainment * * This code is available under the OgreMax Free License: * -You may use this code for any purpose, commercial or non-commercial. * -If distributing derived works (that use this source code) in binary or source code form, * you must give the following credit in your work's end-user documentation: * "Portions of this work provided by OgreMax (www.ogremax.com)" * * AND Entertainment assumes no responsibility for any harm caused by using this code. * * The OgreMax Sample Viewer and Scene Loader were released at www.ogremax.com */ #ifndef OgreMax_OgreMaxTypes_INCLUDED #define OgreMax_OgreMaxTypes_INCLUDED //Includes--------------------------------------------------------------------- #include "tinyxml/tinyxml.h" #include <OgreString.h> #include <OgreStringConverter.h> #include <OgreMaterial.h> #include <OgreVector3.h> #include <OgreVector4.h> #include <OgrePlane.h> #include <OgreQuaternion.h> #include <OgreHardwareBuffer.h> #include <OgreRenderQueue.h> #include <OgreLight.h> #include <OgreCamera.h> #include <OgreBillboardSet.h> #include <OgrePixelFormat.h> #include <OgreAnimation.h> #include <OgreAnimationState.h> #include <OgreTexture.h> #include <OgreSceneNode.h> #include <OgreEntity.h> #include <OgreTagPoint.h> #include <OgreSkeletonInstance.h> //Classes---------------------------------------------------------------------- namespace OgreMax { namespace Types { enum UpAxis { UP_AXIS_Y, UP_AXIS_Z }; enum NodeVisibility { NODE_VISIBILITY_DEFAULT, NODE_VISIBLE, NODE_HIDDEN, NODE_TREE_VISIBLE, NODE_TREE_HIDDEN }; enum ObjectVisibility { OBJECT_VISIBILITY_DEFAULT, OBJECT_VISIBLE, OBJECT_HIDDEN }; /** A custom parameter for renderables */ struct CustomParameter { size_t id; Ogre::Vector4 value; }; /** A simple bounding volume, centered around the owner's origin */ struct BoundingVolume { BoundingVolume() { this->type = NONE; this->radius = 0; this->size = Ogre::Vector3::ZERO; } enum Type { NONE, SPHERE, BOX, CYLINDER, CAPSULE, MESH }; /** The bounding volume type */ Type type; /** The bounding radius. Used when 'type' is SPHERE, CYLINDER, or CAPSULE */ float radius; /** * The size. All elements are used when 'type' is BOX, 'x' is used when CYLINDER or CAPSULE. * Note that when type is CAPSULE, the size given is the distance along the noncurved part of the capsule. */ Ogre::Vector3 size; /** A single face */ struct Face { Ogre::Vector3 vertex[3]; }; /** Faces of the mesh bounding volume. Used when 'type' is MESH */ std::vector<Face> meshFaces; }; /** A single note in a note track */ struct Note { Ogre::Real time; Ogre::String text; }; /** A collection of notes */ struct NoteTrack { Ogre::String name; std::vector<Note> notes; }; /** A collection of note tracks */ typedef std::vector<NoteTrack> NoteTracks; typedef Ogre::SharedPtr<NoteTracks> NoteTracksPtr; /** A single external item. */ struct ExternalItem { ExternalItem() { this->position = Ogre::Vector3::ZERO; this->scale = Ogre::Vector3::UNIT_SCALE; } Ogre::String name; Ogre::String type; Ogre::String file; Ogre::String userDataReference; Ogre::String userData; Ogre::Vector3 position; Ogre::Quaternion rotation; Ogre::Vector3 scale; BoundingVolume boundingVolume; NoteTracks noteTracks; }; struct ExternalUserData { Ogre::String type; Ogre::String name; Ogre::String id; Ogre::String userDataReference; Ogre::String userData; }; /** * Extra data placed for a various object types. * Depending on the context and type of object, some of the fields in this structure might not be used */ struct ObjectExtraData { ObjectExtraData() { this->node = 0; this->object = 0; this->receiveShadows = false; } /** * Initializes the data from another data object * Note that the object/node fields aren't copied */ ObjectExtraData(ObjectExtraData& other) { this->node = 0; this->object = 0; this->id = other.id; this->userDataReference = other.userDataReference; this->userData = other.userData; this->receiveShadows = other.receiveShadows; this->receiveShadows = other.receiveShadows; this->noteTracks = other.noteTracks; } /** Determines if there is any user data */ bool HasUserData() const { return !this->id.empty() || !this->userDataReference.empty() || !this->userData.empty(); } /** If set, the extra data belongs to an Ogre::Node */ Ogre::Node* node; /** If set, the extra data belongs to an Ogre::MovableObject */ Ogre::MovableObject* object; Ogre::String id; Ogre::String userDataReference; Ogre::String userData; bool receiveShadows; NoteTracksPtr noteTracks; }; typedef Ogre::SharedPtr<ObjectExtraData> ObjectExtraDataPtr; struct FogParameters { FogParameters() { this->mode = Ogre::FOG_NONE; this->expDensity = 0.001f; this->linearStart = 0; this->linearEnd = 1; this->color = Ogre::ColourValue::White; } Ogre::FogMode mode; Ogre::Real expDensity; Ogre::Real linearStart; Ogre::Real linearEnd; Ogre::ColourValue color; }; struct NodeAnimationParameters { NodeAnimationParameters() { this->length = 0; this->interpolationMode = Ogre::Animation::IM_SPLINE; this->rotationInterpolationMode = Ogre::Animation::RIM_LINEAR; this->enable = true; this->looping = true; } Ogre::String name; Ogre::Real length; Ogre::Animation::InterpolationMode interpolationMode; Ogre::Animation::RotationInterpolationMode rotationInterpolationMode; bool enable; bool looping; struct KeyFrame { KeyFrame() { this->time = 0; this->translation = Ogre::Vector3::ZERO; this->rotation = Ogre::Quaternion::IDENTITY; this->scale = Ogre::Vector3::UNIT_SCALE; } Ogre::Real time; Ogre::Vector3 translation; Ogre::Quaternion rotation; Ogre::Vector3 scale; }; std::vector<KeyFrame> keyframes; }; struct SkyBoxParameters { SkyBoxParameters() { this->enabled = true; this->distance = 0; this->drawFirst = true; } bool enabled; Ogre::String material; Ogre::Real distance; bool drawFirst; Ogre::Quaternion rotation; Ogre::String resourceGroupName; ObjectExtraData extraData; }; struct SkyDomeParameters { SkyDomeParameters() { this->enabled = true; this->curvature = 0; this->tiling = 0; this->distance = 0; this->drawFirst = true; this->xSegments = 0; this->ySegments = 0; } bool enabled; Ogre::String material; Ogre::Real curvature; Ogre::Real tiling; Ogre::Real distance; bool drawFirst; int xSegments; int ySegments; Ogre::Quaternion rotation; Ogre::String resourceGroupName; ObjectExtraData extraData; }; struct SkyPlaneParameters { SkyPlaneParameters() { this->enabled = true; this->scale = 1; this->bow = 0; this->tiling = 10; this->drawFirst = true; this->xSegments = 1; this->ySegments = 1; } bool enabled; Ogre::String material; Ogre::Plane plane; Ogre::Real scale; Ogre::Real bow; Ogre::Real tiling; bool drawFirst; int xSegments; int ySegments; Ogre::Quaternion rotation; Ogre::String resourceGroupName; ObjectExtraData extraData; }; struct ObjectParameters { enum ObjectType { NONE, ENTITY, LIGHT, CAMERA, PARTICLE_SYSTEM, BILLBOARD_SET, PLANE }; ObjectParameters() { this->objectType = NONE; this->renderQueue = Ogre::RENDER_QUEUE_MAIN; this->renderingDistance = 0; this->queryFlags = 0; this->visibilityFlags = 0; this->visibility = OBJECT_VISIBILITY_DEFAULT; } virtual ~ObjectParameters() { } /** Name of the object */ Ogre::String name; /** * The object type. * This can be used to determine which ObjectParameters subclass can be used */ ObjectType objectType; /** The object's extra data */ ObjectExtraDataPtr extraData; /** Object query flags */ Ogre::uint32 queryFlags; /** Object visibility flags */ Ogre::uint32 visibilityFlags; /** Indicates whether object is visible */ ObjectVisibility visibility; /** Rendering queue. Not used by all types */ Ogre::uint8 renderQueue; /** Rendering distance. Not used by all types */ Ogre::Real renderingDistance; typedef std::vector<CustomParameter> CustomParameters; /** Custom values. Not used by all types */ CustomParameters customParameters; }; struct EntityParameters : ObjectParameters { EntityParameters() { this->objectType = ENTITY; this->castShadows = true; this->vertexBufferUsage = Ogre::HardwareBuffer::HBU_STATIC_WRITE_ONLY; this->indexBufferUsage = Ogre::HardwareBuffer::HBU_STATIC_WRITE_ONLY; this->vertexBufferShadowed = true; this->indexBufferShadowed = true; } Ogre::String meshFile; Ogre::String materialFile; bool castShadows; Ogre::HardwareBuffer::Usage vertexBufferUsage; Ogre::HardwareBuffer::Usage indexBufferUsage; bool vertexBufferShadowed; bool indexBufferShadowed; Ogre::String resourceGroupName; struct Subentity { Ogre::String materialName; }; std::vector<Subentity> subentities; struct BoneAttachment { BoneAttachment() { this->object = 0; this->attachPosition = Ogre::Vector3::ZERO; this->attachScale = Ogre::Vector3::UNIT_SCALE; this->attachRotation = Ogre::Quaternion::IDENTITY; } ~BoneAttachment() { delete this->object; } /** Gets the name of the attachment itself */ const Ogre::String& GetName() const { return this->object != 0 ? this->object->name : this->name; } Ogre::String name; //Used if object is null Ogre::String boneName; ObjectParameters* object; Ogre::Vector3 attachPosition; Ogre::Vector3 attachScale; Ogre::Quaternion attachRotation; }; std::vector<BoneAttachment> boneAttachments; }; struct LightParameters : ObjectParameters { LightParameters() { this->objectType = LIGHT; this->lightType = Ogre::Light::LT_POINT; this->castShadows = false; this->power = 1; this->diffuseColor = Ogre::ColourValue::White; this->specularColor = Ogre::ColourValue::Black; this->spotlightInnerAngle = Ogre::Degree((Ogre::Real)40); this->spotlightOuterAngle = Ogre::Degree((Ogre::Real)30); this->spotlightFalloff = 1; this->attenuationRange = 100000; this->attenuationConstant = 1; this->attenuationLinear = 0; this->attenuationQuadric = 0; this->position = Ogre::Vector3::ZERO; this->direction = Ogre::Vector3::UNIT_Z; } Ogre::Light::LightTypes lightType; bool castShadows; Ogre::Real power; Ogre::ColourValue diffuseColor; Ogre::ColourValue specularColor; Ogre::Radian spotlightInnerAngle; Ogre::Radian spotlightOuterAngle; Ogre::Real spotlightFalloff; Ogre::Real attenuationRange; Ogre::Real attenuationConstant; Ogre::Real attenuationLinear; Ogre::Real attenuationQuadric; Ogre::Vector3 position; Ogre::Vector3 direction; }; struct CameraParameters : ObjectParameters { CameraParameters() { this->objectType = CAMERA; this->fov = Ogre::Radian(Ogre::Math::PI/2); this->aspectRatio = (Ogre::Real)1.33; this->projectionType = Ogre::PT_PERSPECTIVE; this->nearClip = 100; this->farClip = 100000; this->position = Ogre::Vector3::ZERO; this->direction = Ogre::Vector3::NEGATIVE_UNIT_Z; } Ogre::Radian fov; Ogre::Real aspectRatio; Ogre::ProjectionType projectionType; Ogre::Real nearClip; Ogre::Real farClip; Ogre::Vector3 position; Ogre::Quaternion orientation; Ogre::Vector3 direction; }; struct ParticleSystemParameters : ObjectParameters { ParticleSystemParameters() { this->objectType = PARTICLE_SYSTEM; } Ogre::String file; }; struct BillboardSetParameters : ObjectParameters { BillboardSetParameters() { this->objectType = BILLBOARD_SET; this->commonDirection = Ogre::Vector3::UNIT_Z; this->commonUpVector = Ogre::Vector3::UNIT_Y; this->billboardType = Ogre::BBT_POINT; this->origin = Ogre::BBO_CENTER; this->rotationType = Ogre::BBR_TEXCOORD; this->poolSize = 0; this->autoExtendPool = true; this->cullIndividual = false; this->sort = false; this->accurateFacing = false; } Ogre::String material; Ogre::Real width; Ogre::Real height; Ogre::BillboardType billboardType; Ogre::BillboardOrigin origin; Ogre::BillboardRotationType rotationType; Ogre::Vector3 commonDirection; Ogre::Vector3 commonUpVector; Ogre::uint32 poolSize; bool autoExtendPool; bool cullIndividual; bool sort; bool accurateFacing; struct Billboard { Billboard() : texCoordRectangle(0, 0, 0, 0) { this->width = 0; this->height = 0; this->rotationAngle = Ogre::Radian(0); this->position = Ogre::Vector3::ZERO; this->color = Ogre::ColourValue::White; } Ogre::Real width; Ogre::Real height; Ogre::FloatRect texCoordRectangle; Ogre::Radian rotationAngle; Ogre::Vector3 position; Ogre::ColourValue color; }; std::vector<Billboard> billboards; }; struct PlaneParameters : ObjectParameters { PlaneParameters() { this->objectType = PLANE; this->xSegments = 0; this->ySegments = 0; this->numTexCoordSets = 0; this->uTile = 0; this->vTile = 0; this->normals = true; this->createMovablePlane = true; this->castShadows = true; this->normal = Ogre::Vector3::ZERO; this->upVector = Ogre::Vector3::UNIT_Z; this->vertexBufferUsage = Ogre::HardwareBuffer::HBU_STATIC_WRITE_ONLY; this->indexBufferUsage = Ogre::HardwareBuffer::HBU_STATIC_WRITE_ONLY; this->vertexBufferShadowed = true; this->indexBufferShadowed = true; } Ogre::String planeName; Ogre::Real distance; Ogre::Real width; Ogre::Real height; int xSegments; int ySegments; int numTexCoordSets; Ogre::Real uTile; Ogre::Real vTile; Ogre::String material; bool normals; bool createMovablePlane; bool castShadows; Ogre::Vector3 normal; Ogre::Vector3 upVector; Ogre::HardwareBuffer::Usage vertexBufferUsage; Ogre::HardwareBuffer::Usage indexBufferUsage; bool vertexBufferShadowed; bool indexBufferShadowed; Ogre::String resourceGroupName; }; struct NodeParameters { NodeParameters() { this->visibility = NODE_VISIBILITY_DEFAULT; this->position = Ogre::Vector3::ZERO; this->scale = Ogre::Vector3::UNIT_SCALE; } ~NodeParameters() { for (Objects::iterator objectIterator = this->objects.begin(); objectIterator != this->objects.end(); ++objectIterator) { delete *objectIterator; } } /** The nodes's extra data */ ObjectExtraDataPtr extraData; Ogre::String name; Ogre::String modelFile; NodeVisibility visibility; Ogre::Vector3 position; Ogre::Quaternion orientation; Ogre::Vector3 scale; std::vector<NodeParameters> childNodes; std::vector<NodeAnimationParameters> animations; typedef std::list<ObjectParameters*> Objects; Objects objects; }; struct RenderTextureParameters { RenderTextureParameters() { this->width = this->height = 512; this->pixelFormat = Ogre::PF_A8R8G8B8; this->textureType = Ogre::TEX_TYPE_2D; this->clearEveryFrame = true; this->autoUpdate = true; this->hideRenderObject = true; } Ogre::String name; int width; int height; Ogre::PixelFormat pixelFormat; Ogre::TextureType textureType; Ogre::String cameraName; Ogre::String scheme; Ogre::ColourValue backgroundColor; bool clearEveryFrame; bool autoUpdate; bool hideRenderObject; Ogre::String renderObjectName; Ogre::Plane renderPlane; std::vector<Ogre::String> hiddenObjects; std::vector<Ogre::String> exclusiveObjects; Ogre::String resourceGroupName; struct Material { Ogre::String name; unsigned short techniqueIndex; unsigned short passIndex; unsigned short textureUnitIndex; }; std::vector<Material> materials; }; struct ShadowParameters { ShadowParameters() { this->shadowTechnique = Ogre::SHADOWTYPE_NONE; this->selfShadow = true; this->farDistance = 0; this->textureSize = 512; this->textureCount = 2; this->textureOffset = (Ogre::Real).6; this->textureFadeStart = (Ogre::Real).7; this->textureFadeEnd = (Ogre::Real).9; this->pixelFormat = Ogre::PF_UNKNOWN; this->shadowColor = Ogre::ColourValue::Black; } Ogre::ShadowTechnique shadowTechnique; bool selfShadow; Ogre::Real farDistance; int textureSize; int textureCount; Ogre::Real textureOffset; Ogre::Real textureFadeStart; Ogre::Real textureFadeEnd; Ogre::String textureShadowCasterMaterial; Ogre::String textureShadowReceiverMaterial; Ogre::PixelFormat pixelFormat; Ogre::ColourValue shadowColor; Ogre::String cameraSetup; Ogre::Plane optimalPlane; }; struct LookTarget { /** * Initializes the LookTarget for a scene node or camera. * Either sourceNode or sourceCamera must be non-null */ LookTarget(Ogre::SceneNode* sourceNode, Ogre::Camera* sourceCamera) { this->sourceNode = sourceNode; this->sourceCamera = sourceCamera; this->relativeTo = Ogre::Node::TS_LOCAL; this->isPositionSet = false; this->position = Ogre::Vector3::ZERO; this->localDirection = Ogre::Vector3::NEGATIVE_UNIT_Z; } Ogre::SceneNode* sourceNode; Ogre::Camera* sourceCamera; Ogre::String nodeName; Ogre::Node::TransformSpace relativeTo; bool isPositionSet; Ogre::Vector3 position; Ogre::Vector3 localDirection; }; struct TrackTarget { /** * Initializes the TrackTarget for a scene node or camera. * Either sourceNode or sourceCamera must be non-null */ TrackTarget(Ogre::SceneNode* sourceNode, Ogre::Camera* sourceCamera) { this->sourceNode = sourceNode; this->sourceCamera = sourceCamera; this->offset = Ogre::Vector3::ZERO; this->localDirection = Ogre::Vector3::NEGATIVE_UNIT_Z; } Ogre::SceneNode* sourceNode; Ogre::Camera* sourceCamera; Ogre::String nodeName; Ogre::Vector3 offset; Ogre::Vector3 localDirection; }; struct SceneNodeArray : std::vector<Ogre::SceneNode*> { void Show() { for (size_t i = 0; i < size(); i++) (*this)[i]->setVisible(true, false); } void Hide() { for (size_t i = 0; i < size(); i++) (*this)[i]->setVisible(false, false); } }; /** A loaded render texture */ struct LoadedRenderTexture { enum {CUBE_FACE_COUNT = 6}; LoadedRenderTexture() { this->renderObjectNode = 0; this->renderPlane = 0; this->camera = 0; for (int index = 0; index < CUBE_FACE_COUNT; index++) { this->cubeFaceCameras[index] = 0; this->viewports[index] = 0; } } /** Sets the position of all cube face cameras */ void SetCubeFaceCameraPosition(const Ogre::Vector3& position) { for (int index = 0; index < CUBE_FACE_COUNT; index++) this->cubeFaceCameras[index]->setPosition(position); } /** * Gets the 'reference' position, which is used when updating a cube map render texture. * The preferred position is that of the render object. If there is no render object, the reference * camera is used. If there is no camera, the zero vector is used. * @param position [out] - The position. If there is no reference object, this is set to zero. * @return Returns true if there was a reference object to use, false otherwise. */ bool GetReferencePosition(Ogre::Vector3& position) const { bool result = true; if (this->renderObjectNode != 0) position = this->renderObjectNode->_getDerivedPosition(); else if (this->camera != 0) position = this->camera->getDerivedPosition(); else { position = Ogre::Vector3::ZERO; result = false; } return result; } RenderTextureParameters parameters; Ogre::TexturePtr renderTexture; Ogre::SceneNode* renderObjectNode; Ogre::MovablePlane* renderPlane; Ogre::Camera* camera; Ogre::Camera* cubeFaceCameras[CUBE_FACE_COUNT]; Ogre::Viewport* viewports[CUBE_FACE_COUNT]; SceneNodeArray hiddenObjects; SceneNodeArray exclusiveObjects; }; /** Maps a query flag bit to a name */ struct FlagAlias { FlagAlias() { this->bit = 0; } Ogre::String name; int bit; }; /** A collection of flag aliases */ struct FlagAliases : std::vector<FlagAlias> { /** * Gets the name that corresponds to the specified bit * @param bit [in] - The index of the bit to look up * @param name [out] - The name of the bit * @return Returns true if the bit's name was found, false otherwise */ bool GetBitName(int bit, Ogre::String& name) { for (size_t index = 0; index < size(); index++) { if ((*this)[index].bit == bit) { name = (*this)[index].name; return true; } } return false; } }; /** Used for attaching MovableObject instances to an owner */ struct MovableObjectOwner { /** No owner */ MovableObjectOwner() { this->node = 0; this->entity = 0; this->attachPosition = Ogre::Vector3::ZERO; this->attachScale = Ogre::Vector3::UNIT_SCALE; this->attachRotation = Ogre::Quaternion::IDENTITY; } /** The owner is a scene node */ MovableObjectOwner(Ogre::SceneNode* node) { this->node = node; this->entity = 0; this->attachPosition = Ogre::Vector3::ZERO; this->attachScale = Ogre::Vector3::UNIT_SCALE; this->attachRotation = Ogre::Quaternion::IDENTITY; } /** The owner is a bone within an entity's skeleton */ MovableObjectOwner ( Ogre::Entity* entity, const Ogre::String& boneName = Ogre::StringUtil::BLANK, const Ogre::Vector3& attachPosition = Ogre::Vector3::ZERO, const Ogre::Vector3& attachScale = Ogre::Vector3::UNIT_SCALE, const Ogre::Quaternion& attachRotation = Ogre::Quaternion::IDENTITY ) { this->node = 0; this->entity = entity; this->boneName = boneName; this->attachPosition = attachPosition; this->attachScale = attachScale; this->attachRotation = attachRotation; } /** Attaches the movable object to the owner */ void Attach(Ogre::MovableObject* object) const { if (this->node != 0) this->node->attachObject(object); else if (this->entity != 0 && !this->boneName.empty()) { //TODO: Modify Ogre to accept object->getName() when creating TagPoint Ogre::TagPoint* tagPoint = this->entity->attachObjectToBone(this->boneName, object); tagPoint->setPosition(this->attachPosition); tagPoint->setScale(this->attachScale); tagPoint->setOrientation(this->attachRotation); } } /** * Attaches an empty object to the owner. This has no effect if the owner is a node since * there's no notion of an "empty" object for nodes. For entities, an "empty" object corresponds * to a tag point that has no attachment */ void AttachEmpty(const Ogre::String& name = Ogre::StringUtil::BLANK) const { if (this->entity != 0 && !this->boneName.empty()) { Ogre::SkeletonInstance* skeleton = this->entity->getSkeleton(); Ogre::Bone* bone = skeleton->getBone(this->boneName); //TODO: Modify Ogre to accept name when creating TagPoint Ogre::TagPoint* tagPoint = skeleton->createTagPointOnBone(bone); tagPoint->setPosition(this->attachPosition); tagPoint->setScale(this->attachScale); tagPoint->setOrientation(this->attachRotation); } } Ogre::SceneNode* node; Ogre::Entity* entity; Ogre::String boneName; Ogre::Vector3 attachPosition; Ogre::Vector3 attachScale; Ogre::Quaternion attachRotation; }; } } #endif
[ "pintens.pieterjan@2d55a33c-0a8f-11df-aac0-2d4c26e34a4c", "nick.defrangh@2d55a33c-0a8f-11df-aac0-2d4c26e34a4c" ]
[ [ [ 1, 225 ], [ 227, 1016 ] ], [ [ 226, 226 ] ] ]
55d386a755e789e5f37acb111fe5a9a896ea7c06
ff5c060273aeafed9f0e5aa7018f371b8b11cdfd
/Codigo/C/Interfaz_Genaro.cpp
d2c3073db9b5f6d25cd7357aa7f2364c2780c461
[]
no_license
BackupTheBerlios/genaro
bb14efcdb54394e12e56159313151930d8f26d6b
03e618a4f259cfb991929ee48004b601486d610f
refs/heads/master
2020-04-20T19:37:21.138816
2008-03-25T16:15:16
2008-03-25T16:15:16
40,075,683
0
0
null
null
null
null
UTF-8
C++
false
false
1,330
cpp
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop USERES("Interfaz_Genaro.res"); USEFORM("FormularioPrincipal.cpp", Form1); USEUNIT("Interfaz_Prolog.cpp"); USEUNIT("Unidad_Nexo.cpp"); USEUNIT("Interfaz_Haskell.cpp"); USE("Interfaz_Genaro.todo", ToDo); USEFORM("FormParametrosTimidity.cpp", Form2); USEUNIT("Interfaz_Timidity.cpp"); USEUNIT("Tipos_Estructura.cpp"); USEFORM("UForm_Melodia.cpp", Form_Melodia); USEFORM("Form_Editar_Progresion.cpp", Form3); USEFORM("Opciones_Armonizacion.cpp", FormOpcionesArmonizacion); //--------------------------------------------------------------------------- WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int) { try { Application->Initialize(); Application->CreateForm(__classid(TForm1), &Form1); Application->CreateForm(__classid(TForm2), &Form2); Application->CreateForm(__classid(TForm_Melodia), &Form_Melodia); Application->CreateForm(__classid(TForm3), &Form3); Application->CreateForm(__classid(TFormOpcionesArmonizacion), &FormOpcionesArmonizacion); Application->Run(); } catch (Exception &exception) { Application->ShowException(&exception); } return 0; } //---------------------------------------------------------------------------
[ "gatchan" ]
[ [ [ 1, 36 ] ] ]
8d4b29acb9ddba1002f31728d67edad9b7a0fe59
9d96bd412512678574e8b2049fba5d3ad1bcfc56
/FRCIncludes/WPILib/Solenoid.h
0ec03046acb5bc09c12bdeb979e5276204e31e0a
[]
no_license
tjradcliffe/SimpleRobotEmulator
71c48db5934ac7dc92929d5d074dac759514f527
8fab1cdcdc5eb1ab64bdd73a553562a0dbf9da1d
refs/heads/master
2021-03-12T20:07:29.729514
2010-12-15T02:27:50
2010-12-15T02:27:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,031
h
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */ /*----------------------------------------------------------------------------*/ #ifndef SOLENOID_H_ #define SOLENOID_H_ #include "Base.h" /** * Solenoid class for running high voltage Digital Output (9472 module). * * The Solenoid class is typically used for pneumatics solenoids, but could be used * for any device within the current spec of the 9472 module. */ class Solenoid { public: explicit Solenoid(UINT32 channel); Solenoid(UINT32 slot, UINT32 channel); ~Solenoid(); void Set(bool on); bool Get(); UINT32 m_chassisSlot; ///< Slot number where the module is plugged into the chassis. UINT32 m_channel; ///< The channel on the module to control. bool m_state; }; #endif
[ [ [ 1, 31 ] ] ]
5d25857f4596b6cf4ede1ae5492e919ff6f519c6
45229380094a0c2b603616e7505cbdc4d89dfaee
/HMMcpp/uIO.cpp
9be8d462040caa5717a19742dfb5d391704c8092
[]
no_license
xcud/msrds
a71000cc096723272e5ada7229426dee5100406c
04764859c88f5c36a757dbffc105309a27cd9c4d
refs/heads/master
2021-01-10T01:19:35.834296
2011-11-04T09:26:01
2011-11-04T09:26:01
45,697,313
1
2
null
null
null
null
UTF-8
C++
false
false
3,136
cpp
//--------------------------------------------------------------------------- // created: 20041013 by N.V.Shokhirev // modified: 20041117 by N.V.Shokhirev //--------------------------------------------------------------------------- #pragma hdrstop #include "uIO.h" #include <assert.h> //--------------------------------------------------------------------------- #pragma package(smart_init) void writevalue(ofstream& stream, char* name, int value) { stream << name << "=" << value << endl; }; void writevalue(ofstream& stream, char* name, double value) { stream << name << "=" << value << endl; }; void writevalue(ofstream& stream, char* name, char* value) { stream << name << "=" << value << endl; }; void writeFArr1D(ofstream& stream, char* name, FArr1D& v) { stream << name << "=" << endl; stream << "Lo1=" << v.L1() << endl; stream << "Hi1=" << v.H1() << endl; for(int i=v.L1(); i<=v.H1(); i++) stream << " " << v(i); stream << endl; }; void readint(ifstream& stream, int& v) { char s[64]; stream.getline(s, 64,'='); stream >> v; }; void readFArr1D(ifstream& stream, FArr1D& v) { int Lo1, Hi1; char s[4]; readint(stream, Lo1); readint(stream, Hi1); assert( v.L1() == Lo1 && v.H1() == Hi1 ); // Check lim match. for(int i=Lo1; i<=Hi1; i++) stream >> v(i); stream.getline(s, 4); // stream.ignore(80, '\n'); }; void writeFArr2D(ofstream& stream, char* name, FArr2D& v) { stream << name << "=" << endl; stream << "Lo1=" << v.L1() << endl; stream << "Hi1=" << v.H1() << endl; stream << "Lo2=" << v.L2() << endl; stream << "Hi2=" << v.H2() << endl; for(int i1=v.L1(); i1<=v.H1(); i1++) { for(int i2=v.L2(); i2<=v.H2(); i2++) stream << " " << v(i1,i2); stream << endl; }; }; void readFArr2D(ifstream& stream, FArr2D& v) { int Lo1, Hi1, Lo2, Hi2; char s[4]; readint(stream, Lo1); readint(stream, Hi1); readint(stream, Lo2); readint(stream, Hi2); assert( v.L1() == Lo1 && v.H1() == Hi1 && v.L2() == Lo2 && v.H2() == Hi2 ); for(int i1 = Lo1; i1 <= Hi1; i1++) { for(int i2 = Lo2; i2 <= Hi2; i2++) stream >> v(i1,i2); if (i1 == Hi1) stream.getline(s, 4); // if (i1 == Hi1) stream.ignore(80, '\n'); }; }; void writeDatetime(ofstream& stream, struct tm *tblock ) { stream << " " << tblock->tm_sec; stream << " " << tblock->tm_min; stream << " " << tblock->tm_hour; stream << " " << tblock->tm_mday; stream << " " << tblock->tm_mon; stream << " " << tblock->tm_year; stream << " " << tblock->tm_wday; stream << " " << tblock->tm_yday; stream << " " << tblock->tm_isdst << endl; }; //void readDatetime(ifstream& stream, struct tm &tblock ) void readDatetime(ifstream& stream, struct tm *tblock ) { char s[4]; stream >> tblock->tm_sec; stream >> tblock->tm_min; stream >> tblock->tm_hour; stream >> tblock->tm_mday; stream >> tblock->tm_mon; stream >> tblock->tm_year; stream >> tblock->tm_wday; stream >> tblock->tm_yday; stream >> tblock->tm_isdst; stream.getline(s, 4); };
[ "perpet99@cc61708c-8d4c-0410-8fce-b5b73d66a671" ]
[ [ [ 1, 120 ] ] ]
d9e81c0fb59fbea47ac1c3e7ef5e57f5f63ea92e
1e299bdc79bdc75fc5039f4c7498d58f246ed197
/stdobj/Timer.h
c1264c1bab4cfa5972cd67534fef5c7f142b5f97
[]
no_license
moosethemooche/Certificate-Server
5b066b5756fc44151b53841482b7fa603c26bf3e
887578cc2126bae04c09b2a9499b88cb8c7419d4
refs/heads/master
2021-01-17T06:24:52.178106
2011-07-13T13:27:09
2011-07-13T13:27:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,658
h
//-------------------------------------------------------------------------------- // // Copyright (c) 2001 MarkCare Solutions // // Programming by Rich Schonthal // //-------------------------------------------------------------------------------- #ifndef _TIMER_H_ #define _TIMER_H_ //-------------------------------------------------------------------------------- #include "result.h" //-------------------------------------------------------------------------------- class CTimer : public CResult { public: // period = the length of time to call set with // if period == 0, the timer is created but not set // if period == -1 the timer is not created CTimer(LONG period = 0); public: HANDLE m_hTimer; public: enum { ErrTimerAlreadySet = HighestResultCode, ErrTimerNotOpen }; public: virtual ~CTimer(); virtual bool Create(bool manual = false, LPCTSTR = NULL, SECURITY_ATTRIBUTES* = NULL); bool Open(LPCTSTR name, DWORD = TIMER_ALL_ACCESS, bool inherit = false); virtual bool Set(LONG period, __int64 due = 0, PTIMERAPCROUTINE = NULL, void* param = NULL, bool resume = true); bool Cancel(); bool Close(); bool IsSignaled(DWORD wait = 0); bool Wait(DWORD wait = INFINITE); bool IsValid(); operator HANDLE(); }; //-------------------------------------------------------------------------------- inline bool CTimer::IsValid() { return m_hTimer != NULL && m_hTimer != INVALID_HANDLE_VALUE; } inline bool CTimer::IsSignaled(DWORD nWait) { return ::WaitForSingleObject(m_hTimer, nWait) == WAIT_OBJECT_0; } inline CTimer::operator HANDLE() { return m_hTimer; } //-------------------------------------------------------------------------------- class CPulseTimer : public CTimer { public: CPulseTimer() : CTimer(0) {} virtual bool Set(LONG period, PTIMERAPCROUTINE = NULL, void* param = NULL, bool resume = true); virtual bool Set(LONG period, bool bEatFirstPulse); }; //-------------------------------------------------------------------------------- inline bool CPulseTimer::Set(LONG nPeriod, PTIMERAPCROUTINE pProc, void* pParam, bool bResume) { if(! CTimer::Set(nPeriod, NULL, pProc, pParam, bResume)) return false; // clear the first signal IsSignaled(); return true; } //-------------------------------------------------------------------------------- inline bool CPulseTimer::Set(LONG nPeriod, bool bEatFirstPulse) { if(! CTimer::Set(nPeriod, NULL, NULL, NULL, true)) return false; if(bEatFirstPulse) // clear the first signal IsSignaled(); return true; } #endif // _TIMER_H_
[ [ [ 1, 86 ] ] ]
575f5665dbd1c4c06d47bacc36f720b0706ef250
7fa34f87b50000d2482bbefd0ec0b1dc528ccd05
/I4C3D/I4C3DMAYAControl.h
5248eb2eb964a48788fee622529446161fde94d8
[]
no_license
chanpi/I4C3D
4a91fbe2fb85149e31e69d908eca8bd95ad0d10d
f5a5e0dd87508424b3b92c9237e23eb0a70a925c
refs/heads/master
2021-01-10T21:23:17.708231
2011-03-11T01:23:04
2011-03-11T01:23:04
1,368,631
0
0
null
null
null
null
UTF-8
C++
false
false
383
h
#pragma once #include "i4c3dcontrol.h" class I4C3DMAYAControl : public I4C3DControl { public: I4C3DMAYAControl(void); I4C3DMAYAControl(I4C3DContext* pContext); ~I4C3DMAYAControl(void); void TumbleExecute(int deltaX, int deltaY); void TrackExecute(int deltaX, int deltaY); void DollyExecute(int deltaX, int deltaY); void HotkeyExecute(LPCTSTR szCommand); };
[ [ [ 1, 16 ] ] ]
53a25a5fd0fc13e032e341f202b1f6e8bca81e6c
22575f4bfceb68b4ca9b5c1146dd86ca4bd5c4ed
/test/tests/mpq_block_entry_tests.cc
97dac2921bc6b5451065d877f96a9df60ed9ad05
[ "BSD-2-Clause" ]
permissive
aphistic/zamara
b4ef491949c02b65b164a2bff3ea9d2f349457c6
c2a587bd8281540b4083ec5bcc47d992f1e75bf7
refs/heads/master
2016-09-05T11:28:11.983667
2011-12-09T03:37:13
2011-12-09T03:37:13
2,944,990
0
0
null
null
null
null
UTF-8
C++
false
false
2,064
cc
/* Zamara Library * Copyright (c) 2011, Erik Davidson * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include "gtest/gtest.h" #include "zamara/endian/endian.h" #include "zamara/mpq/mpq_block_entry.h" using namespace zamara::mpq; using zamara::endian::Endian; TEST(MpqBlockEntry, LoadEntry) { uint32_t decrypted_table[] = { Endian::LeToH32(0x0000002C), Endian::LeToH32(0x00000251), Endian::LeToH32(0x00000251), Endian::LeToH32(0x81000200) }; MpqBlockEntry entry; entry.Load(reinterpret_cast<char*>(decrypted_table)); ASSERT_EQ(0x0000002C, entry.file_position()); ASSERT_EQ(593, entry.compressed_size()); ASSERT_EQ(593, entry.file_size()); ASSERT_EQ(0x81000200, entry.flags()); }
[ [ [ 1, 53 ] ] ]
2e1eb2dbb6d32d0c06eb950c433e98a8e8bd2eb6
65af047619465d143123ad7018abcc94095973ce
/salvation_src_rabbmod/src/gui/CColorPicker.h
f317430ad483f1a48fec790f59ec22ff59574603
[]
no_license
FardMan69420/eth32nix-rabbmod
60948b2bdf7495fc93a7bac4a40178614e076402
9db19146cd2373812c1e83657190cfae07565cf5
refs/heads/master
2022-04-02T07:17:07.763709
2009-12-21T08:16:40
2009-12-21T08:16:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
917
h
// ETH32 - an Enemy Territory cheat for windows // Copyright (c) 2007 eth32 team // www.cheatersutopia.com & www.nixcoders.org #pragma once #include "CSliders.h" typedef struct { uchar *bColor; float *fColor; } colorptr_t; class CColorPicker : public CControl { public: CColorPicker(const char *clabel, int cx, int cy, int cw, int ch); ~CColorPicker(void); void Display(void); virtual int ProcessMouse(int mx, int my, uint32 event, CControl **mhook, CControl **khook); virtual void MouseMove(int mx, int my); void Reposition(int cx, int cy); void SetOrigin(int ox, int oy); void AddColor(const char *colorName, uchar *color); void AddColor(const char *colorName, float *color); protected: void CreateNewEntry(const char *colorName, uchar *bColor, float *fColor); int currentColor; int numColors; char **colorText; colorptr_t *colorList; CDropbox *ctrlDropbox; };
[ [ [ 1, 34 ] ] ]
b66da7d1dded838a2afe34276001dd9b5e857cfc
5ac13fa1746046451f1989b5b8734f40d6445322
/minimangalore/Nebula2/code/mangalore/script/command.cc
3e3d2394dd3870e492a61199e250b497fd23ec69
[]
no_license
moltenguy1/minimangalore
9f2edf7901e7392490cc22486a7cf13c1790008d
4d849672a6f25d8e441245d374b6bde4b59cbd48
refs/heads/master
2020-04-23T08:57:16.492734
2009-08-01T09:13:33
2009-08-01T09:13:33
35,933,330
0
0
null
null
null
null
UTF-8
C++
false
false
1,189
cc
//------------------------------------------------------------------------------ // script/command.cc // (C) 2005 Radon Labs GmbH //------------------------------------------------------------------------------ #include "script/command.h" namespace Script { ImplementRtti(Script::Command, Foundation::RefCounted); ImplementFactory(Script::Command); Command* Command::Singleton = 0; //------------------------------------------------------------------------------ /** */ Command::Command() { //n_assert(0 == Command::Singleton); //Command::Singleton = this; } //------------------------------------------------------------------------------ /** */ Command::~Command() { //n_assert(0 != Command::Singleton); //Command::Singleton = 0; } //------------------------------------------------------------------------------ /** */ int Command::Execute(const Util::CmdLineArgs& args) { // FIXME: Fill me return true; } //------------------------------------------------------------------------------ /** get the name of the command */ nString Command::GetName() const { return "NONE"; } } // namespace Script
[ "BawooiT@d1c0eb94-fc07-11dd-a7be-4b3ef3b0700c" ]
[ [ [ 1, 52 ] ] ]
5c8b6539c86bd71c206cfb8eee0e754f09ca6ed8
741b36f4ddf392c4459d777930bc55b966c2111a
/incubator/deeppurple/lwplugins/lwwrapper/XPanel/XControlButton.h
597bf98f06bad3096ad79b6f0a56b45bf9c4cd7c
[]
no_license
BackupTheBerlios/lwpp-svn
d2e905641f60a7c9ca296d29169c70762f5a9281
fd6f80cbba14209d4ca639f291b1a28a0ed5404d
refs/heads/master
2021-01-17T17:01:31.802187
2005-10-16T22:12:52
2005-10-16T22:12:52
40,805,554
0
0
null
null
null
null
UTF-8
C++
false
false
543
h
// Copyright (C) 1999 - 2002 David Forstenlechner #if defined (_MSC_VER) && (_MSC_VER >= 1000) #pragma once #endif #ifndef _INC_XCONTROLBUTTON_3E1AA79B02D8_INCLUDED #define _INC_XCONTROLBUTTON_3E1AA79B02D8_INCLUDED #include "XControl.h" class XPanel; class XControlButton : public XControl { public: virtual void Initialize(const char* name, XPanel* owner); static void OnButtonPressed(LWXPanelID owner, unsigned long cid); XControlButton(); }; #endif /* _INC_XCONTROLBUTTON_3E1AA79B02D8_INCLUDED */
[ "deeppurple@dac1304f-7ce9-0310-a59f-f2d444f72a61" ]
[ [ [ 1, 26 ] ] ]
bac5ebf7aec5d2eb0ba88c969f4c1bd6ebd270d6
205069c97095da8f15e45cede1525f384ba6efd2
/Casino/Code/Server/ServerModule/GameFrameModule/AttemperEngineSink.h
79fd609ad034aadbb12112ac04c44b4a18131ebc
[]
no_license
m0o0m/01technology
1a3a5a48a88bec57f6a2d2b5a54a3ce2508de5ea
5e04cbfa79b7e3cf6d07121273b3272f441c2a99
refs/heads/master
2021-01-17T22:12:26.467196
2010-01-05T06:39:11
2010-01-05T06:39:11
null
0
0
null
null
null
null
GB18030
C++
false
false
11,446
h
#ifndef ATTEMPER_ENGINE_SINK_HEAD_FILE #define ATTEMPER_ENGINE_SINK_HEAD_FILE #pragma once #include "Stdafx.h" #include "ServerList.h" #include "CenterSocket.h" #include "DataBaseSink.h" #include "GameServiceExport.h" #include "ServerUserManager.h" ////////////////////////////////////////////////////////////////////////// //结构体定义 //调度参数 struct tagAttemperSinkParameter { //配置变量 DWORD dwCenterServer; //中心地址 tagGameServiceAttrib * pGameServiceAttrib; //服务属性 tagGameServiceOption * pGameServiceOption; //配置信息 //组件变量 CCenterSocket * pCenterSocket; //中心连接 IGameServiceManager * pIGameServiceManager; //管理接口 }; //连接信息结构 struct tagConnectItemInfo { bool bConnect; //是否连接 WORD wRoundID; //循环索引 DWORD dwClientIP; //连接地址 IServerUserItem * pIServerUserItem; //用户指针 }; //查找结构 struct tagFindTable { WORD wResultTableID; //结果桌子 WORD wResultChairID; //结果椅子 }; ////////////////////////////////////////////////////////////////////////// //类说明 class CTableFrame; typedef CArrayTemplate<IServerUserItem *> IServerUserItemArray; //调度引擎钩子 class CAttemperEngineSink : public IAttemperEngineSink, public IGameServiceFrame,public IGameAIManager { //变量定义 //游戏变量 protected: WORD m_wMaxUserItem; //最大用户 CTableFrame * m_pTableFrame; //桌子指针 tagConnectItemInfo * m_pConnectItemInfo; //连接辅助信息 //机器人变量 protected: IServerUserItem * m_pAIAgentUser; //机器人代理用户 IServerUserItemArray m_Active_IAGameUser; //活动机器人 IServerUserItemArray m_Sleep_IAGameUser; //睡觉机器人 //中心服务器 protected: enSocketState m_SocketState; //连接状态 CCenterSocket * m_pCenterSocket; //中心连接 //控制变量 protected: bool m_bShallClose; //关闭标志 bool m_bAllowWisper; //私聊标志 bool m_bAllowRoomChat; //聊天标志 bool m_bAllowGameChat; //聊天标志 bool m_bAllowEnterRoom; //进入标志 bool m_bAllowEnterGame; //进入标志 //配置信息 protected: DWORD m_dwCenterServer; //中心地址 tagGameServiceAttrib * m_pGameServiceAttrib; //服务属性 tagGameServiceOption * m_pGameServiceOption; //服务配置 //游戏模块 protected: HINSTANCE m_hDllInstance; //游戏实例 IGameServiceManager * m_pIGameServiceManager; //管理接口 //组件变量 protected: CServerList m_ServerList; //服务器列表 CQueueServiceEvent m_DataBaseEvent; //数据库通知 CServerUserManager m_ServerUserManager; //用户管理 //接口变量 protected: ITimerEngine * m_pITimerEngine; //定时器接口 IEventService * m_pIEventService; //事件接口 ITCPSocketEngine * m_pITCPSocketEngine; //网络接口 IDataBaseEngine * m_pIDataBaseEngine; //数据库接口 //函数定义 public: //构造函数 CAttemperEngineSink(); //析构函数 virtual ~CAttemperEngineSink(); //基础接口 public: //释放对象 virtual bool __cdecl Release() { if (IsValid()) delete this; return true; } //是否有效 virtual bool __cdecl IsValid() { return AfxIsValidAddress(this,sizeof(CAttemperEngineSink))?true:false; } //接口查询 virtual void * __cdecl QueryInterface(const IID & Guid, DWORD dwQueryVer); //调度接口 public: //调度模块启动 virtual bool __cdecl StartService(IUnknownEx * pIUnknownEx); //调度模块关闭 virtual bool __cdecl StopService(IUnknownEx * pIUnknownEx); //事件处理接口 virtual bool __cdecl OnAttemperEvent(BYTE cbThreadIndex,WORD wIdentifier, void * pDataBuffer, WORD wDataSize, DWORD dwInsertTime); //状态接口 public: //关闭查询 virtual bool __cdecl IsShallClose() { return m_bShallClose; } //私聊查询 virtual bool __cdecl IsAllowWisper() { return m_bAllowWisper; } //聊天查询 virtual bool __cdecl IsAllowRoomChat() { return m_bAllowRoomChat; } //聊天查询 virtual bool __cdecl IsAllowGameChat() { return m_bAllowGameChat; } //进入查询 virtual bool __cdecl IsAllowEnterRoom() { return m_bAllowEnterRoom; } //进入查询 virtual bool __cdecl IsAllowEnterGame() { return m_bAllowEnterGame; } //状态通知 public: //发送状态 virtual bool __cdecl SendTableStatus(WORD wTableID); //发送分数 virtual bool __cdecl SendUserScore(IServerUserItem * pIServerUserItem); //发送状态 virtual bool __cdecl SendUserStatus(IServerUserItem * pIServerUserItem); //网络接口 public: //发送数据 virtual bool __cdecl SendData(IServerUserItem * pIServerUserItem, WORD wMainCmdID, WORD wSubCmdID); //发送数据 virtual bool __cdecl SendData(IServerUserItem * pIServerUserItem, WORD wMainCmdID, WORD wSubCmdID, void * pData, WORD wDataSize); //定时器接口 public: //设置定时器 virtual bool __cdecl SetTableTimer(WORD wTableID, WORD wTimerID, DWORD dwElapse, DWORD dwRepeat, WPARAM wBindParam); //删除定时器 virtual bool __cdecl KillTableTimer(WORD wTableID, WORD wTimerID); //管理接口 public: //删除用户 virtual bool __cdecl DeleteUserItem(IServerUserItem * pIServerUserItem); //检测用户计数 virtual bool __cdecl CheckGameUserRefCount(IServerUserItem * pIServerUserItem); //输出信息 virtual void __cdecl ExportInformation(LPCTSTR pszString, enTraceLevel TraceLevel); //游戏人工智能管理接口 public: //机器人随即操作 virtual bool __cdecl ExecAI_User_RandOperation(); //游戏桌随即操作 virtual bool __cdecl ExecAI_Table_RandOperation(); //配置函数 public: //设置事件 bool SetEventService(IUnknownEx * pIUnknownEx); //配置函数 bool InitAttemperSink(tagAttemperSinkParameter * pAttemperSinkParameter, IUnknownEx * pIUnknownEx); //消息函数 public: //发送房间消息 bool SendRoomMessage(WORD wIndex, WORD wRoundID, WORD wErrCode, LPCTSTR lpszMessage, WORD wMessageType); //发送游戏消息 bool SendGameMessage(WORD wIndex, WORD wRoundID, WORD wErrCode,LPCTSTR lpszMessage, WORD wMessageType); //发送房间消息 bool SendRoomMessage(IServerUserItem * pIServerUserItem, WORD wErrCode,LPCTSTR lpszMessage, WORD wMessageType); //发送游戏消息 bool SendGameMessage(IServerUserItem * pIServerUserItem, WORD wErrCode,LPCTSTR lpszMessage, WORD wMessageType); //事件接口 public: //定时器事件 virtual bool __cdecl OnEventTimer(BYTE cbThreadIndex,WORD wTimerID, WPARAM wBindParam); //数据库事件 virtual bool __cdecl OnEventDataBase(BYTE cbThreadIndex,void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //网络应答事件 virtual bool __cdecl OnEventSocketAccept(BYTE cbThreadIndex,NTY_SocketAcceptEvent * pSocketAcceptEvent); //网络读取事件 virtual bool __cdecl OnEventSocketRead(BYTE cbThreadIndex,CMD_Command Command, void * pDataBuffer, WORD wDataSize, NTY_SocketReadEvent * pSocketReadEvent); //网络关闭事件 virtual bool __cdecl OnEventSocketClose(BYTE cbThreadIndex,NTY_SocketCloseEvent * pSocketCloseEvent); //中心连接事件 public: //中心连接事件 virtual bool __cdecl OnEventCenterSocketConnect(int iErrorCode); //中心读取事件 virtual bool __cdecl OnEventCenterSocketRead(CMD_Command Command, void * pDataBuffer, WORD wDataSize); //中心关闭事件 virtual bool __cdecl OnEventCenterSocketClose(bool bCloseByServer); //数据库函数 private: //用户登录成功 bool OnDBLogonSuccess(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //用户登录失败 bool OnDBLogonError(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //用户读取成功 bool OnDBReadUserSuccess(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //用户读取失败 bool OnDBReadUserError(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //申请游戏局记录-检测信用额度结果 bool OnDBAllocGameRoundAndCheckBetScore(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //申请游戏局记录 bool OnDBAllocGameRound(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //用户额度更新 bool OnDBUserScore(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //读取AI代理用户成功 bool OnDBReadAIAgentUserSuccess(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //读取AI玩家用户成功 bool OnDBReadAIGameUserSuccess(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //读取AI用户完毕 bool OnDBReadAIUserFinish(void * pDataBuffer, WORD wDataSize, NTY_DataBaseEvent * pDataBaseEvent); //网络函数 private: //登录消息处理 bool OnSocketMainLogon(CMD_Command Command, void * pDataBuffer, WORD wDataSize, NTY_SocketReadEvent * pSocketReadEvent); //用户消息处理 bool OnSocketMainUser(CMD_Command Command, void * pDataBuffer, WORD wDataSize, NTY_SocketReadEvent * pSocketReadEvent); //管理消息处理 bool OnSocketMainManager(CMD_Command Command, void * pDataBuffer, WORD wDataSize, NTY_SocketReadEvent * pSocketReadEvent); //框架消息处理 bool OnSocketMainFrame(CMD_Command Command, void * pDataBuffer, WORD wDataSize, NTY_SocketReadEvent * pSocketReadEvent); //游戏消息处理 bool OnSocketMainGame(CMD_Command Command, void * pDataBuffer, WORD wDataSize, NTY_SocketReadEvent * pSocketReadEvent); //辅助函数 private: //获取用户 inline IServerUserItem * GetServerUserItem(WORD wIndex); //发送失败 bool SendLogonFailed(WORD wIndex, WORD wRoundID, WORD wErrorCode); //发送用户 bool SendUserItem(IServerUserItem * pIServerUserItem, WORD wTargetIndex, WORD wTargetRoundID); //发送信息 bool SendGameServerInfo(IServerUserItem * pIServerUserItem, WORD wIndex, WORD wRoundID); //发送登陆成功 bool SendLogonSuccess(WORD wIndex, WORD wRoundID); //查找桌子 bool FindGameTable(IServerUserItem * pIServerUserItem,tagFindTable& result); bool CollectGameNullTable(IServerUserItem * pIServerUserItem, bool bCheckSameIP, CWordArray* result); //判断下线 bool IsLessUser(tagServerUserData * pUserDataHigh,tagServerUserData * pUserDataLess); //智能机器人函数 private: //AI-准备操作 bool AI_UserReady(IServerUserItem * pIServerUserItem); //AI-睡觉操作 bool AI_UserSleep(IServerUserItem * pIServerUserItem); //AI-活动操作 bool AI_UserWakeUp(IServerUserItem * pIServerUserItem); //中心网络 private: //列表消息处理 bool OnCenterMainServerList(CMD_Command Command, void * pDataBuffer, WORD wDataSize); //更新信息消息处理 bool OnCenterMainUpdateInfo(CMD_Command Command, void * pDataBuffer, WORD wDataSize); //管理消息处理 bool OnCenterMainManagement(CMD_Command Command, void * pDataBuffer, WORD wDataSize); }; ////////////////////////////////////////////////////////////////////////// #endif
[ [ [ 1, 300 ] ] ]
2eac2d462dde2c24b7383aec9380db368b8c75ad
6b3fa487428d3e2c66376572fd3c6dd3501b282c
/sapien190/trunk/source/Sandbox/QtSimDemoTarget/mainwindow.cpp
117b0174048293f8ea6709f3abf07ca2f6d5bcf4
[]
no_license
kimbjerge/iirtsf10grp5
8626a10b23ee5cdde9944280c3cd06833e326adb
3cbdd2ded74369d2cd455f63691abc834edfb95c
refs/heads/master
2021-01-25T06:36:48.487881
2010-06-03T09:26:19
2010-06-03T09:26:19
32,920,746
0
0
null
null
null
null
UTF-8
C++
false
false
1,408
cpp
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow), running(false), morph(false) { QIcon icon("qtcreator_logo_16.png"); QString t1 = "ECG scenario 1"; QString t2 = "ECG scenario 2"; QString t3 = "ECG scenario 3"; QString t4 = "ECG scenario 4"; QString t5 = "ECG scenario 5"; QVariant data; ui->setupUi(this); ui->comboBoxScenario->addItem(icon, t1, data); ui->comboBoxScenario->addItem(icon, t2, data); ui->comboBoxScenario->addItem(icon, t3, data); ui->comboBoxScenario->addItem(icon, t4, data); ui->comboBoxScenario->addItem(icon, t5, data); ui->pushButtonStart->setIcon(icon); ui->graphicsViewWave->setWindowIcon(icon); } MainWindow::~MainWindow() { delete ui; } void MainWindow::changeEvent(QEvent *e) { QMainWindow::changeEvent(e); switch (e->type()) { case QEvent::LanguageChange: ui->retranslateUi(this); break; default: break; } } void MainWindow::infusionPump(bool t) { morph = t; if (morph) ui->lineEditMedicine->setText("Morhphine"); else ui->lineEditMedicine->setText("None"); } void MainWindow::start(void) { running = true; } void MainWindow::stop(void) { running = false; }
[ "bjergekim@49e60964-1571-11df-9d2a-2365f6df44e6" ]
[ [ [ 1, 64 ] ] ]
f81a15bca85e31ba35b13bf0d7081e83c7f05a2e
6bdb3508ed5a220c0d11193df174d8c215eb1fce
/Codes/Halak/Vector3RangeSequence.h
8c41a31d218360cb449c30faa9a2f1b0a1603bb0
[]
no_license
halak/halak-plusplus
d09ba78640c36c42c30343fb10572c37197cfa46
fea02a5ae52c09ff9da1a491059082a34191cd64
refs/heads/master
2020-07-14T09:57:49.519431
2011-07-09T14:48:07
2011-07-09T14:48:07
66,716,624
0
0
null
null
null
null
UTF-8
C++
false
false
1,681
h
#pragma once #ifndef __HALAK_VECTOR3RANGESEQUENCE_H__ #define __HALAK_VECTOR3RANGESEQUENCE_H__ # include <Halak/FWD.h> # include <Halak/Asset.h> # include <Halak/Range.h> # include <Halak/Vector3.h> namespace Halak { struct Vector3RangeKeyframe { typedef Range<Vector3> ValueType; ValueType Value; float Duration; float StartTime; Vector3RangeKeyframe(); Vector3RangeKeyframe(ValueType value, float duration); }; class Vector3RangeSequence : public Asset { public: typedef Vector3RangeKeyframe KeyframeType; public: Vector3RangeSequence(); virtual ~Vector3RangeSequence(); void AddKeyframe(const KeyframeType& item); void InsertKeyframe(int index, const KeyframeType& item); void InsertKeyframe(float time, const KeyframeType& item); void RemoveKeyframe(int index); void RemoveKeyframe(float time); void RemoveAllKeyframes(); int GetNumberOfKeyframes(); const KeyframeType& GetKeyframe(int index); const KeyframeType& GetKeyframe(float time); int GetKeyframeIndex(float time); int GetKeyframeIndex(float time, int startIndex); void SetKeyframe(int index, const KeyframeType& item); float GetDuration(); private: SequenceTemplate<KeyframeType>* s; }; } #endif
[ [ [ 1, 54 ] ] ]
54ac7cebf5ee9c28b1ff91a5e7d5da37f35c7649
e591bd735721d78c313b5b21c52fc1d9aae4c0b0
/lsine/SettingsHandler.h
31bde7f74a4baf95e380bfa8c73d36b6337be679
[]
no_license
BB4Win/lsine
1afd4d4f61f72b217f6856a004022b7b443e3379
076fce3a08f3029e9f63c3aef804fe43448fa3e1
refs/heads/master
2020-05-15T13:36:27.998341
2008-04-10T06:45:30
2008-04-10T06:45:30
32,025,420
0
1
null
null
null
null
UTF-8
C++
false
false
5,455
h
/* SettingsHandler.h This work is part of the Litestep Interop Not Emulate Project Copyright (c) 2008, Brian Hartvigsen All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Litestep Interop Not Emulate Project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef __SETTINGSHANDLER_H__ #define __SETTINGSHANDLET_H__ #pragma once #include "lsine.h" class IneSettingsHandler { private: char _RcPath[MAX_PATH]; public: IneSettingsHandler() { DWORD len = ::GetModuleFileName(_hMod, _RcPath, MAX_PATH); for (;_RcPath[len] != '\\'; len--) _RcPath[len] = 0; strcpy(_RcPath, ConfigFileExists("step.rc", _RcPath)); } FILE* LCOpen(LPCSTR path) { if (path == 0) return ::FileOpen(_RcPath); else return ::FileOpen(path); } BOOL LCClose(FILE* f) { return ::FileClose(f); } BOOL LCReadNextCommand(FILE* f, LPSTR v, size_t s) { return ReadNextCommand(f, v, (DWORD)s); } BOOL LCReadNextConfig(FILE * pFile, LPCSTR pszConfig, LPSTR pszValue, size_t cchValue) { char line[MAX_LINE_LENGTH]; BOOL findConfig = FALSE; do { if (!ReadNextCommand(pFile, line, MAX_LINE_LENGTH)) break; if (!_strnicmp(pszConfig, line, lstrlen(pszConfig))) { findConfig = TRUE; strncpy(pszValue, line, cchValue); break; } } while(!findConfig); return findConfig; } int LCTokenize(LPCSTR szString, LPSTR * lpszBuffers, DWORD dwNumBuffers, LPSTR szExtraParameters) { return BBTokenize(szString, lpszBuffers,dwNumBuffers, szExtraParameters); } int GetRCInt(LPCSTR lpKeyName, int nDefault) { return ReadInt(_RcPath, lpKeyName, nDefault); } BOOL GetRCString(LPCSTR lpKeyName, LPSTR value, LPCSTR defStr, int maxLen) { strncpy(value, ReadString(_RcPath, lpKeyName, (LPSTR)(defStr != NULL ? defStr : "")), maxLen); return TRUE; } BOOL GetRCBool(LPCSTR lpKeyName, BOOL ifFound) { char value[MAX_LINE_LENGTH]; GetRCString(lpKeyName, value, "not found", MAX_LINE_LENGTH); if (_stricmp(value, "not found") && _stricmp(value, "off") && _stricmp(value, "no") && _stricmp(value, "false")) return ifFound; return !ifFound; } BOOL GetRCBoolDef(LPCSTR lpKeyName, BOOL bDefault) { return ReadBool(_RcPath, lpKeyName, bDefault == TRUE ? true : false); } COLORREF GetRCColor(LPCSTR lpKeyName, COLORREF colDef) { char color[8]; sprintf(color, "#%02X%02X%02X", GetRValue(colDef), GetGValue(colDef), GetBValue(colDef)); return ReadColor(_RcPath, lpKeyName, color); } BOOL LSGetVariable(LPCSTR pszKeyName, LPSTR pszValue) { strcpy(pszValue, ReadString(_RcPath, pszKeyName, "")); if (pszValue == 0) return FALSE; return TRUE; } BOOL LSGetVariableEx(LPCSTR pszKeyName, LPSTR pszValue, DWORD dwLength) { strncpy(pszValue, ReadString(_RcPath, pszKeyName, ""), dwLength); if (pszValue == 0) return FALSE; return TRUE; } void LSSetVariable(LPCSTR pszKeyName, LPCSTR pszValue) { WriteString(_RcPath, pszKeyName, (LPSTR)pszValue); } int GetRCCoordinate(LPCSTR pszKeyName, int nDefault, int nMaxVal) { char strval[MAX_LINE_LENGTH]; if (!ReadString(_RcPath, strval, NULL)) return nDefault; return ParseCoordinate(strval, nDefault, nMaxVal); } int ParseCoordinate(LPCSTR szString, int nDefault, int nMaxVal) { bool center = false; bool percentail = false; bool negative = false; int val = 0; if (szString[0] == '-') { negative = true; szString++; } else if (szString[0] == '+') szString++; if (IsInString(szString, "%")) percentail = true; if (IsInString(szString, "c")) center = true; for (;*szString >= '0' && *szString <= '9'; szString++) val = val * 10 + (*szString - '0'); if (percentail) val = nMaxVal * val / 100; if (center) { if (negative) val = nMaxVal / 2 - val; else val = nMaxVal / 2 + val; } else if (negative) val = nMaxVal - val; return val; } }; #endif
[ [ [ 1, 205 ] ] ]
6f198bbd3d6303a5fd2cfc0c3fa42f4a335091b6
ed2f2f743085b3f9cc3ca820dbff620b783fc577
/blobTest/rec_blob.h
53258024aa716c53586d2031ab268aa1967fc845
[]
no_license
littlewingsoft/test-sqlite-blob
ae7b745fe8bcc5aac57480e9132807545c31efc1
796359fcd34fee39eff999bc179bf3194ac6f847
refs/heads/master
2019-01-19T17:50:40.792433
2011-08-22T12:03:10
2011-08-22T12:03:10
32,302,166
0
0
null
null
null
null
UHC
C++
false
false
1,245
h
namespace rec_blob { void start(); /*! @brief packet 을 blob 로 추가시킴. @param sqlite3 *db: db 핸들 포인터 @param DWORD dwTime: 페킷이 추가될때의 상대적 시간값. 게임최초 시작시간을 0으로 간주한다. @return none @see */ void reset_time(); /*! @brief packet 을 blob 로 추가시킴. @param sqlite3 *db: db 핸들 포인터 @param DWORD dwTime: 페킷이 추가될때의 상대적 시간값. 게임최초 시작시간을 0으로 간주한다. @return none @see */ void add(const void* blob, size_t size_blob ); /////////////////////////////////////////////////////////////////////////////// /*! @brief last_rec_id 값이후의 blob 필드의 값을 을 가져옴. @param sqlite3 *db: db 핸들 포인터 @param DWORD last_rec_id: 마지막 페킷의 레코드 아이디. 가져올때마다 갱신된다. 이값을 기준으로 다음페킷을 가져올수있기 때문에 중요한 값이다. @param DWORD dwElapsedTime: 현재 페킷을 적용하기까지의 상대적 시간값. @return none @see */ void* get( DWORD& last_rec_id, DWORD& dwElapsedTime ); void save( const std::string& fullPath ); }
[ "jungmoona@e98d6a08-3d45-9aa4-e100-60898896f941" ]
[ [ [ 1, 49 ] ] ]
5872ebfd544d42f1b52ef2f9e9bacbf293e6d928
68127d36b179fd5548a1e593e2c20791db6b48e3
/estruturaDeDados/codbarr.cpp
2581b4f43f1584f75dc30e10012593d16419face
[]
no_license
renatomb/engComp
fa50b962dbdf4f9387fd02a28b3dc130b683ed02
b533c876b50427d44cfdb92c507a6e74b1b7fa79
refs/heads/master
2020-04-11T06:22:05.209022
2006-04-26T13:40:08
2018-12-13T04:25:08
161,578,821
1
0
null
null
null
null
UTF-8
C++
false
false
1,313
cpp
#include <iostream.h> #include <conio.h> #include <stdio.h> #include <string.h> #include <stdlib.h> int calcdv(int num,int dv){ do { dv+=10; }while(num>dv); return (dv-num); } void main() { int vetor[12]; for (int i=0;i<=12;i++) { vetor[i]=-1; } int pos=0,soma_imp=0,soma_par=0,resultado=0; do { clrscr(); cout << "Verificador de Codigo de Barras - Versao 1.0\n(C) 2002 - Renato Monteiro Batista ([email protected])\n\n"; cout << "Informe o codigo de barras: "; for (int i=11; i>=0; i=i-1) { if (vetor[i] < 0) { break; } else { cout << vetor[i]; } } char tecla,valid[10]; strcpy(valid,"0123456789"); do { tecla=getch(); } while (!strchr(valid,tecla) && (tecla != 8)); if ((tecla == 8) && (pos >0)) { pos--; vetor[11-pos]=-1; } else { vetor[11-pos]=tecla-48; cout << tecla-48; pos++; } } while (pos <12); for (i=0; i<12; i++) { if (i%2 == 0) { soma_par=soma_par+vetor[i]; } else { soma_imp=soma_imp+vetor[i]; } } // cout << "\nPasso 1: " << soma_imp; // cout << "\nPasso 2: " << soma_par; soma_par*=3; // cout << "\nPasso 3: " << soma_par; resultado=soma_imp+soma_par; // cout << "\nResultado: " << resultado; cout << "\nDigito verificador: " << calcdv(resultado,10); }
[ [ [ 1, 58 ] ] ]
e8b7883ee5a0efe3ecbced0f33778db9a8b66f42
974a20e0f85d6ac74c6d7e16be463565c637d135
/trunk/applications/maxPlugin/ExportDesc.cpp
0c06340ea51d0c029157575924e4ad753acbf1b5
[]
no_license
Naddiseo/Newton-Dynamics-fork
cb0b8429943b9faca9a83126280aa4f2e6944f7f
91ac59c9687258c3e653f592c32a57b61dc62fb6
refs/heads/master
2021-01-15T13:45:04.651163
2011-11-12T04:02:33
2011-11-12T04:02:33
2,759,246
0
0
null
null
null
null
UTF-8
C++
false
false
5,940
cpp
/* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * * 3. This notice may not be removed or altered from any source distribution. */ #include "Common.h" #include "Export.h" #include "options.h" #include "ExportDesc.h" #define EXPORT_DESC_CLASS_ID Class_ID(0x69f52725, 0x75583868) int ExportAlchemediaDesc::IsPublic() { return TRUE; } void* ExportAlchemediaDesc::Create(BOOL loading) { return new AlchemediaMaxExport(); } const TCHAR* ExportAlchemediaDesc::ClassName() { return GetString(IDS_CLASS_NAME); } SClass_ID ExportAlchemediaDesc::SuperClassID() { return SCENE_EXPORT_CLASS_ID; } Class_ID ExportAlchemediaDesc::ClassID() { return EXPORT_DESC_CLASS_ID; } const TCHAR* ExportAlchemediaDesc::Category() { return GetString(IDS_CATEGORY); } const TCHAR* ExportAlchemediaDesc::InternalName() { return _T("AlchemediaMaxExport"); } HINSTANCE ExportAlchemediaDesc::HInstance() { return hInstance; } ClassDesc* ExportAlchemediaDesc::GetDescriptor() { static ExportAlchemediaDesc desc; return &desc; } //--- ExportDesc ------------------------------------------------------- AlchemediaMaxExport::AlchemediaMaxExport() { } AlchemediaMaxExport::~AlchemediaMaxExport() { } int AlchemediaMaxExport::ExtCount() { //TODO: Returns the number of file name extensions supported by the plug-in. return 1; } const TCHAR *AlchemediaMaxExport::Ext(int n) { //TODO: Return the 'i-th' file name extension (i.e. "3DS"). /* switch (n) { case 0: return _T("mdl"); case 1: return _T("msh"); case 2: return _T("skel"); case 3: return _T("ani"); } */ return _T("ngd"); } const TCHAR *AlchemediaMaxExport::LongDesc() { //TODO: Return long ASCII description (i.e. "Targa 2.0 Image File") return _T("Newton Game Dynamics 2.00 Alchemedia Export"); } const TCHAR *AlchemediaMaxExport::ShortDesc() { //TODO: Return short ASCII description (i.e. "Targa") return _T("Newton Alchemedia"); } const TCHAR *AlchemediaMaxExport::AuthorName() { //TODO: Return ASCII Author name return _T("Julio Jerez"); } const TCHAR *AlchemediaMaxExport::CopyrightMessage() { // Return ASCII Copyright message return _T(""); } const TCHAR *AlchemediaMaxExport::OtherMessage1() { //TODO: Return Other message #1 if any return _T(""); } const TCHAR *AlchemediaMaxExport::OtherMessage2() { //TODO: Return other message #2 in any return _T(""); } unsigned int AlchemediaMaxExport::Version() { //TODO: Return Version number * 100 (i.e. v3.01 = 301) return 100; } void AlchemediaMaxExport::ShowAbout(HWND hWnd) { // Optional } int AlchemediaMaxExport::DoExport(const TCHAR *name,ExpInterface *ei,Interface *i, BOOL suppressPrompts, DWORD options) { m_options.Load(); if(!suppressPrompts) { if (!DialogBoxParam(hInstance, MAKEINTRESOURCE(IDD_EXPORT_DIALOG), GetActiveWindow(), (DLGPROC) ExportDescOptionsDlgProc, (LPARAM)this)) { return TRUE; } } Export exportMesh (name, ei, i, m_options); m_options.Save(); return TRUE; } SClass_ID AlchemediaMaxExport::SuperClassID() { return ExportAlchemediaDesc::GetDescriptor()->SuperClassID(); } Class_ID AlchemediaMaxExport::ClassID() { return ExportAlchemediaDesc::GetDescriptor()->ClassID(); } BOOL CALLBACK AlchemediaMaxExport::ExportDescOptionsDlgProc(HWND hWnd,UINT message,WPARAM wParam,LPARAM lParam) { switch(message) { case WM_INITDIALOG: { AlchemediaMaxExport* const scene = (AlchemediaMaxExport *)lParam; SetWindowLong(hWnd, GWLP_USERDATA, (LONG)scene); CenterWindow(hWnd,GetParent(hWnd)); CheckDlgButton(hWnd, IDC_EXPORT_MESH, scene->m_options.m_exportMesh); CheckDlgButton(hWnd, IDC_EXPORT_MODEL, scene->m_options.m_exportModel); CheckDlgButton(hWnd, IDC_EXPORT_SKELETON, scene->m_options.m_exportSkeleton); CheckDlgButton(hWnd, IDC_EXPORT_ANIMATION, scene->m_options.m_exportAnimation); break; } case WM_COMMAND: { AlchemediaMaxExport* const scene = (AlchemediaMaxExport *)GetWindowLong (hWnd, GWLP_USERDATA); switch (LOWORD(wParam)) { case IDC_EXPORT_MODEL: { scene->m_options.m_exportModel = IsDlgButtonChecked(hWnd, IDC_EXPORT_MODEL) ? 1 : 0; break; } case IDC_EXPORT_MESH: { scene->m_options.m_exportMesh = IsDlgButtonChecked(hWnd, IDC_EXPORT_MESH) ? 1 : 0; break; } case IDC_EXPORT_SKELETON: { scene->m_options.m_exportSkeleton = IsDlgButtonChecked(hWnd, IDC_EXPORT_SKELETON) ? 1 : 0; break; } case IDC_EXPORT_ANIMATION: { scene->m_options.m_exportAnimation = IsDlgButtonChecked(hWnd, IDC_EXPORT_ANIMATION) ? 1 : 0; break; } case IDOK: { EndDialog(hWnd, 1); break; } case IDCANCEL: { EndDialog(hWnd, 0); break; } } break; } case WM_CLOSE: { EndDialog(hWnd, 0); return TRUE; } } return FALSE; }
[ "[email protected]@b7a2f1d6-d59d-a8fe-1e9e-8d4888b32692" ]
[ [ [ 1, 270 ] ] ]
504af1fd0d0f3f95730492a1e3023fa55c03d5a0
c5534a6df16a89e0ae8f53bcd49a6417e8d44409
/trunk/nGENE Framework/NodeFur.cpp
e97f742aa420229f1a993f6e81d3cf070c33313d
[]
no_license
svn2github/ngene
b2cddacf7ec035aa681d5b8989feab3383dac012
61850134a354816161859fe86c2907c8e73dc113
refs/heads/master
2023-09-03T12:34:18.944872
2011-07-27T19:26:04
2011-07-27T19:26:04
78,163,390
2
0
null
null
null
null
UTF-8
C++
false
false
10,581
cpp
/* --------------------------------------------------------------------------- This source file is part of nGENE Tech. Copyright (c) 2006- Wojciech Toman This program is free software. File: NodeFur.cpp Version: 0.05 --------------------------------------------------------------------------- */ #include "NodeFur.h" #include "ITexture.h" #include "Material.h" #include "MaterialLibrary.h" #include "MaterialManager.h" #include "RenderPass.h" #include "Shader.h" #include "ShaderConstant.h" #include "ShaderInstance.h" #include "TextureManager.h" #include <sstream> namespace nGENE { namespace Nature { const float INV_RAND_MAX = 1.0f / (RAND_MAX + 1); inline float rnd(float max=1.0) { return max * INV_RAND_MAX * rand(); } inline float rnd(float min, float max) { return min + (max - min) * INV_RAND_MAX * rand(); } // Initialize static members uint FurTexture::s_TexturesCount = 0; FurTexture::FurTexture(): m_nSize(0), m_nNumLayers(0) { } //---------------------------------------------------------------------- FurTexture::~FurTexture() { m_vTextures.clear(); } //---------------------------------------------------------------------- void FurTexture::cleanup() { m_nSize = 0; m_nNumLayers = 0; TextureManager& mgr = TextureManager::getSingleton(); for(uint i = 0; i < m_vTextures.size(); ++i) mgr.removeTexture(m_vTextures[i]); m_vTextures.clear(); } //---------------------------------------------------------------------- void FurTexture::init(uint _seed, uint _size, uint _num, uint _density) { m_nSize = _size; m_nNumLayers = _num; Colour* data = new Colour[m_nNumLayers * m_nSize * m_nSize]; #define DATA(layer, x, y) data[m_nSize * m_nSize * (layer) + m_nSize * (y) + (x)] // Set all the pixels to the same colour, transparent black! { for(uint layer = 0; layer < m_nNumLayers; ++layer) { for(uint x = 0; x < m_nSize; ++x) { for(uint y = 0; y < m_nSize; ++y) DATA(layer, x, y) = Colour(0, 0, 0, 0); } } } float fLayers = static_cast<float>(m_nNumLayers); // This is slightly different than above, we now do it so that // as we move to the outer layers, we have less and less strands of hair { for(uint layer = 0; layer < m_nNumLayers; ++layer) { float length = float(layer) / fLayers; // 0 to 1 length = 1.0f - length; // 1 to 0 int density = int(_density * length * 6.0f); for(int i = 0; i < density; ++i) { int xrand = (int)rnd(0, (float)m_nSize); int yrand = (int)rnd(0, (float)m_nSize); DATA(layer, xrand, yrand) = Colour(255, 0, 0, 255); } } } // Loop across all the pixels, and make the top layer of pixels more // transparent (top hairs) { for(uint x = 0; x < m_nSize; x++) { for(uint y = 0; y < m_nSize; y++) { for(uint layer = 0; layer < m_nNumLayers; ++layer) { float length = (float)layer / fLayers; // 0 to 1 // tip of the hair is semi-transparent float alpha = DATA(layer, x, y).getAlpha(); if(alpha > 0.0f) DATA(layer, x, y).setAlpha((1.0f - length) * 255.0f); } } } } // Well now, hairs that are closer to the centre are darker as they get less light { for(uint x = 0; x < m_nSize; ++x) { for(uint y = 0; y < m_nSize; ++y) { for(uint layer = 0; layer < m_nNumLayers; ++layer) { float length = (float)layer / fLayers; // 0 to 1 // tip of the hair is semi-transparent float scale = 1.0f - length; scale = max(scale, 0.9f); float alpha = DATA(layer, x, y).getAlpha(); if(alpha > 0.0f) { Colour temp = DATA(layer, x, y); temp.setRed(temp.getRed() * scale); temp.setGreen(temp.getGreen() * scale); temp.setBlue(temp.getBlue() * scale); } } } } } // Create all the textures and fill them with proper data for(uint layer = 0; layer < m_nNumLayers; ++layer) { dword* pixels = new dword[m_nSize * m_nSize]; dword* p = pixels; Colour* pColor = &DATA(layer, 0, 0); for(uint i = 0; i < m_nSize * m_nSize; ++i) *p++ = (pColor++->getDwordARGB()); wostringstream buffer; buffer << L"fur_texture_" << s_TexturesCount << "_" << layer; ITexture* pTexture = TextureManager::getSingleton(). createTexture(buffer.str(), m_nSize, m_nSize, TT_2D, TU_NORMAL, TF_A8R8G8B8); p = pixels; pTexture->setData(p); m_vTextures.push_back(pTexture); NGENE_DELETE_ARRAY(pixels); } ++s_TexturesCount; NGENE_DELETE_ARRAY(data); } //---------------------------------------------------------------------- ITexture* FurTexture::getTexture(uint _index) { if(_index >= m_vTextures.size()) return NULL; return m_vTextures[_index]; } //---------------------------------------------------------------------- //---------------------------------------------------------------------- //---------------------------------------------------------------------- NodeFur::NodeFur(uint _layersNum, uint _textureSize, uint _density, uint _seed): m_nLayersNum(_layersNum), m_nTextureSize(_textureSize), m_nDensity(_density), m_nSeed(_seed), m_fFurLength(0.25f), m_pFurMat(NULL) { } //---------------------------------------------------------------------- NodeFur::~NodeFur() { } //---------------------------------------------------------------------- void NodeFur::init() { m_Texture.init(m_nSeed, m_nTextureSize, m_nLayersNum, m_nDensity); m_pFurMat = MaterialManager::getSingleton().getLibrary(L"default")->getMaterial(L"fur"); if(m_pFurMat) { TextureSampler sampler; sampler.setTexture(m_Texture.getTexture(0)); sampler.setTextureUnit(0); sampler.setAddressingMode(TAM_MIRROR); float fLayers = static_cast<float>(m_nLayersNum); float layer = 0.0f; float length = 0.0f; ShaderConstant constant; constant.setValuesCount(1); constant.setName("layer"); constant.setDefaultValue(&layer); ShaderConstant constant2; constant2.setValuesCount(1); constant2.setName("furLength"); constant2.setDefaultValue(&length); RenderTechnique* pTechnique = m_pFurMat->getActiveRenderTechnique(); RenderPass& pass = pTechnique->getRenderPass(0); pass.getVertexShader()->addShaderConstant(constant); pass.getVertexShader()->addShaderConstant(constant2); pass.setRenderCount(1); pass.addTextureSampler(sampler); for(uint i = 1; i < m_nLayersNum; ++i) { RenderPass newPass = pTechnique->getRenderPass(0); pTechnique->addRenderPass(newPass); RenderPass& pass = pTechnique->getRenderPass(i); TextureSampler& sampler = pass.getTextureSampler(pass.getTextureSamplersNum() - 1); sampler.setTexture(m_Texture.getTexture(i)); sampler.setTextureUnit(0); sampler.setAddressingMode(TAM_MIRROR); layer = float(i) / (fLayers - 1.0f); length = m_fFurLength * layer; ShaderConstant* pConstant = pass.getVertexShader()->getConstant("layer"); if(pConstant) pConstant->setDefaultValue(&layer); pConstant = pass.getVertexShader()->getConstant("furLength"); if(pConstant) pConstant->setDefaultValue(&length); } } } //---------------------------------------------------------------------- void NodeFur::setFurLength(Real _length) { m_fFurLength = _length; float fLayers = static_cast<float>(m_nLayersNum); float layer = 0.0f; float length = 0.0f; RenderTechnique* pTechnique = m_pFurMat->getActiveRenderTechnique(); for(uint i = 0; i < m_nLayersNum; ++i) { RenderPass& pass = pTechnique->getRenderPass(i); layer = float(i) / (fLayers - 1.0f); length = m_fFurLength * layer; ShaderConstant* pConstant = pass.getVertexShader()->getConstant("furLength"); if(pConstant) pConstant->setDefaultValue(&length); } } //---------------------------------------------------------------------- void NodeFur::setLayersNum(uint _layers) { m_Texture.cleanup(); m_nLayersNum = _layers; init(); } //---------------------------------------------------------------------- void NodeFur::setFurDensity(uint _density) { m_Texture.cleanup(); m_nDensity = _density; init(); } //---------------------------------------------------------------------- void NodeFur::setTextureSize(uint _size) { m_Texture.cleanup(); m_nTextureSize = _size; init(); } //---------------------------------------------------------------------- void NodeFur::addSurface(const wstring& _name, Surface& _surf) { NodeVisible::addSurface(_name, _surf); m_vSurfaces.back()->setMaterial(m_pFurMat); calculateBoundingBox(); } //---------------------------------------------------------------------- void NodeFur::serialize(ISerializer* _serializer, bool _serializeType, bool _serializeChildren) { if(_serializeType) _serializer->addObject(this->Type); NodeVisible::serialize(_serializer, false, _serializeChildren); Property <uint> prLayersNum(m_nLayersNum); _serializer->addProperty("LayersCount", prLayersNum); Property <uint> prTexSize(m_nTextureSize); _serializer->addProperty("TextureSize", prTexSize); Property <uint> prDensity(m_nDensity); _serializer->addProperty("Density", prDensity); Property <uint> prSeed(m_nSeed); _serializer->addProperty("Seed", prSeed); Property <float> prLength(m_fFurLength); _serializer->addProperty("Length", prLength); if(_serializeType) _serializer->endObject(this->Type); } //---------------------------------------------------------------------- void NodeFur::deserialize(ISerializer* _serializer) { Property <uint> prLayersNum(m_nLayersNum); _serializer->getProperty("LayersCount", prLayersNum); Property <uint> prTexSize(m_nTextureSize); _serializer->getProperty("TextureSize", prTexSize); Property <uint> prDensity(m_nDensity); _serializer->getProperty("Density", prDensity); Property <uint> prSeed(m_nSeed); _serializer->getProperty("Seed", prSeed); Property <float> prLength(m_fFurLength); _serializer->getProperty("Length", prLength); NodeVisible::deserialize(_serializer); } //---------------------------------------------------------------------- } }
[ "Riddlemaster@fdc6060e-f348-4335-9a41-9933a8eecd57" ]
[ [ [ 1, 372 ] ] ]
29d9e5a1d057e39c39cce3e0e8403f93518bce3f
4ecb7e18f351ee920a6847c7ebd9010b6a5d34ce
/HD/trunk/HuntingDragon/gametutor/header/CDevice.h
cc703fa99898305acb0467f4928973bc3f40dbbc
[]
no_license
dogtwelve/bkiter08-gameloft-internship-2011
505141ea314c234d99652600db5165a22cf041c3
0efc9f009bf12fe4ed36e1abfeb34f346a8c4198
refs/heads/master
2021-01-10T12:16:51.540936
2011-10-27T13:30:50
2011-10-27T13:30:50
46,549,117
0
0
null
null
null
null
UTF-8
C++
false
false
469
h
#ifndef __CDEVICE_H__ #define __CDEVICE_H__ #include "Header.h" #include "SGameConfig.h" #include "CSingleton.h" namespace GameTutor { class CDevice: public CSingleton<CDevice> { friend class CSingleton<CDevice>; public: virtual ~CDevice(void) {} public: void SleepEx(__UINT64 milisec); __UINT64 GetTimer(); protected: CDevice() {} }; #if CONFIG_PLATFORM==PLATFORM_WIN32_VS void StartApp(SGameConfig cnf); #endif } #endif
[ [ [ 1, 27 ] ] ]
66f3cc3b43db7337542a6fcd13e4dbf60e2158f0
41371839eaa16ada179d580f7b2c1878600b718e
/UVa/Volume IV/00406.cpp
c2457d32c7caf346cf9479358216bfd91f04337e
[]
no_license
marinvhs/SMAS
5481aecaaea859d123077417c9ee9f90e36cc721
2241dc612a653a885cf9c1565d3ca2010a6201b0
refs/heads/master
2021-01-22T16:31:03.431389
2009-10-01T02:33:01
2009-10-01T02:33:01
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,106
cpp
///////////////////////////////// // 00406 - Prime Cuts ///////////////////////////////// #include<cstdio> #include<cstring> typedef unsigned short int USI; USI C,i,idx,j,jidx,key,hmp,primes[193],show,shown; unsigned char jump[] = {64,32,16,8,4,2,1}; bool sieve[1600]; USI bin_search(){ for(jidx =0,idx = 128; jidx < 7;jidx++){ if(primes[idx] > key) idx-=jump[jidx]; else if(primes[idx] < key) idx+=jump[jidx]; else break; } return idx; } int main(void){ memset(sieve,1,sizeof(sieve)); primes[0] = 1; primes[1] = 2; for(i=4;i<1600;i+=2) sieve[i] = 0; for(idx = 2, i = 3; idx != 193; i+=2) if(sieve[i]){ primes[idx++] = i; if(i < 40) for(j = i*i; j < 1600; j+=i) sieve[j] = 0; } while(scanf("%u %u",&key,&C)==2){ printf("%u %u:",key,C); hmp = bin_search(); while(primes[hmp] <= key) ++hmp; if(hmp&1) show = (C<<1) - 1; else show = C<<1; if(show > hmp) for(i = 0; i < hmp; printf(" %u",primes[i]),i++); else { i = (hmp>>1)-(show>>1); shown = 0; while(shown!=show) { printf(" %u",primes[i++]); shown++; } } printf("\n\n"); } return 0; }
[ [ [ 1, 46 ] ] ]
f4d9ebbff28ca8b4ce121516695dc3b13f6b6346
989aa92c9dab9a90373c8f28aa996c7714a758eb
/HydraIRC/Transfers.cpp
2ea8aa291651402e4ea0d4b56ac8f4ef6da814b6
[]
no_license
john-peterson/hydrairc
5139ce002e2537d4bd8fbdcebfec6853168f23bc
f04b7f4abf0de0d2536aef93bd32bea5c4764445
refs/heads/master
2021-01-16T20:14:03.793977
2010-04-03T02:10:39
2010-04-03T02:10:39
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,432
cpp
/* HydraIRC Copyright (C) 2002-2006 Dominic Clifton aka Hydra HydraIRC limited-use source license 1) You can: 1.1) Use the source to create improvements and bug-fixes to send to the author to be incorporated in the main program. 1.2) Use it for review/educational purposes. 2) You can NOT: 2.1) Use the source to create derivative works. (That is, you can't release your own version of HydraIRC with your changes in it) 2.2) Compile your own version and sell it. 2.3) Distribute unmodified, modified source or compiled versions of HydraIRC without first obtaining permission from the author. (I want one place for people to come to get HydraIRC from) 2.4) Use any of the code or other part of HydraIRC in anything other than HydraIRC. 3) All code submitted to the project: 3.1) Must not be covered by any license that conflicts with this license (e.g. GPL code) 3.2) Will become the property of the author. */ // Transfers.cpp : implementation of the TransfersManager class // ///////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "HydraIRC.h" TransfersManager::TransfersManager( CEventManager *pEventmanager ) : CListener(pEventmanager) { m_pTransfersView = new CTransfersView(IDI_TRANSFERS, &g_EventManager); m_UpdateTicks = 0; } TransfersManager::~TransfersManager( void ) { // delete all CDCCTransfers instances, which // closes all socket connections and files. while (m_TransferQueue.GetSize() > 0) { delete m_TransferQueue[0]; } delete m_pTransfersView; } void TransfersManager::ReceiveFile(IRCServer *pServer,char *From, char *FileName, unsigned long Address, int Port, unsigned long Size) { // TODO: check we're not receiving the same file from someone else // we might be if the user queues themselves up on several XDCC bots. // if we are already receiving it, we just do nothing, and the remote // host will eventually time out. CDCCTransfer *pDCCT = new CDCCTransfer(pServer,From,FileName,Address,Port,Size,DCC_RECEIVE); } void TransfersManager::QueueFileSend(IRCServer *pServer,char *To, char *FileName, int QueueFlags /* = 0 */) { // TODO: actually queue it! for now we just send ASAP. // The queue can have various critera, e.g: // 1) max sends allowed // 2) don't send if outgoing bytes per second is more than x // 3) send x files at a time to a given user // the flags paramater is to allow the user/scripts to override/adjust the queue positioning CDCCTransfer *pDCCT = new CDCCTransfer(pServer,To,FileName,0,0,0,DCC_SEND); } void TransfersManager::Resume(IRCServer *pServer,char *From, int Port, long Offset) { CDCCTransfer *pDCCTransfer; for (int i = 0 ; i < m_TransferQueue.GetSize() ; i ++) { pDCCTransfer = m_TransferQueue[i]; if (pDCCTransfer->m_Port == Port) { pDCCTransfer->Resume(Offset); } } } void TransfersManager::AddTransfer(CDCCTransfer *pDCCTransfer) { if (!pDCCTransfer) return; m_TransferQueue.Add(pDCCTransfer); m_pTransfersView->AddItem(pDCCTransfer); } void TransfersManager::RemoveTransfer(CDCCTransfer *pDCCTransfer) { if (!pDCCTransfer) return; m_pTransfersView->RemoveItem(pDCCTransfer); m_TransferQueue.Remove(pDCCTransfer); } LRESULT TransfersManager::OnTransferEvent(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { // TODO: something int Event = WSAGETSELECTEVENT(lParam); int Err = WSAGETSELECTERROR(lParam); // Forward the net event to the right transfer CDCCTransfer *pDCCTransfer; for (int i = 0 ; i < m_TransferQueue.GetSize() ; i ++) { pDCCTransfer = m_TransferQueue[i]; if (pDCCTransfer->m_pTransferSocket != NULL && (SOCKET)wParam == pDCCTransfer->m_pTransferSocket->GetSocket()) { pDCCTransfer->OnDCCTransferSocketEvent(Event,Err); break; } if (pDCCTransfer->m_pServerSocket != NULL && (SOCKET)wParam == pDCCTransfer->m_pServerSocket->GetSocket()) { pDCCTransfer->OnDCCServerSocketEvent(Event,Err); break; } } bHandled = TRUE; return 0; } void TransfersManager::UpdateStatus(CDCCTransfer *pDCCTransfer) { m_pTransfersView->UpdateItem(pDCCTransfer); } void TransfersManager::CheckAndUpdateAll( void ) { CDCCTransfer *pDCCTransfer; for (int i = 0 ; i < m_TransferQueue.GetSize(); i ++) { pDCCTransfer = m_TransferQueue[i]; pDCCTransfer->Check(); m_pTransfersView->UpdateStats(pDCCTransfer); // stats, not status :) // Update every X seconds. m_UpdateTicks++; if (m_UpdateTicks >= INTPREF(PREF_nTransferViewUpdateFrequency)) { m_UpdateTicks = 0; m_pTransfersView->UpdateItem(pDCCTransfer); } } } LRESULT TransfersManager::OnProcessDCCs(UINT /*uMsg*/, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { int ActiveDCCSends = 0; CDCCTransfer *pDCCTransfer; for (int i = 0 ; i < m_TransferQueue.GetSize(); i ++) { pDCCTransfer = m_TransferQueue[i]; if (pDCCTransfer->ProcessFastDCCSend()) ActiveDCCSends++; } if (ActiveDCCSends != 0) g_pMainWnd->PostMessage(WM_PROCESSDCCS,0,0); // come back here soon! bHandled = TRUE; return 0; } int TransfersManager::GetActiveTransferCount( int Type ) { CDCCTransfer *pDCCTransfer; int Count = 0; for (int i = 0 ; i < m_TransferQueue.GetSize(); i ++) { pDCCTransfer = m_TransferQueue[i]; if (pDCCTransfer->IsActive() && (Type == DCC_ANY || pDCCTransfer->m_Type == Type)) Count ++; } return Count; } void TransfersManager::OnEvent(int EventID, void *pData) { switch(EventID) { case EV_TICK: { CheckAndUpdateAll(); } break; } } // return a pointer to an active transfer using this port, or NULL // used when doing send resumes and allocating a port. CDCCTransfer *TransfersManager::FindTransferByPort(unsigned short Port, CDCCTransfer *pIgnore /* = NULL */) { CDCCTransfer *pDCCTransfer; for (int i = 0 ; i < m_TransferQueue.GetSize() ; i ++) { pDCCTransfer = m_TransferQueue[i]; if (pDCCTransfer == pIgnore) continue; if (pDCCTransfer->m_Port == Port && // correct port? pDCCTransfer->IsActive()) // active? return pDCCTransfer; } return NULL; } BOOL TransfersManager::IsDuplicate(CDCCTransfer *pNewTransfer) { CDCCTransfer *pDCCTransfer; for (int i = 0 ; i < m_TransferQueue.GetSize() ; i ++) { pDCCTransfer = m_TransferQueue[i]; if (pDCCTransfer == pNewTransfer) continue; // ignore ourself if (pNewTransfer->m_Type != DCC_RECEIVE) continue; // ignore anything other than dcc receives. if (pDCCTransfer->m_Type != pNewTransfer->m_Type) continue; // ignore transfers of different types // check for same local filename.. if (stricmp(pDCCTransfer->m_LocalFileName,pNewTransfer->m_LocalFileName) == 0) { // see if other transfer is currently active if (!pDCCTransfer->IsActive()) continue; // ignore this one, it's not active. // ooh! this transfer is active, the new one must be a duplicate return TRUE; } } return FALSE; }
[ "hydra@b2473a34-e2c4-0310-847b-bd686bddb4b0" ]
[ [ [ 1, 252 ] ] ]
a29f61b3e2b715ab2537fb53eef9e663a87110a5
4331cbdab25fab5c3d5a08cddb3165d33b29f133
/main.cpp
aab8d65e8111ffd315e49f74a59f7d63d74db4a2
[ "Apache-2.0" ]
permissive
mangchiandjjoe/JsonBenchmarkCpp
e1725bea642325c5a8bf9ab11360b92d4c57ca85
96a2ff36199243b3b1b73992cc0e4c5771f631c2
refs/heads/master
2021-01-15T19:18:41.296144
2011-11-26T20:10:46
2011-11-26T20:10:46
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,351
cpp
/* * JsonBenchmarkCpp * A small program to compare perfomance of different json libs available * * Currently supporting following libs, * * 1. Cajun * 2. json_spirit * 3. libjson * * Copyright Lijo Antony 2011 * Distributed under Apache License, Version 2.0 * see accompanying file LICENSE.txt */ #include <iostream> #include <iomanip> #include <fstream> #include <sstream> #include <time.h> //Cajun headers #include <json/reader.h> #include <json/writer.h> #include <json/elements.h> //json_spirit headers #include <json_spirit.h> //libjson headers #include <libjson.h> /* * @brief A function to print time duration * * @param start starttime * @param end endtime * @return none */ void printTimeDiff(timespec start, timespec end) { timespec temp; if (end.tv_nsec > start.tv_nsec) { temp.tv_sec = end.tv_sec - start.tv_sec; temp.tv_nsec = end.tv_nsec - start.tv_nsec; } else { temp.tv_sec = end.tv_sec - start.tv_sec - 1; temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; } unsigned long long int usecs = (unsigned long long int)(temp.tv_sec) * 1000000 + (unsigned long long int)(temp.tv_nsec / 1000); std::cout << std::setw(25) << std::left << usecs; } /* * @brief function for cajun benchmark * * @param jsonString test data as a string * @return none */ void cajunBenchmark(std::string jsonString) { std::istringstream buff(jsonString); timespec time1, time2; json::Object obj; std::cout << std::setw(25) << "cajun"; //Parsing the string clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time1); json::Reader::Read(obj, buff); clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2); printTimeDiff(time1, time2); //Serialize to string std::ostringstream out; clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time1); json::Writer::Write(obj, out); clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2); printTimeDiff(time1, time2); std::cout << std::endl; } /* * @brief function for json_spirit benchmark * * @param jsonString test data as a string * @return none */ void jsonspiritBenchmark(std::string jsonString) { std::istringstream buff(jsonString); timespec time1, time2; json_spirit::mValue value; std::cout << std::setw(25) << "json_spirit"; //Parsing the string clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time1); json_spirit::read( buff, value ); clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2); printTimeDiff(time1, time2); //Serialize to string std::ostringstream out; clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time1); json_spirit::write(value, out); clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2); printTimeDiff(time1, time2); std::cout << std::endl; } /* * @brief function for libjson benchmark * * @param jsonString test data as a string * @return none */ void libjsonBenchmark(std::string jsonString) { timespec time1, time2; std::cout << std::setw(25) << "libjson"; //Parsing the string clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time1); JSONNode n = libjson::parse(jsonString); clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2); printTimeDiff(time1, time2); //Serialize to string std::string out; clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time1); out = n.write(); clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &time2); printTimeDiff(time1, time2); std::cout << std::endl; } int main() { std::ifstream ifs("data.json", std::ifstream::in); std::string buff = ""; if(ifs.is_open()) { while(!ifs.eof()) { std::string temp; ifs >> temp; buff += temp; } } if(buff.empty()) { std::cout << "No data available for test, exiting!" << std::endl; exit(1); } std::cout << std::setw(25) << std::left << "#library" << std::setw(25) << std::left << "parsing" << std::setw(25) << std::left << "writing" << std::endl; cajunBenchmark(buff); jsonspiritBenchmark(buff); libjsonBenchmark(buff); return 0; }
[ [ [ 1, 184 ] ] ]
f8a562b342826d33a605f341b3a34e336a869ade
fd0221edcf44c190efadd6d8b13763ef5bcbc6f6
/fer_h264/fer_h264/intra.cpp
5174cfa5e789a6d28c9c7367875b9c6378440580
[]
no_license
zoltanmaric/h264-fer
2ddb8ac5af293dd1a30d9ca37c8508377745d025
695c712a74a75ad96330613e5dd24938e29f96e6
refs/heads/master
2021-01-01T15:31:42.218179
2010-06-17T21:09:11
2010-06-17T21:09:11
32,142,996
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
27,374
cpp
#include "intra.h" #include "inttransform.h" #include "scaleTransform.h" #include "quantizationTransform.h" #include "residual.h" #include "h264_math.h" #include "h264_globals.h" #include "headers_and_parameter_sets.h" #include "rbsp_decoding.h" #include "rbsp_encoding.h" #include "openCL_functions.h" // TEST: #include <time.h> const int intraToChromaPredMode[4] = {2,1,0,3}; const int subMBNeighbours[16][2] = { { 5, 10}, { 0, 11}, { 7, 0}, { 2, 1}, { 1, 14}, { 4, 15}, { 3, 4}, { 6, 5}, {13, 2}, { 8, 3}, {15, 8}, {10, 9}, { 9, 6}, {12, 7}, {11, 12}, {14, 13}}; // Derivation process for neighbouring 4x4 luma blocks, // equivalent to (6.4.10.4) // nA - neighbour (A if true, B if false, see figure 6-12) void getNeighbourAddresses(int luma4x4BlkIdx, bool nA, int *mbAddrN, int *luma4x4BlkIdxN) { if (nA == true) { if ((luma4x4BlkIdx == 0) || (luma4x4BlkIdx == 2) || (luma4x4BlkIdx == 8) || (luma4x4BlkIdx == 10)) { if (CurrMbAddr % PicWidthInMbs == 0) { *mbAddrN = -1; *luma4x4BlkIdxN = -1; } else { *mbAddrN = CurrMbAddr - 1; *luma4x4BlkIdxN = subMBNeighbours[luma4x4BlkIdx][0]; } } else { *mbAddrN = CurrMbAddr; *luma4x4BlkIdxN = subMBNeighbours[luma4x4BlkIdx][0]; } } else { if ((luma4x4BlkIdx == 0) || (luma4x4BlkIdx == 1) || (luma4x4BlkIdx == 4) || (luma4x4BlkIdx == 5)) { if (CurrMbAddr < PicWidthInMbs) { *mbAddrN = -1; *luma4x4BlkIdxN = -1; } else { *mbAddrN = CurrMbAddr - PicWidthInMbs; *luma4x4BlkIdxN = subMBNeighbours[luma4x4BlkIdx][1]; } } else { *mbAddrN = CurrMbAddr; *luma4x4BlkIdxN = subMBNeighbours[luma4x4BlkIdx][1]; } } } // Derivation process for Intra4x4PredMode (8.3.1.1) void getIntra4x4PredMode(int luma4x4BlkIdx) { int luma4x4BlkIdxA, luma4x4BlkIdxB; int mbAddrA, mbAddrB; getNeighbourAddresses(luma4x4BlkIdx, true, &mbAddrA, &luma4x4BlkIdxA); getNeighbourAddresses(luma4x4BlkIdx, false, &mbAddrB, &luma4x4BlkIdxB); // no checking whether the neighbouring // macroblocks are coded as P-macroblocks bool dcPredModePredictedFlag = false; if ((mbAddrA == -1) || (mbAddrB == -1) || (((mbAddrA != -1) || (mbAddrB != -1)) && (pps.constrained_intra_pred_flag == 1))) dcPredModePredictedFlag = true; int absIdx = (CurrMbAddr << 4) + luma4x4BlkIdx; int intraMxMPredModeA, intraMxMPredModeB; if (dcPredModePredictedFlag == true) // if dc mode is predicted { intraMxMPredModeA = 2; intraMxMPredModeB = 2; } else { if (MbPartPredMode(mb_type_array[mbAddrA],0) != Intra_4x4) // if the macroblock of the neighbouring { // submacroblock is not using 4x4 prediction intraMxMPredModeA = 2; // dc prediction mode } else { int absIdxA = (mbAddrA << 4) + luma4x4BlkIdxA; intraMxMPredModeA = Intra4x4PredMode[absIdxA]; } if (MbPartPredMode(mb_type_array[mbAddrB],0) != Intra_4x4) // if the macroblock of the neighbouring { // submacroblock is not using 4x4 prediction intraMxMPredModeB = 2; // dc prediction mode } else { int absIdxB = (mbAddrB << 4) + luma4x4BlkIdxB; intraMxMPredModeB = Intra4x4PredMode[absIdxB]; } } // the intra4x4 prediction mode for the current block is the more probable // prediction mode of the neighbouring two blocks; the more probable mode // has the smaller value int predIntra4x4PredMode = (intraMxMPredModeA <= intraMxMPredModeB) ? intraMxMPredModeA : intraMxMPredModeB; if (prev_intra4x4_pred_mode_flag[luma4x4BlkIdx] == true) { Intra4x4PredMode[absIdx] = predIntra4x4PredMode; } else { if (rem_intra4x4_pred_mode[luma4x4BlkIdx] < predIntra4x4PredMode) Intra4x4PredMode[absIdx] = rem_intra4x4_pred_mode[luma4x4BlkIdx]; else Intra4x4PredMode[absIdx] = rem_intra4x4_pred_mode[luma4x4BlkIdx] + 1; } } #define p(x,y) (((x) == -1) ? p[(y) + 1] : p[(x) + 5]) // (8.3.1.2.1) void Intra_4x4_Vertical(int *p, int pred4x4L[4][4]) { for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { pred4x4L[y][x] = p(x,-1); } } } // (8.3.1.2.2) void Intra_4x4_Horizontal(int *p, int pred4x4L[4][4]) { for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { pred4x4L[y][x] = p(-1,y); } } } // (8.3.1.2.3) void Intra_4x4_DC(int *p, int pred4x4L[4][4]) { int result = 128; if (p(-1,-1) != -1) // if all available result = (p(0,-1) + p(1,-1) + p(2,-1) + p(3,-1) + p(-1,0) + p(-1,1) + p(-1,2) + p(-1,3) + 4) >> 3; else if (p(-1,0) != -1) // if left available result = (p(-1,0) + p(-1,1) + p(-1,2) + p(-1,3) + 2) >> 2; else if (p(0,-1) != -1) // if top available result = (p(0,-1) + p(1,-1) + p(2,-1) + p(3,-1) + 2) >> 2; for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { pred4x4L[y][x] = result; } } } // (8.3.1.2.4) void Intra_4x4_Diagonal_Down_Left(int *p, int pred4x4L[4][4]) { for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { pred4x4L[y][x] = (p(x+y,-1) + (p(x+y+1,-1) << 1) + p(x+y+2,-1) + 2) >> 2; } } pred4x4L[3][3] = (p(6,-1) + 3*p(7,-1) + 2) >> 2; } // (8.3.1.2.5) void Intra_4x4_Diagonal_Down_Right(int *p, int pred4x4L[4][4]) { for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { if (x > y) pred4x4L[y][x] = (p(x-y-2,-1) + (p(x-y-1,-1) << 1) + p(x-y,-1) + 2) >> 2; else if (x < y) pred4x4L[y][x] = (p(-1,y-x-2) + (p(-1,y-x-1) << 1) + p(-1,y-x) + 2) >> 2; else pred4x4L[y][x] = (p(0,-1) + (p(-1,-1) << 1) + p(-1,0) + 2) >> 2; } } } // (8.3.1.2.6) void Intra_4x4_Vertical_Right(int *p, int pred4x4L[4][4]) { for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { int zVR = (x << 1) - y; if ((zVR == 0) || (zVR == 2) || (zVR == 4) || (zVR == 6)) pred4x4L[y][x] = (p(x-(y>>1)-1,-1) + p(x-(y>>1),-1) + 1) >> 1; else if ((zVR == 1) || (zVR == 3) || (zVR == 5)) pred4x4L[y][x] = (p(x-(y>>1)-2,-1) + (p(x-(y>>1)-1,-1) << 1) + p(x-(y>>1),-1) + 2) >> 2; else if (zVR == -1) pred4x4L[y][x] = (p(-1,0) + (p(-1,-1) << 1) + p(0,-1) + 2) >> 2; else pred4x4L[y][x] = (p(-1,y-1) + (p(-1,y-2) << 1) + p(-1,y-3) + 2) >> 2; } } } // (8.3.1.2.7) void Intra_4x4_Horizontal_Down(int *p, int pred4x4L[4][4]) { for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { int zHD = (y << 1) - x; if ((zHD == 0) || (zHD == 2) || (zHD == 4) || (zHD == 6)) pred4x4L[y][x] = (p(-1,y-(x>>1)-1) + p(-1,y-(x>>1)) + 1) >> 1; else if ((zHD == 1) || (zHD == 3) || (zHD == 5)) pred4x4L[y][x] = (p(-1,y-(x>>1)-2) + (p(-1,y-(x>>1)-1) << 1) + p(-1,y-(x>>1)) + 2) >> 2; else if (zHD == -1) pred4x4L[y][x] = (p(-1,0) + (p(-1,-1) << 1) + p(0,-1) + 2) >> 2; else pred4x4L[y][x] = (p(x-1,-1) + (p(x-2,-1) << 1) + p(x-3,-1) + 2) >> 2; } } } // (8.3.1.2.8) void Intra_4x4_Vertical_Left(int *p, int pred4x4L[4][4]) { for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { if ((y == 0) || (y==2)) pred4x4L[y][x] = (p(x+(y>>1),-1) + p(x+(y>>1)+1,-1) + 1) >> 1; else pred4x4L[y][x] = (p(x+(y>>1),-1) + (p(x+(y>>1)+1,-1) << 1) + p(x+(y>>1)+2,-1) + 2) >> 2; } } } // (8.3.1.2.9) void Intra_4x4_Horizontal_Up(int *p, int pred4x4L[4][4]) { for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { int zHU = x + (y << 1); if ((zHU == 0) || (zHU == 2) || (zHU == 4)) pred4x4L[y][x] = (p(-1,y+(x>>1)) + p(-1,y+(x>>1)+1) + 1) >> 1; else if ((zHU == 1) || (zHU == 3)) pred4x4L[y][x] = (p(-1,y+(x>>1)) + (p(-1,y+(x>>1)+1) << 1) + p(-1,y+(x>>1)+2) + 2) >> 2; else if (zHU == 5) pred4x4L[y][x] = (p(-1,2) + 3*p(-1,3) + 2) >> 2; else pred4x4L[y][x] = p(-1,3); } } } void FetchPredictionSamplesIntra4x4(int luma4x4BlkIdx, int p[13]) { int xP = ((CurrMbAddr%PicWidthInMbs)<<4); int yP = ((CurrMbAddr/PicWidthInMbs)<<4); int x0 = Intra4x4ScanOrder[luma4x4BlkIdx][0]; int y0 = Intra4x4ScanOrder[luma4x4BlkIdx][1]; int x = xP + x0; int y = yP + y0; int xF = x - 1; int yF = y - 1; int frameIdx = yF * frame.Lwidth + xF; if ((xF < 0) || (yF < 0)) { p[0] = -1; } else { p[0] = frame.L[frameIdx]; } xF = x - 1; yF = y; if (xF < 0) { for (int i = 1; i < 5; i++) { p[i] = -1; // Unavailable for prediction } } else { for (int i = 1; i < 5; i++) { frameIdx = yF * frame.Lwidth + xF; p[i] = frame.L[frameIdx]; yF++; } } xF = x; yF = y - 1; if (yF < 0) { for (int i = 5; i < 13; i++) { // Samples above and above-right marked as unavailable for prediction p[i] = -1; } } else { for (int i = 5; i < 9; i++) { frameIdx = yF * frame.Lwidth + xF; p[i] = frame.L[frameIdx]; xF++; } xF = x + 4; bool edgeSubMB = (xF >= frame.Lwidth) || ((x0 == 12) && (y0 > 0)); if ((edgeSubMB == true) || (luma4x4BlkIdx == 3) || (luma4x4BlkIdx == 11)) { xF = x + 3; frameIdx = yF * frame.Lwidth + xF; for (int i = 9; i < 13; i++) { // Copy the rightmost prediction sample to // the samples above-right p[i] = frame.L[frameIdx]; } } else { for (int i = 9; i < 13; i++) { frameIdx = yF * frame.Lwidth + xF; p[i] = frame.L[frameIdx]; xF++; } } } } void performIntra4x4Prediction(int luma4x4BlkIdx, int intra4x4PredMode, int pred4x4L[4][4], int p[13]) { switch (intra4x4PredMode) { case 0: Intra_4x4_Vertical(p, pred4x4L); break; case 1: Intra_4x4_Horizontal(p, pred4x4L); break; case 2: Intra_4x4_DC(p, pred4x4L); break; case 3: Intra_4x4_Diagonal_Down_Left(p, pred4x4L); break; case 4: Intra_4x4_Diagonal_Down_Right(p, pred4x4L); break; case 5: Intra_4x4_Vertical_Right(p, pred4x4L); break; case 6: Intra_4x4_Horizontal_Down(p, pred4x4L); break; case 7: Intra_4x4_Vertical_Left(p, pred4x4L); break; case 8: Intra_4x4_Horizontal_Up(p, pred4x4L); break; } } // Intra_4x4 sample prediction (8.3.1.2) void Intra4x4SamplePrediction(int luma4x4BlkIdx, int intra4x4PredMode, int pred4x4L[4][4]) { int p[13]; FetchPredictionSamplesIntra4x4(luma4x4BlkIdx, p); performIntra4x4Prediction(luma4x4BlkIdx,intra4x4PredMode,pred4x4L,p); } #undef p #define p(x,y) (((x) == -1) ? p[(y) + 1] : p[(x) + 17]) // (8.3.3.1) void Intra_16x16_Vertical(int *p, int predL[16][16]) { for (int y = 0; y < 16; y++) { for (int x = 0; x < 16; x++) { predL[y][x] = p(x,-1); } } } // (8.3.3.2) void Intra_16x16_Horizontal(int *p, int predL[16][16]) { for (int y = 0; y < 16; y++) { for (int x = 0; x < 16; x++) { predL[y][x] = p(-1,y); } } } // (8.3.3.3) void Intra_16x16_DC(int *p, int predL[16][16]) { int sumXi = 0; // = sum(p[x',-1]) | x € (0..15) int sumYi = 0; // = sum(p[-1,y']) | y € (0..15) for (int i = 0; i < 16; i++) { sumXi += p(i,-1); sumYi += p(-1,i); } int result = 128; if (p[0] != -1) // if all available result = (sumXi + sumYi + 16) >> 5; else if (p[1] != -1) // if left available result = (sumYi + 8) >> 4; else if (p[17] != -1) // if top available result = (sumXi + 8) >> 4; for (int y = 0; y < 16; y++) { for (int x = 0; x < 16; x++) { predL[y][x] = result; } } } // (8.3.3.4) void Intra_16x16_Plane(int *p, int predL[16][16]) { int H = 0, V = 0; for (int i = 0; i <= 7; i++) { H += (i+1)*(p(8+i,-1) - p(6-i,-1)); V += (i+1)*(p(-1,8+i) - p(-1,6-i)); } int a = ((p(-1,15) + p(15,-1)) << 4); int b = (5*H + 32) >> 6; int c = (5*V + 32) >> 6; for (int y = 0; y < 16; y++) { for (int x = 0; x < 16; x++) { predL[y][x] = Clip1Y((a + b*(x-7) + c*(y-7) + 16) >> 5); } } } void FetchPredictionSamplesIntra16x16(int p[33]) { int xF, yF, frameIdx; int xP = ((CurrMbAddr%PicWidthInMbs)<<4); int yP = ((CurrMbAddr/PicWidthInMbs)<<4); // p[-1,-1]: xF = xP - 1; yF = yP - 1; frameIdx = yF*frame.Lwidth + xF; p[0] = ((xF >= 0) && (yF >= 0)) ? frame.L[frameIdx] : -1; // p[-1,0]..p[-1,15]: xF = xP - 1; yF = yP; frameIdx = yF*frame.Lwidth + xF; for (int i = 1; i < 17; i++) { p[i] = (xF >= 0) ? frame.L[frameIdx] : -1; frameIdx += frame.Lwidth; } // p[0,-1]..p[15,-1]: xF = xP; yF = yP - 1; frameIdx = yF*frame.Lwidth + xF; for (int i = 17; i < 33; i++) { p[i] = (yF >= 0) ? frame.L[frameIdx] : -1; frameIdx++; } } void inline performIntra16x16Prediction(int *p, int predL[16][16], int Intra16x16PredMode) { switch(Intra16x16PredMode) { case 0: Intra_16x16_Vertical(p, predL); break; case 1: Intra_16x16_Horizontal(p, predL); break; case 2: Intra_16x16_DC(p, predL); break; case 3: Intra_16x16_Plane(p, predL); break; } } // (8.3.3) void Intra16x16SamplePrediction(int predL[16][16], int Intra16x16PredMode) { int p[33]; FetchPredictionSamplesIntra16x16(p); performIntra16x16Prediction(p,predL,Intra16x16PredMode); } #undef p #define p(x,y) (((x) == -1) ? p[(y) + 1] : p[(x) + 9]) #define pCr(x,y) (((x) == -1) ? pCr[(y) + 1] : pCr[(x) + 9]) #define pCb(x,y) (((x) == -1) ? pCb[(y) + 1] : pCb[(x) + 9]) // (8.3.4.1) void Intra_Chroma_DC(int *p, int predC[8][8]) { // chroma4x4BlkIdx € [0..(1<<ChromaArrayType+1)) - 1]; ChromaArrayType == 1 in baseline for (int chroma4x4BlkIdx = 0; chroma4x4BlkIdx < 4; chroma4x4BlkIdx++) { int x0 = (chroma4x4BlkIdx & 1) << 2; int y0 = (chroma4x4BlkIdx >> 1) << 2; int sumXi = 0, sumYi = 0; for (int i = 0; i < 4; i++) { sumXi += p(i+x0,-1); sumYi += p(-1,i+y0); } // check availability of neighbouring samples: bool leftAvailable = p(-1, y0) != -1; bool topAvailable = p(x0, -1) != -1; bool allAvailable = topAvailable && leftAvailable; int result = 128; // == 1 << (BitDepthC-1) (BitDepthC is always equal to 8 in the baseline profile) if ((x0 == 0) && (y0 == 0) || (x0 > 0) && (y0 > 0)) { if (allAvailable) result = (sumXi + sumYi + 4) >> 3; else if (leftAvailable) result = (sumYi + 2) >> 2; else if (topAvailable) result = (sumXi + 2) >> 2; for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { predC[x+x0][y+y0] = result; } } } else if ((x0 > 0) && (y0 == 0)) { if (topAvailable) result = (sumXi + 2) >> 2; else if (leftAvailable) result = (sumYi + 2) >> 2; for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { predC[y+y0][x+x0] = result; } } } else { if (leftAvailable) result = (sumYi + 2) >> 2; else if (topAvailable) result = (sumXi + 2) >> 2; for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { predC[y+y0][x+x0] = result; } } } } } // (8.3.4.2) void Intra_Chroma_Horizontal(int *p, int predC[8][8]) { for (int y = 0; y < MbHeightC; y++) { for (int x = 0; x < MbWidthC; x++) { predC[y][x] = p(-1,y); } } } // (8.3.4.3) void Intra_Chroma_Vertical(int *p, int predC[8][8]) { for (int y = 0; y < MbHeightC; y++) { for (int x = 0; x < MbWidthC; x++) { predC[y][x] = p(x,-1); } } } // (8.3.4.4) void Intra_Chroma_Plane(int *p, int predC[8][8]) { // xCF, yCF == 0, because // xCF = (ChromaArrayType == 3) ? 4 : 0; ChromaArrayType == 1 when baseline // yCF = (ChromaArrayType != 1) ? 4 : 0; ChromaArrayType == 1 when baseline int H = 0, V = 0; for (int i = 0; i <= 3; i++) H += (i+1)*(p((4+i),-1) - p((2-i),-1)); for (int i = 0; i <= 3; i++) V += (i+1)*(p(-1,(4+i)) - p(-1,(2-i))); int a = ((p(-1, (MbHeightC - 1)) + p((MbWidthC - 1), -1)) << 4); int b = (34 * H + 32) >> 6; // Norm: ChromaArrayType == 0, so there's no 29*(ChromaArrayType == 3) coefficient int c = (34 * V + 32) >> 6; // Norm: ChromaArrayType == 0, so there's no 29*(ChromaArrayType != 1) coefficient for (int y = 0; y < MbHeightC; y++) { for (int x = 0; x < MbWidthC; x++) { predC[y][x] = Clip1C((a + b*(x-3) + c*(y-3) + 16) >> 5); } } } // (8.3.4) void IntraChromaSamplePrediction(int predCr[8][8], int predCb[8][8]) { int pCr[17], pCb[17]; int xM = ((CurrMbAddr%PicWidthInMbs)<<3); int yM = ((CurrMbAddr/PicWidthInMbs)<<3); // p[-1, -1]: int xF = xM - 1; int yF = yM - 1; if ((xF < 0) || (yF < 0)) { pCb[0] = -1; pCr[0] = -1; } else { pCb[0] = frame.C[0][yF*frame.Cwidth + xF]; pCr[0] = frame.C[1][yF*frame.Cwidth + xF]; } // p[-1,0]..p[-1,7]: xF = xM - 1; yF = yM; for (int i = 1; i < 9; i++) { if (xF < 0) { pCb[i] = -1; pCr[i] = -1; } else { pCb[i] = frame.C[0][yF*frame.Cwidth + xF]; pCr[i] = frame.C[1][yF*frame.Cwidth + xF]; yF++; } } // p[0,-1]..p[7,-1]: xF = xM; yF = yM - 1; for (int i = 9; i < 17; i++) { if (yF < 0) { pCb[i] = -1; pCr[i] = -1; } else { pCb[i] = frame.C[0][yF*frame.Cwidth + xF]; pCr[i] = frame.C[1][yF*frame.Cwidth + xF]; xF++; } } switch(intra_chroma_pred_mode) { case 0: Intra_Chroma_DC(pCb, predCb); Intra_Chroma_DC(pCr, predCr); break; case 1: Intra_Chroma_Horizontal(pCb, predCb); Intra_Chroma_Horizontal(pCr, predCr); break; case 2: Intra_Chroma_Vertical(pCb, predCb); Intra_Chroma_Vertical(pCr, predCr); break; case 3: Intra_Chroma_Plane(pCb, predCb); Intra_Chroma_Plane(pCr, predCr); break; } } // predL, predCr and predCb are the output prediction samples // with dimensions 16x16, 8x8 and 8x8 respectively void intraPrediction(int predL[16][16], int predCr[8][8], int predCb[8][8]) { if (MbPartPredMode(mb_type , 0) == Intra_4x4) { for (int luma4x4BlkIdx = 0; luma4x4BlkIdx < 16; luma4x4BlkIdx++) { getIntra4x4PredMode(luma4x4BlkIdx); // the luma prediction samples int pred4x4L[4][4]; int absIdx = (CurrMbAddr << 4) + luma4x4BlkIdx; Intra4x4SamplePrediction(luma4x4BlkIdx, Intra4x4PredMode[absIdx], pred4x4L); int x0 = Intra4x4ScanOrder[luma4x4BlkIdx][0]; int y0 = Intra4x4ScanOrder[luma4x4BlkIdx][1]; for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { predL[y0+y][x0+x] = pred4x4L[y][x]; } } transformDecoding4x4LumaResidual(LumaLevel, predL, luma4x4BlkIdx, QPy); } } else { int Intra16x16PredMode; if ((shd.slice_type%5)==P_SLICE) { Intra16x16PredMode = I_Macroblock_Modes[mb_type-5][4]; } else { Intra16x16PredMode = I_Macroblock_Modes[mb_type][4]; } Intra16x16SamplePrediction(predL, Intra16x16PredMode); } // CHROMA: IntraChromaSamplePrediction(predCr, predCb); } // ENCODING: // Çalculates the sum of absolute transformed differences // for a predicted 4x4 luma submacroblock. int satdLuma4x4(int pred4x4L[4][4], int luma4x4BlkIdx) { int satd = 0; int xP = ((CurrMbAddr%PicWidthInMbs)<<4); int yP = ((CurrMbAddr/PicWidthInMbs)<<4); int x0 = Intra4x4ScanOrder[luma4x4BlkIdx][0]; int y0 = Intra4x4ScanOrder[luma4x4BlkIdx][1]; int diffL4x4[4][4]; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { diffL4x4[i][j] = frame.L[(yP+y0+i)*frame.Lwidth+(xP+x0+j)] - pred4x4L[i][j]; } } int rLuma[4][4]; forwardResidual(QPy, diffL4x4, rLuma, true, false); for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { satd += ABS(rLuma[i][j]); } } return satd; } int satdLuma16x16(int predL[16][16]) { int satd = 0; for (int luma4x4BlkIdx = 0; luma4x4BlkIdx < 16; luma4x4BlkIdx++) { int x0 = Intra4x4ScanOrder[luma4x4BlkIdx][0]; int y0 = Intra4x4ScanOrder[luma4x4BlkIdx][1]; int pred4x4L[4][4]; for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { pred4x4L[y][x] = predL[y0+y][x0+x]; } } satd += satdLuma4x4(pred4x4L, luma4x4BlkIdx); } return satd; } // Sets the global variables prev_intra4x4_pred_mode_flag // and rem_intra4x4_pred_mode. void setIntra4x4PredMode(int luma4x4BlkIdx) { int luma4x4BlkIdxA, luma4x4BlkIdxB; int mbAddrA, mbAddrB; getNeighbourAddresses(luma4x4BlkIdx, true, &mbAddrA, &luma4x4BlkIdxA); getNeighbourAddresses(luma4x4BlkIdx, false, &mbAddrB, &luma4x4BlkIdxB); // no checking whether the neighbouring // macroblocks are coded as P-macroblocks bool dcPredModePredictedFlag = false; if ((mbAddrA == -1) || (mbAddrB == -1) || (((mbAddrA != -1) || (mbAddrB != -1)) && (pps.constrained_intra_pred_flag == 1))) dcPredModePredictedFlag = true; int absIdx = (CurrMbAddr << 4) + luma4x4BlkIdx; int intraMxMPredModeA, intraMxMPredModeB; if (dcPredModePredictedFlag == true) // if dc mode is predicted { intraMxMPredModeA = 2; intraMxMPredModeB = 2; } else { if (MbPartPredMode(mb_type_array[mbAddrA],0) != Intra_4x4) // if the macroblock of the neighbouring { // submacroblock is not using 4x4 prediction intraMxMPredModeA = 2; // dc prediction mode } else { int absIdxA = (mbAddrA << 4) + luma4x4BlkIdxA; intraMxMPredModeA = Intra4x4PredMode[absIdxA]; } if (MbPartPredMode(mb_type_array[mbAddrB],0) != Intra_4x4) // if the macroblock of the neighbouring { // submacroblock is not using 4x4 prediction intraMxMPredModeB = 2; // dc prediction mode } else { int absIdxB = (mbAddrB << 4) + luma4x4BlkIdxB; intraMxMPredModeB = Intra4x4PredMode[absIdxB]; } } // the intra4x4 prediction mode for the current block is the more probable // prediction mode of the neighbouring two blocks; the more probable mode // has the smaller value int predIntra4x4PredMode = (intraMxMPredModeA <= intraMxMPredModeB) ? intraMxMPredModeA : intraMxMPredModeB; if (Intra4x4PredMode[absIdx] == predIntra4x4PredMode) { prev_intra4x4_pred_mode_flag[luma4x4BlkIdx] = true; } else { prev_intra4x4_pred_mode_flag[luma4x4BlkIdx] = false; if (Intra4x4PredMode[absIdx] < predIntra4x4PredMode) { rem_intra4x4_pred_mode[luma4x4BlkIdx] = Intra4x4PredMode[absIdx]; } else { rem_intra4x4_pred_mode[luma4x4BlkIdx] = Intra4x4PredMode[absIdx] - 1; } } } // The function returns 0-3 for intra16x16 prediction, the // values correspond to the intra 16x16 prediction mode. // If Intra4x4 is chosen, -1 is returned and the prediction // modes are assigned to the global array Intra4x4PredMode. // The chroma prediction mode is assigned to intra_chroma_pred_mode. int intraPredictionEncoding(int predL[16][16], int predCr[8][8], int predCb[8][8]) { int Intra16x16PredMode; int pred4x4L[4][4]; int bitLoad; int chosenChromaPrediction; int min = INT_MAX; int p[33]; FetchPredictionSamplesIntra16x16(p); if (OpenCLEnabled == true) { if (CurrMbAddr == 0) { WaitIntraCL(16); } Intra16x16PredMode = predModes16x16[CurrMbAddr]; performIntra16x16Prediction(p, predL, Intra16x16PredMode); // Choose the same prediction mode for chroma: intra_chroma_pred_mode = intraToChromaPredMode[Intra16x16PredMode]; IntraChromaSamplePrediction(predCr, predCb); min = coded_mb_size(Intra16x16PredMode, predL, predCb, predCr); chosenChromaPrediction = intra_chroma_pred_mode; } else { // 16x16 prediction: int min16x16 = INT_MAX; for (int i = 0; i < 4; i++) { // Skip prediction if required neighbouring macroblocks are not available if (((i == 0) && (p[17] == -1)) || ((i == 1) && (p[1] == -1)) || ((i == 3) && (p[0] == -1))) { continue; } performIntra16x16Prediction(p, predL, i); int satd = satdLuma16x16(predL); if (satd < min16x16) { min16x16 = satd; Intra16x16PredMode = i; // Choose the equivalent prediction mode for chroma: chosenChromaPrediction = intraToChromaPredMode[i]; } } performIntra16x16Prediction(p, predL, Intra16x16PredMode); // Store the chosen chroma prediction: intra_chroma_pred_mode = chosenChromaPrediction; IntraChromaSamplePrediction(predCr, predCb); min = coded_mb_size(Intra16x16PredMode, predL, predCb, predCr); // 4x4 prediction: mb_type_array[CurrMbAddr] = 0; for (int luma4x4BlkIdx = 0; luma4x4BlkIdx < 16; luma4x4BlkIdx++) { int min4x4 = INT_MAX; int p[13]; FetchPredictionSamplesIntra4x4(luma4x4BlkIdx, p); for(int predMode = 0; predMode < 9; predMode++) { // Skip prediction if required neighbouring submacroblocks are not available if (((predMode == 0) && (p[5] == -1)) || ((predMode == 1) && (p[1] == -1)) || ((predMode == 3) && (p[5] == -1)) || ((predMode == 4) && (p[0] == -1)) || ((predMode == 5) && (p[0] == -1)) || ((predMode == 6) && (p[0] == -1)) || ((predMode == 7) && (p[5] == -1)) || ((predMode == 8) && (p[1] == -1))) { continue; } performIntra4x4Prediction(luma4x4BlkIdx, predMode, pred4x4L, p); int satd4x4 = satdLuma4x4(pred4x4L, luma4x4BlkIdx); if (satd4x4 < min4x4) { int absIdx = (CurrMbAddr << 4) + luma4x4BlkIdx; Intra4x4PredMode[absIdx] = predMode; min4x4 = satd4x4; if (min4x4 == 0) { break; } } } } } // set the best intra4x4 pred modes: int xP = ((CurrMbAddr%PicWidthInMbs)<<4); int yP = ((CurrMbAddr/PicWidthInMbs)<<4); int originalMB[16][16]; mb_type_array[CurrMbAddr] = 0; if (OpenCLEnabled == true && CurrMbAddr == 0) { WaitIntraCL(4); Intra4x4PredMode = predModes4x4; } for (int luma4x4BlkIdx = 0; luma4x4BlkIdx < 16; luma4x4BlkIdx++) { setIntra4x4PredMode(luma4x4BlkIdx); int absIdx = (CurrMbAddr << 4) + luma4x4BlkIdx; Intra4x4SamplePrediction(luma4x4BlkIdx, Intra4x4PredMode[absIdx], pred4x4L); int x0 = Intra4x4ScanOrder[luma4x4BlkIdx][0]; int y0 = Intra4x4ScanOrder[luma4x4BlkIdx][1]; int diffL4x4[4][4], rLuma[4][4]; for (int y = 0; y < 4; y++) { for (int x = 0; x < 4; x++) { predL[y0+y][x0+x] = pred4x4L[y][x]; originalMB[y0+y][x0+x] = frame.L[(yP + y0 + y)*frame.Lwidth+(xP + x0 + x)]; diffL4x4[y][x] = frame.L[(yP + y0 + y)*frame.Lwidth+(xP + x0 + x)] - pred4x4L[y][x]; } } forwardResidual(QPy, diffL4x4, rLuma, true, false); transformScan(rLuma, LumaLevel[luma4x4BlkIdx], false); transformDecoding4x4LumaResidual(LumaLevel, predL, luma4x4BlkIdx, QPy); } bitLoad = coded_mb_size(-1, predL, predCb, predCr); if (bitLoad < min) { // Choose 4x4 prediction mode, the prediction samples // and other variables are already set for Intra4x4 Intra16x16PredMode = -1; } else { // Restore the original frame samples for (int i = 0; i < 16; i++) { for (int j = 0; j < 16; j++) { frame.L[(yP+i)*frame.Lwidth+(xP+j)] = originalMB[i][j]; } } // Reset the best intra16x16 prediction Intra16x16SamplePrediction(predL, Intra16x16PredMode); } return Intra16x16PredMode; }
[ "ljubo.mercep@9f3bdf0a-daf3-11de-b590-7f2b5bfbe1fd", "[email protected]@9f3bdf0a-daf3-11de-b590-7f2b5bfbe1fd", "zoltaaaan@9f3bdf0a-daf3-11de-b590-7f2b5bfbe1fd" ]
[ [ [ 1, 1 ], [ 6, 8 ], [ 10, 10 ], [ 17, 17 ], [ 26, 26 ], [ 28, 30 ], [ 50, 52 ], [ 72, 74 ], [ 76, 76 ], [ 78, 79 ], [ 83, 86 ], [ 89, 90 ], [ 94, 94 ], [ 97, 99 ], [ 105, 105 ], [ 112, 114 ], [ 117, 118 ], [ 135, 139 ], [ 141, 145 ], [ 147, 151 ], [ 153, 157 ], [ 159, 163 ], [ 165, 165 ], [ 176, 176 ], [ 178, 178 ], [ 180, 184 ], [ 186, 190 ], [ 192, 192 ], [ 195, 197 ], [ 199, 204 ], [ 206, 206 ], [ 208, 208 ], [ 210, 214 ], [ 216, 220 ], [ 222, 223 ], [ 225, 226 ], [ 228, 228 ], [ 230, 230 ], [ 232, 236 ], [ 238, 242 ], [ 244, 245 ], [ 247, 248 ], [ 250, 250 ], [ 252, 252 ], [ 254, 258 ], [ 260, 265 ], [ 267, 267 ], [ 269, 273 ], [ 275, 279 ], [ 281, 282 ], [ 284, 284 ], [ 286, 286 ], [ 288, 288 ], [ 290, 293 ], [ 295, 295 ], [ 299, 300 ], [ 320, 320 ], [ 322, 322 ], [ 324, 324 ], [ 329, 329 ], [ 333, 333 ], [ 341, 341 ], [ 367, 369 ], [ 376, 377 ], [ 379, 379 ], [ 382, 413 ], [ 422, 431 ], [ 433, 443 ], [ 445, 459 ], [ 468, 471 ], [ 473, 480 ], [ 482, 483 ], [ 485, 486 ], [ 488, 494 ], [ 496, 499 ], [ 501, 501 ], [ 507, 507 ], [ 513, 513 ], [ 523, 523 ], [ 532, 532 ], [ 534, 534 ], [ 537, 553 ], [ 562, 567 ], [ 569, 572 ], [ 575, 583 ], [ 587, 587 ], [ 589, 591 ], [ 599, 602 ], [ 604, 608 ], [ 614, 617 ], [ 619, 623 ], [ 628, 631 ], [ 633, 639 ], [ 641, 645 ], [ 647, 651 ], [ 653, 657 ], [ 659, 663 ], [ 665, 665 ], [ 669, 670 ], [ 675, 675 ], [ 679, 683 ], [ 685, 689 ], [ 691, 692 ], [ 701, 701 ], [ 717, 717 ], [ 720, 722 ], [ 726, 726 ], [ 728, 728 ], [ 735, 735 ], [ 738, 738 ], [ 745, 749 ], [ 752, 753 ], [ 756, 757 ], [ 760, 761 ], [ 764, 769 ], [ 771, 771 ], [ 773, 773 ], [ 775, 775 ], [ 777, 777 ], [ 782, 782 ], [ 785, 785 ], [ 789, 789 ], [ 791, 793 ], [ 795, 795 ], [ 1110, 1110 ] ], [ [ 2, 5 ], [ 9, 9 ], [ 12, 16 ], [ 18, 25 ], [ 27, 27 ], [ 31, 49 ], [ 53, 71 ], [ 75, 75 ], [ 77, 77 ], [ 80, 82 ], [ 87, 88 ], [ 91, 93 ], [ 95, 96 ], [ 100, 104 ], [ 106, 111 ], [ 115, 116 ], [ 119, 134 ], [ 140, 140 ], [ 146, 146 ], [ 152, 152 ], [ 158, 158 ], [ 164, 164 ], [ 166, 175 ], [ 177, 177 ], [ 179, 179 ], [ 185, 185 ], [ 191, 191 ], [ 193, 194 ], [ 198, 198 ], [ 205, 205 ], [ 207, 207 ], [ 209, 209 ], [ 215, 215 ], [ 221, 221 ], [ 224, 224 ], [ 227, 227 ], [ 229, 229 ], [ 231, 231 ], [ 237, 237 ], [ 243, 243 ], [ 246, 246 ], [ 249, 249 ], [ 251, 251 ], [ 253, 253 ], [ 259, 259 ], [ 266, 266 ], [ 268, 268 ], [ 274, 274 ], [ 280, 280 ], [ 283, 283 ], [ 285, 285 ], [ 287, 287 ], [ 289, 289 ], [ 294, 294 ], [ 296, 298 ], [ 301, 319 ], [ 321, 321 ], [ 323, 323 ], [ 325, 328 ], [ 330, 332 ], [ 334, 340 ], [ 342, 366 ], [ 370, 375 ], [ 378, 378 ], [ 380, 381 ], [ 414, 421 ], [ 432, 432 ], [ 444, 444 ], [ 460, 467 ], [ 472, 472 ], [ 481, 481 ], [ 484, 484 ], [ 487, 487 ], [ 495, 495 ], [ 500, 500 ], [ 502, 506 ], [ 508, 512 ], [ 514, 522 ], [ 524, 531 ], [ 533, 533 ], [ 535, 536 ], [ 554, 561 ], [ 568, 568 ], [ 573, 574 ], [ 584, 586 ], [ 588, 588 ], [ 592, 598 ], [ 603, 603 ], [ 609, 613 ], [ 618, 618 ], [ 624, 627 ], [ 632, 632 ], [ 640, 640 ], [ 646, 646 ], [ 652, 652 ], [ 658, 658 ], [ 664, 664 ], [ 666, 668 ], [ 671, 674 ], [ 676, 678 ], [ 684, 684 ], [ 690, 690 ], [ 693, 700 ], [ 702, 716 ], [ 718, 719 ], [ 723, 725 ], [ 727, 727 ], [ 729, 734 ], [ 736, 737 ], [ 739, 744 ], [ 750, 751 ], [ 754, 755 ], [ 758, 759 ], [ 762, 763 ], [ 770, 770 ], [ 772, 772 ], [ 774, 774 ], [ 776, 776 ], [ 778, 781 ], [ 783, 784 ], [ 786, 788 ], [ 790, 790 ], [ 794, 794 ], [ 796, 822 ], [ 825, 960 ], [ 962, 967 ], [ 970, 971 ], [ 973, 974 ], [ 980, 981 ], [ 983, 983 ], [ 985, 987 ], [ 992, 994 ], [ 996, 996 ], [ 998, 999 ], [ 1001, 1003 ], [ 1007, 1010 ], [ 1014, 1014 ], [ 1020, 1020 ], [ 1022, 1029 ], [ 1035, 1035 ], [ 1038, 1038 ], [ 1047, 1051 ], [ 1054, 1109 ] ], [ [ 11, 11 ], [ 823, 824 ], [ 961, 961 ], [ 968, 969 ], [ 972, 972 ], [ 975, 979 ], [ 982, 982 ], [ 984, 984 ], [ 988, 991 ], [ 995, 995 ], [ 997, 997 ], [ 1000, 1000 ], [ 1004, 1006 ], [ 1011, 1013 ], [ 1015, 1019 ], [ 1021, 1021 ], [ 1030, 1034 ], [ 1036, 1037 ], [ 1039, 1046 ], [ 1052, 1053 ] ] ]
1b4652ce09bd2c88b5d27ad38a58c0cb9df76eec
59166d9d1eea9b034ac331d9c5590362ab942a8f
/ParticlePlayer/MainNode/UpdClbkMainNode.cpp
2c608e342c584f67905f27aeec17af4b43872bf5
[]
no_license
seafengl/osgtraining
5915f7b3a3c78334b9029ee58e6c1cb54de5c220
fbfb29e5ae8cab6fa13900e417b6cba3a8c559df
refs/heads/master
2020-04-09T07:32:31.981473
2010-09-03T15:10:30
2010-09-03T15:10:30
40,032,354
0
3
null
null
null
null
WINDOWS-1251
C++
false
false
3,004
cpp
#include "UpdClbkMainNode.h" #include "KeyboardState.h" #include "CameraState.h" #include <osg/Math> #include <iostream> UpdClbkMainNode::UpdClbkMainNode() : m_fMoveSpeed( 0.0 ) { } void UpdClbkMainNode::operator()( osg::Node* node, osg::NodeVisitor* nv ) { //обработать вращения ProcessRotate(); //обработать перемещение ProcessMove(); // first update subgraph to make sure objects are all moved into position traverse(node,nv); } void UpdClbkMainNode::ProcessRotate() { //обработать вращения //получить доступ к состоянию клавиатуры binEvents &mEvents = KeyboardState::Instance().GetEvents(); //получить доступ к состоянию камеры binCameraState &mCamState = CameraState::Instance().GetCameraState(); mCamState.m_dR = mCamState.m_dR + mEvents.m_dX * 0.5; mCamState.m_dH = mCamState.m_dH + mEvents.m_dY * 0.5; //ограничение диапазона углов if ( mCamState.m_dH > 360.0 ) mCamState.m_dH -= 360.0; else if ( mCamState.m_dH < -360.0 ) mCamState.m_dH += 360.0; if ( mCamState.m_dR > 360.0 ) mCamState.m_dR -= 360.0; else if ( mCamState.m_dR < -360.0 ) mCamState.m_dR += 360.0; } void UpdClbkMainNode::ProcessMove() { //обработать перемещение //получить доступ к состоянию клавиатуры binEvents &mEvents = KeyboardState::Instance().GetEvents(); if ( mEvents.m_bLeft ) //перемещение камеры вперед MoveForward(); else if ( mEvents.m_bRight ) //перемещение камеры назад MoveBackward(); } void UpdClbkMainNode::MoveForward() { //перемещение камеры вперед //получить доступ к состоянию камеры binCameraState &mCamState = CameraState::Instance().GetCameraState(); double dZ = cos( osg::DegreesToRadians( -mCamState.m_dH + 90.0 ) ); double nD = sqrt( 1.0 - dZ * dZ ); double dX = -nD * sin( osg::DegreesToRadians( mCamState.m_dR ) ); double dY = -nD * cos( osg::DegreesToRadians( mCamState.m_dR ) ); mCamState.m_dX += dX * 0.01; mCamState.m_dY += dY * 0.01; mCamState.m_dZ += dZ * 0.01; std::cout << mCamState.m_dY << " "; } void UpdClbkMainNode::MoveBackward() { //перемещение камеры назад //получить доступ к состоянию камеры binCameraState &mCamState = CameraState::Instance().GetCameraState(); double dZ = -cos( osg::DegreesToRadians( -mCamState.m_dH + 90.0 ) ); double nD = sqrt( 1.0 - dZ * dZ ); double dX = nD * sin( osg::DegreesToRadians( mCamState.m_dR ) ); double dY = nD * cos( osg::DegreesToRadians( mCamState.m_dR ) ); mCamState.m_dX += dX * 0.01; mCamState.m_dY += dY * 0.01; mCamState.m_dZ += dZ * 0.01; std::cout << mCamState.m_dY << " "; }
[ "asmzx79@3290fc28-3049-11de-8daa-cfecb5f7ff5b" ]
[ [ [ 1, 108 ] ] ]
00fdde2c11b7e27484be66d352799fb10afe5ef7
10dae5a20816dba197ecf76d6200fd1a9763ef97
/src/output.cpp
b7bcb3c32acb9286a0bdc8f7a27b8ededaffd1f7
[]
no_license
peterdfields/quantiNEMO_Taylor2010
fd43aba9b1fcf504132494ff63d08a9b45b3f683
611b46bf89836c4327fe64abd7b4008815152c9f
refs/heads/master
2020-02-26T17:33:24.396350
2011-02-08T23:08:34
2011-02-08T23:08:34
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,524
cpp
/** @file output.cpp * * Copyright (C) 2006 Frederic Guillaume <[email protected]> * Copyright (C) 2008 Samuel Neuenschwander <[email protected]> * * quantiNEMO: * quantiNEMO is an individual-based, genetically explicit stochastic * simulation program. It was developed to investigate the effects of * selection, mutation, recombination, and drift on quantitative traits * with varying architectures in structured populations connected by * migration and located in a heterogeneous habitat. * * quantiNEMO is built on the evolutionary and population genetics * programming framework NEMO (Guillaume and Rougemont, 2006, Bioinformatics). * * * Licensing: * This file is part of quantiNEMO. * * quantiNEMO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * quantiNEMO is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with quantiNEMO. If not, see <http://www.gnu.org/licenses/>. */ #ifdef _BORLAND_ #include <stdlib.h> #include <process.h> #include <stdio.h> #include <errno.h> #else #include <unistd.h> #include <sys/types.h> // #include <sys/wait.h> #include <errno.h> #endif #include <stdarg.h> #include "output.h" #include <fstream> #include "simulation.h" using namespace std; void message (const char* message, ...) { va_list ap; va_start(ap, message); vprintf(message,ap); va_end(ap); } void warning (const char* message, ...) { va_list ap; va_start(ap, message); printf("\n***WARNING*** "); vprintf(message,ap); va_end(ap); } void error (const char* message, ...) { va_list ap; va_start(ap, message); fprintf(stderr,"\n***ERROR*** "); vfprintf(stderr,message,ap); va_end(ap); } void fatal (const char* message, ...) { va_list ap; va_start(ap, message); printf("\n***FATAL-ERROR*** "); vfprintf(stderr,message,ap); va_end(ap); throw message; } //------------------------------------------------------------------------------ string getElapsedTime(clock_t time) { int e_time = time / CLOCKS_PER_SEC; int hour = e_time / 3600; int min = ((e_time % 3600) / 60); int sec = (e_time % 3600) % 60; ostringstream o; if(hour<10) o << setfill('0') << setw(2) << hour; else o << hour; o << ":" << setfill('0') << setw(2) << min; o << ":" << setfill('0') << setw(2) << sec; return o.str(); } //------------------------------------------------------------------------------ /** similar to sample in R: * returns nb UNIQUE integer numbers between 0 and max-1 * the returned array must be deleted * the returned array is sorted!!! */ unsigned int* sample(const unsigned int& nb, const unsigned int& max) { assert(nb<=max); // create a temp vector (0, 1, 2, ... max-1) vector<unsigned int> vec; for(unsigned int i = 0; i< max; ++i){ vec.push_back(i); } unsigned int* array = new unsigned int[nb]; // array to return if(nb<max/2){ // draw the "good" ones unsigned int pos; for(unsigned int i = 0; i< nb; ++i){ pos = SimRunner::r.Uniform(max-i); // get the pos array[i] = vec[pos]; // store the value to the array vec.erase(vec.begin()+pos); // remove the element } } else{ // remove the bad ones for(unsigned int i = 0; i< max-nb; ++i){ vec.erase(vec.begin()+SimRunner::r.Uniform(max-i)); } for(unsigned int i = 0; i< nb; ++i){ // copy the vector to the array array[i] = vec[i]; } } return array; } // ---------------------------------------------------------------------------------------- // read_Fstat_file // ---------------------------------------------------------------------------------------- /** this function reads any FSTAT file, a vector is returned which contains each individual. * Each individual is determined by a double unsigned int array: * - first the suplement info is stored if available: * - v[ind][0][0] = patch // starting at 0 (compulsory) * - v[ind][0][1] = nb_loci // number of locus found int eh file (compulsory) * - v[ind][1][0] = age // off: 0, adlt: 2 * - v[ind][2][0] = sex // mal: 0, fem: 1 * - v[ind][3][0] = id // id of the current patch starting at 1 * - v[ind][3][1] = natal patch // id of the natal patch starting at 1 * - v[ind][4][0] = id_mom // id of mother of the current patch starting at 1 * - v[ind][4][1] = moms patch // id of mother of the natal patch starting at 1 * - v[ind][5][0] = id_dad // id of father of the current patch starting at 1 * - v[ind][5][1] = dads patch // id of father of the natal patch starting at 1 * - then the loci are stored: v[ind][loc+][all] (compulsory * Note, that the arrays of the vector has to be deleted */ vector<unsigned int**>* read_Fstat_file(string filename, string dir){ vector<unsigned int**>* v = new vector<unsigned int**>(); // vector containing the individuals try{ if(!STRING::file_exists(filename)){ filename = dir + filename; if(!STRING::file_exists(filename))fatal("FSTAT file '%s' could not be opened!\n", filename.c_str()); } ifstream FILE(filename.c_str()); // read the heading line and test if the settings correspond to the ini file int nbPop, nbLoci, maxAllele, nbDigit, i; string text; FILE >> nbPop >> nbLoci >> maxAllele >> nbDigit >> ws; if(maxAllele > maxAllele) fatal("FSTAT file: the number of alleles does not correspond to the settings!\n"); // skip all locus names for(i = 0; i < nbLoci; ++i) { FILE.ignore(2048, '\n'); // remove line by line } // read individual by individual unsigned int** curInd; char c; unsigned int val; string text1; while(FILE.good() && !FILE.eof()){ // for each individual curInd = ARRAY::new_2D(nbLoci+6, 2, (unsigned int) my_NAN); FILE >> val; // get the pop curInd[0][0] = val-1; curInd[0][1] = nbLoci; // get the alleles for(i=0; i<nbLoci; ++i){ FILE >> text; if((int)text.length() != 2*nbDigit) fatal("FSTAT file: The number of digits is wrong (line %i, locus %i)!\n", v->size()+1, i+1); curInd[i+6][0] = STRING::str2int<unsigned int>(text.substr(0,nbDigit))-1; curInd[i+6][1] = STRING::str2int<unsigned int>(text.substr(nbDigit,nbDigit))-1; } // check if the suplement columns are present do{ FILE.get(c); }while(isspace(c) && c != EOL && c != FILE.eof()); if(c != EOL && c != FILE.eof()){ // the suplement columns are present FILE.putback(c); FILE >> val; curInd[1][0] = val-1; // age FILE >> curInd[2][0]; // sex FILE >> text; curInd[3][0] = STRING::str2int<unsigned int>(text.substr(0,text.find('_'))); // id curInd[3][1] = STRING::str2int<unsigned int>(text.substr(text.find('_')+1, text.length())); FILE >> text; curInd[4][0] = STRING::str2int<unsigned int>(text.substr(0,text.find('_'))); // id_mother curInd[4][1] = STRING::str2int<unsigned int>(text.substr(text.find('_')+1, text.length())); FILE >> text; curInd[5][0] = STRING::str2int<unsigned int>(text.substr(0,text.find('_'))); // id_father curInd[5][1] = STRING::str2int<unsigned int>(text.substr(text.find('_')+1, text.length())); FILE >> text; // remove the fitness: fitness is not considered FILE >> ws; } v->push_back(curInd); // add the individual to the vector FILE >> ws; } FILE.close(); }catch(...) {throw("Problems with reading the FSTAT file!");} return v; }
[ [ [ 1, 236 ] ] ]
cdcf1b98a9f500ed49dc6abd80bb7397bbbe0b46
3b76b2980485417cb656215379b93b27d4444815
/8.Nop KLTN/DIA/SCVOICECHAT/SOURCE/SC Voice Chat Server/Serdlg.h
635e054b424cc9a98e98182d88d1c9affff935b9
[]
no_license
hemprasad/lvmm-sc
48d48625b467b3756aa510b5586af250c3a1664c
7c68d1d3b1489787f5ec3d09bc15b4329b0c087a
refs/heads/master
2016-09-06T11:05:32.770867
2011-07-25T01:09:07
2011-07-25T01:09:07
38,108,101
0
0
null
null
null
null
UTF-8
C++
false
false
1,090
h
// Serdlg.h: interface for the Serdlg class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_SERDLG_H__73FA8624_4122_11D6_8886_801654C10000__INCLUDED_) #define AFX_SERDLG_H__73FA8624_4122_11D6_8886_801654C10000__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include"mysocket.h" class Serdlg : public CDialog { public: mysocket sersock; CString userlist,buser; CPtrList clientlist; CStdioFile log; CListBox *displist; int reccount,broadcast; Serdlg(int n); virtual ~Serdlg(); int OnInitDialog(); void OnStart(); void OnAbout(); void OnPaint(); HBRUSH OnCtlColor(CDC *pdc,CWnd *pwnd,UINT ctrl); void OnCloseDlg(); void Accept(); void Receive(mysocket *client); void SendToAll(CString client,char *data,int size,int flag); void SendToClient(CString user,char *data,int size); void UpdateList(CString name); void OnCloseClient(mysocket *client); DECLARE_MESSAGE_MAP() }; #endif // !defined(AFX_SERDLG_H__73FA8624_4122_11D6_8886_801654C10000__INCLUDED_)
[ [ [ 1, 43 ] ] ]
529d27d51381dafc81e45d876cdddb9c74cb56d4
ef23e388061a637f82b815d32f7af8cb60c5bb1f
/src/emu/cpu/sh4/sh4comn.h
546468de860a577af428f1943de8fa266b407d59
[]
no_license
marcellodash/psmame
76fd877a210d50d34f23e50d338e65a17deff066
09f52313bd3b06311b910ed67a0e7c70c2dd2535
refs/heads/master
2021-05-29T23:57:23.333706
2011-06-23T20:11:22
2011-06-23T20:11:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,775
h
/***************************************************************************** * * sh4comn.h * * SH-4 non-specific components * *****************************************************************************/ #pragma once #ifndef __SH4COMN_H__ #define __SH4COMN_H__ //#define USE_SH4DRC /* speed up delay loops, bail out of tight loops */ #define BUSY_LOOP_HACKS 0 #define VERBOSE 0 #ifdef USE_SH4DRC #include "cpu/drcfe.h" #include "cpu/drcuml.h" #include "cpu/drcumlsh.h" class sh4_frontend; #endif #define CPU_TYPE_SH3 (2) #define CPU_TYPE_SH4 (3) #define LOG(x) do { if (VERBOSE) logerror x; } while (0) #define EXPPRI(pl,po,p,n) (((4-(pl)) << 24) | ((15-(po)) << 16) | ((p) << 8) | (255-(n))) #define NMIPRI() EXPPRI(3,0,16,SH4_INTC_NMI) #define INTPRI(p,n) EXPPRI(4,2,p,n) #define FP_RS(r) sh4->fr[(r)] // binary representation of single precision floating point register r #define FP_RFS(r) *( (float *)(sh4->fr+(r)) ) // single precision floating point register r #define FP_RFD(r) *( (double *)(sh4->fr+(r)) ) // double precision floating point register r #define FP_XS(r) sh4->xf[(r)] // binary representation of extended single precision floating point register r #define FP_XFS(r) *( (float *)(sh4->xf+(r)) ) // single precision extended floating point register r #define FP_XFD(r) *( (double *)(sh4->xf+(r)) ) // double precision extended floating point register r #ifdef LSB_FIRST #define FP_RS2(r) sh4->fr[(r) ^ sh4->fpu_pr] #define FP_RFS2(r) *( (float *)(sh4->fr+((r) ^ sh4->fpu_pr)) ) #define FP_XS2(r) sh4->xf[(r) ^ sh4->fpu_pr] #define FP_XFS2(r) *( (float *)(sh4->xf+((r) ^ sh4->fpu_pr)) ) #endif typedef struct { UINT32 ppc; UINT32 pc, spc; UINT32 pr; UINT32 sr, ssr; UINT32 gbr, vbr; UINT32 mach, macl; UINT32 r[16], rbnk[2][8], sgr; UINT32 fr[16], xf[16]; UINT32 ea; UINT32 delay; UINT32 cpu_off; UINT32 pending_irq; UINT32 test_irq; UINT32 fpscr; UINT32 fpul; UINT32 dbr; UINT32 exception_priority[128]; int exception_requesting[128]; INT8 irq_line_state[17]; device_irq_callback irq_callback; legacy_cpu_device *device; address_space *internal; address_space *program; direct_read_data *direct; address_space *io; UINT32 *m; INT8 nmi_line_state; UINT8 sleep_mode; int frt_input; int irln; int internal_irq_level; int internal_irq_vector; emu_timer *dma_timer[4]; emu_timer *refresh_timer; emu_timer *rtc_timer; emu_timer *timer[3]; UINT32 refresh_timer_base; int dma_timer_active[4]; int sh4_icount; int is_slave; int cpu_clock, bus_clock, pm_clock; int fpu_sz, fpu_pr; int ioport16_pullup, ioport16_direction; int ioport4_pullup, ioport4_direction; void (*ftcsr_read_callback)(UINT32 data); /* This MMU simulation is good for the simple remap used on Naomi GD-ROM SQ access *ONLY* */ UINT32 sh4_tlb_address[64]; UINT32 sh4_tlb_data[64]; UINT8 sh4_mmu_enabled; int cpu_type; #ifdef USE_SH4DRC int icount; int pcfsel; // last pcflush entry set int maxpcfsel; // highest valid pcflush entry UINT32 pcflushes[16]; // pcflush entries drc_cache * cache; /* pointer to the DRC code cache */ drcuml_state * drcuml; /* DRC UML generator state */ sh4_frontend * drcfe; /* pointer to the DRC front-end class */ UINT32 drcoptions; /* configurable DRC options */ /* internal stuff */ UINT8 cache_dirty; /* true if we need to flush the cache */ /* parameters for subroutines */ UINT64 numcycles; /* return value from gettotalcycles */ UINT32 arg0; /* print_debug argument 1 */ UINT32 arg1; /* print_debug argument 2 */ UINT32 irq; /* irq we're taking */ /* register mappings */ drcuml_parameter regmap[16]; /* parameter to register mappings for all 16 integer registers */ drcuml_codehandle * entry; /* entry point */ drcuml_codehandle * read8; /* read byte */ drcuml_codehandle * write8; /* write byte */ drcuml_codehandle * read16; /* read half */ drcuml_codehandle * write16; /* write half */ drcuml_codehandle * read32; /* read word */ drcuml_codehandle * write32; /* write word */ drcuml_codehandle * interrupt; /* interrupt */ drcuml_codehandle * nocode; /* nocode */ drcuml_codehandle * out_of_cycles; /* out of cycles exception handler */ UINT32 prefadr; UINT32 target; #endif } sh4_state; #ifdef USE_SH4DRC class sh4_frontend : public drc_frontend { public: sh4_frontend(sh4_state &state, UINT32 window_start, UINT32 window_end, UINT32 max_sequence); protected: virtual bool describe(opcode_desc &desc, const opcode_desc *prev); private: bool describe_group_0(opcode_desc &desc, const opcode_desc *prev, UINT16 opcode); bool describe_group_2(opcode_desc &desc, const opcode_desc *prev, UINT16 opcode); bool describe_group_3(opcode_desc &desc, const opcode_desc *prev, UINT16 opcode); bool describe_group_4(opcode_desc &desc, const opcode_desc *prev, UINT16 opcode); bool describe_group_6(opcode_desc &desc, const opcode_desc *prev, UINT16 opcode); bool describe_group_8(opcode_desc &desc, const opcode_desc *prev, UINT16 opcode); bool describe_group_12(opcode_desc &desc, const opcode_desc *prev, UINT16 opcode); bool describe_group_15(opcode_desc &desc, const opcode_desc *prev, UINT16 opcode); sh4_state &m_context; }; INLINE sh4_state *get_safe_token(device_t *device) { assert(device != NULL); assert(device->type() == SH3 || device->type() == SH4); return *(sh4_state **)downcast<legacy_cpu_device *>(device)->token(); } #else INLINE sh4_state *get_safe_token(device_t *device) { assert(device != NULL); assert(device->type() == SH3 || device->type() == SH4); return (sh4_state *)downcast<legacy_cpu_device *>(device)->token(); } #endif enum { ICF = 0x00800000, OCFA = 0x00080000, OCFB = 0x00040000, OVF = 0x00020000 }; /* Bits in SR */ #define T 0x00000001 #define S 0x00000002 #define I 0x000000f0 #define Q 0x00000100 #define M 0x00000200 #define FD 0x00008000 #define BL 0x10000000 #define sRB 0x20000000 #define MD 0x40000000 /* 29 bits */ #define AM 0x1fffffff #define FLAGS (MD|sRB|BL|FD|M|Q|I|S|T) /* Bits in FPSCR */ #define RM 0x00000003 #define DN 0x00040000 #define PR 0x00080000 #define SZ 0x00100000 #define FR 0x00200000 #define Rn ((opcode>>8)&15) #define Rm ((opcode>>4)&15) #define REGFLAG_R(n) (1 << (n)) #define REGFLAG_FR(n) (1 << (n)) #define REGFLAG_XR(n) (1 << (n)) /* register flags 1 */ #define REGFLAG_PR (1 << 0) #define REGFLAG_MACL (1 << 1) #define REGFLAG_MACH (1 << 2) #define REGFLAG_GBR (1 << 3) #define REGFLAG_VBR (1 << 4) #define REGFLAG_SR (1 << 5) #define REGFLAG_SGR (1 << 6) #define REGFLAG_FPUL (1 << 7) #define REGFLAG_FPSCR (1 << 8) #define REGFLAG_DBR (1 << 9) #define REGFLAG_SSR (1 << 10) #define REGFLAG_SPC (1 << 11) void sh4_exception_recompute(sh4_state *sh4); // checks if there is any interrupt with high enough priority void sh4_exception_request(sh4_state *sh4, int exception); // start requesting an exception void sh4_exception_unrequest(sh4_state *sh4, int exception); // stop requesting an exception void sh4_exception_checkunrequest(sh4_state *sh4, int exception); void sh4_exception(sh4_state *sh4, const char *message, int exception); // handle exception void sh4_change_register_bank(sh4_state *sh4, int to); void sh4_syncronize_register_bank(sh4_state *sh4, int to); void sh4_swap_fp_registers(sh4_state *sh4); void sh4_default_exception_priorities(sh4_state *sh4); // setup default priorities for exceptions void sh4_parse_configuration(sh4_state *sh4, const struct sh4_config *conf); void sh4_set_irq_line(sh4_state *sh4, int irqline, int state); // set state of external interrupt line #ifdef LSB_FIRST void sh4_swap_fp_couples(sh4_state *sh4); #endif void sh4_common_init(device_t *device); UINT32 sh4_getsqremap(sh4_state *sh4, UINT32 address); READ64_HANDLER( sh4_tlb_r ); WRITE64_HANDLER( sh4_tlb_w ); INLINE void sh4_check_pending_irq(sh4_state *sh4, const char *message) // look for highest priority active exception and handle it { int a,irq,z; irq = 0; z = -1; for (a=0;a <= SH4_INTC_ROVI;a++) { if (sh4->exception_requesting[a]) { if ((int)sh4->exception_priority[a] > z) { z = sh4->exception_priority[a]; irq = a; } } } if (z >= 0) { sh4_exception(sh4, message, irq); } } #endif /* __SH4COMN_H__ */
[ "Mike@localhost" ]
[ [ [ 1, 292 ] ] ]
f266300ee642852ea0f60d0cbdb4978075a00e05
4891542ea31c89c0ab2377428e92cc72bd1d078f
/Arcanoid/Arcanoid/PowerUpSpr.h
a7cbf661144634883b808fc70e12528b3337ba97
[]
no_license
koutsop/arcanoid
aa32c46c407955a06c6d4efe34748e50c472eea8
5bfef14317e35751fa386d841f0f5fa2b8757fb4
refs/heads/master
2021-01-18T14:11:00.321215
2008-07-17T21:50:36
2008-07-17T21:50:36
33,115,792
0
0
null
null
null
null
UTF-8
C++
false
false
447
h
#ifndef __POWERUPSPR_H__ #define __POWERUPSPR_H__ #include "Sprite.h" #include "AnimationFilm.h" #include "Point.h" class PowerUpSpr: public Sprite{ private: int kind; public: PowerUpSpr(Point point, AnimationFilm* film); virtual void Collide(Sprite *s); int GetBonusType(void) const { return kind; }; void SetBonusType(int _kind) { kind = _kind; } void Move(const int x, const int y); ~PowerUpSpr(); }; #endif
[ "apixkernel@5c4dd20e-9542-0410-abe3-ad2d610f3ba4", "koutsop@5c4dd20e-9542-0410-abe3-ad2d610f3ba4" ]
[ [ [ 1, 9 ], [ 11, 13 ], [ 15, 15 ], [ 18, 18 ], [ 20, 24 ] ], [ [ 10, 10 ], [ 14, 14 ], [ 16, 17 ], [ 19, 19 ] ] ]
1619f4c1d83bd33e67701c3976beb3518e2caf5a
71d018f8dbcf49cfb07511de5d58d6ad7df816f7
/scistudio/trunk/resrebuild.cpp
3641497ab806fc22d64ba92214bc66a7becf27aa
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
qq431169079/SciStudio
48225261386402530156fc2fc14ff0cad62174e8
a1fccbdcb423c045078b927e7c275b9d1bcae6b3
refs/heads/master
2020-05-29T13:01:50.800903
2010-09-14T07:10:07
2010-09-14T07:10:07
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,121
cpp
//--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "resrebuild.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "CGAUGES" #pragma link "piereg" #pragma resource "*.dfm" TDlgResRebuild *DlgResRebuild; //--------------------------------------------------------------------------- __fastcall TDlgResRebuild::TDlgResRebuild(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TDlgResRebuild::FormClose(TObject *Sender, TCloseAction &Action) { Action = caFree; } //--------------------------------------------------------------------------- void __fastcall TDlgResRebuild::FormActivate(TObject *Sender) { Repaint(); } //--------------------------------------------------------------------------- void __fastcall TDlgResRebuild::OKButtonClick(TObject *Sender) { Close(); } //---------------------------------------------------------------------------
[ "mageofmarr@d0e240c1-a1d3-4535-ae25-191325aad40e" ]
[ [ [ 1, 36 ] ] ]
150224a60b98d914de976641f43b3a8dcd9d0767
a30b091525dc3f07cd7e12c80b8d168a0ee4f808
/EngineAll/Graphics Devices/D3D9GraphicsDevice.h
0180b3e4cb910562eb7f994b095b81d2320b01db
[]
no_license
ghsoftco/basecode14
f50dc049b8f2f8d284fece4ee72f9d2f3f59a700
57de2a24c01cec6dc3312cbfe200f2b15d923419
refs/heads/master
2021-01-10T11:18:29.585561
2011-01-23T02:25:21
2011-01-23T02:25:21
47,255,927
0
0
null
null
null
null
UTF-8
C++
false
false
2,219
h
/* D3DGraphicsDevice.h Written by Matthew Fisher a D3D instance of GraphicsDevice. The only new functionality is GetDevice() which returns the D3DDevice associated with this graphics device. */ #pragma once #ifdef USE_D3D9 class D3D9GraphicsDevice : public GraphicsDevice { public: D3D9GraphicsDevice(); ~D3D9GraphicsDevice(); void FreeMemory(); void Init3D(WindowObjects &O, const GraphicsDeviceParameters &Parameters); void ReSize(WindowObjects &O, AppInterface &App); void ReSizeFullScreen(WindowObjects &O, AppInterface &App); void StartRender(WindowObjects &O); void FinishRender(WindowObjects &O, AppInterface &App); void DrawStringFloat(const String &Text, float x, float y, RGBColor c); void DrawString(const String &Text, const Rectangle2f &Rect, RGBColor c); void LoadViewport(Viewport &V); void LoadMatrix(MatrixController &MC); void Render(const Mesh &M); void RenderLineStrip(const Mesh &M); void CaptureDesktop(WindowManager &WM, Bitmap &B); void CaptureScreen(WindowManager &WM, Bitmap &B); LPDIRECT3DDEVICE9 GetDevice(); BaseTexture* CreateTexture(); void SetWireframe(); void DisableWireframe(); void ToggleWireframe(); void ClearTexture(UINT Index); void SetZState(ZState NewState); void RenderSolidWireframe(BaseMesh *BM); private: //internal functions void LoadPresentParameters(D3DPRESENT_PARAMETERS &PresentParameters, WindowsWindowManager &WM); void InitializeStateMachine(); //load default values into the state machine void ResetSystem(WindowsWindowManager &WM); //resets the system void RestoreSystem(); //restores the system after it has been reset LPDIRECT3D9 _D3D; //the main D3D object, used to create the D3DDevice object LPDIRECT3DDEVICE9 _Device; //the D3DDevice object which this GraphicsDevice encapsulates LPD3DXFONT _MainFont; //the font used for text rendering LPDIRECT3DSURFACE9 _DesktopSurface; //used for capturing the desktop LPDIRECT3DSURFACE9 _WindowSurface; //used for capturing the window }; #endif
[ "zhaodongmpii@7e7f00ea-7cf8-66b5-cf80-f378872134d2" ]
[ [ [ 1, 65 ] ] ]
12d8f0d038c85cbd750eb2dfe44c283ce841d88a
a6a5c29ab75e58093e813afc951f08222001c38d
/TCC/include/core/ComponentTimer.h
056ef12915446794cd0159e386f4f3e31426b63e
[]
no_license
voidribeiro/jogoshadow
b066bc75cc24c0f50b6243f91d91e286c0d997c7
946a4648ac420cb8988267f69c42688a0bc5ba6f
refs/heads/master
2016-09-05T23:42:09.869743
2010-02-25T12:17:06
2010-02-25T12:17:06
32,122,243
0
0
null
null
null
null
UTF-8
C++
false
false
1,114
h
#ifndef __COMPONENTTIMER_H__ #define __COMPONENTTIMER_H__ #include "AbstractComponent.h" #include "DeviceManager.h" #include "ScriptObject.h" class ComponentTimer : public AbstractComponent{ private: int timeOut; std::string scriptToExec; std::string functionToExec; public: explicit ComponentTimer(int _timeOut, std::string _script, std::string _function); virtual ~ComponentTimer(); virtual void Update(); virtual void Draw(){}; int GetType() { return CTIMER; }; const char* GetTypeName() { return "ComponentTimer"; }; }; class ComponentTimerBinder{ public: static int registerFunctions(lua_State* L); static int bnd_Instantiate (lua_State* L); static int bnd_DontDestroy (lua_State* L); static int bnd_AddTo (lua_State* L); static int bnd_GetFrom (lua_State* L); }; static const luaL_reg componentTimerFunctions[] = { {"Instantiate", ComponentTimerBinder::bnd_Instantiate}, {"AddTo", ComponentTimerBinder::bnd_AddTo}, {"GetFrom", ComponentTimerBinder::bnd_GetFrom}, {NULL, NULL} }; #endif
[ "rafarlira@17fd7b7e-20b4-11de-a108-cd2f117ce590", "suisen.no.ryuu@17fd7b7e-20b4-11de-a108-cd2f117ce590" ]
[ [ [ 1, 28 ], [ 30, 34 ], [ 36, 39 ] ], [ [ 29, 29 ], [ 35, 35 ] ] ]
8e4c0d4294df29f5caee21d5b4a854052565a0ec
ef432f1b63535630ba472d82e40b0ff216cb517a
/NFS2Prog.cpp
f5770be889c1364abdccfc72b4b139ba3438e8a4
[]
no_license
noodle1983/winnfsd-nd
53e258f9b85d65e0c20cbfece4f22e19fb8d257f
c49277be0ad013d408898320dd2bcc456199f373
refs/heads/master
2016-09-06T02:50:16.568622
2010-08-14T10:10:53
2010-08-14T10:10:53
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,149
cpp
#include "NFSProg.h" #include "FileTable.h" #include <string.h> #include <io.h> #include <direct.h> #include <sys/stat.h> #include <windows.h> enum { NFSPROC_NULL = 0, NFSPROC_GETATTR = 1, NFSPROC_SETATTR = 2, NFSPROC_ROOT = 3, NFSPROC_LOOKUP = 4, NFSPROC_READLINK = 5, NFSPROC_READ = 6, NFSPROC_WRITECACHE = 7, NFSPROC_WRITE = 8, NFSPROC_CREATE = 9, NFSPROC_REMOVE = 10, NFSPROC_RENAME = 11, NFSPROC_LINK = 12, NFSPROC_SYMLINK = 13, NFSPROC_MKDIR = 14, NFSPROC_RMDIR = 15, NFSPROC_READDIR = 16, NFSPROC_STATFS = 17 }; enum { NFS_OK = 0, NFSERR_PERM = 1, NFSERR_NOENT = 2, NFSERR_IO = 5, NFSERR_NXIO = 6, NFSERR_ACCES = 13, NFSERR_EXIST = 17, NFSERR_NODEV = 19, NFSERR_NOTDIR = 20, NFSERR_ISDIR = 21, NFSERR_FBIG = 27, NFSERR_NOSPC = 28, NFSERR_ROFS = 30, NFSERR_NAMETOOLONG = 63, NFSERR_NOTEMPTY = 66, NFSERR_DQUOT = 69, NFSERR_STALE = 70, NFSERR_WFLUSH = 99, }; enum { NFNON = 0, NFREG = 1, NFDIR = 2, NFBLK = 3, NFCHR = 4, NFLNK = 5, }; typedef void(CNFS2Prog::*PPROC)(void); CNFS2Prog::CNFS2Prog() : CRPCProg() { m_nUID = m_nGID = 0; } CNFS2Prog::~CNFS2Prog() { } void CNFS2Prog::SetUserID(unsigned int nUID, unsigned int nGID) { m_nUID = nUID; m_nGID = nGID; } int CNFS2Prog::Process(IInputStream *pInStream, IOutputStream *pOutStream, ProcessParam *pParam) { static PPROC pf[] = {&CNFS2Prog::ProcedureNULL, &CNFS2Prog::ProcedureGETATTR, &CNFS2Prog::ProcedureSETATTR, &CNFS2Prog::ProcedureNOTIMP, &CNFS2Prog::ProcedureLOOKUP, &CNFS2Prog::ProcedureNOTIMP, &CNFS2Prog::ProcedureREAD, &CNFS2Prog::ProcedureNOTIMP, &CNFS2Prog::ProcedureWRITE, &CNFS2Prog::ProcedureCREATE, &CNFS2Prog::ProcedureREMOVE, &CNFS2Prog::ProcedureRENAME, &CNFS2Prog::ProcedureNOTIMP, &CNFS2Prog::ProcedureNOTIMP, &CNFS2Prog::ProcedureMKDIR, &CNFS2Prog::ProcedureRMDIR, &CNFS2Prog::ProcedureREADDIR, &CNFS2Prog::ProcedureSTATFS}; PrintLog("NFS "); if (pParam->nProc >= sizeof(pf) / sizeof(PPROC)) { ProcedureNOTIMP(); PrintLog("\n"); return PRC_NOTIMP; } m_pInStream = pInStream; m_pOutStream = pOutStream; m_nResult = PRC_OK; (this->*pf[pParam->nProc])(); PrintLog("\n"); return m_nResult; } void CNFS2Prog::ProcedureNULL(void) { PrintLog("NULL"); } void CNFS2Prog::ProcedureGETATTR(void) { char *path; PrintLog("GETATTR"); path = GetPath(); if (!CheckFile(path)) return; m_pOutStream->Write(NFS_OK); WriteFileAttributes(path); } void CNFS2Prog::ProcedureSETATTR(void) { char *path; unsigned long nMode, nAttr; PrintLog("SETATTR"); path = GetPath(); if (!CheckFile(path)) return; m_pInStream->Read(&nMode); nAttr = 0; if ((nMode & 0x100) != 0) nAttr |= S_IREAD; if ((nMode & 0x80) != 0) nAttr |= S_IWRITE; _chmod(path, nAttr); m_pOutStream->Write(NFS_OK); WriteFileAttributes(path); } void CNFS2Prog::ProcedureLOOKUP(void) { char *path; PrintLog("LOOKUP"); path = GetFullPath(); if (!CheckFile(path)) return; m_pOutStream->Write(NFS_OK); m_pOutStream->Write(GetFileHandle(path), FHSIZE); WriteFileAttributes(path); } void CNFS2Prog::ProcedureREAD(void) { char *path; unsigned long nOffset, nCount, nTotalCount; FILE *file; char *pBuffer; unsigned char opaque[3] = {0, 0, 0}; PrintLog("READ"); path = GetPath(); if (!CheckFile(path)) return; m_pInStream->Read(&nOffset); m_pInStream->Read(&nCount); m_pInStream->Read(&nTotalCount); file = fopen(path, "rb"); fseek(file, nOffset, SEEK_SET); pBuffer = new char[nCount]; nCount = fread(pBuffer, sizeof(char), nCount, file); fclose(file); m_pOutStream->Write(NFS_OK); WriteFileAttributes(path); m_pOutStream->Write(nCount); //length m_pOutStream->Write(pBuffer, nCount); //contents nCount &= 3; if (nCount != 0) m_pOutStream->Write(opaque, 4 - nCount); //opaque bytes delete[] pBuffer; } void CNFS2Prog::ProcedureWRITE(void) { char *path; unsigned long nBeginOffset, nOffset, nTotalCount, nCount; FILE *file; char *pBuffer; PrintLog("WRITE"); path = GetPath(); if (!CheckFile(path)) return; m_pInStream->Read(&nBeginOffset); m_pInStream->Read(&nOffset); m_pInStream->Read(&nTotalCount); m_pInStream->Read(&nCount); pBuffer = new char[nCount]; m_pInStream->Read(pBuffer, nCount); file = fopen(path, "r+b"); fseek(file, nOffset, SEEK_SET); nCount = fwrite(pBuffer, sizeof(char), nCount, file); fclose(file); delete[] pBuffer; m_pOutStream->Write(NFS_OK); WriteFileAttributes(path); } void CNFS2Prog::ProcedureCREATE(void) { char *path; FILE *file; PrintLog("CREATE"); path = GetFullPath(); if (path == NULL) return; file = fopen(path, "wb"); fclose(file); m_pOutStream->Write(NFS_OK); m_pOutStream->Write(GetFileHandle(path), FHSIZE); WriteFileAttributes(path); } void CNFS2Prog::ProcedureREMOVE(void) { char *path; PrintLog("REMOVE"); path = GetFullPath(); if (!CheckFile(path)) return; remove(path); m_pOutStream->Write(NFS_OK); } void CNFS2Prog::ProcedureRENAME(void) { char *path; char pathFrom[MAXPATHLEN], *pathTo; PrintLog("RENAME"); path = GetFullPath(); if (!CheckFile(path)) return; strcpy(pathFrom, path); pathTo = GetFullPath(); RenameFile(pathFrom, pathTo); m_pOutStream->Write(NFS_OK); } void CNFS2Prog::ProcedureMKDIR(void) { char *path; PrintLog("MKDIR"); path = GetFullPath(); if (path == NULL) return; _mkdir(path); m_pOutStream->Write(NFS_OK); m_pOutStream->Write(GetFileHandle(path), FHSIZE); WriteFileAttributes(path); } void CNFS2Prog::ProcedureRMDIR(void) { char *path; PrintLog("RMDIR"); path = GetFullPath(); if (!CheckFile(path)) return; _rmdir(path); m_pOutStream->Write(NFS_OK); } void CNFS2Prog::ProcedureREADDIR(void) { unsigned char opaque[3] = {0, 0, 0}; char *path, filePath[MAXPATHLEN + 1]; int handle; struct _finddata_t fileinfo; unsigned long count; unsigned int nLen; PrintLog("READDIR"); path = GetPath(); if (!CheckFile(path)) return; m_pOutStream->Write(NFS_OK); sprintf(filePath, "%s\\*", path); count = 0; handle = _findfirst(filePath, &fileinfo); if (handle) { do { m_pOutStream->Write(1); //value follows sprintf(filePath, "%s\\%s", path, fileinfo.name); m_pOutStream->Write(GetFileID(filePath)); //file id m_pOutStream->Write(nLen = strlen(fileinfo.name)); m_pOutStream->Write(fileinfo.name, nLen); nLen &= 3; if (nLen != 0) m_pOutStream->Write(opaque, 4 - nLen); //opaque bytes m_pOutStream->Write(++count); //cookie } while (_findnext(handle, &fileinfo) == 0); _findclose(handle); } m_pOutStream->Write(0); //no value follows m_pOutStream->Write(1); //EOF } void CNFS2Prog::ProcedureSTATFS(void) { char *path; int nDrive; struct _diskfree_t data; PrintLog("STATFS"); path = GetPath(); if (!CheckFile(path)) return; if (path[0] >= 'a' && path[0] <= 'z') nDrive = path[0] - 'a' + 1; else if (path[0] >= 'A' && path[0] <= 'Z') nDrive = path[0] - 'A' + 1; else { m_pOutStream->Write(NFSERR_NOENT); return; } _getdiskfree(nDrive, &data); m_pOutStream->Write(NFS_OK); m_pOutStream->Write(data.sectors_per_cluster * data.bytes_per_sector); //transfer size m_pOutStream->Write(data.sectors_per_cluster * data.bytes_per_sector); //block size m_pOutStream->Write(data.total_clusters); //total blocks m_pOutStream->Write(data.avail_clusters); //free blocks m_pOutStream->Write(data.avail_clusters); //available blocks } void CNFS2Prog::ProcedureNOTIMP(void) { PrintLog("NOTIMP"); m_nResult = PRC_NOTIMP; } char *CNFS2Prog::GetPath(void) { unsigned char fhandle[FHSIZE]; char *path; m_pInStream->Read(fhandle, FHSIZE); path = GetFilePath(fhandle); if (path == NULL) return NULL; PrintLog(" %s", path); return path; } char *CNFS2Prog::GetFullPath(void) { char *path; static char filePath[MAXPATHLEN + 1]; unsigned int nLen1, nBytes; unsigned long nLen2; path = GetPath(); if (path == NULL) return NULL; nLen1 = strlen(path); m_pInStream->Read(&nLen2); sprintf(filePath, "%s\\", path); m_pInStream->Read(filePath + nLen1 + 1, nLen2); filePath[nLen1 + 1 + nLen2] = '\0'; PrintLog("%s", filePath + nLen1); if ((nLen2 & 3) != 0) m_pInStream->Read(&nBytes, 4 - (nLen2 & 3)); return filePath; } bool CNFS2Prog::CheckFile(char *path) { if (path == NULL) { m_pOutStream->Write(NFSERR_STALE); return false; } if (!FileExists(path)) { m_pOutStream->Write(NFSERR_NOENT); return false; } return true; } bool CNFS2Prog::WriteFileAttributes(char *path) { struct stat data; unsigned long nValue; if (stat(path, &data) != 0) return false; switch (data.st_mode & S_IFMT) { case S_IFREG: nValue = NFREG; break; case S_IFDIR: nValue = NFDIR; break; case S_IFCHR: nValue = NFCHR; break; default: nValue = NFNON; break; } m_pOutStream->Write(nValue); //type if (nValue == NFREG) nValue = 0x8000; else if (nValue == NFDIR) nValue = 0x4000; else nValue = 0; if ((data.st_mode & S_IREAD) != 0) nValue |= 0x124; if ((data.st_mode & S_IWRITE) != 0) nValue |= 0x92; //if ((data.st_mode & S_IEXEC) != 0) nValue |= 0x49; m_pOutStream->Write(nValue); //mode m_pOutStream->Write(data.st_nlink); //nlink m_pOutStream->Write(m_nUID); //uid m_pOutStream->Write(m_nGID); //gid m_pOutStream->Write(data.st_size); //size m_pOutStream->Write(8192); //blocksize m_pOutStream->Write(0); //rdev m_pOutStream->Write((data.st_size + 8191) / 8192); //blocks m_pOutStream->Write(4); //fsid m_pOutStream->Write(GetFileID(path)); //fileid m_pOutStream->Write(data.st_atime); //atime m_pOutStream->Write(0); //atime m_pOutStream->Write(data.st_mtime); //mtime m_pOutStream->Write(0); //mtime m_pOutStream->Write(data.st_ctime); //ctime m_pOutStream->Write(0); //ctime return true; }
[ [ [ 1, 466 ] ] ]
f1d55defd6b2afd7ac4fafaf7985dd34be2f1b5a
0b66a94448cb545504692eafa3a32f435cdf92fa
/tags/0.8/cbear.berlios.de/windows/int_ptr.hpp
99b3b1f1769f9193b4ef825c7c4951f66e9407bd
[ "MIT" ]
permissive
BackupTheBerlios/cbear-svn
e6629dfa5175776fbc41510e2f46ff4ff4280f08
0109296039b505d71dc215a0b256f73b1a60b3af
refs/heads/master
2021-03-12T22:51:43.491728
2007-09-28T01:13:48
2007-09-28T01:13:48
40,608,034
0
0
null
null
null
null
UTF-8
C++
false
false
386
hpp
#ifndef CBEAR_BERLIOS_DE_WINDOWS_INT_PTR_HPP_INCLUDED #define CBEAR_BERLIOS_DE_WINDOWS_INT_PTR_HPP_INCLUDED #include <cbear.berlios.de/windows/basetsd.h> namespace cbear_berlios_de { namespace windows { // Signed integral type for pointer precision. Use when casting a pointer to an // integer to perform pointer arithmetic. typedef INT_PTR int_ptr_t; } } #endif
[ "sergey_shandar@e6e9985e-9100-0410-869a-e199dc1b6838" ]
[ [ [ 1, 18 ] ] ]
cb40a5319f9a5c372afccc7dfbd3157cea518a56
075043812c30c1914e012b52c60bc3be2cfe49cc
/src/SDLGUIlibTests/SDL_Fixture.h
b7fee6cd1013f277ad13175a51caadc584545e0f
[]
no_license
Luke-Vulpa/Shoko-Rocket
8a916d70bf777032e945c711716123f692004829
6f727a2cf2f072db11493b739cc3736aec40d4cb
refs/heads/master
2020-12-28T12:03:14.055572
2010-02-28T11:58:26
2010-02-28T11:58:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
746
h
#pragma once #include <sdl.h> #include <iostream> #include <Widget.h> struct SDL_fixture { bool SDL_init_ok; SDL_Surface* screen; SDL_fixture() { SDL_init_ok = true; int init_result; if((init_result = SDL_Init(SDL_INIT_VIDEO)) != 0) { SDL_init_ok = false; std::cout << "Error starting SDL\n" << init_result << "\n"; } else { screen = SDL_SetVideoMode(640, 480, 32, SDL_DOUBLEBUF | SDL_HWSURFACE); if(!screen) { SDL_init_ok = false; std::cout << "Error starting SDL\n"; }else { // std::cout << "Starting SDL\n"; } } } ~SDL_fixture() { if(SDL_init_ok) { SDL_Quit(); //std::cout << "Shutting down SDL\n"; } Widget::ClearRoot(); } };
[ [ [ 1, 42 ] ] ]
b07cfb8ff41fe68e23922399d46db7e29d16bbd6
7f30cb109e574560873a5eb8bb398c027f85eeee
/src/wxAnonymizeDialog.cxx
e40576a2fb2466e8ae2919866dc5a33a7b186924
[]
no_license
svn2github/MITO
e8fd0e0b6eebf26f2382f62660c06726419a9043
71d1269d7666151df52d6b5a98765676d992349a
refs/heads/master
2021-01-10T03:13:55.083371
2011-10-14T15:40:14
2011-10-14T15:40:14
47,415,786
1
0
null
null
null
null
UTF-8
C++
false
false
24,909
cxx
/** * \file wxAnonymizeDialog.cxx * \brief File per la creazione del dialog per l'anonimizzazione * \author ICAR-CNR Napoli */ // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxAnonymizeDialog.h" #include "anonymizeFilter.h" #include <wx/busyinfo.h> BEGIN_EVENT_TABLE( wxAnonymizeDialog, wxDialog ) EVT_CHECKBOX(id_CheckPatientName, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckPatientId, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckPatientAge, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckPatientBirthdate, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckInstitutionName, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckStudyDate, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckStudyTime, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckAcquisitionDate, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckSeriesDate, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckSeriesTime, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckImageDate, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckImageTime, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckReferringPhysician, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckAccessionNumber, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckPatientSex, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckPatientWeight, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialSponsorName, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialProtocolId, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialProtocolName, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialSiteId, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialSiteName, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialSubjectReadingId, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialSubjectId, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialTimePointId, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialTimePointDescription, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckTrialCoordinatingCenterName, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckPerformingPhysician, wxAnonymizeDialog::EnableCheck) EVT_CHECKBOX(id_CheckPhysicianOfRecord, wxAnonymizeDialog::EnableCheck) EVT_BUTTON(ID_SAVE, wxAnonymizeDialog::onSave) END_EVENT_TABLE() wxAnonymizeDialog::wxAnonymizeDialog(wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style) { Create(parent, id, caption, pos, size, style); } bool wxAnonymizeDialog::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) { SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS); wxDialog::Create( parent, id, caption, pos, size, style ); CreateControls(); Centre(); _inputPath = ""; _series = false; _rgb = false; return true; } /*! * Control creation for dialogAnonimize */ void wxAnonymizeDialog::CreateControls() { wxAnonymizeDialog* itemDialog = this; _checkBoxPatientName = new wxCheckBox( itemDialog, id_CheckPatientName, _("Patient's Name"), wxPoint(34, 34), wxDefaultSize, 0 ); _checkBoxPatientName->SetValue(false); _textPatientName = new wxTextCtrl( itemDialog, id_PatientName, _T("Anonymized"), wxPoint(170,30), wxSize(150,20), 0 ); _textPatientName->Enable(false); _checkBoxPatientId = new wxCheckBox( itemDialog, id_CheckPatientId, _("Patient's ID"), wxPoint(34, 74), wxDefaultSize, 0 ); _checkBoxPatientId->SetValue(false); _textPatientId = new wxTextCtrl( itemDialog, id_PatientId, _T("000"), wxPoint(170,70), wxSize(150,20), 0 ); _textPatientId->Enable(false); _checkBoxPatientAge = new wxCheckBox( itemDialog, id_CheckPatientAge, _("Patient's Age"), wxPoint(34, 114), wxDefaultSize, 0 ); _checkBoxPatientAge->SetValue(false); _textPatientAge = new wxTextCtrl( itemDialog, id_PatientAge, _T("000Y"), wxPoint(170,110), wxSize(150,20), 0 ); _textPatientAge->Enable(false); _checkBoxPatientBirthdate = new wxCheckBox( itemDialog, id_CheckPatientBirthdate, _("Patient's Date of Birth"), wxPoint(34, 154), wxDefaultSize, 0 ); _checkBoxPatientBirthdate->SetValue(false); _textPatientBirthdate = new wxTextCtrl( itemDialog, id_PatientBirthdate, _T("99999999"), wxPoint(170,150), wxSize(150,20), 0 ); _textPatientBirthdate->Enable(false); _checkBoxInstitutionName = new wxCheckBox( itemDialog, id_CheckInstitutionName, _("Institution Name"), wxPoint(34, 194), wxDefaultSize, 0 ); _checkBoxInstitutionName->SetValue(false); _textInstitutionName= new wxTextCtrl( itemDialog, id_InstitutionName, _T("NULL"), wxPoint(170,190), wxSize(150,20), 0 ); _textInstitutionName->Enable(false); _checkBoxStudyDate = new wxCheckBox( itemDialog, id_CheckStudyDate, _("Study Date"), wxPoint(34, 234), wxDefaultSize, 0 ); _checkBoxStudyDate->SetValue(false); _textStudyDate = new wxTextCtrl( itemDialog, id_StudyDate, _T("99999999"), wxPoint(170,230), wxSize(150,20), 0 ); _textStudyDate->Enable(false); _checkBoxStudyTime = new wxCheckBox( itemDialog, id_CheckStudyTime, _("Study Time"), wxPoint(34, 274), wxDefaultSize, 0 ); _checkBoxStudyTime->SetValue(false); _textStudyTime = new wxTextCtrl( itemDialog, id_StudyTime, _T("000000.00"), wxPoint(170,270), wxSize(150,20), 0 ); _textStudyTime->Enable(false); _checkBoxAcquisitionDate = new wxCheckBox( itemDialog, id_CheckAcquisitionDate, _("Acquisition Date"), wxPoint(34, 314), wxDefaultSize, 0 ); _checkBoxAcquisitionDate->SetValue(false); _textAcquisitionDate = new wxTextCtrl( itemDialog, id_AcquisitionDate, _T("99999999"), wxPoint(170,310), wxSize(150,20), 0 ); _textAcquisitionDate->Enable(false); _checkBoxSeriesDate = new wxCheckBox( itemDialog, id_CheckSeriesDate, _("Series Date"), wxPoint(34, 354), wxDefaultSize, 0 ); _checkBoxSeriesDate->SetValue(false); _textSeriesDate = new wxTextCtrl( itemDialog, id_SeriesDate, _T("99999999"), wxPoint(170,350), wxSize(150,20), 0 ); _textSeriesDate->Enable(false); _checkBoxSeriesTime = new wxCheckBox( itemDialog, id_CheckSeriesTime, _("Series Time"), wxPoint(34, 394), wxDefaultSize, 0 ); _checkBoxSeriesTime->SetValue(false); _textSeriesTime= new wxTextCtrl( itemDialog, id_SeriesTime, _T("000000.00"), wxPoint(170,390), wxSize(150,20), 0 ); _textSeriesTime->Enable(false); _checkBoxImageDate = new wxCheckBox( itemDialog, id_CheckImageDate, _("Image Date"), wxPoint(34, 434), wxDefaultSize, 0 ); _checkBoxImageDate->SetValue(false); _textImageDate = new wxTextCtrl( itemDialog, id_ImageDate, _T("99999999"), wxPoint(170,430), wxSize(150,20), 0 ); _textImageDate->Enable(false); _checkBoxImageTime= new wxCheckBox( itemDialog, id_CheckImageTime, _("Image Time"), wxPoint(34, 474), wxDefaultSize, 0 ); _checkBoxImageTime->SetValue(false); _textImageTime = new wxTextCtrl( itemDialog, id_ImageTime, _T("000000.00"), wxPoint(170,470), wxSize(150,20), 0 ); _textImageTime->Enable(false); _checkBoxReferringPhysician = new wxCheckBox( itemDialog, id_CheckReferringPhysician, _("Referring Physician"), wxPoint(34, 514), wxDefaultSize, 0 ); _checkBoxReferringPhysician->SetValue(false); _textReferringPhysician = new wxTextCtrl( itemDialog, id_ReferringPhysician, _T("NULL"), wxPoint(170,510), wxSize(150,20), 0 ); _textReferringPhysician->Enable(false); _checkBoxAccessionNumber = new wxCheckBox( itemDialog, id_CheckAccessionNumber, _("Accession Number"), wxPoint(34, 554), wxDefaultSize, 0 ); _checkBoxAccessionNumber->SetValue(false); _textAccessionNumber = new wxTextCtrl( itemDialog, id_AccessionNumber, _T("000"), wxPoint(170,550), wxSize(150,20), 0 ); _textAccessionNumber->Enable(false); _checkBoxPatientSex = new wxCheckBox( itemDialog, id_CheckPatientSex, _("Patient's Sex"), wxPoint(350, 34), wxDefaultSize, 0 ); _checkBoxPatientSex->SetValue(false); _textPatientSex= new wxTextCtrl( itemDialog, id_PatientSex, _T("O"), wxPoint(530,30), wxSize(150,20), 0 ); _textPatientSex->Enable(false); _checkBoxPatientWeight= new wxCheckBox( itemDialog, id_CheckPatientWeight, _("Patient's Weight"), wxPoint(350, 74), wxDefaultSize, 0 ); _checkBoxPatientWeight->SetValue(false); _textPatientWeight = new wxTextCtrl( itemDialog, id_PatientWeight, _T("00"), wxPoint(530,70), wxSize(150,20), 0 ); _textPatientWeight->Enable(false); _checkBoxTrialSponsorName = new wxCheckBox( itemDialog, id_CheckTrialSponsorName, _("Trial Sponsor Name"), wxPoint(350, 114), wxDefaultSize, 0 ); _checkBoxTrialSponsorName->SetValue(false); _textTrialSponsorName= new wxTextCtrl( itemDialog, id_TrialSponsorName, _T("NULL"), wxPoint(530,110), wxSize(150,20), 0 ); _textTrialSponsorName->Enable(false); _checkBoxTrialProtocolId = new wxCheckBox( itemDialog, id_CheckTrialProtocolId, _("Trial Protocol ID"), wxPoint(350, 154), wxDefaultSize, 0 ); _checkBoxTrialProtocolId->SetValue(false); _textTrialProtocolId = new wxTextCtrl( itemDialog, id_TrialProtocolId, _T("000"), wxPoint(530,150), wxSize(150,20), 0 ); _textTrialProtocolId->Enable(false); _checkBoxTrialProtocolName = new wxCheckBox( itemDialog, id_CheckTrialProtocolName, _("Trial Protocol Name"), wxPoint(350, 194), wxDefaultSize, 0 ); _checkBoxTrialProtocolName->SetValue(false); _textTrialProtocolName = new wxTextCtrl( itemDialog, id_TrialProtocolName, _T("NULL"), wxPoint(530,190), wxSize(150,20), 0 ); _textTrialProtocolName->Enable(false); _checkBoxTrialSiteId = new wxCheckBox( itemDialog, id_CheckTrialSiteId, _("Trial Site ID"), wxPoint(350, 234), wxDefaultSize, 0 ); _checkBoxTrialSiteId->SetValue(false); _textTrialSiteId = new wxTextCtrl( itemDialog, id_TrialSiteId, _T("000"), wxPoint(530,230), wxSize(150,20), 0 ); _textTrialSiteId->Enable(false); _checkBoxTrialSiteName = new wxCheckBox( itemDialog, id_CheckTrialSiteName, _("Trial Site Name"), wxPoint(350, 274), wxDefaultSize, 0 ); _checkBoxTrialSiteName->SetValue(false); _textTrialSiteName = new wxTextCtrl( itemDialog, id_TrialSiteName, _T("NULL"), wxPoint(530,270), wxSize(150,20), 0 ); _textTrialSiteName->Enable(false); _checkBoxTrialSubjectReadingId = new wxCheckBox( itemDialog, id_CheckTrialSubjectReadingId, _("Trial Subject Reading ID"), wxPoint(350, 314), wxDefaultSize, 0 ); _checkBoxTrialSubjectReadingId->SetValue(false); _textTrialSubjectReadingId = new wxTextCtrl( itemDialog, id_TrialSubjectReadingId, _T("000"), wxPoint(530,310), wxSize(150,20), 0 ); _textTrialSubjectReadingId->Enable(false); _checkBoxTrialSubjectId= new wxCheckBox( itemDialog, id_CheckTrialSubjectId, _("Trial Subject ID"), wxPoint(350, 354), wxDefaultSize, 0 ); _checkBoxTrialSubjectId->SetValue(false); _textTrialSubjectId = new wxTextCtrl( itemDialog, id_TrialSubjectId, _T("000"), wxPoint(530,350), wxSize(150,20), 0 ); _textTrialSubjectId->Enable(false); _checkBoxTrialTimePointId = new wxCheckBox( itemDialog, id_CheckTrialTimePointId, _("Trial Time Point ID"), wxPoint(350, 394), wxDefaultSize, 0 ); _checkBoxTrialTimePointId->SetValue(false); _textTrialTimePointId = new wxTextCtrl( itemDialog, id_TrialTimePointId, _T("000"), wxPoint(530,390), wxSize(150,20), 0 ); _textTrialTimePointId->Enable(false); _checkBoxTrialTimePointDescription = new wxCheckBox( itemDialog, id_CheckTrialTimePointDescription, _("Trial Time Point Description"), wxPoint(350, 434), wxDefaultSize, 0 ); _checkBoxTrialTimePointDescription->SetValue(false); _textTrialTimePointDescription = new wxTextCtrl( itemDialog, id_TrialTimePointDescription, _T("NULL"), wxPoint(530,430), wxSize(150,20), 0 ); _textTrialTimePointDescription->Enable(false); _checkBoxTrialCoordinatingCenterName = new wxCheckBox( itemDialog, id_CheckTrialCoordinatingCenterName, _("Trial Coordinating Center Name"), wxPoint(350, 474), wxDefaultSize, 0 ); _checkBoxTrialCoordinatingCenterName->SetValue(false); _textTrialCoordinatingCenterName = new wxTextCtrl( itemDialog, id_TrialCoordinatingCenterName, _T("NULL"), wxPoint(530,470), wxSize(150,20), 0 ); _textTrialCoordinatingCenterName->Enable(false); _checkBoxPerformingPhysician = new wxCheckBox( itemDialog, id_CheckPerformingPhysician, _("Performing Physician"), wxPoint(350, 514), wxDefaultSize, 0 ); _checkBoxPerformingPhysician->SetValue(false); _textPerformingPhysician = new wxTextCtrl( itemDialog, id_PerformingPhysician, _T("NULL"), wxPoint(530,510), wxSize(150,20), 0 ); _textPerformingPhysician->Enable(false); _checkBoxPhysicianOfRecord = new wxCheckBox( itemDialog, id_CheckPhysicianOfRecord, _("Physician of Record"), wxPoint(350, 554), wxDefaultSize, 0 ); _checkBoxPhysicianOfRecord->SetValue(false); _textPhysicianOfRecord = new wxTextCtrl( itemDialog, id_PhysicianOfRecord, _T("NULL"), wxPoint(530,550), wxSize(150,20), 0 ); _textPhysicianOfRecord->Enable(false); wxStdDialogButtonSizer* itemStdDialogButtonSizer = new wxStdDialogButtonSizer; this->SetSizer(itemStdDialogButtonSizer); itemStdDialogButtonSizer->Realize(); wxButton* itemButtonSave = new wxButton( this, ID_SAVE, _("&Save"), wxPoint(500,585), wxDefaultSize, 0 ); itemStdDialogButtonSizer->AddButton(itemButtonSave); wxButton* itemButtonCancel = new wxButton( this, wxID_CANCEL, _("&Cancel"), wxPoint(600,585), wxDefaultSize, 0 ); itemStdDialogButtonSizer->AddButton(itemButtonCancel); } void wxAnonymizeDialog::EnableCheck(wxCommandEvent& event) { if(_checkBoxPatientName->GetValue()==true) { _textPatientName->Enable(true); } else _textPatientName->Enable(false); if(_checkBoxPatientId->GetValue()==true) { _textPatientId->Enable(true); } else _textPatientId->Enable(false); if(_checkBoxPatientAge->GetValue()==true) { _textPatientAge->Enable(true); //if(!strcmp(_textPatientAge->GetValue(), "nnnX, X={D|W|M|Y}")) _textPatientAge->SetValue(""); } else _textPatientAge->Enable(false); if(_checkBoxPatientBirthdate->GetValue()==true) { _textPatientBirthdate->Enable(true); //if(!strcmp(_textPatientBirthdate->GetValue(), "yyyymmdd")) _textPatientBirthdate->SetValue(""); } else _textPatientBirthdate->Enable(false); if(_checkBoxInstitutionName->GetValue()==true) { _textInstitutionName->Enable(true); } else _textInstitutionName->Enable(false); if(_checkBoxStudyDate->GetValue()==true) { _textStudyDate->Enable(true); //if(!strcmp(_textStudyDate->GetValue(), "yyyymmdd")) _textStudyDate->SetValue(""); } else _textStudyDate->Enable(false); if(_checkBoxStudyTime->GetValue()==true) { _textStudyTime->Enable(true); //if(!strcmp(_textStudyTime->GetValue(), "hhmmss.frac")) _textStudyTime->SetValue(""); } else _textStudyTime->Enable(false); if(_checkBoxAcquisitionDate->GetValue()==true) { _textAcquisitionDate->Enable(true); //if(!strcmp(_textAcquisitionDate->GetValue(), "yyyymmdd")) _textAcquisitionDate->SetValue(""); } else _textAcquisitionDate->Enable(false); if(_checkBoxSeriesDate->GetValue()==true) { _textSeriesDate->Enable(true); //if(!strcmp(_textSeriesDate->GetValue(), "yyyymmdd")) _textSeriesDate->SetValue(""); } else _textSeriesDate->Enable(false); if(_checkBoxSeriesTime->GetValue()==true) { _textSeriesTime->Enable(true); //if(!strcmp(_textSeriesTime->GetValue(), "hhmmss.frac")) _textSeriesTime->SetValue(""); } else _textSeriesTime->Enable(false); if(_checkBoxImageDate->GetValue()==true) { _textImageDate->Enable(true); //if(!strcmp(_textImageDate->GetValue(), "yyyymmdd")) _textImageDate->SetValue(""); } else _textImageDate->Enable(false); if(_checkBoxImageTime->GetValue()==true) { _textImageTime->Enable(true); //if(!strcmp(_textImageTime->GetValue(), "hhmmss.frac")) _textImageTime->SetValue(""); } else _textImageTime->Enable(false); if(_checkBoxReferringPhysician->GetValue()==true) { _textReferringPhysician->Enable(true); } else _textReferringPhysician->Enable(false); if(_checkBoxAccessionNumber->GetValue()==true) { _textAccessionNumber->Enable(true); } else _textAccessionNumber->Enable(false); if(_checkBoxPatientSex->GetValue()==true) { _textPatientSex->Enable(true); } else _textPatientSex->Enable(false); if(_checkBoxPatientWeight->GetValue()==true) { _textPatientWeight->Enable(true); } else _textPatientWeight->Enable(false); if(_checkBoxTrialSponsorName->GetValue()==true) { _textTrialSponsorName->Enable(true); } else _textTrialSponsorName->Enable(false); if(_checkBoxTrialProtocolId->GetValue()==true) { _textTrialProtocolId->Enable(true); } else _textTrialProtocolId->Enable(false); if(_checkBoxTrialSiteId->GetValue()==true) { _textTrialSiteId->Enable(true); } else _textTrialSiteId->Enable(false); if(_checkBoxTrialSiteName->GetValue()==true) { _textTrialSiteName->Enable(true); } else _textTrialSiteName->Enable(false); if(_checkBoxTrialSubjectReadingId->GetValue()==true) { _textTrialSubjectReadingId->Enable(true); } else _textTrialSubjectReadingId->Enable(false); if(_checkBoxTrialSubjectId->GetValue()==true) { _textTrialSubjectId->Enable(true); } else _textTrialSubjectId->Enable(false); if(_checkBoxTrialProtocolName->GetValue()==true) { _textTrialProtocolName->Enable(true); } else _textTrialProtocolName->Enable(false); if(_checkBoxTrialTimePointId->GetValue()==true) { _textTrialTimePointId->Enable(true); } else _textTrialTimePointId->Enable(false); if(_checkBoxTrialTimePointDescription->GetValue()==true) { _textTrialTimePointDescription->Enable(true); } else _textTrialTimePointDescription->Enable(false); if(_checkBoxTrialCoordinatingCenterName->GetValue()==true) { _textTrialCoordinatingCenterName->Enable(true); } else _textTrialCoordinatingCenterName->Enable(false); if(_checkBoxPerformingPhysician->GetValue()==true) { _textPerformingPhysician->Enable(true); } else _textPerformingPhysician->Enable(false); if(_checkBoxPhysicianOfRecord->GetValue()==true) { _textPhysicianOfRecord->Enable(true); } else _textPhysicianOfRecord->Enable(false); } bool wxAnonymizeDialog::ShowToolTips() { return true; } wxBitmap wxAnonymizeDialog::GetBitmapResource(const wxString& name) { wxUnusedVar(name); return wxNullBitmap; } wxIcon wxAnonymizeDialog::GetIconResource( const wxString& name ) { wxUnusedVar(name); return wxNullIcon; } void wxAnonymizeDialog::onSave(wxCommandEvent& event) { bool check = false; anonymizeData *aData = new anonymizeData; if(_checkBoxPatientName->GetValue()==true) { aData->patientName = _textPatientName->GetValue(); check = true; } else aData->patientName = ""; if(_checkBoxPatientId->GetValue()==true) { aData->patientId = _textPatientId->GetValue(); check = true; } else aData->patientId = ""; if(_checkBoxPatientAge->GetValue()==true) { aData->patientAge = _textPatientAge->GetValue(); check = true; } else aData->patientAge = ""; if(_checkBoxPatientBirthdate->GetValue()==true) { aData->patientBirthdate = _textPatientBirthdate->GetValue(); check = true; } else aData->patientBirthdate = ""; if(_checkBoxInstitutionName->GetValue()==true) { aData->institutionName = _textInstitutionName->GetValue(); check = true; } else aData->institutionName = ""; if(_checkBoxStudyDate->GetValue()==true) { aData->studyDate = _textStudyDate->GetValue(); check = true; } else aData->studyDate = ""; if(_checkBoxStudyTime->GetValue()==true) { aData->studyTime = _textStudyTime->GetValue(); check = true; } else aData->studyDate = ""; if(_checkBoxAcquisitionDate->GetValue()==true) { aData->acquisitionDate = _textAcquisitionDate->GetValue(); check = true; } else aData->acquisitionDate = ""; if(_checkBoxSeriesDate->GetValue()==true) { aData->seriesDate = _textSeriesDate->GetValue(); check = true; } else aData->seriesDate = ""; if(_checkBoxSeriesTime->GetValue()==true) { aData->seriesTime = _textSeriesTime->GetValue(); check = true; } else aData->seriesTime = ""; if(_checkBoxImageDate->GetValue()==true) { aData->imageDate = _textImageDate->GetValue(); check = true; } else aData->imageDate = ""; if(_checkBoxImageTime->GetValue()==true) { aData->imageTime = _textImageTime->GetValue(); check = true; } else aData->imageTime = ""; if(_checkBoxReferringPhysician->GetValue()==true) { aData->referringPhysician = _textReferringPhysician->GetValue(); check = true; } else aData->referringPhysician = ""; if(_checkBoxAccessionNumber->GetValue()==true) { aData->accessionNumber = _textAccessionNumber->GetValue(); check = true; } else aData->accessionNumber = ""; if(_checkBoxPatientSex->GetValue()==true) { aData->patientSex = _textPatientSex->GetValue(); check = true; } else aData->patientSex = ""; if(_checkBoxPatientWeight->GetValue()==true) { aData->patientWeight = _textPatientWeight->GetValue(); check = true; } else aData->patientWeight = ""; if(_checkBoxTrialSponsorName->GetValue()==true) { aData->trialSponsorName = _textTrialSponsorName->GetValue(); check = true; } else aData->trialSponsorName = ""; if(_checkBoxTrialProtocolId->GetValue()==true) { aData->trialProtocolId = _textTrialProtocolId->GetValue(); check = true; } else aData->trialProtocolId = ""; if(_checkBoxTrialSiteId->GetValue()==true) { aData->trialSiteId = _textTrialSiteId->GetValue(); check = true; } else aData->trialSiteId = ""; if(_checkBoxTrialSiteName->GetValue()==true) { aData->trialSiteName = _textTrialSiteName->GetValue(); check = true; } else aData->trialSiteName = ""; if(_checkBoxTrialSubjectReadingId->GetValue()==true) { aData->trialSubjectReadingId = _textTrialSubjectReadingId->GetValue(); check = true; } else aData->trialSubjectReadingId = ""; if(_checkBoxTrialSubjectId->GetValue()==true) { aData->trialSubjectId = _textTrialSubjectId->GetValue(); check = true; } else aData->trialSubjectId = ""; if(_checkBoxTrialProtocolName->GetValue()==true) { aData->trialProtocolName = _textTrialProtocolName->GetValue(); check = true; } else aData->trialProtocolName = ""; if(_checkBoxTrialTimePointId->GetValue()==true) { aData->trialTimePointId = _textTrialTimePointId->GetValue(); check = true; } else aData->trialTimePointId = ""; if(_checkBoxTrialTimePointDescription->GetValue()==true) { aData->trialTimePointDescription = _textTrialTimePointDescription->GetValue(); check = true; } else aData->trialTimePointDescription = ""; if(_checkBoxTrialCoordinatingCenterName->GetValue()==true) { aData->trialCoordinatingCenterName = _textTrialCoordinatingCenterName->GetValue(); check = true; } else aData->trialCoordinatingCenterName = ""; if(_checkBoxPerformingPhysician->GetValue()==true) { aData->performingPhysician = _textPerformingPhysician->GetValue(); check = true; } else aData->performingPhysician = ""; if(_checkBoxPhysicianOfRecord->GetValue()==true) { aData->physicianOfRecord = _textPhysicianOfRecord->GetValue(); check = true; } else aData->physicianOfRecord = ""; anonymizeFilter anonymize(_rgb); string outputPath; if(check) { if(!_series) { wxFileDialog *dlgFile = new wxFileDialog(this, "Save image", "", "", "DICOM Files(*.dcm;*.dicom)|*.dcm;*.dicom", wxSAVE|wxOVERWRITE_PROMPT, wxDefaultPosition); if (dlgFile->ShowModal() == wxID_OK) { outputPath = dlgFile->GetPath(); wxWindowDisabler disabler; wxBusyInfo wait("Please wait, saving..."); wxBusyCursor cursor; anonymize.anonymizeImage(_inputPath, outputPath, aData); this->Raise(); } dlgFile->Destroy(); delete aData; this->Destroy(); } else { wxDirDialog *dlgDir = new wxDirDialog(this, "Save series", "", wxSAVE|wxDD_NEW_DIR_BUTTON, wxDefaultPosition); if (dlgDir->ShowModal() == wxID_OK) { outputPath = dlgDir->GetPath(); wxWindowDisabler disabler; wxBusyInfo wait("Please wait, saving ..."); wxBusyCursor cursor; anonymize.anonymizeSeries(_inputPath, outputPath, aData); this->Raise(); } dlgDir->Destroy(); delete aData; this->Destroy(); } } else { wxMessageDialog* messDialog = new wxMessageDialog(this, _T("_check one box at least."), _T("MITO"), wxOK | wxICON_INFORMATION); if (messDialog->ShowModal()==wxID_OK) messDialog->Destroy(); delete aData; } }
[ "kg_dexterp37@fde90bc1-0431-4138-8110-3f8199bc04de" ]
[ [ [ 1, 626 ] ] ]
95b97e8202719ad3b8c6787c46d96608e85dccba
7a310d01d1a4361fd06b40a74a2afc8ddc23b4d3
/src/SearchDialog.h
f011565544f854f4e61ea27f8c4892f0785ccc58
[]
no_license
plus7/DonutG
b6fec6111d25b60f9a9ae5798e0ab21bb2fa28f6
2d204c36f366d6162eaf02f4b2e1b8bc7b403f6b
refs/heads/master
2020-06-01T15:30:31.747022
2010-08-21T18:51:01
2010-08-21T18:51:01
767,753
1
2
null
null
null
null
SHIFT_JIS
C++
false
false
2,567
h
/** * @file SearchDialog.h * @brief 検索ダイアログ. */ #pragma once #include "resource.h" #include "MtlWin.h" class CSearchHistoryDialog : public CDialogImpl<CSearchHistoryDialog> { int m_nRetCode; public: int m_bUseHiFunction; CString m_strKeyWord; SYSTEMTIME m_sysTimeStart; SYSTEMTIME m_sysTimeEnd; BOOL m_bCheckDate; public: CSearchHistoryDialog() : m_nRetCode(0) { //日付指定コントロールを試用するための初期化 INITCOMMONCONTROLSEX icex; icex.dwSize = sizeof ( INITCOMMONCONTROLSEX ); icex.dwICC = ICC_DATE_CLASSES ; InitCommonControlsEx(&icex); //IE5.5以降の履歴用インターフェイスが使えるかチェック //TODO: Gecko化 CComPtr<IUrlHistoryStg2> pHistory; HRESULT hr = CoCreateInstance(CLSID_CUrlHistory, NULL, CLSCTX_INPROC_SERVER, IID_IUrlHistoryStg2, (void **) &pHistory); if ( FAILED(hr) ) { m_bUseHiFunction = FALSE; } else { m_bUseHiFunction = TRUE; } } public: enum { IDD = IDD_DIALOG_SEARCHHISTORY }; BEGIN_MSG_MAP(CSearchHistoryDialog) MESSAGE_HANDLER ( WM_INITDIALOG , OnInitDialog ) COMMAND_ID_HANDLER ( IDC_BTN_SEARCH, OnSearch ) COMMAND_ID_HANDLER ( IDC_BTN_CANCEL, OnCancel ) END_MSG_MAP() private: LRESULT OnSearch(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL & /*bHandled*/) { _GetData(); m_nRetCode = 1; EndDialog(m_nRetCode); return 0; } LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL & /*bHandled*/) { m_nRetCode = 0; EndDialog(m_nRetCode); return 0; } LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL & /*bHandled*/) { if (m_bUseHiFunction == FALSE) { CDateTimePickerCtrl dateStart = GetDlgItem(IDC_DATETIMEPICKER1); CDateTimePickerCtrl dateEnd = GetDlgItem(IDC_DATETIMEPICKER2); CButton btnCheck = GetDlgItem(IDC_CHECK_DATE); dateStart.EnableWindow(FALSE); dateEnd.EnableWindow(FALSE); btnCheck.EnableWindow(FALSE); } return 0; } void _GetData() { CDateTimePickerCtrl dateStart = GetDlgItem(IDC_DATETIMEPICKER1); CDateTimePickerCtrl dateEnd = GetDlgItem(IDC_DATETIMEPICKER2); CButton btnCheck = GetDlgItem(IDC_CHECK_DATE); CEdit edit = GetDlgItem(IDC_EDIT_KEYWORD); dateStart.GetSystemTime(&m_sysTimeStart); dateStart.GetSystemTime(&m_sysTimeEnd); m_bCheckDate = btnCheck.GetCheck() != 0/*? TRUE : FALSE*/; m_strKeyWord = MtlGetWindowText(edit.m_hWnd); } };
[ [ [ 1, 100 ] ] ]
3299b540db193683e1e3eec0c161df47c7c01939
8a8873b129313b24341e8fa88a49052e09c3fa51
/inc/DisplayHelpWindow.h
32c4fbd3f4a317ba9c54d959416969d535d6c72b
[]
no_license
flaithbheartaigh/wapbrowser
ba09f7aa981d65df810dba2156a3f153df071dcf
b0d93ce8517916d23104be608548e93740bace4e
refs/heads/master
2021-01-10T11:29:49.555342
2010-03-08T09:36:03
2010-03-08T09:36:03
50,261,329
1
0
null
null
null
null
GB18030
C++
false
false
2,407
h
/* ============================================================================ Name : CDisplayHelpWindow.h Author : smallcat Version : Copyright : Your copyright notice Description : 用于显示帮助列表中选中的具体项所对应的帮助信息奥^_^ : ============================================================================ */ #ifndef CDISPLAYHELPWINDOW_H #define CDISPLAYHELPWINDOW_H // INCLUDES #include <e32std.h> #include <e32base.h> #include "Window.h" #include "MultiText.h" #include "MControlObserver.h" // CLASS DECLARATION /** * CDisplayHelpWindow * */ class CMultiText; class CDisplayHelpWindow : public CWindow ,public MMultiObserver { public: // Constructors and destructor ~CDisplayHelpWindow(); static CDisplayHelpWindow* NewL(CWindow* aParent,CMainEngine& aMainEngine); static CDisplayHelpWindow* NewLC(CWindow* aParent,CMainEngine& aMainEngine); private: CDisplayHelpWindow(CWindow* aParent,CMainEngine& aMainEngine); void ConstructL(); public://From CWindow //派生类实现激活视图 virtual void DoActivateL(); //派生类实现冻结视图 virtual void DoDeactivate(); //派生类实现绘图 virtual void DoDraw(CGraphic& aGraphic)const; //派生类实现按键事件响应 virtual TBool DoKeyEventL(TInt aKeyCode); //派生类实现命令事件响应 virtual TBool DoHandleCommandL(TInt aCommand); //派生类实现界面尺寸改变 virtual void DoSizeChanged(); //派生类实现设置左右按钮,以便覆盖按钮的控件返回时回复原样 virtual void ChangeButton(); private: void InitPopUpMenu();//好像没有什么用 //from MMultiObserver virtual void MultiEvent(TInt aEvent); //以下是自定义的东东 private: //用于进入具体的模块 TInt iModelNumber;//就是在工厂生产时,标识模块的数字 CMultiText* iMultiText; public: //显示MultiText上面的title,根据帮助内容的不同动态的变化 void LoadTitle(const TDesC& aTitleText); //加载文件的函数,以实现根据帮住内容的不同,动态显示数据的功能 void LoadFileToMultiText(const TDesC& aFileName); //加载标识模块的数字 void LoadEnterModel(TInt aModelNumber); //加载要显示的连接文字 void LoadLinkText(const TDesC& aLinkText); }; #endif // BARCODEHELPWINDOW_H
[ "sungrass.xp@37a08ede-ebbd-11dd-bd7b-b12b6590754f" ]
[ [ [ 1, 84 ] ] ]
cf2a06f81eb7045b31dd1a84c6a824280a9ec8aa
ea72aac3344f9474a0ba52c90ed35e24321b025d
/PathFinding/PathFinding/PathFinding.cpp
ee86e175b6437840cdb4904cdd62c789f72b837e
[]
no_license
nlelouche/ia-2009
3bd7f1e42280001024eaf7433462b2949858b1c2
44c07567c3b74044e59313532b5829f3a3466a32
refs/heads/master
2020-05-17T02:21:02.137224
2009-03-31T01:12:44
2009-03-31T01:12:44
32,657,337
0
0
null
null
null
null
UTF-8
C++
false
false
2,208
cpp
#include "PathFinding.h" //-------------------------------------------------------------- PathFind::PathFind(int * _map[],int _rows,int _cols) : m_pkPath(NULL), m_pkClosedNodes(NULL), m_pkOpenNodes(NULL), m_CurrentNode(NULL), m_pkiPathIT(0), m_pkOpenNodesIT(0), m_pkClosedNodesIT(0) { // Copiamos el mapa pasado a un mapa fijo. for (int i = 0; i > LARGO_MAPA; i++){ m_Map[i] = (int)_map[i]; } /***/ } //-------------------------------------------------------------- PathFind::~PathFind(){ /***/ } //-------------------------------------------------------------- void PathFind::OpenNodes(Node * _node){ // m_pkOpenNodes.insert(_node); // Insertar nodo en la lista /***/ } //-------------------------------------------------------------- void PathFind::CloseNode(Node * _node){ /***/ } //-------------------------------------------------------------- bool PathFind::ExistOpenNodes(){ /***/ return false; } //-------------------------------------------------------------- bool PathFind::IsExitNode(Node *_node){ /***/ return false; } //-------------------------------------------------------------- Node * PathFind::LessValueNode(){ /***/ return m_CurrentNode; } //-------------------------------------------------------------- list<Node*> PathFind::GenerarCamino(){ /***/ return m_pkPath; } //-------------------------------------------------------------- bool PathFind::IsEndingNode(Node * _node){ return false; } //-------------------------------------------------------------- void PathFind::CalculateMap(Node * _initialNode, Node * _endingNode){ // Copiamos Posicion X,Y de nodos inicial y destino. //m_InitialPosition.Initial_X = _initial.Initial_X; //m_InitialPosition.Initial_Y = _initial.Initial_Y; //m_EndingPosition.Ending_X = _ending.Ending_X; //m_EndingPosition.Ending_Y = _ending.Ending_Y; OpenNodes(_initialNode); while (ExistOpenNodes()){ m_CurrentNode = LessValueNode(); if (IsEndingNode(m_CurrentNode)){ //GenerarCamino(); } else { CloseNode(m_CurrentNode); OpenNodes(m_CurrentNode); } } } //--------------------------------------------------------------
[ "calaverax@bb2752b8-1d7e-11de-9d52-39b120432c5d" ]
[ [ [ 1, 84 ] ] ]
2c1d0edc4726326917456493f8cfac103d785d62
5e6ff9e6e8427078135a7b4d3b194bcbf631e9cd
/EngineSource/dpslim/dpslim/Simulation/Source/Messages.cpp
4c7ae9606390029e4359f31320d4ba096bbe40cc
[]
no_license
karakots/dpresurrection
1a6f3fca00edd24455f1c8ae50764142bb4106e7
46725077006571cec1511f31d314ccd7f5a5eeef
refs/heads/master
2016-09-05T09:26:26.091623
2010-02-01T11:24:41
2010-02-01T11:24:41
32,189,181
0
0
null
null
null
null
UTF-8
C++
false
false
136,118
cpp
// Messages.cpp // // Copyright 1998 Salamander Interactive // // Handles the messaging for the microsegment // Created by Ken Karakotsios 11/6/98 // // VdM 2/17/04 // Added SKUsAtPrice in HereIsProductISell // VdM 2/25/04 // replaced kPriceType_ with kPricingType_ constant in HereIsProductISell // #ifndef __MICROSEG__ #include "CMicroSegment.h" #endif #include <stdlib.h> #include <math.h> #include "DBNetworkParams.h" #include "SocialNetwork.h" #include "Consumer.h" #include "RepurchaseModel.h" #include "DBModel.h" #include "Marketutility.h" #include "ProductTree.h" using namespace std; // ------------------------------------------------------------------------------ // Respond to incoming asynchronous data. // ------------------------------------------------------------------------------ int CMicroSegment::AcceptNoAckMessage(int inMessage) { switch(iCtr->Get_MsgInstr(inMessage)) { __MSG_RESPONSE__(kMsg, ResetNoAck) __MSG_RESPONSE__(kMsg_, YouAreInspected) // products __MSG_RESPONSE__(kMarketSimMessage_, SellProduct) __MSG_RESPONSE__(kMarketSimMessage_, HereIsProductISell) __MSG_RESPONSE__(kMarketSimMessage_, HereIsProductINoLongerSell) __MSG_RESPONSE__(kMarketSimMessage_, HereIsMrktControlInfo) __MSG_RESPONSE__(kMarketSimMessage_, HereIsTokenControl) __MSG_RESPONSE__(kMarketSimMessage_, HereIsProductColor) __MSG_RESPONSE__(kMarketSimMessage_, HereIsProductDropRateInfo) __MSG_RESPONSE__(kMarketSimMessage_, PopulationSize) //__MSG_RESPONSE__(kMarketSimMessage_, HereIsInitialUnitsSold) __MSG_RESPONSE__(kMarketSimMessage_, HereIsInitialPenetration) __MSG_RESPONSE__(kFinMessage_, HereIsCurrentTime) // advertising //__MSG_RESPONSE__(kMarketSimMessage_, HereIsStrategyData) __MSG_RESPONSE__(kMarketSimMessage_, HereIsStrategyData1) __MSG_RESPONSE__(kMarketSimMessage_, HereIsStrategyData2) __MSG_RESPONSE__(kMarketSimMessage_, TaskEvent) __MSG_RESPONSE__(kMarketSimMessage_, HereIsMarketUtilityInfo) __MSG_RESPONSE__(kMarketSimMessage_, HereIsASpecialEvent) // SSIO __MSG_RESPONSE__(kMarketSimMessage_, HereIsMicroSegValue) // Channel __MSG_RESPONSE__(kMarketSimMessage_, TellMePenetration) __MSG_RESPONSE__(kMarketSimMessage_, TellMeAddDrops) __MSG_RESPONSE__(kMarketSimMessage_, HereIsProductQuantityAvailable) // segments __MSG_RESPONSE__(kMarketSimMessage_, HereIsSegmentName) __MSG_RESPONSE__(kMarketSimMessage_, HereIsSegmentPointer) __MSG_RESPONSE__(kMarketSimMessage_, CreateOrCloseTransactionFile) // VdM 7/25/01 // user tasks __MSG_RESPONSE__(kMarketSimMessage_, HereIsUserTaskSegInfo); __MSG_RESPONSE__(kMarketSimMessage_, HereIsUserTaskProdInfo); // VdM 4/22/02 // share and penetration __MSG_RESPONSE__(kMarketSimMessage_, HereIsSharePenetration); // VdM 7/25/04 __MSG_RESPONSE__(kMarketSimMessage_, HereIsProductMatrixInfo); __MSG_RESPONSE__(kMarketSimMessage_, HereIsSocNetValue); default: return false; } } // ------------------------------------------------------------------------------ // kMarketSimMessageParam_ProductName // kMarketSimMessageParam_ChannelName // kMarketSimMessageParam_SegmentName // kMarketSimMessageParam_Amount // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsProductQuantityAvailable(int inMessage) { int amount = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_Amount); // -1 means no limit if (amount == -1) return; if (string::StrCmp(&iNameString, (string *) (iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_SegmentName)))) { // get the product and channel name string *prodName; string *channelName; int prodChanIndex; int foundIt = false; prodName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName)); channelName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ChannelName)); // find the product and channel in the iProdsAvailable array for (prodChanIndex =0; prodChanIndex < iProductsAvailable.size(); prodChanIndex++) { if ((string::StrCmp(&((iProductsAvailable[prodChanIndex]).iProdName), prodName)) && (string::StrCmp(&((iProductsAvailable[prodChanIndex]).iChanName), channelName))) { foundIt = true; break; } } if (!foundIt) return; else iProductsAvailable[prodChanIndex].iUnitsAvailableForSale = amount; } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ int CMicroSegment::TranslateStratType(int typeIn) { switch (typeIn) { case kCommunicationType_Advertisement: return kAdvertType_MassMedia; break; case kCommunicationType_AdVariableImpressions: case kCommunicationType_AdVariableImpressionsPrint: case kCommunicationType_AdVariableImpressionsEvent: return kAdvertType_MassMedia; break; case kCommunicationType_Coupon: return kAdvertType_Coupon; break; case kCommunicationType_BOGO: return kAdvertType_BOGO; break; case kCommunicationType_sample: return kAdvertType_Sample; break; case kCommunicationType_event_units_purchased: return kAdvertType_Event_units_purchased; break; case kCommunicationType_event_shopping_trips: return kAdvertType_Event_shopping_trips; break; case kCommunicationType_distribution: return kAdvertType_Distribution; break; case kCommunicationType_Display1: return kAdvertType_Display1; break; case kCommunicationType_Display2: return kAdvertType_Display2; break; case kCommunicationType_Display3: return kAdvertType_Display3; break; case kCommunicationType_Display4: return kAdvertType_Display4; break; case kCommunicationType_Display5: return kAdvertType_Display5; break; case kCommunicationType_display: return kAdvertType_Display; break; case kCommunicationType_event_price_disutility: return kAdvertType_Event_price_disutility; break; default: return -1; } } // ------------------------------------------------------------------------------ // iCtr->Set_MsgParam(msgOut, kDataMsgParam_SendingNode, (int) myNodePtr); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_CompanyName, (int)&iCompanyName); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_ProductName, (int)&iProductName); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_ChannelName, (int)&iChannelName); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_StrategyName, (int)&iName); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_StrategyType, (int)iStratType); // param 1 = name of the segment to whom this task is targeted // kMarketSimMessageParam_StratParam1 // param 2 = duration (in days) of the task // kMarketSimMessageParam_StratParam2 // param 3 = number of impressions // kMarketSimMessageParam_StratParam3 // param 4 = cost per impression // kMarketSimMessageParam_StratParam4 // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsStrategyData1(int msgIn) { // figure number of impressions int tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam3); double impressions = MSG_LONG_TO_FLOAT(tempLong); int stratType = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StrategyType); // make sure this is an advertising message switch (stratType) { case kCommunicationType_Advertisement: case kCommunicationType_AdVariableImpressions: case kCommunicationType_AdVariableImpressionsPrint: case kCommunicationType_AdVariableImpressionsEvent: case kCommunicationType_Coupon: case kCommunicationType_BOGO: case kCommunicationType_sample: case kCommunicationType_event_units_purchased: case kCommunicationType_event_shopping_trips: case kCommunicationType_Display1: case kCommunicationType_Display2: case kCommunicationType_Display3: case kCommunicationType_Display4: case kCommunicationType_Display5: case kCommunicationType_display: case kCommunicationType_distribution: case kCommunicationType_event_price_disutility: // hiho should we do anytiong here, or wait unti we encounter the message in real time? { string *segmentName; string *adName; string *prodName; string *channelName; int prodChanIndex; string allText; int prodNum; int duration; double scaledImpresions; int locAdvertType = TranslateStratType(stratType); switch (stratType) { case kCommunicationType_Advertisement: scaledImpresions = impressions; break; case kCommunicationType_AdVariableImpressions: case kCommunicationType_AdVariableImpressionsPrint: case kCommunicationType_AdVariableImpressionsEvent: scaledImpresions = (impressions / 100.0); break; case kCommunicationType_Coupon: scaledImpresions = (impressions / 100.0); break; case kCommunicationType_BOGO: scaledImpresions = (impressions / 100.0); break; case kCommunicationType_sample: scaledImpresions = (impressions / 100.0); break; case kCommunicationType_event_units_purchased: scaledImpresions = (impressions / 100.0); break; case kCommunicationType_event_shopping_trips: scaledImpresions = (impressions / 100.0); break; case kCommunicationType_distribution: scaledImpresions = (impressions / 100.0); break; case kCommunicationType_Display1: case kCommunicationType_Display2: case kCommunicationType_Display3: case kCommunicationType_Display4: case kCommunicationType_Display5: case kCommunicationType_display: scaledImpresions = (impressions / 100.0); break; case kCommunicationType_event_price_disutility: // no need to scale impressions for this scaledImpresions = impressions; break; default: ; } string::StrCpy((iCtr->iCommonStringPtrs)[kStr_Allm], &allText); // this message will tell me that an advertising task has been // created. // I need to know the task name, the number of impressions, and // filter on the segment name segmentName = (string *)(iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam1)); // only care if this is to me or to "all" segments // put a special case in for distribution, which in the version 3.2 SSIO has no segment associated with it KMK 11/4/03 if ((stratType == kCommunicationType_distribution) || (stratType == kCommunicationType_display) || (stratType == kCommunicationType_Display1) || (stratType == kCommunicationType_Display2) || (stratType == kCommunicationType_Display3) || (stratType == kCommunicationType_Display4) || (stratType == kCommunicationType_Display5) || string::StrCmp(segmentName, &iNameString) || string::StrCmpNoCase(segmentName, &allText)) { int i; int foundIt = false; // this is my segment. prodName = (string *)(iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_ProductName)); channelName = (string *)(iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_ChannelName)); duration = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam2); // if this is for a product that is eliminated, ignore it // coupon, sample, advertisement // if (foundIt && (stratType == kCommunicationType_Coupon)) /* if (stratType != kCommunicationType_event) { for (prodChanIndex =0; prodChanIndex < iProductsAvailable.size(); prodChanIndex++) { if ((string::StrCmp(&((iProductsAvailable[prodChanIndex]).iProdName), prodName)) && (string::StrCmp(&((iProductsAvailable[prodChanIndex]).iChanName), channelName))) { prodNum = GetProdNumFromProdChanNum(prodChanIndex); if ((prodNum != kNoProductBought) && (prodNum != -1)) { if (iProducts[prodNum].iEliminated) return; } } } } */ // get the task's name adName = (string *)(iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StrategyName)); //check to see if we have this one already // we never will the first time through int limit = iAdSchedule.size(); // don;t need to search the advert list the first time we are building it /*if (iSearchAdverts) { for (i = 0; i < limit; i++) { if (string::StrCmp(adName, &(iAdSchedule[i].name))) //if (string::StrCmp(adName, &(iAdSchedule[i].name))) { foundIt = true; break; } } }*/ // Record the task name if (iAdMap.find(*adName) == iAdMap.end()) { Advert tempAdd; InitializeAdvert(&tempAdd); i = iAdSchedule.size(); iAdSchedule.push_back(tempAdd); iAdMap[(*adName)] = i; } else { i = iAdMap[(*adName)]; } string::StrCpy(adName, &(iAdSchedule[i].name)); // figure number of impressions //tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam3); //double impressions = MSG_LONG_TO_FLOAT(tempLong); iAdSchedule[i].numImpressions = scaledImpresions; switch (stratType) { case kCommunicationType_Advertisement: //iAdSchedule[i].numImpressions = impressions; //iAdSchedule[i].messageStrength = strength; iAdSchedule[i].iAdvertType = kAdvertType_MassMedia; // cost per impression tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam4); iAdSchedule[i].costPerImpression = MSG_LONG_TO_FLOAT(tempLong); break; case kCommunicationType_AdVariableImpressions: case kCommunicationType_AdVariableImpressionsPrint: case kCommunicationType_AdVariableImpressionsEvent: // remember impressions as a percentage //iAdSchedule[i].numImpressions = (impressions / 100.0); //iAdSchedule[i].messageStrength = strength; iAdSchedule[i].isPercentage = true; iAdSchedule[i].iAdvertType = kAdvertType_MassMedia; // cost per impression tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam4); iAdSchedule[i].costPerImpression = MSG_LONG_TO_FLOAT(tempLong); break; case kCommunicationType_Coupon: // remember impressions as a percentage //iAdSchedule[i].numImpressions = (impressions / 100.0); // in the case of a coupon, message strength is also a percentage // can't have more than 100% of redemptions //if (iAdSchedule[i].messageStrength > 100.0) // iAdSchedule[i].messageStrength = 100.0; //iAdSchedule[i].messageStrength = (strength / 100.0); iAdSchedule[i].isPercentage =true; iAdSchedule[i].iAdvertType = kAdvertType_Coupon; // cost per impression tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam4); iAdSchedule[i].costPerImpression = MSG_LONG_TO_FLOAT(tempLong); // for BOGO, cost per impression is percent skipping next time break; case kCommunicationType_BOGO: // remember impressions as a percentage //iAdSchedule[i].numImpressions = (impressions / 100.0); // in the case of a coupon, message strength is also a percentage // can't have more than 100% of redemptions //if (iAdSchedule[i].messageStrength > 100.0) // iAdSchedule[i].messageStrength = 100.0; //iAdSchedule[i].messageStrength = (strength / 100.0); iAdSchedule[i].isPercentage =true; iAdSchedule[i].iAdvertType = kAdvertType_BOGO; // cost per impression tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam4); iAdSchedule[i].costPerImpression = MSG_LONG_TO_FLOAT(tempLong); break; case kCommunicationType_sample: // remember impressions as a percentage //iAdSchedule[i].numImpressions = (impressions / 100.0); // in the case of a coupon, message strength is also a percentage // can't have more than 100% of redemptions //if (iAdSchedule[i].messageStrength > 100.0) // iAdSchedule[i].messageStrength = 100.0; //iAdSchedule[i].messageStrength = (strength / 100.0); iAdSchedule[i].isPercentage = true; iAdSchedule[i].iAdvertType = kAdvertType_Sample; // cost per impression tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam4); iAdSchedule[i].costPerImpression = MSG_LONG_TO_FLOAT(tempLong); break; case kCommunicationType_event_units_purchased: // remember impressions as a percentage //iAdSchedule[i].numImpressions = (impressions / 100.0); // in the case of a coupon, message strength is also a percentage // can't have more than 100% of redemptions iAdSchedule[i].isPercentage = true; iAdSchedule[i].iAdvertType = kAdvertType_Event_units_purchased; break; case kCommunicationType_event_price_disutility: iAdSchedule[i].isPercentage = false; iAdSchedule[i].iAdvertType = kAdvertType_Event_price_disutility; break; case kCommunicationType_event_shopping_trips: // remember impressions as a percentage //iAdSchedule[i].numImpressions = (impressions / 100.0); // in the case of a coupon, message strength is also a percentage // can't have more than 100% of redemptions iAdSchedule[i].isPercentage = true; iAdSchedule[i].iAdvertType = kAdvertType_Event_shopping_trips; break; case kCommunicationType_distribution: double postDist; // remember distribution (pre-use) as a percentage //iAdSchedule[i].numImpressions = (impressions / 100.0); // in the case of a coupon, message strength is also a percentage // can't have more than 100% of redemptions iAdSchedule[i].isPercentage = true; iAdSchedule[i].iAdvertType = kAdvertType_Distribution; // remember distribution (post-use) as a percentage tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam4); postDist = MSG_LONG_TO_FLOAT(tempLong); iAdSchedule[i].costPerImpression = postDist / 100.0; break; case kCommunicationType_Display1: iAdSchedule[i].isPercentage =true; iAdSchedule[i].iAdvertType = kAdvertType_Display1; break; case kCommunicationType_Display2: iAdSchedule[i].isPercentage =true; iAdSchedule[i].iAdvertType = kAdvertType_Display2; break; case kCommunicationType_Display3: iAdSchedule[i].isPercentage =true; iAdSchedule[i].iAdvertType = kAdvertType_Display3; break; case kCommunicationType_Display4: iAdSchedule[i].isPercentage =true; iAdSchedule[i].iAdvertType = kAdvertType_Display4; break; case kCommunicationType_Display5: iAdSchedule[i].isPercentage =true; iAdSchedule[i].iAdvertType = kAdvertType_Display5; break; case kCommunicationType_display: iAdSchedule[i].isPercentage =true; iAdSchedule[i].iAdvertType = kAdvertType_Display; break; } iAdSchedule[i].daysDuration = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam2); iAdSchedule[i].advertProdNum = -1; iAdSchedule[i].advertChanNum = -1; iAdSchedule[i].advertProdChanNum = -1; //get the product and channel names //not that for task-based buying, special events specify the task, not the product foundIt = false; string::StrCpy(prodName, &(iAdSchedule[i].productName)); string::StrCpy(channelName, &(iAdSchedule[i].iChannelName)); iAdSchedule[i].iTreatProdNameAsTaskName = false; // "All" for both product and channel if ((string::StrCmpNoCase(prodName, &allText)) && (string::StrCmpNoCase(channelName, &allText))) { iAdSchedule[i].scope = kAdvertScope_AllProdsAllChannels; // will use the general putpose demand modifier } // all channels, one product else if (string::StrCmpNoCase(channelName, &allText)) { // set the modifier in all the individual instances of this product in the // product-channel array (on each tick) iAdSchedule[i].scope = kAdvertScope_OneProdAllChannels; // Add the product number iAdSchedule[i].advertProdNum = -1; if (iAdSchedule[i].iTreatProdNameAsTaskName) { //int taskNum; //for (taskNum = 0; taskNum < iTaskRates.size(); taskNum++) //{ // if (string::StrCmpNoCase(&(iTaskRates[taskNum].iTaskName), prodName)) // { // iAdSchedule[i].taskNum = taskNum; // break; // } //} } else { FindAdvertProdNum(i); //int prodNum; //for (prodNum = 0; prodNum < iProducts.size(); prodNum++) //{ // if (string::StrCmpNoCase(&(iProducts[prodNum].iName), prodName)) // { // iAdSchedule[i].advertProdNum = prodNum; // break; // } //} } } // all products, one channel else if (string::StrCmpNoCase(prodName, &allText)) { // set the demand modifier for all the products in a given channel (on each tick) iAdSchedule[i].scope = kAdvertScope_AllProdsOneChannel; // Add the channel number int chanNum; for (chanNum = 0; chanNum < iChannelsAvailable.size(); chanNum++) { if (string::StrCmpNoCase(&(iChannelsAvailable[chanNum].iChanName), channelName)) { iAdSchedule[i].advertChanNum = chanNum; break; } } } else // specific product and channel { iAdSchedule[i].scope = kAdvertScope_OneProdOneChannel; if (iAdSchedule[i].iTreatProdNameAsTaskName) { //int taskNum; //iAdSchedule[i].taskNum = -1; //for (taskNum = 0; taskNum < iTaskRates.size(); taskNum++) //{ // if (string::StrCmpNoCase(&(iTaskRates[taskNum].iTaskName), prodName)) // { // iAdSchedule[i].taskNum = taskNum; // foundIt = true; // ?? // break; // } //} } else // not TBB { // get the number of the associated product for (prodChanIndex =0; prodChanIndex < iProductsAvailable.size(); prodChanIndex++) { if ((string::StrCmp(&((iProductsAvailable[prodChanIndex]).iProdName), prodName)) && (string::StrCmp(&((iProductsAvailable[prodChanIndex]).iChanName), channelName))) { iAdSchedule[i].advertProdChanNum = prodChanIndex; iAdSchedule[i].advertProdNum = GetProdNumFromProdChanNum(prodChanIndex); iAdSchedule[i].advertChanNum = FastGetChannelNumFromProdChannelNum(prodChanIndex); break; } } // if we didn't find it, we should Add the product/channel pair // but we don;t Add a task if we did not find it... // This code is never reached so it is being removed Isaac 6-21-2006 /* if (!foundIt) { //AddProdChannel(prodName, channelName, 0, -1, false); // look for it again for (prodChanIndex =0; prodChanIndex < iProductsAvailable.size(); prodChanIndex++) { if ((string::StrCmp(&((iProductsAvailable[prodChanIndex]).iProdName), prodName)) && (string::StrCmp(&((iProductsAvailable[prodChanIndex]).iChanName), channelName))) { // we need to Add the company name to the new entry in iProductsAvailable // but we don;t know it here, so we will count on it being set in // RespondTo_HereIsProductISell() iAdSchedule[i].advertProdChanNum = prodChanIndex; iAdSchedule[i].advertProdNum = GetProdNumFromProdChanNum(prodChanIndex); iAdSchedule[i].advertChanNum = FastGetChannelNumFromProdChannelNum(prodChanIndex); break; } // end prod chanel name compare } // end search of list of prod channel pairs } // end clause for didn't find prod number */ } // end check for not TBB } // end specific product and channel } // end compare for segment name } // end check for advert type } //end switch } // ------------------------------------------------------------------------------ // iCtr->Set_MsgParam(msgOut, kDataMsgParam_SendingNode, (int) myNodePtr); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_CompanyName, (int)&iCompanyName); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_ProductName, (int)&iProductName); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_ChannelName, (int)&iChannelName); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_StrategyName, (int)&iName); // iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_StrategyType, (int)iStratType); // param 1 = name of the segment to whom this task is targeted // kMarketSimMessageParam_StratParam1 // param 2 = redemption or usage rate // kMarketSimMessageParam_StratParam2 // param 3 = message awareness // kMarketSimMessageParam_StratParam3 // param 4 = message persuasion // kMarketSimMessageParam_StratParam4 // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsStrategyData2(int msgIn) { int stratType = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StrategyType); // make sure this is an advertising message switch (stratType) { case kCommunicationType_Advertisement: case kCommunicationType_AdVariableImpressions: case kCommunicationType_AdVariableImpressionsPrint: case kCommunicationType_AdVariableImpressionsEvent: case kCommunicationType_Coupon: case kCommunicationType_BOGO: case kCommunicationType_sample: case kCommunicationType_event_units_purchased: case kCommunicationType_event_shopping_trips: case kCommunicationType_Display1: case kCommunicationType_Display2: case kCommunicationType_Display3: case kCommunicationType_Display4: case kCommunicationType_Display5: case kCommunicationType_display: case kCommunicationType_distribution: case kCommunicationType_event_price_disutility: // hiho should we do anytiong here, or wait unti we encounter the message in real time? { string* segmentName; string allText; segmentName = (string *)(iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam1)); string::StrCpy((iCtr->iCommonStringPtrs)[kStr_Allm], &allText); // only care if this is to me or to "all" segments // distribution goes to all segments by default KMK 11/4/03 if ((stratType == kCommunicationType_distribution) || (stratType == kCommunicationType_display) || (stratType == kCommunicationType_Display1) || (stratType == kCommunicationType_Display2) || (stratType == kCommunicationType_Display3) || (stratType == kCommunicationType_Display4) || (stratType == kCommunicationType_Display5) || string::StrCmp(segmentName, &iNameString) || string::StrCmpNoCase(segmentName, &allText)) { int adNum; string* adName; // look for the message in the list of adverts.... adName = (string *)(iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StrategyName)); //for (adNum = 0; adNum < iAdSchedule.size(); adNum++) // the last one Added is likely to be the match, I think int locAdvertType = TranslateStratType(stratType); for (adNum = iAdSchedule.size() - 1; adNum >= 0; adNum--) { if ((iAdSchedule[adNum].iAdvertType == locAdvertType) && string::StrCmp(adName, &(iAdSchedule[adNum].name))) //if (string::StrCmp(adName, &(iAdSchedule[adNum].name))) { double rate, aware, persuasion; int tempLong; tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam2); rate = MSG_LONG_TO_FLOAT(tempLong); tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam3); aware = MSG_LONG_TO_FLOAT(tempLong); tempLong = iCtr->Get_MsgParam(msgIn, kMarketSimMessageParam_StratParam4); persuasion = MSG_LONG_TO_FLOAT(tempLong); iAdSchedule[adNum].messageStrength = aware; iAdSchedule[adNum].iRate = rate; iAdSchedule[adNum].iAwareness = aware; iAdSchedule[adNum].iPersuasion = persuasion; switch (stratType) { case kCommunicationType_Advertisement: break; case kCommunicationType_AdVariableImpressions: case kCommunicationType_AdVariableImpressionsPrint: case kCommunicationType_AdVariableImpressionsEvent: break; case kCommunicationType_Coupon: if (iAdSchedule[adNum].iRate > 100.0) iAdSchedule[adNum].iRate = 100.0; iAdSchedule[adNum].iRate = (rate / 100.0); break; case kCommunicationType_BOGO: if (iAdSchedule[adNum].iRate > 100.0) iAdSchedule[adNum].iRate = 100.0; iAdSchedule[adNum].iRate = (rate / 100.0); break; case kCommunicationType_sample: if (iAdSchedule[adNum].iRate > 100.0) iAdSchedule[adNum].iRate = 100.0; iAdSchedule[adNum].iRate = (rate / 100.0); break; case kCommunicationType_event_units_purchased: break; case kCommunicationType_distribution: break; case kCommunicationType_Display1: case kCommunicationType_Display2: case kCommunicationType_Display3: case kCommunicationType_Display4: case kCommunicationType_Display5: case kCommunicationType_display: break; case kCommunicationType_event_price_disutility: break; } // end type of advert switch return; } // end found the advert in the list } // next advert } // end check for this segment (or all segments) } // end check for proper advert type } // end switch } // // // created a message just for displayes void CMicroSegment::RespondTo_HereIsChannelDisplay(int msgIn) { } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_ResetNoAck(int inMessage) { int prodChanNum; // SSN Nov 29 2005 // Added a SimInfo file for NIMO // when we reset we need to forget that we may have written to it already // This is a static int, so only one segment will write wroteSimInfoFile = false; //RandomInitialise(1802,9373); int pn; // Start - VdM // Added these lines - this is done in CreateTransactionFile but I think // some logic in there made it so this didn't happen when it should for (pn=0; pn < iProducts.size(); pn++) CreateTransactionFileP(pn, 0); for (pn=0; pn < iProducts.size(); pn++) CreateTransactionFileP(pn, 1); // End - VdM if (iSaveTransactionFile) { if (iFileBuffer != -1) { CreateTransactionFile(0); CreateTransactionFile(1); } else CreateTransactionFile(1); } if (iManageSessionLog) { if (iSessionLogFileBuffer != -1) { CreateSessionLogFile(0); CreateSessionLogFile(1); } else CreateSessionLogFile(1); } ResetPopulationAndContext(); iNumberDaysofSim = 0; iWroteTransactionHeader = false; iWroteMyTransactionHeader = false; } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_YouAreInspected(int inMessage) { //iInspectingNode = iCtr->Get_MsgParam(inMessage, kDataMsgParam_SendingNode); } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_TellMePenetration(int inMessage) { int prodChanNum; string* channelName; int group; int guy; int numBought; int msgOut; int allChannels = false; int sendingNode = iCtr->Get_MsgParam(inMessage, kDataMsgParam_SendingNode); if (iCtr->Get_MsgParam(inMessage, kDataMsgParam_Value2) == NULL) allChannels = true; else channelName = (string *)(iCtr->Get_MsgParam(inMessage, kDataMsgParam_Value2)); // for each product for (prodChanNum = 0; prodChanNum < iProductsAvailable.size(); prodChanNum++) { if (allChannels || string::StrCmp(channelName, &iProductsAvailable[prodChanNum].iChanName)) { int produm = GetProdNumFromProdChanNum(prodChanNum); iProductsAvailable[prodChanNum].iPenetration = CountTriersOfProd(produm); numBought = iProductsAvailable[prodChanNum].iPenetration; // have to ge a new msgOut each time, becuase port is // destroyed after RcvBroadcastMsg completes msgOut = iCtr->GetBroadcastMsg(myNodePtr); iCtr->Set_MsgSqTyIn(msgOut, kMsgSequenceNoAck, kMsgNoAckMsg, kMarketSimMessage_HereIsPenetration); iCtr->Set_MsgParam(msgOut, kDataMsgParam_SendingNode, (int) myNodePtr); iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value2, (int) &iNameString); // product name iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value3, (int) &iProductsAvailable[prodChanNum].iProdName); // sales count iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value4, numBought); // send it out iCtr->RcvBroadcastMsg(myNodePtr, sendingNode, msgOut, kWeb_MyWeb); } } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_TellMeAddDrops(int inMessage) { int prodChanNum; string* channelName; int group; int guy; int numBought; int msgOut; int allChannels = false; int pn; int sendingNode = iCtr->Get_MsgParam(inMessage, kDataMsgParam_SendingNode); if (iCtr->Get_MsgParam(inMessage, kDataMsgParam_Value2) == NULL) allChannels = true; else channelName = (string *)(iCtr->Get_MsgParam(inMessage, kDataMsgParam_Value2)); // for each product for (prodChanNum = 0; prodChanNum < iProductsAvailable.size(); prodChanNum++) { if (allChannels || string::StrCmp(channelName, &iProductsAvailable[prodChanNum].iChanName)) { // have to ge a new msgOut each time, becuase port is // destroyed after RcvBroadcastMsg completes msgOut = iCtr->GetBroadcastMsg(myNodePtr); iCtr->Set_MsgSqTyIn(msgOut, kMsgSequenceNoAck, kMsgNoAckMsg, kMarketSimMessage_HereIsAddDrops); iCtr->Set_MsgParam(msgOut, kDataMsgParam_SendingNode, (int) myNodePtr); iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value2, (int) &iNameString); // product name iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value3, (int) &iProductsAvailable[prodChanNum].iProdName); // Adds & drops pn = GetProdNumFromProdChanNum(prodChanNum); iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value4,(int) iProducts[pn].iAddsThisTick); iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value5,(int) iProducts[pn].iTotalAdds); iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value6,(int) iProducts[pn].iDropsThisTick); iCtr->Set_MsgParam(msgOut, kDataMsgParam_Value7,(int) iProducts[pn].iTotalDrops); // send it out iCtr->RcvBroadcastMsg(myNodePtr, sendingNode, msgOut, kWeb_MyWeb); } } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_SellProduct(int inMessage) { // Add quantity of product that was sold to me to my store // find product-channel pair in list string *prodName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName)); string *chanName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ChannelName)); int quantity = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_Quantity); for (int i = 0; i < iProductsAvailable.size(); i++) { if (string::StrCmp(prodName, &iProductsAvailable[i].iProdName) && string::StrCmp(chanName, &iProductsAvailable[i].iChanName)) { iProductsAvailable[i].iCurrentNumBought += quantity; iProductsAvailable[i].iTotalNumBought += quantity; iTotalSales += quantity; break; } } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::ProcessPriceData(string *prodName, string *chanName, int priceType, double skusAtPrice, double newPrice) { int pn; int cn; for (int i = 0; i < iProductsAvailable.size(); i++) { if (string::StrCmp(prodName, &iProductsAvailable[i].iProdName) && string::StrCmp(chanName, &iProductsAvailable[i].iChanName)) { iNeedToCalcFeatureScores = true; iNeedToCalcPriceScores = true; cn = iProductsAvailable[i].iChannelNum;; pn = iProductsAvailable[i].productIndex; ProductTree::LeafNodeList prodList(pn); for( ProductTree::Iter iter = prodList.begin(); iter != prodList.end(); ++iter) { pn = *iter; i = GetProdChanNumFromProdAndChannelNum(pn, cn); switch(priceType) { case kPricingType_Fixed: if ((iProductsAvailable[i].iPrice[kPriceTypeUnpromoted] != newPrice) || (iProductsAvailable[i].iProbPrice[kPriceTypeUnpromoted] != skusAtPrice)) { iProductsAvailable[i].iPrice[kPriceTypeUnpromoted] = newPrice; iProductsAvailable[i].iProbPrice[kPriceTypeUnpromoted] = skusAtPrice; iProductsAvailable[i].iPrice[kPriceTypeBOGO] = iProductsAvailable[i].iPrice[kPriceTypeUnpromoted] * 0.5; } break; case kPricingType_Fixed_Promoted: if ((iProductsAvailable[i].iPrice[kPriceTypePromoted] != newPrice) || (iProductsAvailable[i].iProbPrice[kPriceTypePromoted] != skusAtPrice)) { iProductsAvailable[i].iPrice[kPriceTypePromoted] = newPrice; iProductsAvailable[i].iProbPrice[kPriceTypePromoted] = skusAtPrice; } break; case kPricingType_Fixed_BOGO: { iProductsAvailable[i].iPctBOGOtoSkipNextPurchase = newPrice * .01; // convert from percent input to probability if (iProductsAvailable[i].iPrice[kPriceTypeUnpromoted] != 0.0) iProductsAvailable[i].iPrice[kPriceTypeBOGO] = iProductsAvailable[i].iPrice[kPriceTypeUnpromoted] * 0.5; iProductsAvailable[i].iProbPrice[kPriceTypeBOGO] = skusAtPrice; } break; // KMK 5/1/05 // reduced // Percent off unpromoted price in effect at that same time. // This is entered as -20 for a 20% price reduction or 20 for a 20% price increase. case kPricingType_Fixed_Reduced: { // convert newprice into a scaling factor newPrice = 1.0 + (newPrice * .01); if (iProductsAvailable[i].iPrice[kPriceTypeUnpromoted] != 0.0) iProductsAvailable[i].iPrice[kPriceTypeReduced] = iProductsAvailable[i].iPrice[kPriceTypeUnpromoted] * newPrice; iProductsAvailable[i].iProbPrice[kPriceTypeReduced] = skusAtPrice; } break; // display price percent // Percent off unpromoted price in effect at that same time. // This is entered as -20 for a 20% price reduction or 20 for a 20% price increase. case kPricingType_Fixed_FeaturePercent: { // convert newprice into a scaling factor newPrice = 1.0 + (newPrice * .01); // if (iProductsAvailable[i].iPrice[kPriceTypeDisplayPercent] != 0.0) // do not really save cycles to do test iProductsAvailable[i].iPrice[kPriceTypeDisplayPercent] = iProductsAvailable[i].iPrice[kPriceTypeUnpromoted] * newPrice; iProductsAvailable[i].iProbPrice[kPriceTypeDisplayPercent] = skusAtPrice; if (skusAtPrice > 0.0) iThereIsDisplayPricing = true; } break; // display price absolute case kPricingType_Fixed_FeatureAbsolute: if ((iProductsAvailable[i].iPrice[kPriceTypeDisplayAbsolute] != newPrice) || ( iProductsAvailable[i].iProbPrice[kPriceTypeDisplayAbsolute] != skusAtPrice)) { iProductsAvailable[i].iPrice[kPriceTypeDisplayAbsolute] = newPrice; iProductsAvailable[i].iProbPrice[kPriceTypeDisplayAbsolute] = skusAtPrice; if (skusAtPrice > 0.0) iThereIsDisplayPricing = true; } break; } } return; } } // didn't find it, so Add it to the list // TODO: FIX THIS! SSN 3/16/2005 // AddProdChannel(prodName, chanName, iChanNodeID, 0.0, 0.0, 0.0, -1, active); ??? // KMK 4/30/05 //AddProdChannel(prodName, chanName, iChanNodeID, iProductsAvailable[i].iUnpromotedPrice, iProductsAvailable[i].iPromotedPrice, // iProductsAvailable[i].iBOGOPrice, iProductsAvailable[i].iPctBOGOtoSkipNextPurchase, active); // AddProdChannel(prodName, chanName, iProductsAvailable[i].iPrice, iProductsAvailable[i].iPctBOGOtoSkipNextPurchase, active); } void CMicroSegment::RespondTo_HereIsProductISell(int inMessage) { // Add channel-product pair to my list of available products // make sure I don't already hold the pair //string *prodName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName)); //string *chanName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ChannelName)); //int aLong; //double newPrice; //int active; //int priceType; //// int prodNum; // //// ------ VdM 2/17/04 //double skusAtPrice; //aLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_SKUsAtPrice); //skusAtPrice = MSG_LONG_TO_FLOAT(aLong); //skusAtPrice *= .01; // convert from percent to probability //aLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_Price); //newPrice = MSG_LONG_TO_FLOAT(aLong); //active = (int) iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_PriceStatus); //priceType = (int)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_PriceType); // //ProcessPriceData(prodName, chanName, priceType, skusAtPrice, newPrice, active); } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsProductINoLongerSell(int inMessage) { // remove channel-product pair from my list of available products string *prodName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName)); string *chanName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ChannelName)); int i, j; for (i = 0; i < iProductsAvailable.size(); i++) { if (string::StrCmp(prodName, &iProductsAvailable[i].iProdName) && string::StrCmp(chanName, &iProductsAvailable[i].iChanName)) { break; } } // if there was no match with a product I store, do nothing more if (i == iProductsAvailable.size()) return; // close the transaction file int pn = GetProdNumFromProdChanNum(i); if (pn < 0) return; if (pn < iProducts.size()) CreateTransactionFileP(pn, 0); iProductsAvailable.RemoveAt(i); iProductsAvailable.FreeExtra(); iNeedToCalcPriceScores = true; iNeedToCalcFeatureScores = true; // if this product is no longer sold through any channels, remove its // feature info, also (leaving it around will mess up other products' // feature scores for (i = 0; i < iProductsAvailable.size(); i++) if (string::StrCmp(prodName, &iProductsAvailable[i].iProdName)) break; if (i == iProductsAvailable.size()) // we didn't find it (i is not a usefule index) { // no other occurences of this product were found int oneToDelete; // find this product in the products list for (i = 0; i < iProducts.size(); i++) if (string::StrCmp(prodName, &iProducts[i].iName)) break; // return if the product was not found if (i == iProducts.size()) return; oneToDelete = i; // clear out the last slot iProducts[oneToDelete].iPreUseFeature.clear(); iProducts[oneToDelete].iPostUseFeature.clear(); iProducts[oneToDelete].iFeatureIrrellevant.clear(); iProducts[oneToDelete].iYesNoFeature.clear(); iProducts[oneToDelete].iPreUseFeature.FreeExtra(); iProducts[oneToDelete].iPostUseFeature.FreeExtra(); iProducts[oneToDelete].iFeatureIrrellevant.FreeExtra(); iProducts[oneToDelete].iYesNoFeature.FreeExtra(); iProducts.RemoveAt(oneToDelete); iProducts.FreeExtra(); //iProdNames.RemoveAt(oneToDelete); //iProdFeatureScores.RemoveAt(oneToDelete); //iProdBuyPercentage.RemoveAt(oneToDelete); iNeedToCalcFeatureScores = true; } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsMrktControlInfo(int inMessage) { // only care about changing names of products and channels int msgType = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoType); int i; string *oldName, *newName, *name; string *channel, *segname, *value; int color; int setProdColor; switch (msgType) { case kInfoTypeChgSegLoyaltyPercent: channel = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue1)); segname = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue2)); value = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue3)); // update buy percent for given channel with value if (string::StrCmp(segname, &iNameString)) { int foundIt = false; double tempFloat; SIGetFloatFromString(value, &tempFloat); tempFloat /= 100.0; // turn into percentage // find a channel that matches int chanNum; for (chanNum = 0; chanNum < iChannelsAvailable.size(); chanNum++) { if (string::StrCmp(channel, &(iChannelsAvailable[chanNum].iChanName))) { iChannelsAvailable[chanNum].iPctChanceChosen = tempFloat; // adjust the cumulative percentages foundIt = true; } } if (!foundIt) { // its a new channel. Add it. ChannelRecord tempCR; tempCR.InitializeChannelRecord(); //tempCR.iChanName.MakeEmpty(); //tempCR.iChanID = chanID; will learn this later tempCR.iPctChanceChosen = tempFloat; string::StrCpy(channel, &tempCR.iChanName); iChannelsAvailable.push_back(tempCR); } ComputeCumulativeChannelPercents(); } break; case kInfoTypeChgProduct: oldName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue1)); newName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue2)); for (i = 0; i < iProductsAvailable.size(); i++) if (string::StrCmp(oldName, &iProductsAvailable[i].iProdName)) string::StrCpy(newName, &iProductsAvailable[i].iProdName); // also change in the product-feature map for (i = 0; i < iProducts.size(); i++) if (string::StrCmp(oldName, &iProducts[i].iName)) string::StrCpy(newName, &iProducts[i].iName); break; case kInfoTypeChgChannel: oldName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue1)); newName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue2)); for (i = 0; i < iProductsAvailable.size(); i++) if (string::StrCmp(oldName, &iProductsAvailable[i].iChanName)) string::StrCpy(newName, &iProductsAvailable[i].iChanName); break; case kInfoTypeChgProdColor: name = (string *)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue1); color = (int)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue2); setProdColor = false; for (i = 0; i < iProductsAvailable.size(); i++) if (string::StrCmp(name, &iProductsAvailable[i].iProdName)) { iProductsAvailable[i].iColor = color; if (!setProdColor) setProdColor = SetProductColor(name, color); } break; case kInfoTypeChgSegment: oldName = (string *)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue1); newName = (string *)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue2); if (string::StrCmp(oldName, newName)) { string::StrCpy(newName, &iNameString); } break; case kInfoTypeStartSimulation: iListenForTokenControl = true; break; default: break; } } // ------------------------------------------------------------------------------ // Get an integer value from a floating point number, where the average of a // population of such integers will be the floating point value // ------------------------------------------------------------------------------ void CMicroSegment::AnnounceNewPopSize(PopObject *population) { int msgOut = iCtr->GetBroadcastMsg(myNodePtr); iCtr->Set_MsgSqTyIn(msgOut, kMsgSequenceNoAck, kMsgNoAckMsg, kMarketSimMessage_HereIsMrktControlInfo); iCtr->Set_MsgParam(msgOut, kDataMsgParam_SendingNode, (int) myNodePtr); iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_InfoType, (int) kInfoTypeChgSegmentSize); iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_InfoValue1, (int) &iNameString); iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_InfoValue2, (int) (population->iGroupSize)); iCtr->Set_MsgParam(msgOut, kMarketSimMessageParam_InfoValue3, (int)0); iCtr->RcvBroadcastMsg(myNodePtr, NULL, msgOut, kWeb_MyWeb); } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsProductDropRateInfo(int inMessage) { string *prodName = (string *)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName); int aLong; double initialDropRate; double dropRateDecay; aLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue1); initialDropRate = MSG_LONG_TO_FLOAT(aLong); aLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_InfoValue2); dropRateDecay = MSG_LONG_TO_FLOAT(aLong); for (int i = 0; i < iProducts.size(); i++) { if (string::StrCmp(prodName, &iProducts[i].iName)) { iProducts[i].iInitialDropRate = initialDropRate; iProducts[i].iDropRateDecay = dropRateDecay; // / 100.0; return; } } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsProductColor(int inMessage) { string *prodName = (string *)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName); int color = (int)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_Color); int setProdColor = false; for (int i = 0; i < iProductsAvailable.size(); i++) { if (string::StrCmp(prodName, &iProductsAvailable[i].iProdName)) { iProductsAvailable[i].iColor = color; if (!setProdColor) setProdColor = SetProductColor(prodName, color); } } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ int CMicroSegment::SetProductColor(string *name, int color) { int p; for (p=0; p< iProducts.size(); p++) { if (string::StrCmp(name, &iProducts[p].iName)) { iProducts[p].iColor = color; return true; } } return false; } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsCurrentTime(int inMessage) { int oldState = iClockRunning; iClockRunning = (int) iCtr->Get_MsgParam(inMessage, kFinMessageParam_ClockRunning); iDay = iCtr->Get_MsgParam(inMessage, kFinMessageParam_CurrentDay); iMonth = iCtr->Get_MsgParam(inMessage, kFinMessageParam_CurrentMonth); iYear = iCtr->Get_MsgParam(inMessage, kFinMessageParam_CurrentYear); // VdM 9/6/04 if (!iClockRunning) { int pn; // sim run is done and flush any buffers for (pn=0; pn<iProducts.size(); pn++) { if (!(iProducts[pn].iFileIOBufferStr).IsEmpty()) WriteALine(pn); } } //CalcQuantityToBuy(); } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_PopulationSize(int inMessage) { iTotalPopulationSize = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_PopulationSize); iListenForTokenControl = true; } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsTokenControl(int inMessage) { int tokType, i, j; string *tokName; string *attrName; string *oldAttrName; string *newAttrName; double attrVal, min, max, postAttrValue; int aLong; int irrelevant = false; if (!iListenForTokenControl) return; // care about store product characteristic info and segment info tokName = (string *)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlName); tokType = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlType); attrName = (string *) iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlAttribute); aLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlPreValue); attrVal = MSG_LONG_TO_FLOAT(aLong); aLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlPostValue); postAttrValue = MSG_LONG_TO_FLOAT(aLong); newAttrName = (string *) iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlNewAttributeName); oldAttrName = (string *) iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlOldAttributeName); aLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlMinVal); min = MSG_LONG_TO_FLOAT(aLong); aLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TokenControlMaxVal); max = MSG_LONG_TO_FLOAT(aLong); // note: irrelevant applies ONLY to product features, and not to iFeatures if ((min == max) && (min == 0.0)) irrelevant = true; switch (tokType) { case kTokenControlType_ProdProdChar: // tokName = product name // attrName = feature name // attrVal = feature score for given product // see if I store info on the feature represented by this token for (i = 0; i < iProducts.size(); i++) { // try to find the product if (string::StrCmp(&iProducts[i].iName, tokName)) break; } // if I didn't hold this product, Add it if (i == iProducts.size()) AddAProduct(tokName); //{ // string tempLocalStr; // Product tempProd; // double tempFeature = 0.0; // int cn; // // InitializeProductArray(&tempProd); // string::StrCpy(tokName, &tempProd.iName); // // iProducts.push_back(tempProd); // iEmptyProdCompanyNames = true; // InsertStartingShares(iProducts.size()-1); // 4/2/01 We will put AddProductToLastBought back in here, // because now it is going to track the actual usage of a product // iPopulation->AddProductToLastBought(iProducts.size(), repurchaseModel->type); // iSegNumProducts = iProducts.size(); // since we just Added the product, we know it is not yet in iProductsAvailable // so we will Add it here. Since we don't know what channel this product will be in, // we will Add it to all the channels, as an inactive product // for (cn = 0; cn < iChannelsAvailable.size(); cn++) // AddProdChannel(&(tempProd.iName), &(iChannelsAvailable[cn].iChanName), 0, 0.0, 0.0, 0.0, -1, false); //} // now check the feature side for (j = 0; j < iFeatures->size(); j++) { if (string::StrCmpNoCase(&(*iFeatures)[j].iName, attrName)) { // copy the info into my feature record if (!string::IsEmpty(newAttrName)) // name changing string::StrCpy(newAttrName, &(*iFeatures)[j].iName); if (!irrelevant) // axes will be set by other products { (*iFeatures)[j].iMin = min; (*iFeatures)[j].iMax = max; } break; } } // if I didn't hold this feature, Add it //if (j == iNumFeatures && j < iMaxFeatures) if (j == iFeatures->size()) { Feature tempFeature; tempFeature.InitializeFeature(); string::StrCpy(attrName, &tempFeature.iName); if (!irrelevant) { tempFeature.iMin = min; tempFeature.iMax = max; } //iNumFeatures++; iFeatures->push_back(tempFeature); } // store the product-feature score if (irrelevant) { iProducts[i].iPreUseFeature[j] = 0.0; iProducts[i].iPostUseFeature[j] = 0.0; iProducts[i].iFeatureIrrellevant[j] = true; } else { iProducts[i].iPreUseFeature[j] = attrVal; iProducts[i].iPostUseFeature[j] = postAttrValue; iProducts[i].iFeatureIrrellevant[j] = false; } iNeedToCalcFeatureScores = true; break; case kTokenControlType_CSProdChar: int foundIt = false; // this is a token from a segment-feature map // make sure the message is to this segment if (string::StrCmp(tokName, &iNameString)) { // see if I store info on the feature represented by this token for (i = 0; i < iFeatures->size(); i++) { if (string::StrCmpNoCase(&(*iFeatures)[i].iName, attrName)) { (*iFeatures)[i].iPreUsePref = attrVal; (*iFeatures)[i].iPostUsePref = postAttrValue; if (!irrelevant) { (*iFeatures)[i].iPrefMinBound = min; (*iFeatures)[i].iPrefMaxBond = max; } foundIt = true; break; } } // if we have not already found the token, try looking // under the old name if (!foundIt && !string::IsEmpty(oldAttrName)) { for (i = 0; i < iFeatures->size(); i++) { if (string::StrCmpNoCase(&(*iFeatures)[i].iName, oldAttrName)) { // name changing string::StrCpy(attrName, &(*iFeatures)[i].iName); if (!irrelevant) { (*iFeatures)[i].iPreUsePref = attrVal; (*iFeatures)[i].iPostUsePref = postAttrValue; (*iFeatures)[i].iPrefMinBound = min; (*iFeatures)[i].iPrefMaxBond = max; } foundIt = true; break; } } } // if I didn't hold this feature, Add it else if (!foundIt) { Feature tempFeature; tempFeature.InitializeFeature(); string::StrCpy(attrName, &tempFeature.iName); if (!irrelevant) { tempFeature.iPreUsePref = attrVal; tempFeature.iPostUsePref = postAttrValue; tempFeature.iPrefMinBound = min; tempFeature.iPrefMaxBond = max; } iFeatures->push_back(tempFeature); } } iNeedToCalcFeatureScores = true; break; } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::AddAProduct(string *prodName) { string tempLocalStr; Product tempProd; double tempFeature = 0.0; int cn; InitializeProductArray(&tempProd); string::StrCpy(prodName, &tempProd.iName); iProducts.push_back(tempProd); int pn = iProducts.size() - 1; iEmptyProdCompanyNames = true; InsertStartingShares(iProducts.size()-1); // 4/2/01 We will put AddProductToLastBought back in here, // because now it is going to track the actual usage of a product // renamed to AddProduct as it does not have anyhtig to do with buying a product SSN 11/3/2005 // iPopulation->AddProduct(iProducts.size(), repurchaseModel->type); iSegNumProducts = iProducts.size(); // since we just Added the product, we know it is not yet in iProductsAvailable // so we will Add it here. Since we don't know what channel this product will be in, // we will Add it to all the channels, as an inactive product //Products are Added before channels so iChannelsAvailable.size() == 0 /*for (cn = 0; cn < iChannelsAvailable.size(); cn++) //AddProdChannel(&(tempProd.iName), &(iChannelsAvailable[cn].iChanName), 0, -1, false);*/ } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::CheckAttrBound(int fNum) { if (((*iFeatures)[fNum].iPreUsePref > (*iFeatures)[fNum].iPrefMaxBond) || ((*iFeatures)[fNum].iPostUsePref > (*iFeatures)[fNum].iPrefMaxBond) || ((*iFeatures)[fNum].iPreUsePref < (*iFeatures)[fNum].iPrefMinBound) || ((*iFeatures)[fNum].iPostUsePref < (*iFeatures)[fNum].iPrefMinBound)) { string aStr; string bStr; string::CopyFromCString("Warning: The preference for attribute ", &aStr); string::StrCat(&aStr, &((*iFeatures)[fNum].iName)); string::CopyFromCString(" is above the maximum or below the minimum specified for that attribute for segment ", &bStr); // TODO: write to log } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsInitialPenetration(int inMessage) { ; } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ /*void CMicroSegment::RespondTo_HereIsInitialUnitsSold(int inMessage) { string *prodName = (string *)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName); int units = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_Quantity); if (units == 0) return; if (iTotalPopulationSize == 0) return; //units /= iPopulation->iPopScaleFactor; // don't try to Add more than there are people... if (units > iPopulation->iConsumerList.size()) { units = iPopulation->iConsumerList.size(); } int prodNum; for (prodNum = 0; prodNum < iProducts.size(); prodNum++) { if (string::StrCmp(prodName, &iProducts[prodNum].iName)) { iProducts[prodNum].initialUnitsToSellScaled = units; //iProducts[prodNum].initialUnitsToSellScaled /= iPopulation->iPopScaleFactor; break; } } }*/ // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsMicroSegValue(int inMessage) { string tmpString; string segName; string prodAttr; string nameString; int type; int index; int value; double tmpFloat; int tmpBool; int featNum; int useNameString = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ParamUseNameString); if (useNameString) { string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamNameString), &nameString); index = DecodeNameString(&nameString); } else { index = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ParamIndex); } string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamSegName), &segName); // hiho // iSubscriptionTimeHorizonLength = 1; // iSubscriptionTimeHorizonUnits = kRepurchaseFreq_Years; // iMaxNumSubscriptions = 4; if (!string::StrCmp(&segName, &iNameString)) return; type = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ParamType); if (type == kParamType_string) string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamValue), &tmpString); else if (type == kParamType_model) value = iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamValue); else if (type == kParamType_time) value = iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamValue); else if (type == kParamType_bool) tmpBool = iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamValue); else if (type == kParamType_numeric) { int tmpLong = iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamValue); tmpFloat = MSG_LONG_TO_FLOAT(tmpLong); } //if ( (index == kMicroSegParam_attrCapacity) || // (index == kMicroSegParam_attrThreshold) || // (index == kMicroSegParam_attrUsageRate) || // (index == kMicroSegParam_attrUsagePeriod) || // (index == kMicroSegParam_attrNeedDecayRate)) // string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamProdAttr), // &prodAttr); int i; switch(index) { // VdM 10/31/2003 // need to Add these 3 // display utilities move to end case kMicroSegParam_displayUtilityScalingFactor: Process_iDispUtilScalingFactor(tmpFloat); break; case kMicroSegParam_maxDisplayHitsPerTrip: Process_iMaxDisplayHits(tmpFloat); break; case kMicroSegParam_size: ProcessGroupSizeParameter((int) tmpFloat); break; case kMicroSegParam_GrowthRateValue: ProcessGrowthRateValueParam(tmpFloat); break; case kMicroSegParam_diversity: ProcessDiversityPercentParam(tmpFloat); break; case kMicroSegParam_priceSens: ProcessPriceSensitivityParam(tmpFloat); break; case kMicroSegParam_featureSens: ProcessPickinessParam(tmpFloat); break; case kMicroSegParam_messageSens: ProcessMessageSensitivityParam(tmpFloat); break; case kMicroSegParam_brandLoyalty: ProcessBrandLoyaltyParam(tmpFloat); break; // start parameters for the general choice model case kMicroSegParam_F1AwarenessScore: { // note that choice model is specified in the SS input before the individual // parameters of the general choice model. If the choice model is not the // general one, then we don;t want to load in the settings of the GCM parameters. // Instead, we will derive the appropriate settings for the selected choice model if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_multiply: value = kGCMf1_Multiplication; break; case kGeneralProdChoice_exponential: value = kGCMf1_Exponentiation; break; } Process_iGCMf1_PersuasionScore(value); } break; } case kMicroSegParam_F2AwarenessValueComputation: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_shareofvoice: value = kGCMf2_ShareOfVoice; break; case kGeneralProdChoice_absolute: value = kGCMf2_Absolute; break; case kGeneralProdChoice_squareRoot: value = kGCMf2_squareRoot; break; case kGeneralProdChoice_base10log: value = kGCMf2_base10log; break; } Process_iGCMf2_PersuasionValComp(value); } break; } case kMicroSegParam_F3AwarenessContributionToOverallScore: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_Add: value = kGCMf3_Addition; break; case kGeneralProdChoice_multiply: value = kGCMf3_Multiplication; break; } Process_iGCMf3_PersuasionContrib(value); } break; } case kMicroSegParam_F4UtilityScore: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_multiply: value = kGCMf4_Multiplication; break; case kGeneralProdChoice_exponential: value = kGCMf4_Exponentiation; break; } Process_iGCMf4_UtilityScore(value); } break; } case kMicroSegParam_F5CombinationOfPartUtilities: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_scaledsumofproducts: value = kGCMf5_ScaledSumOfProducts; break; case kGeneralProdChoice_unscaledsumofproducts: value = kGCMf5_UnscaledSumOfProducts; break; case kGeneralProdChoice_log10unscaledsumofproducts: value = kGCMf5_Log10ScaledSumOfProducts; } Process_iGCMf5_CombPartUtilities(value); } break; } case kMicroSegParam_F6UtilityContributionToOverallScore: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_Add: value = kGCMf6_Addition; break; case kGeneralProdChoice_subtract: value = kGCMf6_Subtraction; break; case kGeneralProdChoice_multiply: value = kGCMf6_Multiplication; break; case kGeneralProdChoice_divide: value = kGCMf6_Division; break; } Process_iGCMf6_PriceContribution(value); } break; } case kMicroSegParam_F7PriceScore: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_multiply: value = kGCMf7_Multiplication; break; case kGeneralProdChoice_exponential: value = kGCMf7_Exponentiation; break; } Process_iGCMf7_PriceScore(value); } break; } case kMicroSegParam_F8PriceValue: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_absolute: value = kGCMf8_AbsolutePrice; break; case kGeneralProdChoice_priceuse: value = kGCMf8_PricePerUse; break; case kGeneralProdChoice_relative: value = kGCMf8_RelativePrice; break; case kGeneralProdChoice_reference: value = kGCMf8_ReferencePrice; break; } Process_iGCMf8_PriceValueSource(value); } break; } case kMicroSegParam_ReferencePrice: Process_iGCM_referencePrice(tmpFloat); break; case kMicroSegParam_F9ChoiceProbability: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_shareofscore: value = kGCMf9_ShareOfScore; break; case kGeneralProdChoice_logit: value = kGCMf9_Logit; break; case kGeneralProdChoice_scaledlogit: value = kGCMf9_ScaledLogit; break; } Process_iGCMf9_ChoiceProbability(value); } break; } case kMicroSegParam_F10InertiaModel: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_SKU: value = kGCMf10_SameSKU; break; case kGeneralProdChoice_brand: value = kGCMf10_SameBrand; break; } Process_iGCMf10_InertiaModel(value); } break; } case kMicroSegParam_F11ErrorTerm: { if (choiceModel.iChoiceModel == kModel_General) // OK { switch(value) { case kGeneralProdChoice_none: value = kGCMf11_None; break; case kGeneralProdChoice_uservalue: value = kGCMf11_UserValue; break; case kGeneralProdChoice_utility: value = kGCMf11_Utility; break; case kGeneralProdChoice_score: value = kGCMf11_Score; break; } Process_iGCMf11_ErrorTerm(value); } break; } case kMicroSegParam_ErrorTermUserValue: Process_iGCM_ErrorTermUserValue(tmpFloat); break; case kMicroSegParam_ErrorTermStdDev: Process_iGCM_ErrorTermSD(tmpFloat); break; // end parameters for the general choice model case kMicroSegParam_UnitsDesiredTrigger: Process_iUnitsDesiredTrigger(tmpFloat); break; case kMicroSegParam_AverageMaxUnits: Process_iAverageMaxUnits(tmpFloat); break; case kMicroSegParam_channelLoyalty: ProcessChannelLoyaltyParam(tmpFloat); break; case kMicroSegParam_repPeriod: ProcessRepurchaseFrequencyDurationParam(tmpFloat, false); break; case kMicroSegParam_repPeriodVariation: ProcessNBDspreadParam(tmpFloat, false); break; case kSetupItem_NBDstddevOptedittext: ProcessNBDspreadParam(tmpFloat, false); break; case kMicroSegParam_initBuyers: { int newVal = tmpFloat; ProcessInitialPurchasesParameter(newVal); } break; case kMicroSegParam_initBuyingPeriod: ProcessInitialPurchasesIntervalParam((int) tmpFloat); break; case kMicroSegParam_budget: ProcessDollarsPerBudgetPeriodParam(tmpFloat); break; case kMicroSegParam_initSave: ProcessStartingCashParam(tmpFloat); break; case kMicroSegParam_bassInternal: ProcessAdoptionInternalValueParam(tmpFloat); break; case kMicroSegParam_bassExternal: ProcessAdoptionExternalValueParam(tmpFloat); break; case kSetupItem_PreUsePersuasionDecayOptedittext: ProcessPersuasionDecayPreUse(tmpFloat); break; case kSetupItem_PostUsePersuasionDecayOptedittext: ProcessPersuasionDecayPostUse(tmpFloat); break; case kSetupItem_PostPersuasionCredOptedittext: ProcessCredWeightWOMpostUseParam(tmpFloat); break; case kMicroSegParam_A: ProcessGammaAParam(tmpFloat); break; case kMicroSegParam_K: ProcessGammaKParam(tmpFloat); break; case kMicroSegParam_peopleLikeMe: ProcessWithinAdoptComNumRelationshipsParam(tmpFloat); break; case kMicroSegParam_likeMeCommsPost: Process_iProbTalkClosePostUse(tmpFloat); break; case kMicroSegParam_unlikeMeCommsPost: Process_iProbTalkDistantPostUse(tmpFloat); break; case kMicroSegParam_AwarenessWtPersonMessage: Process_iAwarenessWeightWOM(tmpFloat); break; case kMicroSegParam_PersuasionCredPre: Process_iCredWeightWOMpreUse(tmpFloat); break; case kMicroSegParam_PersuasionCredPost: ProcessCredWeightWOMpostUseParam(tmpFloat); break; //case kMicroSegParam_CouponFrontLoading: // Process_iPctCouponsRedeemedWeek1(tmpFloat); // break; //case kMicroSegParam_PersuasionChangeProdPurchase: // Process_(tmpFloat); = iNumCloseContacts; // break; case kMicroSegParam_likeMeComms: ProcessWithinAdoptComFrequencParam(tmpFloat); break; case kMicroSegParam_peopleUnlikeMe: ProcessOutsideAdoptComNumRelationshipsParam(tmpFloat); break; case kMicroSegParam_unlikeMeComms: ProcessOutsideAdoptComFrequencyParam(tmpFloat); break; case kMicroSegParam_messageTrigger: ProcessMinNumMessagesToTriggerPurchaseParam(tmpFloat); break; case kMicroSegParam_avgMessageLifePreUse: ProcessAwarenessDecayPreUseParam(tmpFloat); break; case kMicroSegParam_avgMessageLifePostUse: ProcessAwarenessDecayPostUseParam(tmpFloat); break; case kMicroSegParam_PersuasionDecayPreUse: ProcessPersuasionDecayPreUse(tmpFloat); break; case kMicroSegParam_PersuasionDecayPostUse: ProcessPersuasionDecayPostUse(tmpFloat); break; //case kMicroSegParam_triggerIncrement: // ProcessDaysBetweenShoppingTripsParam(tmpFloat); // break; case kMicroSegParam_color: ProcessColorParameter(value); break; // y , n case kMicroSegParam_repurchase: ProcessRepurchaseParam(tmpBool, false); break; case kMicroSegParam_seed: //iSeedMarketWithRepurchasers = tmpBool; break; case kMicroSegParam_useBudget: ProcessUseBudgetParam(tmpBool, false); break; case kMicroSegParam_save: ProcessSaveUnspentMoneyParam(tmpBool, false); break; //case kMicroSegParam_forgetMessages: // ProcessForgetMessagesParam(tmpBool, false); // break; case kMicroSegParam_compress: ProcessCompressPopulation(tmpBool); break; case kMicroSegParam_useLocal: ProcessUseLocal(tmpBool); break; case kMicroSegParam_showCurrentShare: iDisplayCurrentMarketShare = tmpBool; break; case kMicroSegParam_showCumulativeShare: iDisplayCumulativeMarketShare = tmpBool; break; // d, w, m , y case kMicroSegParam_repTimescale: ProcessRepurchaseFrequencyUnitsParam((int) value); break; case kMicroSegParam_budgetPeriod: ProcessBudgetPeriodParam(value); break; // b, c, e case kMicroSegParam_purchaseModel: ProcessPurchaseModelParam(value, false); break; case kMicroSegParam_repModel: ProcessRepurchaseModel(value, false); break; case kMicroSegParam_AwarenessModelType: // OK ProcessAwarenessModelType(value, false); break; case kMicroSegParam_SocNetModelType: ProcessSocNetModelType(value, false); break; case kMicroSegParam_GrowthRatePeoplePercent: ProcessGrowthRatePeoplePercentParam(value); break; case kMicroSegParam_GrowthRateMonthYear: ProcessGrowthRateMonthYearParam(value); break; // string //case kMicroSegParam_productAttr: // needs to be done per attribute // name will be supplied with all parameters // break; case kMicroSegParam_RebuildPopulationNow: // using this to read in the database // should rename so it is more explicite // SS // 3//25/2006 readFromDB(); break; default: if (index >= kMicroSegParam_LastCall) Process_iDisplayUtility(tmpFloat, index - kMicroSegParam_LastCall); break; } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsASpecialEvent(int inMessage) { string tmpProduct; string tmpChannel; string tmpName; int i; int empty = -1; int found = false; int type; string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ProductName),&tmpProduct); string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ChannelName),&tmpChannel); string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_Name),&tmpName); type = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_TaskType); for (i=0; i<iSpecialEvents.size(); i++) { if ( (string::StrCmpNoCase(&iSpecialEvents[i].iName,&tmpName)) && (string::StrCmpNoCase(&iSpecialEvents[i].iProductName, &tmpProduct)) && (string::StrCmpNoCase(&iSpecialEvents[i].iChannelName, &tmpChannel)) ) { found = true; break; } //else if (string::IsEmpty(&iSpecialEvents[i].iName)) // empty = i; } if ( found && (type == ktimelineTaskType_Delete) ) { iSpecialEvents.RemoveAt(i); iSpecialEvents.FreeExtra(); } else if (found && (type == ktimelineTaskType_Change) ) { string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_NewName),&tmpName); string::StrCpy(&tmpName, &iSpecialEvents[i].iName); } else if (!found && (type == ktimelineTaskType_None) && !tmpName.IsEmpty()) { SpecialEventRecord tempEvent; InitializeSpecialEvent(&tempEvent); string::StrCpy(&tmpName, &tempEvent.iName); string::StrCpy(&tmpProduct, &tempEvent.iProductName); string::StrCpy(&tmpChannel, &tempEvent.iChannelName); iSpecialEvents.push_back(tempEvent); } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsMarketUtilityInfo(int inMessage) { int mrktutil = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_MarketUtilityPointer); MarketUtility* marketUtility = (MarketUtility*) mrktutil; string allText; SINumToString(-1, &allText); string segmentName; SINumToString(marketUtility->getSegmentID(), &segmentName); if( string::StrCmp(&segmentName, &iNameString) || string::StrCmpNoCase(&segmentName, &allText)) { string prodName; SINumToString(marketUtility->getProductID(), &prodName); string channelName; SINumToString(marketUtility->getChannelID(), &channelName); int allProducts = string::StrCmpNoCase(&prodName, &allText); int allChannels = string::StrCmpNoCase(&channelName, &allText); // Create Display // in the future we will do this somewhere else // but we are getting close to deadline... SSN Display display; // scale to probability display.probOfDisplay = 0.01 * marketUtility->getPercentDist(); display.awareness = marketUtility->getAwareness(); display.persuasion = marketUtility->getPersuaion(); display.utility = marketUtility->getUtility(); display.NIMO_AutoDisplay = false; display.onDisplay = false; int pcn; int pn; int cn; ProductTree::LeafNodeList* prodList; if(allProducts) { prodList = (ProductTree::LeafNodeList*)ProductTree::theTree->LeafNodes(); } else { pn = GetProdNumFromProdName(&prodName); prodList = new ProductTree::LeafNodeList(pn); } for( ProductTree::Iter iter = prodList->begin(); iter != prodList->end(); ++iter) { pn = *iter; if(allChannels) { for(cn = 0; cn < iChannelsAvailable.size(); cn++) { pcn = GetProdChanNumFromProdAndChannelNum(pn, cn); if(pcn != -1) { iProductsAvailable[pcn].displayList.push_back(display); iProductsAvailable[pcn].iNoDispSpecifiedYet = false; } } } else { cn = GetChannelNumFromChannelName(&channelName); pcn = GetProdChanNumFromProdAndChannelNum(pn, cn); if(pcn != -1) { iProductsAvailable[pcn].displayList.push_back(display); iProductsAvailable[pcn].iNoDispSpecifiedYet = false; } } } if(!allProducts) { delete prodList; } } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_TaskEvent(int inMessage) { int msgType = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_Type); int i; switch(msgType) { // receiving an advertisement during simulation case ktimelineTaskType_Comms: { string taskName; int end = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_End); int start = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_Start); string::StrCpy((string *) iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_Name),&taskName); int adIndex; int foundIt = false; int prodChanNum; int stratType = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratType); int daysRun = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_DaysRun); int locAdvertType = TranslateStratType(stratType); // find the name in the ad list /*for (adIndex =0; adIndex < iAdSchedule.size(); adIndex++) { if ((iAdSchedule[adIndex].iAdvertType == locAdvertType) && string::StrCmp(&taskName, &(iAdSchedule[adIndex].name))) //if (string::StrCmp(&taskName, &(iAdSchedule[adIndex].name))) { foundIt = true; break; } }*/ if(iAdMap.find(taskName) != iAdMap.end()) { foundIt = true; adIndex = iAdMap[taskName]; } if (foundIt) { // see if this is the Ad's last day if (end) { // have already run the ad the specified number of days iAdSchedule[adIndex].thisIsMyLastTick = true; break; } iAdSchedule[adIndex].daysRun = daysRun; // KMK 3/11/05 int prodNum = iAdSchedule[adIndex].advertProdNum; // SSN 4/10/2006 // Added Additional test here to make sim run as previously if (prodNum != -1 && iAdSchedule[adIndex].iAdvertType != kAdvertType_Distribution && iAdSchedule[adIndex].iAdvertType != kAdvertType_Event_units_purchased && iAdSchedule[adIndex].iAdvertType != kAdvertType_Event_shopping_trips && iAdSchedule[adIndex].iAdvertType != kAdvertType_Event_price_disutility && iAdSchedule[adIndex].iAdvertType != kAdvertType_Event_price_disutility) { SetMarketed(prodNum, true); } switch (iAdSchedule[adIndex].iAdvertType) { case kAdvertType_Event_units_purchased: ProcessEventUnitsPurchasedAdType(adIndex); break; case kAdvertType_Event_shopping_trips: ProcessEventShoppingTripsAdType(adIndex); break; case kAdvertType_Event_price_disutility: ProcessEventPriceDisutility(adIndex); break; case kAdvertType_MassMedia: ProcessPromotionAdType(adIndex, start); break; case kAdvertType_Coupon: // BOGO handled ProcessPromotionAdType(adIndex, start); break; case kAdvertType_BOGO: ProcessPromotionAdType(adIndex, start); break; case kAdvertType_Sample: ProcessPromotionAdType(adIndex, start); break; case kAdvertType_Distribution: ProcessDistributionAdType(adIndex, start); break; //case kAdvertType_Display1: // ProcessDisplayAdType(adIndex, start, 0); // break; //case kAdvertType_Display2: // ProcessDisplayAdType(adIndex, start, 1); // break; //case kAdvertType_Display3: // ProcessDisplayAdType(adIndex, start, 2); // break; //case kAdvertType_Display4: // ProcessDisplayAdType(adIndex, start, 3); // break; //case kAdvertType_Display5: // ProcessDisplayAdType(adIndex, start, 4); // break; //case kAdvertType_Display: // ProcessDisplayAdType(adIndex, start, 0); // break; } } // end check for found it break; } case ktimelineTaskType_Price: { // Now Handling Price Here // Add channel-product pair to my list of available products // make sure I don't already hold the pair string *prodName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName)); string *chanName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ChannelName)); // price type long priceType = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratParam1); // price long tempLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratParam2); double newPrice = MSG_LONG_TO_FLOAT(tempLong); // distribution tempLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratParam3); double skusAtPrice = MSG_LONG_TO_FLOAT(tempLong); skusAtPrice *= .01; // convert from percent to probability long deactivatePrice = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratParam4); if (!deactivatePrice) { ProcessPriceData(prodName, chanName, priceType, skusAtPrice, newPrice); } return; } case ktimelineTaskType_None: // get the compnay name case ktimelineTaskType_Dev: // price now handled here SSN 3/22/2006 case ktimelineTaskType_Promo: case ktimelineTaskType_Delete: case ktimelineTaskType_Change: case ktimelineTaskType_SpecialEvent: // this is currently unused-- special events come in as ads return; case ktimelineTaskType_Display: { // prcess display // tells us what kind of display this is // displays are by product and channel string allText; string::StrCpy((iCtr->iCommonStringPtrs)[kStr_Allm], &allText); string* prodName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName)); string* channelName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ChannelName)); double numImpressions, aware, persuasion; int tempLong; tempLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratParam1); numImpressions = MSG_LONG_TO_FLOAT(tempLong); tempLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratParam2); aware = MSG_LONG_TO_FLOAT(tempLong); tempLong = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratParam3); persuasion = MSG_LONG_TO_FLOAT(tempLong); int displayID = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_StratParam4); int allProducts = string::StrCmpNoCase(prodName, &allText); int allChannels = string::StrCmpNoCase(channelName, &allText); // Create Display // in the future we will do this somewhere else // but we are getting close to deadline... SSN Display display; // scale to probability display.probOfDisplay = numImpressions/100; display.awareness = aware; display.persuasion = persuasion; display.utility = this->iDisplayUtility[displayID] * this->iDispUtilScalingFactor; if (displayID == 0) { // turn on special NIMO Display Pricing display.NIMO_AutoDisplay = true; // this is the only type that is an actual display and subject to display hits display.onDisplay = true; } else { display.NIMO_AutoDisplay = false; display.onDisplay = false; } int pcn; int pn; int cn; ProductTree::LeafNodeList* prodList; if(allProducts) { prodList = (ProductTree::LeafNodeList*)ProductTree::theTree->LeafNodes(); } else { pn = GetProdNumFromProdName(prodName); prodList = new ProductTree::LeafNodeList(pn); } for( ProductTree::Iter iter = prodList->begin(); iter != prodList->end(); ++iter) { pn = *iter; if(allChannels) { for(cn = 0; cn < iChannelsAvailable.size(); cn++) { pcn = GetProdChanNumFromProdAndChannelNum(pn, cn); if(pcn != -1) { iProductsAvailable[pcn].displayList.push_back(display); iProductsAvailable[pcn].iNoDispSpecifiedYet = false; iProductsAvailable[pcn].iTotalDisplayChanceThisTick += numImpressions; } } } else { cn = GetChannelNumFromChannelName(channelName); pcn = GetProdChanNumFromProdAndChannelNum(pn, cn); if(pcn != -1) { iProductsAvailable[pcn].displayList.push_back(display); iProductsAvailable[pcn].iNoDispSpecifiedYet = false; iProductsAvailable[pcn].iTotalDisplayChanceThisTick += numImpressions; } } } if(!allProducts) { delete prodList; } break; } // end display processing } // end switch } void CMicroSegment::SetMarketed(int prodNum, int isMarketed) { iProducts[prodNum].iMarketed = isMarketed; if(!CMicroSegment::prodTree->IsLeaf(prodNum)) { ProductTree::List* leafs = prodTree->ChildNodes(prodNum); if(leafs) { for( ProductTree::Iter iter = leafs->begin(); iter != leafs->end(); ++iter) { int leafPn = *iter; SetMarketed(leafPn, isMarketed); } } } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::ProcessPromotionAdType(int adIndex, int start) { double numImpressionsToday = 0.0; double totalImpressions; int tempLong; int pn; int chan; int pcn; // get the product/channel number // TODO need to fix how we identify products and channels for advert SSN 1/9/2006 GetProdAndChanForAdvert(adIndex, &pn, &chan, &pcn, NULL); GetImpressionsFromAd(adIndex, &totalImpressions, &numImpressionsToday); if ((pcn >= 0) && (numImpressionsToday > 0)) { // tell the right number of people about the product iProductsAvailable[pcn].iProductsAdvertisedThisTick = true; double persuasion = iAdSchedule[adIndex].iPersuasion; double awareness = iAdSchedule[adIndex].iAwareness; // if we don't have enough impressions to distribute over time if (numImpressionsToday < 1.0) { // TODO: We should not put up a dialogue but put a warning into the log // SSN 1/9/2006 // string warnStr; // string::CopyFromCString("ended up with less than 1 impression", &warnStr); // do them all on one day (the first day) if (start) { numImpressionsToday = totalImpressions; // do at least one, in the event are putting a small number of // messages into a compressed population if (numImpressionsToday < 1.0) numImpressionsToday = 1.0; } else { numImpressionsToday = 0.0; } } switch (iAdSchedule[adIndex].iAdvertType) { case kAdvertType_Coupon: // BOGO handled RedeemCoupons(numImpressionsToday, adIndex, persuasion); break; case kAdvertType_BOGO: RedeemCoupons(numImpressionsToday, adIndex, persuasion); break; case kAdvertType_Sample: { double sampleSize = iAdSchedule[adIndex].costPerImpression; double persuasion = iAdSchedule[adIndex].iPersuasion; DistributeSamples(numImpressionsToday, pcn, sampleSize, persuasion); break; } case kAdvertType_MassMedia: BroadcastTheAd(numImpressionsToday, pcn, iAdSchedule[adIndex].messageStrength, persuasion, awareness); break; } iAdSchedule[adIndex].ranThisTick = true; } // end check for positive number of impressions } // ------------------------------------------------------------------------------ // Respond to an event that modifies units purchased // ------------------------------------------------------------------------------ void CMicroSegment::ProcessEventUnitsPurchasedAdType(int adIndex) { int pcn; // see what kind of demand modifier this is switch(iAdSchedule[adIndex].scope) { case kAdvertScope_AllProdsAllChannels: iCatQuantityPurchasedModifier += iAdSchedule[adIndex].numImpressions; break; case kAdvertScope_AllProdsOneChannel: { // for task-based buying, the channel is ignored if (iAdSchedule[adIndex].iTreatProdNameAsTaskName) { // because channel is ignored for TBB events, this means that // the demand for all tasks is being specified iCatQuantityPurchasedModifier += iAdSchedule[adIndex].numImpressions; // KMK 6/23/05 I think we want a separate modifier for task rates... } else // not TBB { // set the demand mod for all products in the specified channel for (pcn = 0; pcn < iProductsAvailable.size(); pcn++) { if (string::StrCmp(&((iProductsAvailable[pcn]).iChanName), &(iAdSchedule[adIndex].iChannelName))) { iProductsAvailable[pcn].iNumPurchasedDemandMod += iAdSchedule[adIndex].numImpressions; iIndividualDemandMods = true; iChannelDemandMods = true; } } } break; } case kAdvertScope_OneProdAllChannels: { if (iAdSchedule[adIndex].iTreatProdNameAsTaskName) { /*int cTaskNum; for (cTaskNum = 0; cTaskNum < iTaskRates.size(); cTaskNum++) { if (string::StrCmp(&((iTaskRates[cTaskNum]).iTaskName), &(iAdSchedule[adIndex].productName))) { iTaskRates[cTaskNum].iDemandModification += iAdSchedule[adIndex].numImpressions; iIndividualDemandMods = true; } ) */ } else // not TBB { // set the demandmod for the product in all channels for (pcn = 0; pcn < iProductsAvailable.size(); pcn++) { if (string::StrCmp(&((iProductsAvailable[pcn]).iProdName), &(iAdSchedule[adIndex].productName))) { iProductsAvailable[pcn].iNumPurchasedDemandMod += iAdSchedule[adIndex].numImpressions; iIndividualDemandMods = true; } } } break; } case kAdvertScope_OneProdOneChannel: { // task event modification ignores channels if (iAdSchedule[adIndex].iTreatProdNameAsTaskName) { //int cTaskNum; //for (cTaskNum = 0; cTaskNum < iTaskRates.size(); cTaskNum++) //{ // if (string::StrCmp(&((iTaskRates[cTaskNum]).iTaskName), // &(iAdSchedule[adIndex].productName))) // { // iTaskRates[cTaskNum].iDemandModification += // iAdSchedule[adIndex].numImpressions; // iIndividualDemandMods = true; // iChannelDemandMods = true; // } //} } else // not TBB { // set demand mod for the specific product/channel pair pcn = iAdSchedule[adIndex].advertProdChanNum; iProductsAvailable[pcn].iNumPurchasedDemandMod += iAdSchedule[adIndex].numImpressions; iIndividualDemandMods = true; iChannelDemandMods = true; } break; } } // end switch } // ------------------------------------------------------------------------------ // KMK 06/27/05 Respond to an event that modifies this segment's price disutility // This will maintain the defined value permanently, or until another price disutility value comes in // ------------------------------------------------------------------------------ void CMicroSegment::ProcessEventPriceDisutility(int adIndex) { double newPriceDisutility = iAdSchedule[adIndex].numImpressions; // set price disutility in the normal way ProcessPriceSensitivityParam(newPriceDisutility); } // ------------------------------------------------------------------------------ // Respond to an event that modifies shopping trip interval // ------------------------------------------------------------------------------ void CMicroSegment::ProcessEventShoppingTripsAdType(int adIndex) { int pcn; // see what kind of demand modifier this is switch(iAdSchedule[adIndex].scope) { case kAdvertScope_AllProdsAllChannels: iCatShoppingTripFrequencyModifier += iAdSchedule[adIndex].numImpressions; break; case kAdvertScope_AllProdsOneChannel: case kAdvertScope_OneProdAllChannels: case kAdvertScope_OneProdOneChannel: WriteToSessionLog(kWarn_TripModificationError, -1, -1, 0); break; } // end switch } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::ProcessDistributionAdType(int adIndex, int start) { int pcn; // reset to 100% distribution if there are no more distribution tasks //if (iAdSchedule[adIndex].daysRun == iAdSchedule[adIndex].daysDuration) // iAdSchedule[adIndex].numImpressions = 1.0; // clear out previous distribution pointers in iProductsAvailable // this is not going to work here, because it clears out all of them each time one os set // we should instead try to do this at startsimstep, I think.... //for (*prodChanNum = 0; *prodChanNum < iProductsAvailable.size(); (*prodChanNum)++) // iProductsAvailable[*prodChanNum].iMyCurrDistNum = -1; // see what kind of demand modifier this is switch(iAdSchedule[adIndex].scope) { case kAdvertScope_AllProdsAllChannels: { // assign the given distribution parameter to all products & channels for (pcn = 0; pcn < iProductsAvailable.size(); pcn++) { iProductsAvailable[pcn].iPreUseDistributionPercent = iAdSchedule[adIndex].numImpressions; iProductsAvailable[pcn].iPostUseDistributionPercent = iAdSchedule[adIndex].costPerImpression; iProductsAvailable[pcn].iMyCurrDistNum = adIndex; iProductsAvailable[pcn].iNoDistSpecifiedYet = false; } break; } case kAdvertScope_AllProdsOneChannel: { // assign the given distribution parameter to all products in the specified channel for (pcn = 0; pcn < iProductsAvailable.size(); pcn++) { if (string::StrCmp(&((iProductsAvailable[pcn]).iChanName), &(iAdSchedule[adIndex].iChannelName))) { iProductsAvailable[pcn].iPreUseDistributionPercent = iAdSchedule[adIndex].numImpressions; iProductsAvailable[pcn].iPostUseDistributionPercent = iAdSchedule[adIndex].costPerImpression; iProductsAvailable[pcn].iMyCurrDistNum = adIndex; iProductsAvailable[pcn].iNoDistSpecifiedYet = false; } } break; } case kAdvertScope_OneProdAllChannels: { // assign the given distribution parameter to the specified product in all channels int pn = GetProdNumFromProdName(&(iAdSchedule[adIndex].productName)); ProductTree::LeafNodeList prodList(pn); for(ProductTree::Iter iter = prodList.begin(); iter != prodList.end(); ++iter) { pn = *iter; for (int cn = 0; cn < iChannelsAvailable.size(); cn++) { pcn = GetProdChanNumFromProdAndChannelNum(pn, cn); if (pcn != -1) { iProductsAvailable[pcn].iPreUseDistributionPercent = iAdSchedule[adIndex].numImpressions; iProductsAvailable[pcn].iPostUseDistributionPercent = iAdSchedule[adIndex].costPerImpression; iProductsAvailable[pcn].iMyCurrDistNum = adIndex; iProductsAvailable[pcn].iNoDistSpecifiedYet = false; } } } break; } case kAdvertScope_OneProdOneChannel: { // assign the given distribution parameter to the specific product/channel pair pcn = iAdSchedule[adIndex].advertProdChanNum; int pn = GetProdNumFromProdChanNum(pcn); int cn = FastGetChannelNumFromProdChannelNum(pcn); ProductTree::LeafNodeList prodList(pn); for(ProductTree::Iter iter = prodList.begin(); iter != prodList.end(); ++iter) { pcn = GetProdChanNumFromProdAndChannelNum(pn, cn); if (pcn != -1) { iProductsAvailable[pcn].iPreUseDistributionPercent = iAdSchedule[adIndex].numImpressions; iProductsAvailable[pcn].iPostUseDistributionPercent = iAdSchedule[adIndex].costPerImpression; iProductsAvailable[pcn].iMyCurrDistNum = adIndex; iProductsAvailable[pcn].iNoDistSpecifiedYet = false; } } break; } } // end switch } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ //void CMicroSegment::ProcessDisplayAdType(int adIndex, int start, int displayType) //{ // int pcn; // // if (start) // iAdSchedule[adIndex].daysRun = 1; // else // iAdSchedule[adIndex].daysRun += 1; // // // see what kind of demand modifier this is // switch(iAdSchedule[adIndex].scope) // { // case kAdvertScope_AllProdsAllChannels: // { // // assign the given distribution parameter to all products & channels // for (pcn = 0; pcn < iProductsAvailable.size(); pcn++) // { // iProductsAvailable[pcn].iMyCurrDispNum[displayType] = adIndex; // iProductsAvailable[pcn].iNoDispSpecifiedYet = false; // iProductsAvailable[pcn].iTotalDisplayChanceThisTick += iAdSchedule[adIndex].numImpressions; // } // break; // } // // case kAdvertScope_AllProdsOneChannel: // { // // assign the given distribution parameter to all products in the specified channel // for (pcn = 0; pcn < iProductsAvailable.size(); pcn++) // { // if (string::StrCmp(&((iProductsAvailable[pcn]).iChanName), &(iAdSchedule[adIndex].iChannelName))) // { // iProductsAvailable[pcn].iMyCurrDispNum[displayType] = adIndex; // iProductsAvailable[pcn].iNoDispSpecifiedYet = false; // iProductsAvailable[pcn].iTotalDisplayChanceThisTick += iAdSchedule[adIndex].numImpressions; // } // } // break; // } // // case kAdvertScope_OneProdAllChannels: // { // // assign the given distribution parameter to the specified product in all channels // for (pcn = 0; pcn < iProductsAvailable.size(); pcn++) // { // if (string::StrCmp(&((iProductsAvailable[pcn]).iProdName), &(iAdSchedule[adIndex].productName))) // { // iProductsAvailable[pcn].iMyCurrDispNum[displayType] = adIndex; // iProductsAvailable[pcn].iNoDispSpecifiedYet = false; // iProductsAvailable[pcn].iTotalDisplayChanceThisTick += iAdSchedule[adIndex].numImpressions; // } // } // break; // } // // case kAdvertScope_OneProdOneChannel: // { // // assign the given distribution parameter to the specific product/channel pair // pcn = iAdSchedule[adIndex].advertProdChanNum; // iProductsAvailable[pcn].iMyCurrDispNum[displayType] = adIndex; // iProductsAvailable[pcn].iTotalDisplayChanceThisTick += iAdSchedule[adIndex].numImpressions; // iProductsAvailable[pcn].iNoDispSpecifiedYet = false; // break; // } // } // end switch //} // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::CheckForUndefinedAdverts(void) { int adIndex; int pcn; int pn; int chan; for (adIndex = 0; adIndex < iAdSchedule.size(); adIndex++) { GetProdAndChanForAdvert(adIndex, &pn, &chan, &pcn, NULL); if (pcn < 0) { int pcN; int newPCN; int newProdNum; switch (iAdSchedule[adIndex].scope) { case kAdvertScope_AllProdsAllChannels: // we will ignore this case right now // the right hting to do would be to generate ads for ALL products break; case kAdvertScope_AllProdsOneChannel: // we will ignore this case right now // the right hting to do would be to generate ads for ALL products break; case kAdvertScope_OneProdAllChannels: // to make this work, we will assume it is the same as // advertising the product through any channel is ti available... newPCN = -1; if (pn == -1) { for (pcN = 0; pcN < iProductsAvailable.size(); pcN++) { if (string::StrCmp(&((iProductsAvailable[pcN]).iProdName), &(iAdSchedule[adIndex].productName))) { newPCN = pcN; break; } } } if (newPCN >= 0) { newProdNum = GetProdNumFromProdChanNum(newPCN); if (newProdNum >= 0) iAdSchedule[adIndex].advertProdNum = newProdNum; } break; } // end switch } // end check for bad pcn } // next ad } // ------------------------------------------------------------------------------ // We will scale the number of impressions by the ad strength // ------------------------------------------------------------------------------ #define kMinNumberImpresionsPerDay 2 void CMicroSegment::GetImpressionsFromAd(int adIndex, double *totalImpressions, double *numImpressionsToday) { if (iAdSchedule[adIndex].daysDuration > 0) { switch (iAdSchedule[adIndex].iAdvertType) { case kAdvertType_Coupon: // BOGO Handled case kAdvertType_BOGO: case kAdvertType_Sample: { // impressions are computed differently for coupons // because we just look at redemption rate right now *totalImpressions = iAdSchedule[adIndex].numImpressions * (double) iPopulation->iConsumerList.size(); // adjust to coupon penetration *totalImpressions *= iAdSchedule[adIndex].iRate;; // now we will account for the fact that coupons are not redemmed uniformly // across the period. Rather, more are redeemed earlier than later. double scaleFactor = (iAdSchedule[adIndex].daysDuration - iAdSchedule[adIndex].daysRun); /*double scaleFactor = 0; if(iAdSchedule[adIndex].daysRun == 1) { scaleFactor = 1; }*/ if (scaleFactor < 0) { // TODO remove dialgoue and Add to log SSN 1/9/2006 // string warnStr, w2str, w3str, w4str; // string::CopyFromCString("negative coupon scale factor, days duration =", &warnStr); //SINumToString(iAdSchedule[adIndex].daysDuration, &w2str); //string::CopyFromCString("days run =", &w3str); //SINumToString(iAdSchedule[adIndex].daysRun, &w4str); } scaleFactor /= (double) iAdSchedule[adIndex].daysDuration; // the constant multiplier here determines the slope of the dropoff. scaleFactor *= 2.0; *totalImpressions *= scaleFactor; break; } case kAdvertType_Event_units_purchased: case kAdvertType_Event_shopping_trips: case kAdvertType_MassMedia: { if (iAdSchedule[adIndex].isPercentage) { *totalImpressions = iAdSchedule[adIndex].numImpressions * (double) iPopulation->iGroupSize; } else *totalImpressions = iAdSchedule[adIndex].numImpressions; break; } case kAdvertType_Distribution: // nothing to do for a distribution task break; } if (iAdSchedule[adIndex].daysDuration != 0) { switch (iAdSchedule[adIndex].iAdvertType) { case kAdvertType_Coupon: // BOGO Handled *numImpressionsToday = *totalImpressions / (double) iAdSchedule[adIndex].daysDuration; //*numImpressionsToday = *totalImpressions; break; case kAdvertType_BOGO: *numImpressionsToday = *totalImpressions / (double) iAdSchedule[adIndex].daysDuration; //*numImpressionsToday = *totalImpressions; break; case kAdvertType_Sample: *numImpressionsToday = *totalImpressions / (double) iAdSchedule[adIndex].daysDuration; *numImpressionsToday *= iAdSchedule[adIndex].iRate; break; case kAdvertType_Event_units_purchased: case kAdvertType_Event_shopping_trips: case kAdvertType_MassMedia: *numImpressionsToday = *totalImpressions / (double) iAdSchedule[adIndex].daysDuration; // scale down # impressions, since we treat a fractional strength as a // fractional impression // but only for the awareness only model! break; case kAdvertType_Distribution: // nothing to do for a distribution task break; } } else { *numImpressionsToday = 0; } } else { *numImpressionsToday = 0; } /* // we may have to deal with too few impresions for one day int scaleFactor = 1; while ((*numImpressionsToday < kMinNumberImpresionsPerDay) && (scaleFactor < iAdSchedule[adIndex].daysDuration)) { *numImpressionsToday *= 2; scaleFactor*= 2; } if (scaleFactor > 1) { // see if we do ad this tick //int ticknum = iCtr->GetLong(myNodePtr, kCntr_CurrentTime_Ticks); // only do impressions every scaleFactor days //if (ticknum % scaleFactor) if (iNumberDaysofSim % scaleFactor) *numImpressionsToday = 0; } */ // correct for roundoff error if ((*numImpressionsToday < 100) && (*numImpressionsToday > 0)) { int trunactedVal = *numImpressionsToday; double offset = *numImpressionsToday - trunactedVal; if (WillDo0to1(offset)) trunactedVal += 1; *numImpressionsToday = trunactedVal; //offset *= 1000.0; //if (offset >= 1.0) //{ // *numImpressionsToday += ((double) LocalRand(offset))/1000.0; //} } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::SendTransactionFileMessage(int value1) { iSaveTransactionFile = !iSaveTransactionFile; if (iSaveTransactionFile == 0) return; // ask the timeline control for the names of all segments int msgOut = iCtr->GetBroadcastMsg(myNodePtr); iCtr->Set_MsgSqTyIn(msgOut, kMsgSequenceNoAck, kMsgNoAckMsg, kMarketSimMessage_CreateOrCloseTransactionFile); iCtr->Set_MsgParam(msgOut, kDataMsgParam_SendingNode, (int) myNodePtr); iCtr->Set_MsgParam(msgOut, kDataMsgParam_SendingNode + 1, value1); iCtr->RcvBroadcastMsg(myNodePtr, NULL, msgOut, kWeb_AllWebs); // Do my own CreateTransactionFile(value1); } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_CreateOrCloseTransactionFile(int inMessage) { int value1 = iCtr->Get_MsgParam(inMessage, kDataMsgParam_SendingNode + 1); CreateTransactionFile(value1); } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsSegmentName(int inMessage) { int i; string *segmentName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_SegmentName)); if (segmentName) { if (segmentName->IsEmpty()) return; // see if we already know about this segment for (i = 0; i < iSegmentNames.size(); i++) if (string::StrCmp(segmentName, &(iSegmentNames[i]))) return; // make sure this segment is not me if (string::StrCmp(segmentName, &iNameString)) return; // if we get here, we did not find the segment, and it is not this segment, // so Add it to the list string newString; string::StrCpy(segmentName, &newString); iSegmentNames.push_back(newString); iSegmentPointers.push_back(NULL); // we'll request this next. } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsSegmentPointer(int inMessage) { //iRespondingSegmentNodeID = iCtr->Get_MsgParam(inMessage, // kDataMsgParam_SendingNode); int i; for (i = 0; i < iSegmentNames.size(); i++) { if (string::StrCmp(&iNameOfSegWhosePointerIsRequested, &(iSegmentNames[i]))) { iSegmentPointers[i] = (CMicroSegment *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ObjPtr)); // set the pointer in our social network // who was this message from? return; } } } // VdM 7/25/01 // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsUserTaskSegInfo(int inMessage) { //string taskName; //string segName; //int startDay; //int startMonth; //int startYear; //string timePeriod; //int type; //int longVal; //int taskIndex; //int foundIt = false; //// only accept messages for this segment //type = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskType); //if (type == kUserTaskParamType_seginfo) //{ // // only need segment name for task usage rate // string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_UserTaskSegName),&segName); // if (!(string::StrCmp(&iNameString, &segName))) // return; //} //string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_UserTaskName),&taskName); //startDay = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskStartDay); //startMonth = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskStartMonth); //startYear = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskStartYear); //// look for the task //for (taskIndex =0; taskIndex < iTaskRates.size(); taskIndex++) //{ // if (string::StrCmp(&iTaskRates[taskIndex].iTaskName, &taskName)) // { // // check for start and end dates // if ((iTaskRates[taskIndex].iStartMonth == startMonth) && // (iTaskRates[taskIndex].iStartYear == startYear) && // (iTaskRates[taskIndex].iStartDay == startDay)) // { // foundIt = true; // break; // } // } //} //// if we did not find it, then Add it //if (!foundIt) //{ // AddUserTask(&taskName, startDay, startMonth, startYear, -1, -1, -1, -1, -1.0, -1.0, false); // // look for it again // foundIt = false; // for (taskIndex =0; taskIndex < iTaskRates.size(); taskIndex++) // { // if (string::StrCmp(&iTaskRates[taskIndex].iTaskName, &taskName)) // { // // check for start and end dates // if ((iTaskRates[taskIndex].iStartMonth == startMonth) && // (iTaskRates[taskIndex].iStartYear == startYear) && // (iTaskRates[taskIndex].iStartDay == startDay)) // { // foundIt = true; // break; // } // } // } //} //// we should always be able to find it... //if (foundIt) //{ // if (type == kUserTaskParamType_startend) // { // iTaskRates[taskIndex].iEndDay = // iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskEndDay); // iTaskRates[taskIndex].iEndMonth = // iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskEndMonth); // iTaskRates[taskIndex].iEndYear = // iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskEndYear); // iTaskRates[taskIndex].iHaveScaled = false; // } // else if (type == kUserTaskParamType_timeinfo) // { // string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_UserTaskTimePeriod),&timePeriod); // char tmpBytes[256]; // timePeriod.CopyToCString(tmpBytes); // switch (tmpBytes[0]) // { // case 'd': // case 'D': // iTaskRates[taskIndex].iUsageTimeUnit = 1.0; // break; // case 'w': // case 'W': // iTaskRates[taskIndex].iUsageTimeUnit = 7.0; // break; // case 'm': // case 'M': // iTaskRates[taskIndex].iUsageTimeUnit = 365.0/12.0; // break; // case 'y': // case 'Y': // iTaskRates[taskIndex].iUsageTimeUnit = 365.0; // break; // } // // might need to scale usageRate // //if ((iTaskRates[taskIndex].iTasksPerDay != -1.0) // // && !(iTaskRates[taskIndex].iHaveScaled)) // //{ // // iTaskRates[taskIndex].iTasksPerDay /= (double) iTaskRates[taskIndex].iUsageTimeUnit; // // iTaskRates[taskIndex].iHaveScaled = true; // //} // } // else if (type == kUserTaskParamType_seginfo) // { // double segVal; // // only need segment name for task usage rate // longVal = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskSegValue); // segVal = MSG_LONG_TO_FLOAT(longVal); // iTaskRates[taskIndex].iTasksPerDay = segVal; // // might need to scale to days // if ((iTaskRates[taskIndex].iUsageTimeUnit != -1) && // !(iTaskRates[taskIndex].iHaveScaled)) // { // iTaskRates[taskIndex].iTasksPerDay /= iTaskRates[taskIndex].iUsageTimeUnit; // iTaskRates[taskIndex].iHaveScaled = true; // } // } //} } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::AddUserTask(string* taskName, int startDay, int startMonth, int startYear, int iEndMonth, int iEndYear, int iEndDay, int iDaysDuration, double iTasksPerDay, double iUsageTimeUnit, int iHaveScaled) { //TaskPerformanceRate tempTPR; //string::StrCpy(taskName, &tempTPR.iTaskName); //tempTPR.iStartMonth = startMonth; //tempTPR.iStartYear = startYear; //tempTPR.iStartDay = startDay; //tempTPR.iEndMonth = iEndMonth; //tempTPR.iEndYear = iEndYear; //tempTPR.iEndDay = iEndDay; //tempTPR.iDaysDuration = iDaysDuration; //tempTPR.iTasksPerDay = iTasksPerDay; //tempTPR.iUsageTimeUnit = iUsageTimeUnit; //tempTPR.iHaveScaled = iHaveScaled; //tempTPR.iHaveWarnedNoProds = false; //tempTPR.iTaskObjNum = -1; //tempTPR.iActive = false; //tempTPR.iDemandModification = 0.0; //tempTPR.iTempShopListTasksNeededFloat = 0.0; //tempTPR.iTempShopListProdToBuy = -1; //tempTPR.iTempTasksDone = 0.0; //tempTPR.iTempTasksDeferred = 0.0; //iTaskRates.push_back(tempTPR); //// when Adding user tasks, need to expand shopping list as well //iPopulation->AddToShopList(iTaskRates.size()); } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsUserTaskProdInfo(int inMessage) { string taskName; string prodName; int startDay; int startMonth; int startYear; int endDay; int endMonth; int endYear; int dur; int min; int max; double prodVal; int type; int longVal; int i; int taskIndex; int prodIndex; string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_UserTaskName),&taskName); type = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskType); taskIndex = FindTaskByName(&taskName); if (taskIndex == -1) return; if (type == kUserTaskParamType_startend) { startDay = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskStartDay); startMonth = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskStartMonth); startYear = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskStartYear); endDay = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskEndDay); endMonth = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskEndMonth); endYear = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskEndYear); dur = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskDuration); /* iProdTasks[taskIndex].iStartMonth = startMonth; iProdTasks[taskIndex].iStartYear = startYear; iProdTasks[taskIndex].iStartDay = startDay; iProdTasks[taskIndex].iEndMonth = endDay; iProdTasks[taskIndex].iEndYear = endMonth; iProdTasks[taskIndex].iEndDay = endDay; iProdTasks[taskIndex].iDaysDuration = endYear;*/ } else if (type == kUserTaskParamType_minmax) { max = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskMaxValue); min = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskMinValue); /* iProdTasks[taskIndex].iSuitabilityScaleMin = min; iProdTasks[taskIndex].iSuitabilityScaleMax = max;*/ } else if (type == kUserTaskParamType_suitability) { string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_UserTaskProdName),&prodName); longVal = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskSuitablityVal); prodVal = MSG_LONG_TO_FLOAT(longVal); prodIndex = FindTaskProdByName(taskIndex, &prodName); if (prodIndex == -1) return; // iProdTasks[taskIndex].iSuitability[prodIndex] = prodVal; } else if (type == kUserTaskParamType_sku) { double fraction; string::StrCpy((string *) iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_UserTaskProdName),&prodName); longVal = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskPreSKUVal); prodVal = MSG_LONG_TO_FLOAT(longVal); prodIndex = FindTaskProdByName(taskIndex, &prodName); if (prodIndex == -1) return; // iProdTasks[taskIndex].iUsesPerSkuPre[prodIndex] = prodVal; fraction = 1.0 / prodVal; // iProdTasks[taskIndex].iFractionPerUsePre[prodIndex] = fraction; longVal = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_UserTaskPostSKUVal); prodVal = MSG_LONG_TO_FLOAT(longVal); if (prodVal == 0) { // iProdTasks[taskIndex].iUsesPerSkuPost[prodIndex] = iProdTasks[taskIndex].iUsesPerSkuPre[prodIndex]; // iProdTasks[taskIndex].iFractionPerUsePost[prodIndex] = iProdTasks[taskIndex].iFractionPerUsePre[prodIndex]; } else { // iProdTasks[taskIndex].iUsesPerSkuPost[prodIndex] = prodVal; fraction = 1.0 / prodVal; // iProdTasks[taskIndex].iFractionPerUsePost[prodIndex] = fraction; } } } // ------------------------------------------------------------------------------ // Try to find the task. If I can't, then create it // ------------------------------------------------------------------------------ int CMicroSegment::FindTaskByName(string* taskName) { if (taskName->IsEmpty()) { return -1; } int taskIndex; int foundIt = false; // look for the task //for (taskIndex =0; taskIndex < iProdTasks.size(); taskIndex++) //{ // if (string::StrCmp(&iProdTasks[taskIndex].iTaskName, taskName)) // { // foundIt = true; // break; // } //} // if we did not find it, then Add it if (!foundIt) { //AddProdTask(taskName, -1, -1, -1, -1, -1, -1, -1, -1, -1); //// look for it again //foundIt = false; //for (taskIndex =0; taskIndex < iProdTasks.size(); taskIndex++) //{ // if (string::StrCmp(&iProdTasks[taskIndex].iTaskName, taskName)) // { // foundIt = true; // break; // } //} } //if (foundIt) // return taskIndex; //else return -1; } // ------------------------------------------------------------------------------ // Try to find a product the task. If I can't, then create it // ------------------------------------------------------------------------------ int CMicroSegment::FindTaskProdByName(int taskIndex, string* prodName) { //int prodIndex; //int foundIt = false; //// look for the task ////for (prodIndex =0; prodIndex < iProdTasks[taskIndex].iProductName.size(); prodIndex++) ////{ //// if (string::StrCmp(&(iProdTasks[taskIndex].iProductName[prodIndex]), prodName)) //// { //// foundIt = true; //// break; //// } ////} //// if we did not find it, then Add it //if (!foundIt) //{ // string newString; // double aFloat = -1.0; // double anotherFloat = -1.0; // double yetAnotherFloat = -1.0; // int aLong = -1; // double float3 = -1.0; // double float4 = -1.0; // string::StrCpy(prodName, &newString); // iProdTasks[taskIndex].iProductName.push_back(newString); // iProdTasks[taskIndex].iSuitability.push_back(aFloat); // iProdTasks[taskIndex].iUsesPerSkuPre.push_back(anotherFloat); // iProdTasks[taskIndex].iUsesPerSkuPost.push_back(yetAnotherFloat); // iProdTasks[taskIndex].iFractionPerUsePre.push_back(float3); // iProdTasks[taskIndex].iFractionPerUsePost.push_back(float4); // iProdTasks[taskIndex].iProdIndex.push_back(aLong); // // look for it again // foundIt = false; // for (prodIndex =0; prodIndex < iProdTasks[taskIndex].iProductName.size(); prodIndex++) // { // if (string::StrCmp(&(iProdTasks[taskIndex].iProductName[prodIndex]), prodName)) // { // foundIt = true; // break; // } // } //} //// look up the product number, and Add that to the list too //if (foundIt) // return prodIndex; //else return -1; } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::AddProdTask(string* taskName, int startMonth, int startYear, int startDay, int endMonth, int endYear, int endDay, int daysDuration, double suitabilityScaleMin, double suitabilityScaleMax) { //TaskObj tempTask; //string::StrCpy(taskName, &tempTask.iTaskName); // //// these will be Added as products are received //// CArray <double, double> iSuitability; //// CArray <double, double> iUsesPerSku; //// CArray <string, string> iProductName; //tempTask.iStartMonth = -1; //tempTask.iStartYear = -1; //tempTask.iStartDay = -1; //tempTask.iEndMonth = -1; //tempTask.iEndYear = -1; //tempTask.iEndDay = -1; //tempTask.iDaysDuration = -1; //tempTask.iSuitabilityScaleMin = -1; //tempTask.iSuitabilityScaleMax = -1; //tempTask.iAllProductsSuitable = false; // iProdTasks.push_back(tempTask); } // ------------------------------------------------------------------------------ // VdM 9/19/01 // ------------------------------------------------------------------------------ void CMicroSegment::GetUserTasks(void) { int outgoingMessage = iCtr->GetBroadcastMsg(myNodePtr); iCtr->Set_MsgSqTyIn(outgoingMessage, kMsgSequenceNoAck, kMsgNoAckMsg, kMarketSimMessage_SendMeAllUserTaskInfo); iCtr->Set_MsgParam(outgoingMessage, kDataMsgParam_SendingNode, myNodePtr); iCtr->RcvBroadcastMsg(myNodePtr, NULL, outgoingMessage, kWeb_MyWeb); } // ------------------------------------------------------------------------------ // VdM 4/22/02 // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsSharePenetration(int inMessage) { double percent; double units; int i; int pN; string* prodName = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductName)); int type = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ParamType); int tmpLong = iCtr->Get_MsgParam(inMessage,kMarketSimMessageParam_ParamValue); percent = MSG_LONG_TO_FLOAT(tmpLong); if ((percent < 0.0) && (type != kSharePenetrationParamType_persuasion)) percent = 0.0; else if (percent > 100.0) percent = 100.0; percent *= 0.01; // convert all incoming percents to 0 to 1.0 units = percent * ((double) iPopulation->iGroupSize); if (units == 0) return; // look for the product in iTempShareInfo pN = -1; for (i = 0; i < iTempShareInfo.size(); i++) { if (string::StrCmp(&(iTempShareInfo[i].prodName), prodName)) { pN = i; break; } } // if it is not found, Add an element to the array if (pN == -1) { TempShareInfo shareInfo; string::StrCpy(prodName, &(shareInfo.prodName)); shareInfo.iSharePercent = 0.0; shareInfo.initialUnitsToSellUnscaled = 0.0; shareInfo.iPenetrationPct = 0.0; shareInfo.iPenetrationUnits = 0.0; shareInfo.iBrandAwarenessPct = 0.0; shareInfo.iBrandAwarenessUnits = 0.0; shareInfo.iInitialPersuasion = 0.0; iTempShareInfo.push_back(shareInfo); // look for it again to get the proper index for (i = 0; i < iTempShareInfo.size(); i++) { if (string::StrCmp(&(iTempShareInfo[i].prodName), prodName)) { pN = i; break; } } } if (pN != -1) { // store the data away switch (type) { case kSharePenetrationParamType_initialshare: iTempShareInfo[pN].iSharePercent = percent; iTempShareInfo[pN].initialUnitsToSellUnscaled = units; break; case kSharePenetrationParamType_penetration: iTempShareInfo[pN].iPenetrationPct = percent; iTempShareInfo[pN].iPenetrationUnits = units; break; case kSharePenetrationParamType_brandawareness: iTempShareInfo[pN].iBrandAwarenessPct = percent; iTempShareInfo[pN].iBrandAwarenessUnits = units; break; case kSharePenetrationParamType_persuasion: iTempShareInfo[pN].iInitialPersuasion = percent * 100.0; // persuasion is not a percent break; } } } // ------------------------------------------------------------------------------ // // ------------------------------------------------------------------------------ void CMicroSegment::RespondTo_HereIsProductMatrixInfo(int inMessage) { string* have = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductMatrixHave)); string* want = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductMatrixWant)); string* relationship = (string *)(iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_ProductMatrixValue)); // if the relationship is irellevant, then the message can be ignored string notRelevantStr; string prereqStr; string incompatStr; int pn; int foundIt; string::CopyFromCString("not relevant", &notRelevantStr); if (string::StrCmpNoCase(&notRelevantStr, relationship)) return; // if we are still here, then a relationsip is defined; // for every product, need a Carray or prerequisite products, expands with each unique HereIsProductMatrixInfo message // for every product, need a Carray of incompatable products, expands with each unique HereIsProductMatrixInfo message // there are realy two arays for each: One with product names, and another with product numbers. The numbers are calculated each tick // we need to be careful not to have two products of the same name // Prerequisite means that the "want" product requireds to the "have" product // the have product goes in the want product's iPrereqName array string::CopyFromCString("prerequisite", &prereqStr); string::CopyFromCString("incompatible", &incompatStr); if (string::StrCmpNoCase(relationship, &prereqStr)) { iHavePrereqs = true; // find the want product foundIt = false; for (pn = 0; pn < iProducts.size(); pn++) { if (string::StrCmpNoCase(want, &iProducts[pn].iName)) { foundIt = true; break; // exit with pn of found product } } //next product if (!foundIt) AddAProduct(want); string newString; int newNum; string::StrCpy(have, &newString); iProducts[pn].iPrereqName.push_back(newString); newNum = -1; iProducts[pn].iPrereqNum.push_back(newNum); iProducts[pn].iHavePrepreqs = true; } // end check for prerequisite /* // Incompatable means that the "want" product will not work with the "have" product // each product goes in the other product's incompatable list else if (string::StrCmpNoCase(relationship,&incompatStr)) { iHaveIncompats = true; // Add have to want foundIt = false; for (pn = 0; pn < iProducts.size(); pn++) { if (string::StrCmpNoCase(want, &iProducts[pn].iName)) { foundIt = true; break; // exit with pn of found product } } //next product if (!foundIt) AddAProduct(want); string newString1; int newNum1; string::StrCpy(have, &newString1); iProducts[pn].iIncompatName.push_back(newString1); newNum1 = -1; iProducts[pn].iIncompatNum.push_back(newNum1); iProducts[pn].iHaveIncompats = true; // Add want to have foundIt = false; for (pn = 0; pn < iProducts.size(); pn++) { if (string::StrCmpNoCase(have, &iProducts[pn].iName)) { foundIt = true; break; // exit with pn of found product } } //next product if (!foundIt) AddAProduct(have); string newString2; int newNum2; string::StrCpy(want, &newString2); iProducts[pn].iIncompatName.push_back(newString2); newNum2 = -1; iProducts[pn].iIncompatNum.push_back(newNum2); iProducts[pn].iHaveIncompats = true; } // end check for incompatible */ } // ------------------------------------------------------------------------------ // Once we have read a product in, we need to Add the starting share, penetration // and brand awareness info that came from SSIO // ------------------------------------------------------------------------------ void CMicroSegment::InsertStartingShares(int prodNum) { int i; for (i=0; i<iTempShareInfo.size(); i++) { if (string::StrCmp(&(iTempShareInfo[i].prodName), &(iProducts[prodNum].iName))) { // starting share if (iTempShareInfo[i].iSharePercent != 0.0) { iProducts[prodNum].iSharePercent = iTempShareInfo[i].iSharePercent; //iProducts[prodNum].initialUnitsToSellScaled = iTempShareInfo[i].initialUnitsToSellUnscaled; //iProducts[prodNum].initialUnitsToSellScaled /= iPopulation->iPopScaleFactor; iSetInitialPurchasePercentages = false; //iProducts[prodNum].initialAwarenessType = kColType_Share; } else { iProducts[prodNum].iSharePercent = 0.0; iProducts[prodNum].initialUnitsToSellScaled = 0; } // penetration iProducts[prodNum].iPenetrationPct = iTempShareInfo[i].iPenetrationPct; iProducts[prodNum].iPenetrationUnits = iTempShareInfo[i].iPenetrationUnits; // brand awareness not mutually exclusive with starting share // KMK 1/21/04 simplified following code iProducts[prodNum].iBrandAwarenessPct = iTempShareInfo[i].iBrandAwarenessPct; // persuasion iProducts[prodNum].iInitialPersuasion = iTempShareInfo[i].iInitialPersuasion; } } } void CMicroSegment::RespondTo_HereIsSocNetValue(int inMessage) { int toNode = iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_toNode); CMicroSegment* toSeg = 0; // find the pointer to the other segment (maybe its me! if (toNode > 0) toSeg = (CMicroSegment*) iCtr->GetLong(toNode, kCntr_MyPtr); NetworkParamsRecordset* networkParams; networkParams = (NetworkParamsRecordset*)iCtr->Get_MsgParam(inMessage, kMarketSimMessageParam_networkParams); SocialNetwork* socNet = new SocialNetwork(this, toSeg, networkParams); if (socialNetworks == 0) { // create container socialNetworks = new vector<SocialNetwork*>; } socialNetworks->push_back(socNet); }
[ "Isaac.Noble@fd82578e-0ebe-11df-96d9-85c6b80b8d9c" ]
[ [ [ 1, 4102 ] ] ]
bb7310f71923b9fa5a4606be95a01785d190a12d
6a1ebb1f435150dd8b9f56e46a0bfcb3be96dbd5
/Order_Item.cpp
2e29963b582fe014cea2cd1f07b4e42db7538274
[]
no_license
Marvello/team9-roms
646b7db2aa58cd123ef1fed912815d20c41746d0
fc18e66e4a744d9ad1cae0153271784d52581770
refs/heads/master
2020-05-31T10:00:34.304864
2011-10-30T11:41:23
2011-10-30T11:41:23
35,852,481
0
0
null
null
null
null
UTF-8
C++
false
false
564
cpp
//Author :M.O. B.2.c S.X.-B.2b #include "Order_Item.h" char Order_Item::getOrderItemSeatID() const //return Order Seat ID M.O. B.2.c S.X.-B.2b { return (seat_id); } int Order_Item::getOrderItemID() const //return Order ID M.O. B.2.c S.X.-B.2b LC - B.2a { return (order_id); } int Order_Item::getOrderItemMenuItemID() const //return Order Item Menu ID M.O. B.2.c S.X.-B.2b LC - B.2a { return (menu_item_id); } int Order_Item::getOrderItemProdQty() const //return Order Item Menu Quantity ID M.O. B.2.c S.X.-B.2b LC - B.2a { return (prod_qty); }
[ "[email protected]@ebab4ee8-9f8a-a00f-9290-9a5cbb10542b" ]
[ [ [ 1, 23 ] ] ]
c83b0ee9f82e5483fadf9c0734225ef3ebe5b607
27d5670a7739a866c3ad97a71c0fc9334f6875f2
/CPP/Targets/WayFinder/symbian-r6/ImageHandler.h
9eac6233c56a0e06725799e5f655458baa3a7e05
[ "BSD-3-Clause" ]
permissive
ravustaja/Wayfinder-S60-Navigator
ef506c418b8c2e6498ece6dcae67e583fb8a4a95
14d1b729b2cea52f726874687e78f17492949585
refs/heads/master
2021-01-16T20:53:37.630909
2010-06-28T09:51:10
2010-06-28T09:51:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
8,773
h
/* Copyright (c) 2004-2006, Nokia. */ #ifndef IMAGE_HANDLER_H #define IMAGE_HANDLER_H // INCLUDE FILES //#include <e32cmn.h> #include <w32std.h> #include <coecntrl.h> #if defined NAV2_CLIENT_SERIES60_V3 # include <akniconutils.h> #endif #include "BitmapConverter.h" #include "ScaleMode.h" /** * CImageHandler * Image loader class. */ class CImageHandler : public CCoeControl, public MImageObserver { public: /** * Factory method that constructs a CImageHandler * by using the NewLC method and then cleans the * cleanup stack. */ static CImageHandler* NewL(const TRect& aBitMapRect, /*class RFs& aFs,*/ class MImageHandlerCallback* aCallback); /** * Factory method that constructs a CImageHandler * and leaves it to the cleanup stack. */ static CImageHandler* NewLC(const TRect& aBitMapRect, /*class RFs& aFs,*/ class MImageHandlerCallback* aCallback); static CImageHandler* NewL(const TRect& aImageRect); static CImageHandler* NewLC(const TRect& aImageRect); /** * Desctructor. Destroys the CImageDecoder used * by the image handler. */ virtual ~CImageHandler(); public: /** * Creates and loads an icon from the mbm/mif file. * @param aIconFileName name of the mbm/mif file. * @param aImageId id of the image to be loaded. * @param aImageMaskId id of the mask to be loaded. * @param aScaleMode defines how the image should be scaled * when setting the size on it (s60v3). * @param aCenterRealImageRect depending on the scaleMode the * image size can be less than the * container rect. This variable tells * us if we want to center the imagerect * when setting the size on the container * rect. */ void CreateIconL(const TDesC& aIconFilename, TInt aImageId, TInt aImageMaskId, TScaleMode aScaleMode = EAspectRatioPreserved, TBool aCenterRealImageRect = EFalse, TBool aIsNightModeOn = EFalse); /** * Creates and loads an icon from the mbm/mif file. * @param aIconFileName name of the mbm/mif file. * @param aImageId id of the image to be loaded. * @param aScaleMode defines how the image should be scaled * when setting the size on it (s60v3). * @param aCenterRealImageRect depending on the scaleMode the * image size can be less than the * container rect. This variable tells * us if we want to center the imagerect * when setting the size on the container * rect. */ void CreateIconL(const TDesC& aIconFilename, TInt aImageId, TScaleMode aScaleMode = EAspectRatioPreserved, TBool aCenterRealImageRect = EFalse); /** * Loads a the given frame from the given file. * @param aFileName Filename wherefrom the bitmap data is loaded. * @param aSize The size of the bitmap. * @param aDoScale True if the picture should be scaled. * @param aSelectedFrame A single frame index in a multi-frame * file. If not given the first frame is loaded. */ TInt LoadFileL(const TDesC& aFileName, class TSize aSize, TBool aDoScale = EFalse, TInt aSelectedFrame = 0); /** * NightFilters the image using WFBitmapUtil::FilterImage. */ void NightFilter(TBool aOn); /** * Turns night mode off. On s60v3 the graphic server is caching * the image so for getting the original image back we need to * reload the image and change the size one pixel. * @param aFileName name of the mbm/mif file. * @param aMbmIndex mbm/mif index of the image to be loaded. * @param aMaskMbmIndex index of the mask to be loaded. */ void TurnNightModeOff(const TDesC& aFileName, TInt aMbmIndex, TInt aMaskMbmIndex = -1); /** * Tells if this image should be visible or not. * @return True if image should be visible * @return False if image not should be visible */ TBool GetShow(); #ifdef NAV2_CLIENT_SERIES60_V3 /** * Loads a svg image from a mif-file and draws this * image to the whole screen. */ void LoadMifImage(const TDesC& aFileName, TSize aSize); #endif /** * Returns the current frame information. * @return Current frame information. */ const class TFrameInfo& FrameInfo() const; class TSize GetSize(); class TRect GetRect(); class TPoint GetTopLeftPos(); /** * Sets the rect of this container class, on s60v3 * we resize the image as well. * @param aRect The new rect. * @param aScaleMode defines how the image should be scaled * when setting the size on it (s60v3). * @param aCenterRealImageRect depending on the scaleMode the * image size can be less than the * container rect. This variable tells * us if we want to center the imagerect * when setting the size on the container * rect. */ void SetImageRect(const TRect& aRect, TScaleMode aScaleMode = EAspectRatioPreserved, TBool aCenterRealImageRect = EFalse); void SetShow(TBool aShow); void SetClear(TBool aClear); enum TConvertionState { EConverting = 0, EScaling = 1, EConvertStateReady = 2, }; void HandleLayoutSwitch(TInt aType); public: // From CoeControl void SizeChanged(); virtual void MakeVisible(TBool aVisible); private: // From CoeControl void Draw(const TRect& aRect) const; // void HandleResourceChange(TInt aType); public: // From MImageObserver void ImageConversionDone(TInt aResult); protected: /** * C++ default constructor. Just stores the given parameters * to corresponding attributes. * @param aBitmap Bitmap where the image data is loaded to. * @param aFs File server reference that is used to load the * image data. * @param aCallback Listener interface implementation that * is notified when an image has been loaded. */ CImageHandler(/*class RFs& aFs,*/ class MImageHandlerCallback* aCallback); CImageHandler(); /** * 2nd phase constructor. Adds this object to the active scheduler. */ void ConstructL(const TRect& aBitMapRect); private: void ScaleImage(); /** * This function sets the size of aRect to the size of * aImage, it also centers the new rect inside the old * rect. * @param aImage the image that should define the new size. * @param aRect the rect that is to be changed. */ void CenterImageRect(class CFbsBitmap* aImage, TRect& aRect); private: // Data /** Bitmap (owned by the user of this class) where the loaded image data is put. */ class CFbsBitmap* iImage; class CFbsBitmap* iImageMask; const class CFbsBitmap* iConvertedImage; /** File server (owned by the user of this class) that is used to load the raw image data from files. */ class RFs iFs; /** Listener that is notified when an image has been loaded. */ class MImageHandlerCallback* iCallback; /** Using this class we can find out how large the screen is, (ownded by the user of this class). */ class CWsScreenDevice* iScreenDevice; /** CWsScreenDevice returns the size of the screen in this class */ struct TPixelsTwipsAndRotation iPixTwipsRot; /** Class that converts from png to bitmap and scales the image if wanted. */ class CBitmapConverter* iImageConverter; /** The pictures rect */ TRect iImageRect; /** True if the image should be drawn. */ TBool iShow; /** True if the srean should be cleared */ TBool iClear; /** True if we are using mif-file as startup image */ TBool iUseMifStartup; }; #endif
[ [ [ 1, 250 ] ] ]
e26d12af72425b08369187d42732ce82d4a10cea
709cd826da3ae55945fd7036ecf872ee7cdbd82a
/Term/WildMagic2/Source/Intersection/WmlIntrTri3Con3.cpp
a0d5a7f4353d6bec1785653a15cf4f674bd4a8f5
[]
no_license
argapratama/kucgbowling
20dbaefe1596358156691e81ccceb9151b15efb0
65e40b6f33c5511bddf0fa350c1eefc647ace48a
refs/heads/master
2018-01-08T15:27:44.784437
2011-06-19T15:23:39
2011-06-19T15:23:39
36,738,655
0
0
null
null
null
null
UTF-8
C++
false
false
10,534
cpp
// Magic Software, Inc. // http://www.magic-software.com // http://www.wild-magic.com // Copyright (c) 2003. All Rights Reserved // // The Wild Magic Library (WML) source code is supplied under the terms of // the license agreement http://www.magic-software.com/License/WildMagic.pdf // and may not be copied or disclosed except in accordance with the terms of // that agreement. #include "WmlIntrTri3Con3.h" using namespace Wml; //---------------------------------------------------------------------------- template <class Real> bool Wml::TestIntersection (const Triangle3<Real>& rkTri, const Cone3<Real>& rkCone) { // NOTE. The following quantities computed in this function can be // precomputed and stored in the cone and triangle classes as an // optimization. // 1. The cone squared cosine. // 2. The triangle squared edge lengths |E0|^2 and |E1|^2. // 3. The third triangle edge E2 = E1 - E0 and squared length |E2|^2. // 4. The triangle normal N = Cross(E0,E1) or unitized normal // N = Cross(E0,E1)/Length(Cross(E0,E1)). // triangle is <P0,P1,P2>, edges are E0 = P1-P0, E1=P2-P0 int iOnConeSide = 0; Real fP0Test, fP1Test, fP2Test, fAdE, fEdE, fEdD, fC1, fC2; Real fCosSqr = rkCone.CosAngle()*rkCone.CosAngle(); // test vertex P0 Vector3<Real> kDiff0 = rkTri.Origin() - rkCone.Vertex(); Real fAdD0 = rkCone.Axis().Dot(kDiff0); if ( fAdD0 >= (Real)0.0 ) { // P0 is on cone side of plane fP0Test = fAdD0*fAdD0 - fCosSqr*(kDiff0.Dot(kDiff0)); if ( fP0Test >= (Real)0.0 ) { // P0 is inside the cone return true; } else { // P0 is outside the cone, but on cone side of plane iOnConeSide |= 1; } } // else P0 is not on cone side of plane // test vertex P1 Vector3<Real> kDiff1 = kDiff0 + rkTri.Edge0(); Real fAdD1 = rkCone.Axis().Dot(kDiff1); if ( fAdD1 >= (Real)0.0 ) { // P1 is on cone side of plane fP1Test = fAdD1*fAdD1 - fCosSqr*(kDiff1.Dot(kDiff1)); if ( fP1Test >= (Real)0.0 ) { // P1 is inside the cone return true; } else { // P1 is outside the cone, but on cone side of plane iOnConeSide |= 2; } } // else P1 is not on cone side of plane // test vertex P2 Vector3<Real> kDiff2 = kDiff0 + rkTri.Edge1(); Real fAdD2 = rkCone.Axis().Dot(kDiff2); if ( fAdD2 >= (Real)0.0 ) { // P2 is on cone side of plane fP2Test = fAdD2*fAdD2 - fCosSqr*(kDiff2.Dot(kDiff2)); if ( fP2Test >= (Real)0.0 ) { // P2 is inside the cone return true; } else { // P2 is outside the cone, but on cone side of plane iOnConeSide |= 4; } } // else P2 is not on cone side of plane // test edge <P0,P1> = E0 if ( iOnConeSide & 3 ) { fAdE = fAdD1 - fAdD0; fEdE = rkTri.Edge0().Dot(rkTri.Edge0()); fC2 = fAdE*fAdE - fCosSqr*fEdE; if ( fC2 < (Real)0.0 ) { fEdD = rkTri.Edge0().Dot(kDiff0); fC1 = fAdE*fAdD0 - fCosSqr*fEdD; if ( iOnConeSide & 1 ) { if ( iOnConeSide & 2 ) { // <P0,P1> fully on cone side of plane, fC0 = fP0Test if ( (Real)0.0 <= fC1 && fC1 <= -fC2 && fC1*fC1 >= fP0Test*fC2 ) { return true; } } else { // P0 on cone side (Dot(A,P0-V) >= 0), // P1 on opposite side (Dot(A,P1-V) <= 0) // (Dot(A,E0) <= 0), fC0 = fP0Test if ( (Real)0.0 <= fC1 && fC2*fAdD0 <= fC1*fAdE && fC1*fC1 >= fP0Test*fC2 ) { return true; } } } else { // P1 on cone side (Dot(A,P1-V) >= 0), // P0 on opposite side (Dot(A,P0-V) <= 0) // (Dot(A,E0) >= 0), fC0 = fP0Test (needs calculating) if ( fC1 <= -fC2 && fC2*fAdD0 <= fC1*fAdE ) { fP0Test = fAdD0*fAdD0 - fCosSqr*(kDiff0.Dot(kDiff0)); if ( fC1*fC1 >= fP0Test*fC2 ) return true; } } } } // else <P0,P1> does not intersect cone half space // test edge <P0,P2> = E1 if ( iOnConeSide & 5 ) { fAdE = fAdD2 - fAdD0; fEdE = rkTri.Edge1().Dot(rkTri.Edge1()); fC2 = fAdE*fAdE - fCosSqr*fEdE; if ( fC2 < (Real)0.0 ) { fEdD = rkTri.Edge1().Dot(kDiff0); fC1 = fAdE*fAdD0 - fCosSqr*fEdD; if ( iOnConeSide & 1 ) { if ( iOnConeSide & 4 ) { // <P0,P2> fully on cone side of plane, fC0 = fP0Test if ( (Real)0.0 <= fC1 && fC1 <= -fC2 && fC1*fC1 >= fP0Test*fC2 ) { return true; } } else { // P0 on cone side (Dot(A,P0-V) >= 0), // P2 on opposite side (Dot(A,P2-V) <= 0) // (Dot(A,E1) <= 0), fC0 = fP0Test if ( (Real)0.0 <= fC1 && fC2*fAdD0 <= fC1*fAdE && fC1*fC1 >= fP0Test*fC2 ) { return true; } } } else { // P2 on cone side (Dot(A,P2-V) >= 0), // P0 on opposite side (Dot(A,P0-V) <= 0) // (Dot(A,E1) >= 0), fC0 = fP0Test (needs calculating) if ( fC1 <= -fC2 && fC2*fAdD0 <= fC1*fAdE ) { fP0Test = fAdD0*fAdD0 - fCosSqr*(kDiff0.Dot(kDiff0)); if ( fC1*fC1 >= fP0Test*fC2 ) return true; } } } } // else <P0,P2> does not intersect cone half space // test edge <P1,P2> = E1-E0 = E2 if ( iOnConeSide & 6 ) { Vector3<Real> kE2 = rkTri.Edge1() - rkTri.Edge0(); fAdE = fAdD2 - fAdD1; fEdE = kE2.Dot(kE2); fC2 = fAdE*fAdE - fCosSqr*fEdE; if ( fC2 < (Real)0.0 ) { fEdD = kE2.Dot(kDiff1); fC1 = fAdE*fAdD1 - fCosSqr*fEdD; if ( iOnConeSide & 2 ) { if ( iOnConeSide & 4 ) { // <P1,P2> fully on cone side of plane, fC0 = fP1Test if ( (Real)0.0 <= fC1 && fC1 <= -fC2 && fC1*fC1 >= fP1Test*fC2 ) { return true; } } else { // P1 on cone side (Dot(A,P1-V) >= 0), // P2 on opposite side (Dot(A,P2-V) <= 0) // (Dot(A,E2) <= 0), fC0 = fP1Test if ( (Real)0.0 <= fC1 && fC2*fAdD1 <= fC1*fAdE && fC1*fC1 >= fP1Test*fC2 ) { return true; } } } else { // P2 on cone side (Dot(A,P2-V) >= 0), // P1 on opposite side (Dot(A,P1-V) <= 0) // (Dot(A,E2) >= 0), fC0 = fP1Test (needs calculating) if ( fC1 <= -fC2 && fC2*fAdD1 <= fC1*fAdE ) { fP1Test = fAdD1*fAdD1 - fCosSqr*(kDiff1.Dot(kDiff1)); if ( fC1*fC1 >= fP1Test*fC2 ) return true; } } } } // else <P1,P2> does not intersect cone half space // Test triangle <P0,P1,P2>. It is enough to handle only the case when // at least one Pi is on the cone side of the plane. In this case and // after the previous testing, if the triangle intersects the cone, the // set of intersection must contain the point of intersection between // the cone axis and the triangle. if ( iOnConeSide > 0 ) { Vector3<Real> kN = rkTri.Edge0().Cross(rkTri.Edge1()); Real fNdA = kN.Dot(rkCone.Axis()); Real fNdD = kN.Dot(kDiff0); Vector3<Real> kU = fNdD*rkCone.Axis() - fNdA*kDiff0; Vector3<Real> kNcU = kN.Cross(kU); Real fNcUdE0 = kNcU.Dot(rkTri.Edge0()), fNcUdE1, fNcUdE2, fNdN; if ( fNdA >= (Real)0.0 ) { if ( fNcUdE0 <= (Real)0.0 ) { fNcUdE1 = kNcU.Dot(rkTri.Edge1()); if ( fNcUdE1 >= (Real)0.0 ) { fNcUdE2 = fNcUdE1 - fNcUdE0; fNdN = kN.SquaredLength(); if ( fNcUdE2 <= fNdA*fNdN ) return true; } } } else { if ( fNcUdE0 >= (Real)0.0 ) { fNcUdE1 = kNcU.Dot(rkTri.Edge1()); if ( fNcUdE1 <= (Real)0.0 ) { fNcUdE2 = fNcUdE1 - fNcUdE0; fNdN = kN.SquaredLength(); if ( fNcUdE2 >= fNdA*fNdN ) return true; } } } } return false; } //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- // explicit instantiation //---------------------------------------------------------------------------- namespace Wml { template WML_ITEM bool TestIntersection<float> ( const Triangle3<float>&, const Cone3<float>&); template WML_ITEM bool TestIntersection<double> ( const Triangle3<double>&, const Cone3<double>&); } //----------------------------------------------------------------------------
[ [ [ 1, 301 ] ] ]
b0522fb97693daabdd5e47a6ac6f88afbde33fbd
ef8e875dbd9e81d84edb53b502b495e25163725c
/litewiz/src/user_interface/main_window.h
1624086c21d371d11a007c4f1070057a4671abfb
[]
no_license
panone/litewiz
22b9d549097727754c9a1e6286c50c5ad8e94f2d
e80ed9f9d845b08c55b687117acb1ed9b6e9a444
refs/heads/master
2021-01-10T19:54:31.146153
2010-10-01T13:29:38
2010-10-01T13:29:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,432
h
/******************************************************************************* *******************************************************************************/ #ifndef MAIN_WINDOW_H #define MAIN_WINDOW_H /******************************************************************************/ #include <QMainWindow> /******************************************************************************/ namespace Ui { class MainWindow; } class FileTreeModel; class ItemListModel; class VariantListModel; class Session; /******************************************************************************* *******************************************************************************/ class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow ( QWidget * parent = 0 ); ~MainWindow ( void ); private: void setupUi ( void ); void connectSignals ( void ); void saveGeometry ( void ); void restoreGeometry ( void ); private slots: void enableExport ( void ); void enableClassify ( void ); void addFiles ( void ); void addDirectory ( void ); void exportAetSession ( void ); void exportStepSession ( void ); void showOptionsDialog ( void ); void updateFileTreeView ( void ); void updateVariance ( void ); signals: void settingsChanged ( void ); private: virtual void closeEvent ( QCloseEvent * event ); private: Ui::MainWindow * ui; Session * session; FileTreeModel * fileTreeModel; ItemListModel * itemListModel; VariantListModel * variantListModel; }; /******************************************************************************/ #endif /* MAIN_WINDOW_H */
[ [ [ 1, 137 ] ] ]
0b7c7f209759f8340b5bae241fe7f6d788b1a355
f8c4a7b2ed9551c01613961860115aaf427d3839
/src/cGraphicsLayer.cpp
560ca9af47735a528950e4a0c324cfff1d13cb03
[]
no_license
ifgrup/mvj-grupo5
de145cd57d7c5ff2c140b807d2d7c5bbc57cc5a9
6ba63d89b739c6af650482d9c259809e5042a3aa
refs/heads/master
2020-04-19T15:17:15.490509
2011-12-19T17:40:19
2011-12-19T17:40:19
34,346,323
0
0
null
null
null
null
ISO-8859-1
C++
false
false
18,574
cpp
#include "cGraphicsLayer.h" #include "cGame.h" #include "cLog.h" #include <stdio.h> extern cGame Game; cGraphicsLayer::cGraphicsLayer() { g_pD3D = NULL; g_pD3DDevice = NULL; g_pSprite = NULL; font = NULL; ticsTilt=0; } cGraphicsLayer::~cGraphicsLayer(){} bool cGraphicsLayer::Init(HWND hWnd) { cLog *Log = cLog::Instance(); HRESULT hr; D3DVIEWPORT9 viewPort = { 0, 0, SCREEN_RES_X, SCREEN_RES_Y, 0.0f, 1.0f }; g_pD3D = Direct3DCreate9( D3D_SDK_VERSION ); if(g_pD3D==NULL) { Log->Msg("Error creating Direct3D object"); return false; } D3DPRESENT_PARAMETERS d3dpp; ZeroMemory( &d3dpp, sizeof( d3dpp ) ); d3dpp.Windowed = true; d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD; //Efficient page flipping d3dpp.BackBufferWidth = SCREEN_RES_X; d3dpp.BackBufferHeight = SCREEN_RES_Y; d3dpp.BackBufferFormat = D3DFMT_X8R8G8B8; hr = g_pD3D->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &d3dpp, &g_pD3DDevice ); if(FAILED(hr)) { Log->Error(hr,"Creating Direct3D device"); return false; } // Configure for 2d operations hr = g_pD3DDevice->SetRenderState(D3DRS_ZENABLE, FALSE); hr = g_pD3DDevice->SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE); hr = g_pD3DDevice->SetRenderState(D3DRS_LIGHTING, FALSE); if(FAILED(hr)) { Log->Error(hr,"Setting render state"); return false; } hr = g_pD3DDevice->SetViewport(&viewPort); if(FAILED(hr)) { Log->Error(hr,"Setting viewport"); return false; } hr = D3DXCreateFont(g_pD3DDevice, 18, 0, FW_BOLD, 0, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, TEXT("Arial"), &font ); return true; } void cGraphicsLayer::Finalize() { if(g_pD3DDevice) { g_pD3DDevice->Release(); g_pD3DDevice = NULL; } if(g_pD3D) { g_pD3D->Release(); g_pD3D = NULL; } } void cGraphicsLayer::LoadData() { D3DXCreateSprite( g_pD3DDevice, &g_pSprite ); //Main menu D3DXCreateTextureFromFileEx(g_pD3DDevice,"main2.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, NULL,NULL,NULL,&texMain); //GUI game D3DXCreateTextureFromFileEx(g_pD3DDevice,"interfaz.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, 0xffffffff,NULL,NULL,&texGame); //Tiles D3DXCreateTextureFromFileEx(g_pD3DDevice,"tiles_mapa.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, 0x00ff00ff,NULL,NULL,&texTiles); //Characters D3DXCreateTextureFromFileEx(g_pD3DDevice,"characters.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, 0x00ff00ff,NULL,NULL,&texCharacters); //Mouse pointers D3DXCreateTextureFromFileEx(g_pD3DDevice,"mouse.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, 0x00ff00ff,NULL,NULL,&texMouse); //Fog of war D3DXCreateTextureFromFileEx(g_pD3DDevice, "niebla.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, 0xffffffff,NULL,NULL,&texFog); //Fog of war 2 D3DXCreateTextureFromFileEx(g_pD3DDevice, "niebla2.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, 0xffffffff,NULL,NULL,&texVisited); //Dialogs D3DXCreateTextureFromFileEx(g_pD3DDevice, "Dialogs.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, 0xffffffff,NULL,NULL,&texDialog); //Animated Tiles D3DXCreateTextureFromFileEx(g_pD3DDevice, "animated.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, 0xffffffff,NULL,NULL,&animatedTiles); //WIN D3DXCreateTextureFromFileEx(g_pD3DDevice,"win.png",0,0,1,0,D3DFMT_UNKNOWN, D3DPOOL_DEFAULT,D3DX_FILTER_NONE,D3DX_FILTER_NONE, NULL,NULL,NULL,&texWin); } void cGraphicsLayer::UnLoadData() { if(texMain) { texMain->Release(); texMain = NULL; } if(texGame) { texGame->Release(); texGame = NULL; } if(texTiles) { texTiles->Release(); texTiles = NULL; } if(texCharacters) { texCharacters->Release(); texCharacters = NULL; } if(texMouse) { texMouse->Release(); texMouse = NULL; } if(texFog) { texFog->Release(); texFog = NULL; } if(texVisited) { texVisited->Release(); texVisited = NULL; } if(texDialog) { texDialog->Release(); texDialog = NULL; } if(g_pSprite) { g_pSprite->Release(); g_pSprite = NULL; } if (animatedTiles) { animatedTiles->Release(); animatedTiles = NULL; } if(texWin) { texWin->Release(); texWin = NULL; } } bool cGraphicsLayer::Render(int state,cMouse *Mouse,cScene *Scene,cCritter *Critter,cEnemy** Enemies, cDialog* pDialog) { //HRESULT Draw( LPDIRECT3DTEXTURE9 pTexture, CONST RECT *pSrcRect, // CONST D3DXVECTOR3 *pCenter, CONST D3DXVECTOR3 *pPosition, // D3DCOLOR Color); g_pD3DDevice->Clear( 0, NULL, D3DCLEAR_TARGET, 0xFF000000, 0, 0 ); g_pD3DDevice->BeginScene(); static bool bPrimeraVez = false; //--- SPRITES --- g_pSprite->Begin(D3DXSPRITE_ALPHABLEND); switch(state) { case STATE_MAIN: g_pSprite->Draw(texMain,NULL,NULL,&D3DXVECTOR3(0.0f,0.0f,0.0f),0xFFFFFFFF); break; case STATE_GAME: { DrawScene(Scene); DrawUnits(Scene,Critter,Enemies); DrawVisibility(Scene, Critter); if(Critter->GetLives() == CRITTER_LIVES) bPrimeraVez = true; RECT r; int tam = 139; int CoordY; if(bPrimeraVez) { CoordY = tam * (Critter->GetLives() - 1); bPrimeraVez = false; } else CoordY = tam * Critter->GetLives(); SetRect(&r, 0, CoordY, 800,(Critter->GetLives() * tam) + tam); g_pSprite->Draw(texGame,&r,NULL,&D3DXVECTOR3(0.0f,460.0f,0.0f),0xFFFFFFFF); DrawRadar(Scene); if(pDialog->getState() == DIALOG_STATE_SHOW) { //DrawDialogBackground(pDialog); DrawDialog(pDialog); } break; } case STATE_WIN: g_pSprite->Draw(texWin,NULL,NULL,&D3DXVECTOR3(0.0f,0.0f,0.0f),0xFFFFFFFF); break; } g_pSprite->End(); //--- INFO --- if(state==STATE_GAME) { if(pDialog->getState() == DIALOG_STATE_SHOW) { RECT rc; int x, y, xf, yf; pDialog->getPos(&x, &y); pDialog->getSize(&xf, &yf); xf+=x; yf+=y; SetRect( &rc, x+40, y+40, 50, 400 ); font->DrawText( NULL, pDialog->getText(), -1, &rc, DT_NOCLIP, D3DXCOLOR( 1.0f, 1.0f, 1.0f, 1.0f ) ); } } DrawMouse(Mouse); g_pD3DDevice->EndScene(); g_pD3DDevice->Present( NULL, NULL, NULL, NULL ); return true; } bool cGraphicsLayer::DrawRadar(cScene *Scene) { RECT rc; int x,y,fx,fy; //pantx,panty; //Tile based map fx=Scene->cx+SCENE_WIDTH; fy=Scene->cy+SCENE_HEIGHT; for(x = 0; x < SCENE_AREA; x++) { for(y = 0; y < SCENE_AREA; y++) { int idxTile=(y*SCENE_AREA) + x; Scene->GetMiniRect(idxTile, &rc); g_pSprite->Draw(texTiles, &rc, NULL, &D3DXVECTOR3((float)(x * 2 + RADAR_Xo), (float)(y * 2 + RADAR_Yo), 0.0f), 0xFFFFFFFF); } } //Dibujar el rectángulo con la escena actual del mapa: //cada tile ocupa 2 pixels en el mapa del radar x = RADAR_Xo + (Scene->cx)*2;// << 2); y = RADAR_Yo + (Scene->cy)*2;// << 2); fx = RADAR_Xo + (Scene->cx+SCENE_WIDTH)*2;//<<2)); fy = RADAR_Yo + (Scene->cy+SCENE_HEIGHT)*2;//<<2)); SetRect(&rc,0,32,2,34); //un cuadrado de 2X2 blanco, para dibujar el rectángulo en el radar for(int i = x; i < fx; i++) { g_pSprite->Draw(texTiles, &rc, NULL, &D3DXVECTOR3(float(i), float(y), 0.0f), 0xFFFFFFFF); g_pSprite->Draw(texTiles, &rc, NULL, &D3DXVECTOR3(float(i), float(fy), 0.0f), 0xFFFFFFFF); } for(int j = y; j < fy; j++) { g_pSprite->Draw(texTiles, &rc, NULL, &D3DXVECTOR3(float(x), float(j), 0.0f), 0xFFFFFFFF); g_pSprite->Draw(texTiles, &rc, NULL, &D3DXVECTOR3(float(fx), float(j), 0.0f), 0xFFFFFFFF); } return true; } bool cGraphicsLayer::DrawScene(cScene *Scene) { RECT rc; int x,y,//n, fx,fy, pantx,panty; int miniMapaX = 672; int miniMapaY = 60; //Tile based map fx=Scene->cx+SCENE_WIDTH; fy=Scene->cy+SCENE_HEIGHT; int offsetTilt=CalculaOffsetTilt(); for(y=Scene->cy;y<fy;y++) { panty = SCENE_Yo + ((y-Scene->cy)<<5)+offsetTilt; for(x=Scene->cx;x<fx;x++) { pantx = SCENE_Xo + ((x-Scene->cx)<<5)+offsetTilt; SetRect(&rc, 0, 0, 32, 32); g_pSprite->Draw(texTiles,&rc,NULL, &D3DXVECTOR3(float(pantx),float(panty),0.0f), 0xFFFFFFFF); int idxTile=(y*SCENE_AREA)+x; //n=Scene->getTileType(idxTile); //VMH new version Scene->GetRect(idxTile,&rc); if (Scene->IsCellAnimated(x,y)) { g_pSprite->Draw(animatedTiles,&rc,NULL, &D3DXVECTOR3(float(pantx),float(panty),0.0f), 0xFFFFFFFF); } else { g_pSprite->Draw(texTiles,&rc,NULL, &D3DXVECTOR3(float(pantx),float(panty),0.0f), 0xFFFFFFFF); } } } /*for(x = 0; x < SCENE_AREA; x++) { for(y = 0; y < SCENE_AREA; y++) { int idxTile=(y<<5) + x; Scene->GetMiniRect(idxTile, &rc); g_pSprite->Draw(texTiles, &rc, NULL, &D3DXVECTOR3((float)(x * 4 + RADAR_Xo), (float)(y * 4 + RADAR_Yo), 0.0f), 0xFFFFFFFF); } }*/ //Draw radar /*x=RADAR_Xo+(Scene->cx<<2); y=RADAR_Yo+(Scene->cy<<2); SetRect(&rc,0,32,80,100); g_pSprite->Draw(texTiles,&rc,NULL, &D3DXVECTOR3(float(x),float(y),0.0f), 0xFFFFFFFF);*/ return true; } bool cGraphicsLayer::DrawVisibility(cScene *Scene, cCritter *Critter) { RECT rcScene, rcVisible; int x,y,//n, fx,fy, pantx,panty; int critPosX, critPosY; bool bPintar = true; int cxinit = 0; int cxfin = 0; int cyinit = 0; int cyfin = 0; //Tile based map fx = Scene->cx + SCENE_WIDTH; fy = Scene->cy + SCENE_HEIGHT; SetRect(&rcVisible, 32, 32, 64, 64); for(y = Scene->cy; y < fy; y++) { panty = SCENE_Yo + ((y-Scene->cy)<<5); for(x=Scene->cx;x<fx;x++) { pantx = SCENE_Xo + ((x-Scene->cx)<<5); int idxTile=(y*SCENE_AREA)+x; Scene->GetRect(idxTile,&rcScene); if(Scene->IsCellVisited(x,y)) { bPintar = true; Critter->GetCell(&critPosX, &critPosY); cxinit = (critPosX - RADIO_VISIBLE) >= 0 ? critPosX - RADIO_VISIBLE : 0; cxfin = (critPosX + RADIO_VISIBLE) < SCENE_AREA ? critPosX + RADIO_VISIBLE : SCENE_AREA - 1; cyinit = (critPosY - RADIO_VISIBLE) >= 0 ? critPosY - RADIO_VISIBLE : 0; cyfin = (critPosY + RADIO_VISIBLE) < SCENE_AREA ? critPosY + RADIO_VISIBLE : SCENE_AREA - 1; for(int fila = cyinit; fila <= cyfin; fila++) { for(int col = cxinit; col <= cxfin; col++) { if(y == fila && x == col) { bPintar = false; break; } } if(!bPintar) break; } if(bPintar) { g_pSprite->Draw(texVisited,&rcVisible,NULL, &D3DXVECTOR3(float(pantx),float(panty),0.0f), 0xFFFFFFFF); } } // LHA if(Scene->IsFogged(x, y)) { SetRect(&rcScene, 0, 0, 64, 64); g_pSprite->Draw(texVisited,&rcVisible,NULL, &D3DXVECTOR3(float(pantx),float(panty),0.0f), 0xFFFFFFFF); g_pSprite->Draw(texFog,&rcScene,NULL, &D3DXVECTOR3(float(pantx-16),float(panty-16),0.0f), 0xFFFFFFFF); } } } return true; } bool cGraphicsLayer::DrawUnits(cScene *Scene,cCritter *Critter,cEnemy** Enemies) { int cx,cy,posx,posy; RECT rc; //Draw Critter Critter->GetCell(&cx,&cy); //VMH: Update visibility in the map. Will be drawn next tic. if(Scene->Visible(cx,cy)) { Critter->GetRect(&rc,&posx,&posy,Scene); /*Obtiene del critter, la posición EN PANTALLA donde pintar, y el rectángulo dentro del bitmap que pintar*/ g_pSprite->Draw(texCharacters,&rc,NULL, &D3DXVECTOR3(float(posx),float(posy),0.0f), 0xFFFFFFFF); if(Critter->GetSelected()) { Critter->GetRectLife(&rc,&posx,&posy,Scene); g_pSprite->Draw(texMouse,&rc,NULL, &D3DXVECTOR3(float(posx),float(posy),0.0f), 0xFFFFFFFF); } } Critter->GetRectRadar(&rc,&posx,&posy); g_pSprite->Draw(texTiles,&rc,NULL, &D3DXVECTOR3(float(posx),float(posy),0.0f), 0xFFFFFFFF); //Draw Enemies: for (int i=0;i<Game.GetNumEnemies();i++) { cEnemy* bicho=Enemies[i]; bicho->GetCell(&cx,&cy); if(Scene->IsCellActive(cx,cy)) { bicho->GetRect(&rc,&posx,&posy,Scene); /*Obtiene del critter, la posición EN PANTALLA donde pintar, y el rectángulo dentro del bitmap que pintar*/ g_pSprite->Draw(texCharacters,&rc,NULL, &D3DXVECTOR3(float(posx),float(posy),0.0f), 0xFFFFFFFF); } } ////Draw Fire //if(Critter->GetShooting()) //{ // if(Critter->IsFiring()) // { // //Advance animation & draw // Critter->GetRectShoot(&rc,&posx,&posy,Scene); // g_pSprite->Draw(texCharacters,&rc,NULL, // &D3DXVECTOR3(float(posx),float(posy),0.0f), // 0xFFFFFFFF); // } // else // { // //Advance animation // Critter->GetRectShoot(&rc,&posx,&posy,Scene); // } //} return true; } bool cGraphicsLayer::DrawMouse(cMouse *Mouse) { RECT rc; int mx,my,posx,posy; //Mouse selection box Mouse->GetPosition(&mx,&my); if(Mouse->GetSelection()==SELECT_SCENE) { int sx,sy; Mouse->GetSelectionPoint(&sx,&sy); SetRect(&rc,sx,sy,mx,my); DrawRect(rc,0x0000ff00); } //Mouse g_pSprite->Begin(D3DXSPRITE_ALPHABLEND); Mouse->GetRect(&rc,&posx,&posy); HRESULT hr = g_pSprite->Draw(texMouse,&rc,NULL,&D3DXVECTOR3(float(mx+posx),float(my+posy),0.0f),0xFFFFFFFF); if(FAILED(hr)) { cLog *Log = cLog::Instance(); Log->Error(hr,"mouse pointer"); return false; } g_pSprite->End(); return true; } bool cGraphicsLayer::DrawRect(RECT rc, D3DCOLOR color) { RECT rect; int xo,yo,xf,yf; if((rc.left==rc.right)&&(rc.top==rc.bottom)) return false; if(rc.left < rc.right) { xo = rc.left; xf = rc.right; } else { xo = rc.right; xf = rc.left; } if(rc.top < rc.bottom) { yo = rc.top; yf = rc.bottom; } else { yo = rc.bottom; yf = rc.top; } //Top SetRect(&rect,xo,yo,xf+1,yo+1); g_pD3DDevice->Clear(1,(D3DRECT *)&rect,D3DCLEAR_TARGET,color,1.0f,0); //Bottom SetRect(&rect,xo,yf,xf,yf+1); g_pD3DDevice->Clear(1,(D3DRECT *)&rect,D3DCLEAR_TARGET,color,1.0f,0); //Left SetRect(&rect,xo,yo,xo+1,yf+1); g_pD3DDevice->Clear(1,(D3DRECT *)&rect,D3DCLEAR_TARGET,color,1.0f,0); //Right SetRect(&rect,xf,yo,xf+1,yf+1); g_pD3DDevice->Clear(1,(D3DRECT *)&rect,D3DCLEAR_TARGET,color,1.0f,0); return true; } bool cGraphicsLayer::DrawDialogBackground(cDialog* pDialog) { RECT r; int x, y, xf, yf; int xfin, yfin; pDialog->getPos(&x, &y); pDialog->getSize(&xf, &yf); xfin = xf; yfin = yf; xf+=x; yf+=y; // Draw the background SetRect(&r, DIALOG_IMG_BKG_X, DIALOG_IMG_BKG_Y, DIALOG_IMG_BKG_X + 2, DIALOG_IMG_BKG_Y + 2); /* for(int i = (x - DIALOG_BOX_OFFSET); i < (xf + DIALOG_BOX_OFFSET); i++) { for(int j = (y - DIALOG_BOX_OFFSET); j < (yf + DIALOG_BOX_OFFSET); j++) {*/ g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)x, (float)y, 0.0f), 0xFFFFFFFF); /*} }*/ return true; } bool cGraphicsLayer::DrawDialog(cDialog* pDialog) { RECT r; int x, y, xf, yf; int xfin, yfin; int xb, yb; pDialog->getPos(&x, &y); pDialog->getSize(&xf, &yf); xfin = xf; yfin = yf; xf+=x; yf+=y; // Draw the upper left corner SetRect(&r, DIALOG_IMG_UL_X, DIALOG_IMG_UL_Y, DIALOG_IMG_UL_X + DIALOG_IMG_SIZE, DIALOG_IMG_UL_Y + DIALOG_IMG_SIZE); g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)x, (float)y, 0.0f), 0xFFFFFFFF); // Draw the upper right corner SetRect(&r, DIALOG_IMG_UR_X, DIALOG_IMG_UR_Y, DIALOG_IMG_UR_X + DIALOG_IMG_SIZE, DIALOG_IMG_UR_Y + DIALOG_IMG_SIZE); g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)xf, (float)y, 0.0f), 0xFFFFFFFF); // Draw the bottom left corner SetRect(&r, DIALOG_IMG_BL_X, DIALOG_IMG_BL_Y, DIALOG_IMG_BL_X + DIALOG_IMG_SIZE, DIALOG_IMG_BL_Y + DIALOG_IMG_SIZE); g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)x, (float)yf, 0.0f), 0xFFFFFFFF); // Draw the bottom right corner SetRect(&r, DIALOG_IMG_BR_X, DIALOG_IMG_BR_Y, DIALOG_IMG_BR_X + DIALOG_IMG_SIZE, DIALOG_IMG_BR_Y + DIALOG_IMG_SIZE); g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)xf, (float)yf, 0.0f), 0xFFFFFFFF); // Draw the horizontal lines SetRect(&r, DIALOG_IMG_HOR_X, DIALOG_IMG_HOR_Y, DIALOG_IMG_HOR_X + 1, DIALOG_IMG_HOR_Y + DIALOG_IMG_HOR_SIZE); for(int i = 0; i < xfin - DIALOG_IMG_SIZE; i++) { g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)(x+DIALOG_IMG_SIZE+i), (float)y+9, 0.0f), 0xFFFFFFFF); g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)(x+DIALOG_IMG_SIZE+i), (float)yf+27, 0.0f), 0xFFFFFFFF); } // Draw the vertical lines SetRect(&r, DIALOG_IMG_VERT_X, DIALOG_IMG_VERT_Y, DIALOG_IMG_VERT_X + DIALOG_IMG_VERT_SIZE, DIALOG_IMG_VERT_Y + 1); for(int i = 0; i < yfin - DIALOG_IMG_SIZE; i++) { g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)x+9, (float)y+DIALOG_IMG_SIZE+i, 0.0f), 0xFFFFFFFF); g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)xf+31, (float)y+DIALOG_IMG_SIZE+i, 0.0f), 0xFFFFFFFF); } pDialog->getButtonPos(&xb, &yb); SetRect(&r, DIALOG_BUTTON_UL_X, DIALOG_BUTTON_UL_Y, DIALOG_BUTTON_BR_X, DIALOG_BUTTON_BR_Y); g_pSprite->Draw(texDialog, &r, NULL, &D3DXVECTOR3((float)xb, (float)yb, 0.0f), 0xFFFFFFFF); return true; } void cGraphicsLayer::EfectoTilt() { ticsTilt=15; } int cGraphicsLayer::CalculaOffsetTilt() { static int tics=0; //para no hacerlo a cada tick int offset=0; if (ticsTilt!=0) { tics++; if (!(tics%2)) //Para hacer el tembleque un pelín más lento { int inc=-1; ticsTilt--; if (ticsTilt%2) inc=-1; else inc=1; offset=inc*5; } } return offset; }
[ "[email protected]@7a9e2121-179f-53cc-982f-8ee3039a786c", "[email protected]@7a9e2121-179f-53cc-982f-8ee3039a786c", "[email protected]@7a9e2121-179f-53cc-982f-8ee3039a786c" ]
[ [ [ 1, 6 ], [ 8, 13 ], [ 15, 35 ], [ 37, 105 ], [ 107, 128 ], [ 139, 187 ], [ 201, 202 ], [ 204, 209 ], [ 211, 220 ], [ 222, 222 ], [ 224, 224 ], [ 240, 240 ], [ 243, 250 ], [ 256, 264 ], [ 267, 267 ], [ 272, 272 ], [ 275, 298 ], [ 300, 300 ], [ 302, 304 ], [ 312, 312 ], [ 314, 342 ], [ 345, 347 ], [ 352, 353 ], [ 355, 355 ], [ 363, 366 ], [ 370, 371 ], [ 379, 381 ], [ 383, 389 ], [ 391, 392 ], [ 394, 397 ], [ 399, 427 ], [ 429, 481 ], [ 483, 509 ], [ 511, 513 ], [ 515, 522 ], [ 540, 688 ], [ 691, 693 ], [ 725, 725 ] ], [ [ 7, 7 ], [ 14, 14 ], [ 36, 36 ], [ 106, 106 ], [ 129, 133 ], [ 188, 193 ], [ 203, 203 ], [ 210, 210 ], [ 223, 223 ], [ 225, 239 ], [ 241, 242 ], [ 265, 266 ], [ 268, 271 ], [ 273, 274 ], [ 299, 299 ], [ 301, 301 ], [ 305, 311 ], [ 313, 313 ], [ 343, 344 ], [ 348, 351 ], [ 354, 354 ], [ 356, 362 ], [ 367, 369 ], [ 372, 378 ], [ 382, 382 ], [ 390, 390 ], [ 393, 393 ], [ 398, 398 ], [ 428, 428 ], [ 482, 482 ], [ 510, 510 ], [ 514, 514 ], [ 523, 539 ], [ 689, 690 ], [ 694, 724 ] ], [ [ 134, 138 ], [ 194, 200 ], [ 221, 221 ], [ 251, 255 ] ] ]
c1cb7724c5d7a539f81371c6ede76177c95a350a
b7c505dcef43c0675fd89d428e45f3c2850b124f
/Src/SimulatorQt/Util/qt/Win32/include/Qt/qsqldriver.h
3e0f2bcc034a324e92c8127b19fff37c47cea1e6
[ "BSD-2-Clause" ]
permissive
pranet/bhuman2009fork
14e473bd6e5d30af9f1745311d689723bfc5cfdb
82c1bd4485ae24043aa720a3aa7cb3e605b1a329
refs/heads/master
2021-01-15T17:55:37.058289
2010-02-28T13:52:56
2010-02-28T13:52:56
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,026
h
/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information ([email protected]) ** ** This file is part of the QtSql module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial Usage ** Licensees holding valid Qt Commercial licenses may use this file in ** accordance with the Qt Commercial License Agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and Nokia. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain ** additional rights. These rights are described in the Nokia Qt LGPL ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this ** package. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 3.0 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU General Public License version 3.0 requirements will be ** met: http://www.gnu.org/copyleft/gpl.html. ** ** If you are unsure which license is appropriate for your use, please ** contact the sales department at [email protected]. ** $QT_END_LICENSE$ ** ****************************************************************************/ #ifndef QSQLDRIVER_H #define QSQLDRIVER_H #include <QtCore/qobject.h> #include <QtCore/qstring.h> #include <QtCore/qstringlist.h> #include <QtSql/qsql.h> #ifdef QT3_SUPPORT #include <QtSql/qsqlquery.h> #endif QT_BEGIN_HEADER QT_BEGIN_NAMESPACE QT_MODULE(Sql) class QSqlDatabase; class QSqlDriverPrivate; class QSqlError; class QSqlField; class QSqlIndex; class QSqlRecord; class QSqlResult; class QVariant; class Q_SQL_EXPORT QSqlDriver : public QObject { friend class QSqlDatabase; Q_OBJECT Q_DECLARE_PRIVATE(QSqlDriver) public: enum DriverFeature { Transactions, QuerySize, BLOB, Unicode, PreparedQueries, NamedPlaceholders, PositionalPlaceholders, LastInsertId, BatchOperations, SimpleLocking, LowPrecisionNumbers, EventNotifications, FinishQuery, MultipleResultSets }; enum StatementType { WhereStatement, SelectStatement, UpdateStatement, InsertStatement, DeleteStatement }; enum IdentifierType { FieldName, TableName }; explicit QSqlDriver(QObject *parent=0); ~QSqlDriver(); virtual bool isOpen() const; bool isOpenError() const; virtual bool beginTransaction(); virtual bool commitTransaction(); virtual bool rollbackTransaction(); virtual QStringList tables(QSql::TableType tableType) const; virtual QSqlIndex primaryIndex(const QString &tableName) const; virtual QSqlRecord record(const QString &tableName) const; #ifdef QT3_SUPPORT inline QT3_SUPPORT QSqlRecord record(const QSqlQuery& query) const { return query.record(); } inline QT3_SUPPORT QSqlRecord recordInfo(const QString& tablename) const { return record(tablename); } inline QT3_SUPPORT QSqlRecord recordInfo(const QSqlQuery& query) const { return query.record(); } inline QT3_SUPPORT QString nullText() const { return QLatin1String("NULL"); } inline QT3_SUPPORT QString formatValue(const QSqlField *field, bool trimStrings = false) const { return field ? formatValue(*field, trimStrings) : QString(); } #endif virtual QString formatValue(const QSqlField& field, bool trimStrings = false) const; virtual QString escapeIdentifier(const QString &identifier, IdentifierType type) const; virtual QString sqlStatement(StatementType type, const QString &tableName, const QSqlRecord &rec, bool preparedStatement) const; QSqlError lastError() const; virtual QVariant handle() const; virtual bool hasFeature(DriverFeature f) const = 0; virtual void close() = 0; virtual QSqlResult *createResult() const = 0; virtual bool open(const QString& db, const QString& user = QString(), const QString& password = QString(), const QString& host = QString(), int port = -1, const QString& connOpts = QString()) = 0; bool subscribeToNotification(const QString &name); // ### Qt 5: make virtual bool unsubscribeFromNotification(const QString &name); // ### Qt 5: make virtual QStringList subscribedToNotifications() const; // ### Qt 5: make virtual Q_SIGNALS: void notification(const QString &name); protected: virtual void setOpen(bool o); virtual void setOpenError(bool e); virtual void setLastError(const QSqlError& e); protected Q_SLOTS: bool subscribeToNotificationImplementation(const QString &name); // ### Qt 5: eliminate, see subscribeToNotification() bool unsubscribeFromNotificationImplementation(const QString &name); // ### Qt 5: eliminate, see unsubscribeFromNotification() QStringList subscribedToNotificationsImplementation() const; // ### Qt 5: eliminate, see subscribedNotifications() private: Q_DISABLE_COPY(QSqlDriver) }; QT_END_NAMESPACE QT_END_HEADER #endif // QSQLDRIVER_H
[ "alon@rogue.(none)" ]
[ [ [ 1, 151 ] ] ]
4783b1e5bb2369e76b80dd2b0c30fca3e7baeb32
58ef4939342d5253f6fcb372c56513055d589eb8
/LemonTangram2/source/Controller/src/LemonMenu.cpp
fa69019e07258061c3923b93c62f054bddf61797
[]
no_license
flaithbheartaigh/lemonplayer
2d77869e4cf787acb0aef51341dc784b3cf626ba
ea22bc8679d4431460f714cd3476a32927c7080e
refs/heads/master
2021-01-10T11:29:49.953139
2011-04-25T03:15:18
2011-04-25T03:15:18
50,263,327
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
6,585
cpp
/* ============================================================================ Name : LemonMenu.cpp Author : zengcity Version : 1.0 Copyright : Your copyright notice Description : CLemonMenu implementation ============================================================================ */ #include "LemonMenu.h" #include "LemonMenuBar.h" #include "LemonMenuList.h" #include "LemonMenuDef.h" #include "DefaultDeclHandler.h" #include <coemain.h> #include "CommonUtils.h" #include "LemonMenuItem.h" #include "MacroUtil.h" #include <eikenv.h> #include "LemonTangramAppUi.h" #include "LemonTangram.hrh" CLemonMenu::CLemonMenu(MLemonMenuNotify* aNotify) :iNotify(aNotify),iMenuList(NULL),iPtrList(NULL),iMenuActive(EFalse) { // No implementation required } CLemonMenu::~CLemonMenu() { SAFE_DELETE(iMenuList); SAFE_DELETE(iMenuBar); } CLemonMenu* CLemonMenu::NewLC(MLemonMenuNotify* aNotify) { CLemonMenu* self = new (ELeave)CLemonMenu(aNotify); CleanupStack::PushL(self); self->ConstructL(); return self; } CLemonMenu* CLemonMenu::NewL(MLemonMenuNotify* aNotify) { CLemonMenu* self=CLemonMenu::NewLC(aNotify); CleanupStack::Pop(); // self; return self; } void CLemonMenu::ConstructL() { iUIMgr = STATIC_CAST(CLemonTangramAppUi*,CEikonEnv::Static()->AppUi())->GetUIMgr(); iMenuBar = CLemonMenuBar::NewL(); } void CLemonMenu::HideMenu() { iMenuList->ResetSelectedIndex(); iMenuActive = EFalse; } void CLemonMenu::LoadMenuL(const TDesC& aFileName) { CDefaultDeclHandler *decl = new (ELeave)CDefaultDeclHandler; CleanupStack::PushL(decl); CSyParser *syParser = CSyParser::NewLC(TPtrC()); syParser->SetHandler(this); syParser->SetHandler(decl); RFile file; TInt err = file.Open(CCoeEnv::Static()->FsSession(), aFileName, EFileRead); if (KErrNone == err) { CleanupClosePushL(file); //²Ù×÷ TBuf8<512> strBuffer; file.Read(strBuffer); while (strBuffer.Length() != 0) { syParser->Parse(strBuffer, EFalse); file.Read(strBuffer); } syParser->Parse(strBuffer, ETrue); CleanupStack::PopAndDestroy(1); } CleanupStack::PopAndDestroy(2); User::LeaveIfError(err); } void CLemonMenu::Draw(CBitmapContext& gc) { iMenuBar->Draw(gc,iMenuActive); if (iMenuActive) { iMenuList->Draw(gc); } } TKeyResponse CLemonMenu::OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType) { if (iMenuActive) { switch(aType) { case EEventKeyUp: switch (aKeyEvent.iScanCode) { case EStdKeyDevice0: case EStdKeyDevice3://ok iNotify->HandMenuCommand(iMenuList->GetSelectedCommand()); HideMenu(); return EKeyWasConsumed; case EStdKeyDevice1: HideMenu(); return EKeyWasConsumed; case EStdKeyUpArrow: iMenuList->DecreaseSelected(); return EKeyWasConsumed; case EStdKeyDownArrow: iMenuList->IncreaseSelected(); return EKeyWasConsumed; } break; } return EKeyWasConsumed; } else { switch(aType) { case EEventKeyUp: switch (aKeyEvent.iScanCode) { case EStdKeyDevice0://left iMenuActive = ETrue; return EKeyWasConsumed; } break; case EEventKey: switch (aKeyEvent.iScanCode) { case EStdKeyDevice1://right iNotify->HandMenuCommand(ECommandExit); return EKeyWasConsumed; default: break; } break; } } return EKeyWasNotConsumed; } //CDefaultDocHandler void CLemonMenu::StartElement(const TQualified& aName, const RArray<TAttribute>& aAttributes) { TInt num = ConvertNameToNumber(aName.iLocalName); switch (num) { case EMenuTagMenu: ParseMenu(aAttributes); break; case EMenuTagItem: ParseItem(aAttributes); break; default: break; } } void CLemonMenu::EndElement(const TQualified& aName) { TInt num = ConvertNameToNumber(aName.iLocalName); switch (num) { case EMenuTagMenu: EndParseMenu(); break; default: break; } } TInt CLemonMenu::ConvertNameToNumber(const TDesC& aName) { HBufC* name = aName.AllocLC(); name->Des().LowerCase(); TInt num = EMenuTagNone; if (name->Compare(KMenuDomTagMenu) == 0) { num = EMenuTagMenu; } else if (name->Compare(KMenuDomTagItem) == 0) { num = EMenuTagItem; } CleanupStack::PopAndDestroy(); return num; } void CLemonMenu::ParseMenu(const RArray<TAttribute>& aAttributes) { for (TInt i = 0; i < aAttributes.Count(); i++) { HBufC *attrName = aAttributes[i].iName.iLocalName.AllocLC(); HBufC *attrValue = aAttributes[i].iValue.AllocLC(); if (attrName->Compare(KMenuAttrParent) == 0) { TInt num = CCommonUtils::StrToInt(attrValue->Des()); FindListById(num); // iPtrList = CLemonMenuList::NewL(); } CleanupStack::PopAndDestroy(2); } } void CLemonMenu::ParseItem(const RArray<TAttribute>& aAttributes) { CLemonMenuItem* item = CLemonMenuItem::NewL(iUIMgr->iSysFont); TInt width; for (TInt i = 0; i < aAttributes.Count(); i++) { HBufC *attrName = aAttributes[i].iName.iLocalName.AllocLC(); HBufC *attrValue = aAttributes[i].iValue.AllocLC(); if (attrName->Compare(KMenuAttrId) == 0) { TInt id = CCommonUtils::StrToInt(attrValue->Des()); item->SetId(id); } if (attrName->Compare(KMenuAttrText) == 0) { item->SetText(attrValue->Des()); } if (attrName->Compare(KMenuAttrCommand) == 0) { TInt command = CCommonUtils::StrToInt(attrValue->Des()); item->SetCommand(command); } CleanupStack::PopAndDestroy(2); } width = iUIMgr->SubMenuWidth(); iPtrList->RecordItemWidth(width); iPtrList->AddItem(item); } void CLemonMenu::EndParseMenu() { iPtrList->SetSelectedIndex(0); iPtrList->SetItemHeight(iUIMgr->MainMenuItemHeight()); iPtrList->OffsetItem(); } void CLemonMenu::FindListById(const TInt& aId) { if (aId < 0 ) { iMenuList = CLemonMenuList::NewL(iUIMgr->iSysFont); iPtrList = iMenuList; iPtrList->SetPositon(iUIMgr->MainMenuPos()); return; } else { CLemonMenuList*& list = iMenuList->FindListById(aId); list = CLemonMenuList::NewL(iUIMgr->iSysFont); iPtrList = list; CLemonMenuItem* item = iMenuList->FindItemById(aId); TInt x = item->GetItemPosition().iX; TInt y = item->GetItemPosition().iY; x += item->GetItemWidth(); iPtrList->SetPositon(TPoint(x,y)); } }
[ "zengcity@415e30b0-1e86-11de-9c9a-2d325a3e6494" ]
[ [ [ 1, 284 ] ] ]
fbc48b26e1caaad63872e5106712523ba3b851e1
bb39f19ac047de34528f5b1b6d2c844a1399e49c
/VIZ/02_marchingTetrahedrons/Vertex.h
c48ec5ffdf4c347f25a931b6b009983235f85b3b
[]
no_license
kucerad/rpak-viz
fc192210254afcf3c25ddabfacb31918e11ab06e
b6fe40bedd453cd592aa5e543db3d3486ff4da01
refs/heads/master
2021-01-13T01:40:23.916496
2011-04-26T17:59:13
2011-04-26T17:59:13
35,802,284
0
0
null
null
null
null
UTF-8
C++
false
false
209
h
#ifndef _VERTEX_H #define _VERTEX_H #include "Vector3.h" class Vertex{ public: Vertex(){ isValid=false; } ~Vertex(){} v3 normal; v3 position; float value; bool isValid; }; #endif
[ "kucera.ad@6ea31c93-9679-6fd9-a685-619f95b28a77" ]
[ [ [ 1, 17 ] ] ]
1ce5e70b9355fab759d2f59f7baae96a17def954
6232a242f9d08f5079bdd8b953a3406a43022908
/mapnavi/src/mapappui.cpp
dd4b8f9a6dd65dedd36cc01071d52b4a1cbb2398
[]
no_license
flaithbheartaigh/symbianmapnavi
f7ee81f810d1bfabd6f7d50d60e290bbb9f13816
de3d4ec353d9bdca1833c47afef13eb5acc4e6c2
refs/heads/master
2021-01-10T11:29:49.395196
2009-02-21T18:45:33
2009-02-21T18:45:33
50,259,266
0
0
null
null
null
null
UTF-8
C++
false
false
2,700
cpp
// INCLUDE FILES #include <avkon.hrh> #include <aknmessagequerydialog.h> #include <aknnotewrappers.h> #include <stringloader.h> #include <f32file.h> #include <s32file.h> #include <hlplch.h> #include <map.rsg> #include "map.hrh" #include "map.pan" #include "mapapplication.h" #include "mapappui.h" #include "mapappview.h" // ============================ MEMBER FUNCTIONS =============================== // ----------------------------------------------------------------------------- // CMapAppUi::ConstructL() // Symbian 2nd phase constructor can leave. // ----------------------------------------------------------------------------- // void CMapAppUi::ConstructL() { // Initialise app UI with standard value. BaseConstructL(CAknAppUi::EAknEnableSkin); // Create view object iAppView = CMapAppView::NewL( ClientRect() ); AddToStackL( iAppView ); } // ----------------------------------------------------------------------------- // CMapAppUi::CMapAppUi() // C++ default constructor can NOT contain any code, that might leave. // ----------------------------------------------------------------------------- // CMapAppUi::CMapAppUi() { // No implementation required } // ----------------------------------------------------------------------------- // CMapAppUi::~CMapAppUi() // Destructor. // ----------------------------------------------------------------------------- // CMapAppUi::~CMapAppUi() { if ( iAppView ) { RemoveFromStack( iAppView ); delete iAppView; iAppView = NULL; } } // ----------------------------------------------------------------------------- // CMapAppUi::HandleCommandL() // Takes care of command handling. // ----------------------------------------------------------------------------- // void CMapAppUi::HandleCommandL( TInt aCommand ) { switch( aCommand ) { case EEikCmdExit: case EAknSoftkeyExit: Exit(); break; case ECommand1: { iAppView->GetGPSInfoL(); } break; case ECommand2: { iAppView->SetImageL(); } break; case EHelp: { } break; case EAbout: { } break; default: break; } } // ----------------------------------------------------------------------------- // Called by the framework when the application status pane // size is changed. Passes the new client rectangle to the // AppView // ----------------------------------------------------------------------------- // void CMapAppUi::HandleStatusPaneSizeChange() { iAppView->SetRect( ClientRect() ); } CArrayFix<TCoeHelpContext>* CMapAppUi::HelpContextL() const { } // End of File
[ "gzhangsymbian@4f307c46-000b-11de-88c7-29a3b14d5316" ]
[ [ [ 1, 111 ] ] ]
8a7b66681c81473c5a3e07c7cf9502ec0ede5541
3affbb81deebe2f45e2efa4582cb45b2fb142303
/cob_driver/cob_base_drive_chain/common/include/cob_base_drive_chain/CanCtrlPltfCOb3.h
eebb1d851b068b427bc64103614a14554ac3045d
[]
no_license
cool-breeze/care-o-bot
38ad558e14f400a28bc0e0a788aff62ac0b89e05
bb6999df19f717574113fc75ffb1c5ec5b8e83a6
refs/heads/master
2021-01-16T19:12:30.842596
2010-04-29T06:58:50
2010-04-29T06:58:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,153
h
/**************************************************************** * * Copyright (c) 2010 * * Fraunhofer Institute for Manufacturing Engineering * and Automation (IPA) * * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * * Project name: care-o-bot * ROS stack name: cob_drivers * ROS package name: cob_base_drive_chain * Description: This is a sample implementation of a can-bus with several nodes. In this case it implements the drive-chain of the Care-O-bot3 mobile base. yet, this can be used as template for using the generic_can and canopen_motor packages to implement arbitrary can-setups. * * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * * Author: Christian Connette, email:[email protected] * Supervised by: Christian Connette, email:[email protected] * * Date of creation: Feb 2010 * ToDo: - Check whether motor status request in "setVelGearRadS" "setMotorTorque" make sense (maybe remove in "CanDriveHarmonica"). * - move implementational details (can cmds) of configureElmoRecorder to CanDriveHarmonica (check whether CanDriveItf has to be adapted then) * - Check: what is the iRecordingGap, what is its unit * - Remove Mutex.h search for a Boost lib * * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the Fraunhofer Institute for Manufacturing * Engineering and Automation (IPA) nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License LGPL as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License LGPL for more details. * * You should have received a copy of the GNU Lesser General Public * License LGPL along with this program. * If not, see <http://www.gnu.org/licenses/>. * ****************************************************************/ #ifndef CANCTRLPLTFCOB3_INCLUDEDEF_H #define CANCTRLPLTFCOB3_INCLUDEDEF_H //----------------------------------------------- // general includes // Headers provided by other cob-packages #include <cob_canopen_motor/CanDriveItf.h> #include <cob_canopen_motor/CanDriveHarmonica.h> #include <cob_generic_can/CanItf.h> // Headers provided by cob-packages which should be avoided/removed #include <cob_utilities/IniFile.h> #include <cob_utilities/Mutex.h> // remove (not supported) //#include "stdafx.h" //----------------------------------------------- /** * Represents all CAN components on an arbitrary canbus. */ class CanCtrlPltfCOb3 // : public CanCtrlPltfItf { public: //--------------------------------- Basic procedures /** * Default constructor. */ CanCtrlPltfCOb3(); /** * Default destructor. */ ~CanCtrlPltfCOb3(); //--------------------------------- Hardware Specification /** * Specify Cannodes (Identifiers to send velocities to one specific motor) * This has to be adapted to the hardware-setup! */ enum MotorCANNode { CANNODE_WHEEL1DRIVEMOTOR, CANNODE_WHEEL1STEERMOTOR, CANNODE_WHEEL2DRIVEMOTOR, CANNODE_WHEEL2STEERMOTOR, CANNODE_WHEEL3DRIVEMOTOR, CANNODE_WHEEL3STEERMOTOR, CANNODE_WHEEL4DRIVEMOTOR, CANNODE_WHEEL4STEERMOTOR }; //--------------------------------- Commands for all nodes on the bus /** * Initializes all CAN nodes of the platfrom and performs homing procedure. * !! The homing routine is hardware-dependent (steering and driving is coupled) !! * !! If you use this code on other hardware -> make sure te remove or adapt homing sequence !! */ bool initPltf(std::string iniDirectory); /** * Reinitializes the nodes on the bus. * The function might be neccessary after an emergency stop or an hardware failure to reinit drives. */ bool resetPltf(); /** * Signs an error of the platform. * @return true if there is an error. */ bool isPltfError(); /** * Shutdown of the platform. * Disables motors, enables brake and disconnects. */ bool shutdownPltf(); /** * Starts the watchdog of the CAN components. */ bool startWatchdog(bool bStarted); /** * Triggers evaluation of the can-buffer. */ int evalCanBuffer(); //--------------------------------- Commands specific for motor controller nodes /** * Sends veolocities to the can node. * Status is requested, too. * @param iCanIdent choose a can node * @param dVelGearRadS joint-velocity in radian per second */ int setVelGearRadS(int iCanIdent, double dVelGearRadS); /** * Sends torques to the can node. * Status is requested, too. * @param iCanIdent choose a can node * @param dTorqueNM motor-torque in Newtonmeter */ void setMotorTorque(int iCanIdent, double dTorqueNm); /** * Requests the status of the drive. * Status-Msg includes whether motor is in error-state * (with source, e.g. undercurrent, overheated) * or operational (enabled/disabled, at its limits, ...) */ void requestDriveStatus(); /** * Requests position and velocity of the drive. * (This is not implemented for CanDriveHarmonica. * sending an Velocity command to an ELMO Harmonica-Ctrl * triggers a aswer transmitting the current velocity) * @param iCanIdent choose a can node */ int requestMotPosVel(int iCanIdent); /** * Requests motor-torque (in fact active current) of the drive. * @param iCanIdent choose a can node */ void requestMotorTorque(); /** * Gets the position and velocity. * @param iCanIdent choose a can node * @param pdAngleGearRad joint-position in radian * @param pdVelGearRadS joint-velocity in radian per second */ int getGearPosVelRadS(int iCanIdent, double* pdAngleGearRad, double* pdVelGearRadS); /** * Gets the delta joint-angle since the last call and the velocity. * @param iCanIdent choose a can node * @param pdDeltaAngleGearRad delta joint-position since the last call in radian * @param pdVelGearRadS joint-velocity in radian per second */ int getGearDeltaPosVelRadS(int iCanIdent, double* pdDeltaAngleGearRad, double* pdVelGearRadS); /** * Gets the status and temperature in degree celcius. * (Not implemented for CanDriveHarmonica) * @param iCanIdent choose a CANNode enumatraion */ void getStatus(int iCanIdent, int* piStatus, int* piTempCel); /** * Gets the motor torque (calculated from motor active current). * @param iCanIdent choose a can node * @param pdTorqueNm motor-torque in Newtonmeter */ void getMotorTorque(int iCanIdent, double* pdTorqueNm); //--------------------------------- Commands specific for a certain motor controller // have to be implemented here, to keep the CanDriveItf generic /** * Configures the Elmo Recorder (internal) to log internal data with high frequency * (This can be used for identification of the drive chain * data is downloaded via the Elmo's serial interface * @param iRecordingGap Sleep Time before Recording starts (check whether this is correct) */ void configureElmoRecorder(int iRecordingGap); /** *Receives recorded data from Elmos via CAN and saves them into LOG-files */ bool printElmoRecordings(std::string LogDirectory); //--------------------------------- Commands for other nodes protected: //--------------------------------- internal functions /** * Reads configuration of can node and components from Inifile * (should be adapted to use ROS-Parameter file) */ std::string sIniDirectory; std::string sComposed; void readConfiguration(); /** * Starts up can node */ void sendNetStartCanOpen(); //--------------------------------- Types /** * Parameters of the class CanCtrlPltfCOb3. */ struct ParamType { // Platform config int iHasWheel1DriveMotor; int iHasWheel1SteerMotor; int iHasWheel2DriveMotor; int iHasWheel2SteerMotor; int iHasWheel3DriveMotor; int iHasWheel3SteerMotor; int iHasWheel4DriveMotor; int iHasWheel4SteerMotor; double dWheel1SteerDriveCoupling; double dWheel2SteerDriveCoupling; double dWheel3SteerDriveCoupling; double dWheel4SteerDriveCoupling; int iRadiusWheelMM; int iDistSteerAxisToDriveWheelMM; int iHasRelayBoard; int iHasIOBoard; int iHasUSBoard; int iHasGyroBoard; int iHasRadarBoard; double dCanTimeout; }; /** * Parameters charaterising combination of gears and drives */ struct GearMotorParamType { int iEncIncrPerRevMot; double dVelMeasFrqHz; double dGearRatio; double dBeltRatio; int iSign; double dVelMaxEncIncrS; double dAccIncrS2; double dDecIncrS2; double dScaleToMM; int iEncOffsetIncr; bool bIsSteer; double dCurrentToTorque; double dCurrMax; }; /** * CAN IDs for Neobotix boards. (Default Values) */ struct CanNeoIDType { int IOBoard_rx_ID; int IOBoard_tx_ID; int DriveNeo_W1Drive_rx_ID; int DriveNeo_W1Drive_tx_ID; int DriveNeo_W1Steer_rx_ID; int DriveNeo_W1Steer_tx_ID; int DriveNeo_W2Drive_rx_ID; int DriveNeo_W2Drive_tx_ID; int DriveNeo_W2Steer_rx_ID; int DriveNeo_W2Steer_tx_ID; int DriveNeo_W3Drive_rx_ID; int DriveNeo_W3Drive_tx_ID; int DriveNeo_W3Steer_rx_ID; int DriveNeo_W3Steer_tx_ID; int DriveNeo_W4Drive_rx_ID; int DriveNeo_W4Drive_tx_ID; int DriveNeo_W4Steer_rx_ID; int DriveNeo_W4Steer_tx_ID; int USBoard_rx_ID; int USBoard_tx_ID; int GyroBoard_rx_ID; int GyroBoard_tx_ID; int RadarBoard_rx_ID; int RadarBoard_tx_ID; }; /** * CAN IDs for motor drive Harmonica. * (actually this should be read from inifile) */ struct CanOpenIDType { // Wheel 1 // can adresse motor 1 int TxPDO1_W1Drive; int TxPDO2_W1Drive; int RxPDO2_W1Drive; int TxSDO_W1Drive; int RxSDO_W1Drive; // can adresse motor 2 int TxPDO1_W1Steer; int TxPDO2_W1Steer; int RxPDO2_W1Steer; int TxSDO_W1Steer; int RxSDO_W1Steer; // Wheel 2 // can adresse motor 7 int TxPDO1_W2Drive; int TxPDO2_W2Drive; int RxPDO2_W2Drive; int TxSDO_W2Drive; int RxSDO_W2Drive; // can adresse motor 8 int TxPDO1_W2Steer; int TxPDO2_W2Steer; int RxPDO2_W2Steer; int TxSDO_W2Steer; int RxSDO_W2Steer; // Wheel 3 // can adresse motor 5 int TxPDO1_W3Drive; int TxPDO2_W3Drive; int RxPDO2_W3Drive; int TxSDO_W3Drive; int RxSDO_W3Drive; // can adresse motor 6 int TxPDO1_W3Steer; int TxPDO2_W3Steer; int RxPDO2_W3Steer; int TxSDO_W3Steer; int RxSDO_W3Steer; // Wheel 4 // can adresse motor 3 int TxPDO1_W4Drive; int TxPDO2_W4Drive; int RxPDO2_W4Drive; int TxSDO_W4Drive; int RxSDO_W4Drive; // can adresse motor 4 int TxPDO1_W4Steer; int TxPDO2_W4Steer; int RxPDO2_W4Steer; int TxSDO_W4Steer; int RxSDO_W4Steer; }; //--------------------------------- Parameter ParamType m_Param; // CanNeoIDType m_CanNeoIDParam; CanOpenIDType m_CanOpenIDParam; // Prms for all Motor/Gear combos GearMotorParamType m_GearMotDrive1; GearMotorParamType m_GearMotDrive2; GearMotorParamType m_GearMotDrive3; GearMotorParamType m_GearMotDrive4; GearMotorParamType m_GearMotSteer1; GearMotorParamType m_GearMotSteer2; GearMotorParamType m_GearMotSteer3; GearMotorParamType m_GearMotSteer4; //--------------------------------- Variables CanMsg m_CanMsgRec; Mutex m_Mutex; bool m_bWatchdogErr; //--------------------------------- Components // Can-Interface CanItf* m_pCanCtrl; IniFile m_IniFile; // Motor-Controllers /* CanDriveItf* m_pW1DriveMotor; CanDriveItf* m_pW1SteerMotor; CanDriveItf* m_pW2DriveMotor; CanDriveItf* m_pW2SteerMotor; CanDriveItf* m_pW3DriveMotor; CanDriveItf* m_pW3SteerMotor; CanDriveItf* m_pW4DriveMotor; CanDriveItf* m_pW4SteerMotor;*/ // pointer to each motors Can-Itf std::vector<CanDriveItf*> m_vpMotor; // vector with enums (specifying hardware-structure) -> simplifies cmd-check // this has to be adapted in c++ file to your hardware std::vector<int> m_viMotorID; // other }; //----------------------------------------------- #endif
[ "cpc@okeanos.(none)", "cpc@tethys.(none)", "[email protected]", "cpc@cob3-2-pc1.(none)" ]
[ [ [ 1, 10 ], [ 13, 19 ], [ 21, 64 ], [ 68, 69 ], [ 72, 74 ], [ 76, 124 ], [ 126, 236 ], [ 243, 256 ], [ 260, 469 ] ], [ [ 11, 12 ], [ 20, 20 ], [ 70, 71 ], [ 75, 75 ] ], [ [ 65, 67 ] ], [ [ 125, 125 ], [ 237, 242 ], [ 257, 259 ] ] ]
640a98b5b2b04ac575eecd3708bed6ce3833676b
d425cf21f2066a0cce2d6e804bf3efbf6dd00c00
/Tactical/Real Time Input.cpp
80d0ba970c118780f5ff8c9bd61611f88b837cc0
[]
no_license
infernuslord/ja2
d5ac783931044e9b9311fc61629eb671f376d064
91f88d470e48e60ebfdb584c23cc9814f620ccee
refs/heads/master
2021-01-02T23:07:58.941216
2011-10-18T09:22:53
2011-10-18T09:22:53
null
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
54,502
cpp
#ifdef PRECOMPILEDHEADERS #include "Tactical All.h" #else #include <stdio.h> #include <string.h> #include "wcheck.h" #include "stdlib.h" #include "debug.h" #include "math.h" #include "jascreens.h" #include "pathai.h" //#include "Soldier Control.h" #include "Animation Control.h" #include "Animation Data.h" #include "Event Pump.h" #include "Timer Control.h" #include "cursors.h" #include "Handle UI.h" #include "Isometric Utils.h" #include "input.h" #include "overhead.h" #include "Sys Globals.h" #include "screenids.h" #include "interface.h" #include "cursor control.h" #include "points.h" #include "Interactive Tiles.h" #include "interface cursors.h" #include "Sound Control.h" #include "environment.h" #include "opplist.h" #include "spread burst.h" #include "overhead map.h" #include "world items.h" #include "Game Clock.h" #include "interface items.h" #include "physics.h" #include "ui cursors.h" #include "worldman.h" #include "strategicmap.h" #include "soldier profile.h" #include "soldier create.h" #include "soldier add.h" #include "dialogue control.h" #include "interface dialogue.h" #include "interactive tiles.h" #include "messageboxscreen.h" #include "gameloop.h" #include "gamescreen.h" #include "spread burst.h" #include "tile animation.h" #include "merc entering.h" #include "explosion control.h" #include "message.h" #include "Strategic Exit GUI.h" #include "Assignments.h" #include "Map Screen Interface.h" #include "renderworld.h" #include "GameSettings.h" #include "english.h" #include "text.h" #include "soldier macros.h" #include "render dirty.h" #include "Militia Control.h" #include "render dirty.h" #include "Militia Control.h" ///***dddd #include "Squads.h" #include "Interface Panels.h" #include "Soldier functions.h" #include "SaveLoadMap.h" #include "worlddat.h" //for gtileset #include "Debug Control.h" //for livelog #endif //forward declarations of common classes to eliminate includes class OBJECTTYPE; class SOLDIERTYPE; extern UIKEYBOARD_HOOK gUIKeyboardHook; extern BOOLEAN fRightButtonDown; extern BOOLEAN fLeftButtonDown; extern BOOLEAN fIgnoreLeftUp; extern UINT32 guiCurrentEvent; extern UINT32 guiCurrentUICursor; extern void DetermineWhichAssignmentMenusCanBeShown( void ); extern void DetermineWhichMilitiaControlMenusCanBeShown( void ); extern BOOLEAN gfIgnoreOnSelectedGuy; extern INT32 gsOverItemsGridNo; extern INT16 gsOverItemsLevel; extern UINT32 guiUITargetSoldierId; extern BOOLEAN gfUIShowExitSouth; //***ddd extern BOOLEAN fMiddleButtonDown; extern BOOLEAN fX1ButtonDown; extern BOOLEAN fX2ButtonDown; extern SOLDIERTYPE *gpSMCurrentMerc; BOOLEAN gfStartLookingForRubberBanding = FALSE; UINT16 gusRubberBandX = 0; UINT16 gusRubberBandY = 0; BOOLEAN gfBeginBurstSpreadTracking = FALSE; BOOLEAN gfRTClickLeftHoldIntercepted = FALSE; BOOLEAN gfRTHaveClickedRightWhileLeftDown = FALSE; extern BOOLEAN ValidQuickExchangePosition( ); extern INT32 iSMPanelButtons[ NUM_SM_BUTTONS ]; extern INT32 iTEAMPanelButtons[ NUM_TEAM_BUTTONS ]; extern INT32 giSMStealthButton; void QueryRTMButton( UINT32 *puiNewEvent ); void QueryRTWheels( UINT32 *puiNewEvent ); void QueryRTX1Button( UINT32 *puiNewEvent ); void QueryRTX2Button( UINT32 *puiNewEvent ); void GetRTMouseButtonInput( UINT32 *puiNewEvent ) { QueryRTLeftButton( puiNewEvent ); QueryRTRightButton( puiNewEvent ); QueryRTMButton( puiNewEvent ); QueryRTWheels( puiNewEvent ); QueryRTX1Button( puiNewEvent ); QueryRTX2Button( puiNewEvent ); } void QueryRTLeftButton( UINT32 *puiNewEvent ) { UINT16 usSoldierIndex; SOLDIERTYPE *pSoldier; UINT32 uiMercFlags; static UINT32 uiSingleClickTime; INT32 usMapPos; static BOOLEAN fDoubleClickIntercepted = FALSE; static BOOLEAN fValidDoubleClickPossible = FALSE; static BOOLEAN fCanCheckForSpeechAdvance = FALSE; static INT32 sMoveClickGridNo = 0; // LEFT MOUSE BUTTON if ( gViewportRegion.uiFlags & MSYS_MOUSE_IN_AREA ) { if (!GetMouseMapPos( &usMapPos ) && !gfUIShowExitSouth ) { return; } if ( gusSelectedSoldier != NOBODY ) { if ( MercPtrs[ gusSelectedSoldier ]->pTempObject != NULL ) { return; } } if ( gViewportRegion.ButtonState & MSYS_LEFT_BUTTON ) { if ( !fLeftButtonDown ) { fLeftButtonDown = TRUE; gfRTHaveClickedRightWhileLeftDown = FALSE; RESETCOUNTER( LMOUSECLICK_DELAY_COUNTER ); RESETCOUNTER( RUBBER_BAND_START_DELAY ); if ( giUIMessageOverlay == -1 ) { if ( gpItemPointer == NULL ) { switch( gCurrentUIMode ) { case ACTION_MODE: if ( gusSelectedSoldier != NOBODY ) { if( GetSoldier( &pSoldier, gusSelectedSoldier ) && gpItemPointer == NULL ) { // OK, check for needing ammo if ( HandleUIReloading( pSoldier ) ) { gfRTClickLeftHoldIntercepted = TRUE; //fLeftButtonDown = FALSE; } else { if ( pSoldier->bDoBurst ) { pSoldier->sStartGridNo = usMapPos; ResetBurstLocations( ); *puiNewEvent = A_CHANGE_TO_CONFIM_ACTION; } else { gfRTClickLeftHoldIntercepted = TRUE; if ( UIMouseOnValidAttackLocation( pSoldier ) ) { // OK< going into confirm will call a function that will automatically move // us to shoot in most vases ( grenades need a confirm mode regardless ) *puiNewEvent = A_CHANGE_TO_CONFIM_ACTION; //*puiNewEvent = CA_MERC_SHOOT; PauseRT( FALSE ); } } } } } break; case MOVE_MODE: gfUICanBeginAllMoveCycle = TRUE; if ( !HandleCheckForExitArrowsInput( FALSE ) && gpItemPointer == NULL ) { if ( gfUIFullTargetFound && ( guiUIFullTargetFlags & OWNED_MERC ) ) { // Reset , if this guy is selected merc, reset any multi selections... if ( gusUIFullTargetID == gusSelectedSoldier ) { ResetMultiSelection( ); } } else { INT8 bReturnCode; bReturnCode = HandleMoveModeInteractiveClick( usMapPos, puiNewEvent ); if ( bReturnCode == -1 ) { //gfRTClickLeftHoldIntercepted = TRUE; } else if ( bReturnCode == -2 ) { //if ( gGameSettings.fOptions[ TOPTION_RTCONFIRM ] ) //{ // *puiNewEvent = C_WAIT_FOR_CONFIRM; // gfPlotNewMovement = TRUE; //}/ //else } else if ( bReturnCode == -3 ) { gfRTClickLeftHoldIntercepted = TRUE; } else if ( bReturnCode == 0 ) { { { BOOLEAN fResult; if ( gusSelectedSoldier != NOBODY ) { if ( ( fResult = UIOKMoveDestination( MercPtrs[ gusSelectedSoldier ], usMapPos ) ) == 1 ) { if ( gsCurrentActionPoints != 0 ) { // We're on terrain in which we can walk, walk // If we're on terrain, if ( !gGameSettings.fOptions[ TOPTION_RTCONFIRM ] ) { *puiNewEvent = C_WAIT_FOR_CONFIRM; gfPlotNewMovement = TRUE; } } } } } } } } //gfRTClickLeftHoldIntercepted = TRUE; } else { gfRTClickLeftHoldIntercepted = TRUE; fIgnoreLeftUp = TRUE; } break; } } } if ( gfUIWaitingForUserSpeechAdvance ) { fCanCheckForSpeechAdvance = TRUE; } } if ( gpItemPointer == NULL ) { if ( giUIMessageOverlay == -1 && !gfRTHaveClickedRightWhileLeftDown ) { // HERE FOR CLICK-DRAG CLICK switch( gCurrentUIMode ) { case MOVE_MODE: case CONFIRM_MOVE_MODE: // First check if we clicked on a guy, if so, make selected if it's ours if( FindSoldierFromMouse( &usSoldierIndex, &uiMercFlags ) ) { // Select guy if ( (uiMercFlags & SELECTED_MERC) && !( uiMercFlags & UNCONSCIOUS_MERC ) && !( MercPtrs[ usSoldierIndex ]->flags.uiStatusFlags & SOLDIER_VEHICLE ) ) { *puiNewEvent = M_CHANGE_TO_ADJPOS_MODE; } } else { //if ( COUNTERDONE( RUBBER_BAND_START_DELAY ) ) { // OK, change to rubber banding mode.. // Have we started this yet? if ( !gfStartLookingForRubberBanding && !gRubberBandActive ) { gfStartLookingForRubberBanding = TRUE; gusRubberBandX = gusMouseXPos; gusRubberBandY = gusMouseYPos; } else { // Have we moved....? if ( abs( gusMouseXPos - gusRubberBandX ) > 10 || abs( gusMouseYPos - gusRubberBandY ) > 10 ) { gfStartLookingForRubberBanding = FALSE; // Stop scrolling: gfIgnoreScrolling = TRUE; // Anchor cursor.... RestrictMouseToXYXY( 0, 0, gsVIEWPORT_END_X, gsVIEWPORT_WINDOW_END_Y ); // OK, settup anchor.... gRubberBandRect.iLeft = gusRubberBandX; gRubberBandRect.iTop = gusRubberBandY; gRubberBandActive = TRUE; // ATE: If we have stopped scrolling..... if ( gfScrollInertia != FALSE ) { SetRenderFlags( RENDER_FLAG_FULL | RENDER_FLAG_CHECKZ ); // Restore Interface! RestoreInterface( ); // Delete Topmost blitters saved areas DeleteVideoOverlaysArea( ); gfScrollInertia = FALSE; } *puiNewEvent = RB_ON_TERRAIN; return; } } } } break; } } } } else { if ( fLeftButtonDown ) { if ( !fIgnoreLeftUp ) { // set flag for handling single clicks // OK , FOR DOUBLE CLICKS - TAKE TIME STAMP & RECORD EVENT if ( ( GetJA2Clock() - uiSingleClickTime ) < 300 ) { // CHECK HERE FOR DOUBLE CLICK EVENTS if ( fValidDoubleClickPossible ) { if ( gpItemPointer == NULL ) { fDoubleClickIntercepted = TRUE; // First check if we clicked on a guy, if so, make selected if it's ours if( gusSelectedSoldier != NOBODY ) { // Set movement mode // OK, only change this if we are stationary! //if ( gAnimControl[ MercPtrs[ gusSelectedSoldier ]->usAnimState ].uiFlags & ANIM_STATIONARY ) //if ( MercPtrs[ gusSelectedSoldier ]->usAnimState == WALKING ) { MercPtrs[ gusSelectedSoldier ]->flags.fUIMovementFast = TRUE; *puiNewEvent = C_MOVE_MERC; } } } } } // Capture time! uiSingleClickTime = GetJA2Clock(); fValidDoubleClickPossible = FALSE; if ( !fDoubleClickIntercepted ) { // FIRST CHECK FOR ANYTIME ( NON-INTERVAL ) CLICKS switch( gCurrentUIMode ) { case ADJUST_STANCE_MODE: // If button has come up, change to mocve mode *puiNewEvent = PADJ_ADJUST_STANCE; break; } // CHECK IF WE CLICKED-HELD if ( COUNTERDONE( LMOUSECLICK_DELAY_COUNTER ) && gpItemPointer != NULL ) { // LEFT CLICK-HOLD EVENT // Switch on UI mode switch( gCurrentUIMode ) { case CONFIRM_ACTION_MODE: case ACTION_MODE: if( GetSoldier( &pSoldier, gusSelectedSoldier ) ) { if ( pSoldier->bDoBurst ) { pSoldier->sEndGridNo = usMapPos; gfBeginBurstSpreadTracking = FALSE; if ( pSoldier->sEndGridNo != pSoldier->sStartGridNo ) { pSoldier->flags.fDoSpread = TRUE; PickBurstLocations( pSoldier ); *puiNewEvent = CA_MERC_SHOOT; } else { pSoldier->flags.fDoSpread = FALSE; } gfRTClickLeftHoldIntercepted = TRUE; } } break; } } //else { //LEFT CLICK NORMAL EVENT // Switch on UI mode if ( !gfRTClickLeftHoldIntercepted ) { if ( giUIMessageOverlay != -1 ) { EndUIMessage( ); } else { if ( !HandleCheckForExitArrowsInput( TRUE ) ) { if ( gpItemPointer != NULL ) { if ( HandleItemPointerClick( usMapPos ) ) { // getout of mode EndItemPointer( ); *puiNewEvent = A_CHANGE_TO_MOVE; } } else { // Check for wiating for keyboard advance if ( gfUIWaitingForUserSpeechAdvance && fCanCheckForSpeechAdvance ) { // We have a key, advance! DialogueAdvanceSpeech( ); } else { switch( gCurrentUIMode ) { case MENU_MODE: // If we get a hit here and we're in menu mode, quit the menu mode EndMenuEvent( guiCurrentEvent ); break; case IDLE_MODE: // First check if we clicked on a guy, if so, make selected if it's ours if( FindSoldierFromMouse( &usSoldierIndex, &uiMercFlags ) ) { // Select guy if ( uiMercFlags & OWNED_MERC ) { *puiNewEvent = I_SELECT_MERC; } } break; case HANDCURSOR_MODE: HandleHandCursorClick( usMapPos, puiNewEvent ); break; case ACTION_MODE: //*puiNewEvent = A_CHANGE_TO_CONFIM_ACTION; //if( GetSoldier( &pSoldier, gusSelectedSoldier ) ) //{ // pSoldier->sStartGridNo = sMapPos; // ResetBurstLocations( ); //} *puiNewEvent = CA_MERC_SHOOT; break; case CONFIRM_MOVE_MODE: if ( gusSelectedSoldier != NOBODY ) { if ( MercPtrs[ gusSelectedSoldier ]->usAnimState != RUNNING ) { *puiNewEvent = C_MOVE_MERC; } else { MercPtrs[ gusSelectedSoldier ]->flags.fUIMovementFast = 2; *puiNewEvent = C_MOVE_MERC; } } //*puiNewEvent = C_MOVE_MERC; //if ( gGameSettings.fOptions[ TOPTION_RTCONFIRM ] ) { fValidDoubleClickPossible = TRUE; } break; case CONFIRM_ACTION_MODE: // Check if we are stationary //if ( AimCubeUIClick( ) ) //{ // if ( gusSelectedSoldier != NOBODY ) // { // if ( !( gAnimControl[ MercPtrs[ gusSelectedSoldier ]->usAnimState ].uiFlags & ANIM_STATIONARY ) ) // { //gUITargetShotWaiting = TRUE; //gsUITargetShotGridNo = sMapPos; // } // else // { // *puiNewEvent = CA_MERC_SHOOT; // } *puiNewEvent = CA_MERC_SHOOT; // } //} break; case MOVE_MODE: if ( !HandleCheckForExitArrowsInput( FALSE ) && gpItemPointer == NULL ) { // First check if we clicked on a guy, if so, make selected if it's ours if ( gfUIFullTargetFound && ( guiUIFullTargetFlags & OWNED_MERC ) ) { if ( !( guiUIFullTargetFlags & UNCONSCIOUS_MERC ) ) { // Select guy if( GetSoldier( &pSoldier, gusUIFullTargetID ) && gpItemPointer == NULL ) { if( pSoldier->bAssignment >= ON_DUTY && !(pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE ) ) { PopupAssignmentMenuInTactical( pSoldier ); } else { if ( !_KeyDown( ALT ) ) { ResetMultiSelection( ); *puiNewEvent = I_SELECT_MERC; } else { if ( pSoldier->flags.uiStatusFlags & SOLDIER_MULTI_SELECTED ) { pSoldier->flags.uiStatusFlags &= (~SOLDIER_MULTI_SELECTED ); } else { pSoldier->flags.uiStatusFlags |= (SOLDIER_MULTI_SELECTED ); // Say Confimation... if( !gGameSettings.fOptions[ TOPTION_MUTE_CONFIRMATIONS ] ) pSoldier->DoMercBattleSound( BATTLE_SOUND_ATTN1 ); // OK, if we have a selected guy.. make him part too.... if ( gusSelectedSoldier != NOBODY ) { MercPtrs[ gusSelectedSoldier ]->flags.uiStatusFlags |= (SOLDIER_MULTI_SELECTED ); } } gfIgnoreOnSelectedGuy = TRUE; EndMultiSoldierSelection( FALSE ); } } } else { if ( !_KeyDown( ALT ) ) { ResetMultiSelection( ); *puiNewEvent = I_SELECT_MERC; } else { if ( pSoldier->flags.uiStatusFlags & SOLDIER_MULTI_SELECTED ) { pSoldier->flags.uiStatusFlags &= (~SOLDIER_MULTI_SELECTED ); } else { pSoldier->flags.uiStatusFlags |= (SOLDIER_MULTI_SELECTED ); // Say Confimation... if( !gGameSettings.fOptions[ TOPTION_MUTE_CONFIRMATIONS ] ) pSoldier->DoMercBattleSound( BATTLE_SOUND_ATTN1 ); } // OK, if we have a selected guy.. make him part too.... if ( gusSelectedSoldier != NOBODY ) { MercPtrs[ gusSelectedSoldier ]->flags.uiStatusFlags |= (SOLDIER_MULTI_SELECTED ); } gfIgnoreOnSelectedGuy = TRUE; EndMultiSoldierSelection( FALSE ); } } } gfRTClickLeftHoldIntercepted = TRUE; } else { INT8 bReturnCode; bReturnCode = HandleMoveModeInteractiveClick( usMapPos, puiNewEvent ); if ( bReturnCode == -1 ) { gfRTClickLeftHoldIntercepted = TRUE; } else if ( bReturnCode == -2 ) { //if ( gGameSettings.fOptions[ TOPTION_RTCONFIRM ] ) //{ // *puiNewEvent = C_WAIT_FOR_CONFIRM; // gfPlotNewMovement = TRUE; //}/ //else { INT32 sIntTileGridNo; if( GetSoldier( &pSoldier, gusSelectedSoldier ) ) { BeginDisplayTimedCursor( GetInteractiveTileCursor( guiCurrentUICursor, TRUE ), 300 ); if ( pSoldier->usAnimState != RUNNING ) { *puiNewEvent = C_MOVE_MERC; } else { if ( GetCurInteractiveTileGridNo( &sIntTileGridNo ) != NULL ) { pSoldier->flags.fUIMovementFast = TRUE; *puiNewEvent = C_MOVE_MERC; } } fValidDoubleClickPossible = TRUE; } } } else if ( bReturnCode == 0 ) { if( GetSoldier( &pSoldier, gusSelectedSoldier ) ) { // First check if we clicked on a guy, if so, make selected if it's ours if( FindSoldierFromMouse( &usSoldierIndex, &uiMercFlags ) && ( uiMercFlags & OWNED_MERC ) ) { // Select guy *puiNewEvent = I_SELECT_MERC; gfRTClickLeftHoldIntercepted = TRUE; } else { //if ( FindBestPath( pSoldier, sMapPos, pSoldier->pathing.bLevel, pSoldier->usUIMovementMode, NO_COPYROUTE, 0 ) == 0 ) if (gsCurrentActionPoints == 0 && !gfUIAllMoveOn && !gTacticalStatus.fAtLeastOneGuyOnMultiSelect ) { ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ NO_PATH ] ); gfRTClickLeftHoldIntercepted = TRUE; } else { BOOLEAN fResult; if ( gusSelectedSoldier != NOBODY ) { if ( ( fResult = UIOKMoveDestination( MercPtrs[ gusSelectedSoldier ], usMapPos ) ) == 1 ) { if ( gfUIAllMoveOn ) { // ATE: Select everybody in squad and make move! { #if 0 SOLDIERTYPE * pTeamSoldier; INT32 cnt; SOLDIERTYPE *pFirstSoldier = NULL; // OK, loop through all guys who are 'multi-selected' and // check if our currently selected guy is amoung the // lucky few.. if not, change to a guy who is... cnt = gTacticalStatus.Team[ gbPlayerNum ].bFirstID; for ( pTeamSoldier = MercPtrs[ cnt ]; cnt <= gTacticalStatus.Team[ gbPlayerNum ].bLastID; cnt++, pTeamSoldier++ ) { // Default turn off pTeamSoldier->flags.uiStatusFlags &= (~SOLDIER_MULTI_SELECTED ); // If controllable if ( OK_CONTROLLABLE_MERC( pTeamSoldier ) && pTeamSoldier->bAssignment == MercPtrs[ gusSelectedSoldier ]->bAssignment ) { pTeamSoldier->flags.uiStatusFlags |= SOLDIER_MULTI_SELECTED; } } EndMultiSoldierSelection( FALSE ); #endif // Make move! *puiNewEvent = C_MOVE_MERC; fValidDoubleClickPossible = TRUE; } } else { // We're on terrain in which we can walk, walk // If we're on terrain, if ( gGameSettings.fOptions[ TOPTION_RTCONFIRM ] ) { *puiNewEvent = C_WAIT_FOR_CONFIRM; gfPlotNewMovement = TRUE; } else { *puiNewEvent = C_MOVE_MERC; fValidDoubleClickPossible = TRUE; } } } else { if ( fResult == 2 ) { ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ NOBODY_USING_REMOTE_STR ] ); } else { //if ( sMapPos != sMoveClickGridNo || pSoldier->flags.uiStatusFlags & SOLDIER_ROBOT ) //{ // sMoveClickGridNo = sMapPos; //ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ CANT_MOVE_THERE_STR ] ); // *puiNewEvent = M_CHANGE_TO_HANDMODE; // gsOverItemsGridNo = sMapPos; // gsOverItemsLevel = gsInterfaceLevel; // } // else // { // sMoveClickGridNo = 0; // *puiNewEvent = M_CHANGE_TO_HANDMODE; // } } //ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, L"Invalid move destination." ); // Goto hand cursor mode... //*puiNewEvent = M_CHANGE_TO_HANDMODE; gfRTClickLeftHoldIntercepted = TRUE; } } } } } } } //gfRTClickLeftHoldIntercepted = TRUE; } else { gfRTClickLeftHoldIntercepted = TRUE; } #if 0 fDone = FALSE; if( GetSoldier( &pSoldier, gusUIFullTargetID ) && gpItemPointer == NULL ) { if( ( guiUIFullTargetFlags & OWNED_MERC ) && ( guiUIFullTargetFlags & VISIBLE_MERC ) && !( guiUIFullTargetFlags & DEAD_MERC ) &&( pSoldier->bAssignment >= ON_DUTY )&&!( pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE ) ) { fShowAssignmentMenu = TRUE; gfRTClickLeftHoldIntercepted = TRUE; CreateDestroyAssignmentPopUpBoxes( ); SetTacticalPopUpAssignmentBoxXY( ); DetermineBoxPositions( ); DetermineWhichAssignmentMenusCanBeShown( ); fFirstClickInAssignmentScreenMask = TRUE; gfIgnoreScrolling = TRUE; fDone = TRUE; } else { fShowAssignmentMenu = FALSE; CreateDestroyAssignmentPopUpBoxes( ); DetermineWhichAssignmentMenusCanBeShown( ); } } if( fDone == TRUE ) { break; } #endif break; case LOOKCURSOR_MODE: // If we cannot actually do anything, return to movement mode *puiNewEvent = LC_LOOK; break; case JUMPOVER_MODE: *puiNewEvent = JP_JUMP; break; case TALKCURSOR_MODE: PauseRT( FALSE ); if ( HandleTalkInit( ) ) { *puiNewEvent = TA_TALKINGMENU; } break; case GETTINGITEM_MODE: // Remove menu! // RemoveItemPickupMenu( ); break; case TALKINGMENU_MODE: //HandleTalkingMenuEscape( TRUE ); break; case EXITSECTORMENU_MODE: RemoveSectorExitMenu( FALSE ); break; case OPENDOOR_MENU_MODE: CancelOpenDoorMenu( ); HandleOpenDoorMenu( ); *puiNewEvent = A_CHANGE_TO_MOVE; break; case RUBBERBAND_MODE: EndRubberBanding( ); *puiNewEvent = A_CHANGE_TO_MOVE; break; } } } } } } } } } // Reset flag fLeftButtonDown = FALSE; fIgnoreLeftUp = FALSE; gfRTClickLeftHoldIntercepted = FALSE; fDoubleClickIntercepted = FALSE; fCanCheckForSpeechAdvance = FALSE; gfStartLookingForRubberBanding = FALSE; // Reset counter RESETCOUNTER( LMOUSECLICK_DELAY_COUNTER ); } } } else { // Set mouse down to false //fLeftButtonDown = FALSE; //fCanCheckForSpeechAdvance = FALSE; // OK, handle special cases like if we are dragging and holding for a burst spread and // release mouse over another mouse region if ( gfBeginBurstSpreadTracking ) { if( GetSoldier( &pSoldier, gusSelectedSoldier ) ) { pSoldier->flags.fDoSpread = FALSE; } gfBeginBurstSpreadTracking = FALSE; } } } void QueryRTRightButton( UINT32 *puiNewEvent ) { static BOOLEAN fClickHoldIntercepted = FALSE; static BOOLEAN fClickIntercepted = FALSE; static UINT32 uiSingleClickTime; static BOOLEAN fDoubleClickIntercepted = FALSE; static BOOLEAN fValidDoubleClickPossible = FALSE; SOLDIERTYPE *pSoldier; INT32 usMapPos; if ( gViewportRegion.uiFlags & MSYS_MOUSE_IN_AREA ) { if (!GetMouseMapPos( &usMapPos ) ) { return; } // RIGHT MOUSE BUTTON if ( gViewportRegion.ButtonState & MSYS_RIGHT_BUTTON ) { if ( !fRightButtonDown ) { fRightButtonDown = TRUE; RESETCOUNTER( RMOUSECLICK_DELAY_COUNTER ); } // CHECK COMBINATIONS if ( fLeftButtonDown ) { //fIgnoreLeftUp = TRUE; gfRTHaveClickedRightWhileLeftDown = TRUE; if ( gpItemPointer == NULL ) { // ATE: if ( gusSelectedSoldier != NOBODY ) { switch( gCurrentUIMode ) { case CONFIRM_MOVE_MODE: case MOVE_MODE: if ( !gfUIAllMoveOn ) { fValidDoubleClickPossible = TRUE; // OK, our first right-click is an all-cycle if ( gfUICanBeginAllMoveCycle ) { // ATE: Here, check if we can do this.... if ( !UIOKMoveDestination( MercPtrs[ gusSelectedSoldier ], usMapPos ) ) { ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ CANT_MOVE_THERE_STR ] ); gfRTClickLeftHoldIntercepted = TRUE; } //else if ( gsCurrentActionPoints == 0 ) //{ // ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, TacticalStr[ NO_PATH ] ); // gfRTClickLeftHoldIntercepted = TRUE; //} else { *puiNewEvent = M_CYCLE_MOVE_ALL; } } fClickHoldIntercepted = TRUE; } } // ATE: Added cancel of burst mode.... if ( gfBeginBurstSpreadTracking ) { gfBeginBurstSpreadTracking = FALSE; gfRTClickLeftHoldIntercepted = TRUE; MercPtrs[ gusSelectedSoldier ]->flags.fDoSpread = FALSE; fClickHoldIntercepted = TRUE; *puiNewEvent = A_END_ACTION; gCurrentUIMode = MOVE_MODE; } } } } else { // IF HERE, DO A CLICK-HOLD IF IN INTERVAL if ( COUNTERDONE( RMOUSECLICK_DELAY_COUNTER ) && !fClickHoldIntercepted ) { if ( gpItemPointer == NULL ) { // Switch on UI mode switch( gCurrentUIMode ) { case IDLE_MODE: case ACTION_MODE: case HANDCURSOR_MODE: case LOOKCURSOR_MODE: case TALKCURSOR_MODE: case MOVE_MODE: if ( GetSoldier( &pSoldier, gusSelectedSoldier ) ) { if ( ( guiUIFullTargetFlags & OWNED_MERC ) && ( guiUIFullTargetFlags & VISIBLE_MERC ) && !( guiUIFullTargetFlags & DEAD_MERC )&&!( pSoldier ? pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE : 0 ) ) { //if( pSoldier->bAssignment >= ON_DUTY ) { PopupAssignmentMenuInTactical( pSoldier ); fClickHoldIntercepted = TRUE; } break; } else { fShowAssignmentMenu = FALSE; CreateDestroyAssignmentPopUpBoxes( ); DetermineWhichAssignmentMenusCanBeShown( ); fShowMilitiaControlMenu = FALSE; CreateDestroyMilitiaControlPopUpBoxes( ); DetermineWhichMilitiaControlMenusCanBeShown( ); } // ATE: if ( !fClickHoldIntercepted ) { *puiNewEvent = U_MOVEMENT_MENU; fClickHoldIntercepted = TRUE; } break; } } if ( gCurrentUIMode == ACTION_MODE || gCurrentUIMode == TALKCURSOR_MODE ) { PauseRT( FALSE ); } } } } } else { if ( fRightButtonDown ) { // OK , FOR DOUBLE CLICKS - TAKE TIME STAMP & RECORD EVENT if ( ( GetJA2Clock() - uiSingleClickTime ) < 300 ) { // CHECK HERE FOR DOUBLE CLICK EVENTS if ( fValidDoubleClickPossible ) { fDoubleClickIntercepted = TRUE; // Do stuff.... // OK, check if left button down... if ( fLeftButtonDown ) { if ( gpItemPointer == NULL ) { if ( !fClickIntercepted && !fClickHoldIntercepted ) { // ATE: if ( gusSelectedSoldier != NOBODY ) { //fIgnoreLeftUp = TRUE; switch( gCurrentUIMode ) { case CONFIRM_MOVE_MODE: case MOVE_MODE: if ( gfUIAllMoveOn ) { // OK, now we wish to run! gfUIAllMoveOn = 2; } } } } } } } } // Capture time! uiSingleClickTime = GetJA2Clock(); fValidDoubleClickPossible = TRUE; if ( !fDoubleClickIntercepted ) { // CHECK COMBINATIONS if ( fLeftButtonDown ) { if ( gpItemPointer == NULL ) { if ( !fClickHoldIntercepted && !fClickIntercepted ) { // ATE: if ( gusSelectedSoldier != NOBODY ) { //fIgnoreLeftUp = TRUE; switch( gCurrentUIMode ) { case CONFIRM_MOVE_MODE: case MOVE_MODE: if ( gfUIAllMoveOn ) { gfUIAllMoveOn = FALSE; gfUICanBeginAllMoveCycle = TRUE; } } } } } } else { if ( !fClickHoldIntercepted && !fClickIntercepted ) { if ( gpItemPointer == NULL ) { // ATE: if ( gusSelectedSoldier != NOBODY ) { // Switch on UI mode switch( gCurrentUIMode ) { case IDLE_MODE: break; case CONFIRM_MOVE_MODE: case MOVE_MODE: case TALKCURSOR_MODE: { // We have here a change to action mode *puiNewEvent = M_CHANGE_TO_ACTION; } fClickIntercepted = TRUE; break; case ACTION_MODE: // We have here a change to move mode *puiNewEvent = A_END_ACTION; fClickIntercepted = TRUE; break; case CONFIRM_ACTION_MODE: if ( GetSoldier( &pSoldier, gusSelectedSoldier ) ) { HandleRightClickAdjustCursor( pSoldier, usMapPos ); } fClickIntercepted = TRUE; break; case MENU_MODE: // If we get a hit here and we're in menu mode, quit the menu mode EndMenuEvent( guiCurrentEvent ); fClickIntercepted = TRUE; break; case HANDCURSOR_MODE: // If we cannot actually do anything, return to movement mode *puiNewEvent = A_CHANGE_TO_MOVE; break; case LOOKCURSOR_MODE: // If we cannot actually do anything, return to movement mode *puiNewEvent = A_CHANGE_TO_MOVE; break; } } } else { if ( gfUIFullTargetFound ) { gfItemPointerDifferentThanDefault = !gfItemPointerDifferentThanDefault; } } } } } // Reset flag fRightButtonDown = FALSE; fClickHoldIntercepted = FALSE; fClickIntercepted = FALSE; fDoubleClickIntercepted = FALSE; // Reset counter RESETCOUNTER( RMOUSECLICK_DELAY_COUNTER ); } } } } extern BOOLEAN ConfirmActionCancel( INT32 usMapPos, INT32 usOldMapPos ); extern BOOLEAN gUIActionModeChangeDueToMouseOver; void GetRTMousePositionInput( UINT32 *puiNewEvent ) { INT32 usMapPos; static INT32 usOldMapPos = 0; static UINT32 uiMoveTargetSoldierId = NOBODY; SOLDIERTYPE *pSoldier; static BOOLEAN fOnValidGuy = FALSE; if (!GetMouseMapPos( &usMapPos ) ) { return; } if ( gViewportRegion.uiFlags & MSYS_MOUSE_IN_AREA ) { // Handle highlighting stuff HandleObjectHighlighting( ); // Check if we have an item in our hands... if ( gpItemPointer != NULL ) { *puiNewEvent = A_ON_TERRAIN; return; } // Switch on modes switch( gCurrentUIMode ) { case RUBBERBAND_MODE: // ATE: Make sure! if ( gRubberBandActive == FALSE ) { *puiNewEvent = M_ON_TERRAIN; } else { *puiNewEvent = RB_ON_TERRAIN; } break; case JUMPOVER_MODE: // ATE: Make sure! if ( gsJumpOverGridNo != usMapPos ) { *puiNewEvent = A_CHANGE_TO_MOVE; } else { *puiNewEvent = JP_ON_TERRAIN; } break; case LOCKUI_MODE: *puiNewEvent = LU_ON_TERRAIN; break; case IDLE_MODE: *puiNewEvent = I_ON_TERRAIN; break; case ENEMYS_TURN_MODE: *puiNewEvent = ET_ON_TERRAIN; break; case LOOKCURSOR_MODE: *puiNewEvent = LC_ON_TERRAIN; break; case TALKCURSOR_MODE: if ( uiMoveTargetSoldierId != NOBODY ) { if( gfUIFullTargetFound ) { if ( gusUIFullTargetID != uiMoveTargetSoldierId ) { *puiNewEvent = A_CHANGE_TO_MOVE; return; } } else { *puiNewEvent = A_CHANGE_TO_MOVE; return; } } *puiNewEvent = T_ON_TERRAIN; break; case GETTINGITEM_MODE: break; case TALKINGMENU_MODE: if ( HandleTalkingMenu( ) ) { *puiNewEvent = A_CHANGE_TO_MOVE; } break; case EXITSECTORMENU_MODE: if ( HandleSectorExitMenu( ) ) { *puiNewEvent = A_CHANGE_TO_MOVE; } break; case OPENDOOR_MENU_MODE: if ( HandleOpenDoorMenu( ) ) { *puiNewEvent = A_CHANGE_TO_MOVE; } break; case HANDCURSOR_MODE: *puiNewEvent = HC_ON_TERRAIN; break; case MOVE_MODE: if ( usMapPos != usOldMapPos ) { // Set off ALL move.... gfUIAllMoveOn = FALSE; } uiMoveTargetSoldierId = NOBODY; // Check for being on terrain if( GetSoldier( &pSoldier, gusSelectedSoldier ) ) { UINT16 usItem; UINT8 ubItemCursor; // Alrighty, check what's in our hands = if a 'friendly thing', like med kit, look for our own guys usItem = pSoldier->inv[HANDPOS].usItem; // get cursor for item ubItemCursor = GetActionModeCursor( pSoldier ); // if ( IsValidJumpLocation( pSoldier, usMapPos, TRUE ) ) { *puiNewEvent = JP_ON_TERRAIN; gsJumpOverGridNo = usMapPos; return; } else { if( gfUIFullTargetFound ) { if ( IsValidTalkableNPC( (UINT8)gusUIFullTargetID, FALSE, FALSE, FALSE ) && !_KeyDown( SHIFT ) && !AM_AN_EPC( pSoldier ) && MercPtrs[ gusUIFullTargetID ]->bTeam != ENEMY_TEAM && !ValidQuickExchangePosition( ) ) { uiMoveTargetSoldierId = gusUIFullTargetID; *puiNewEvent = T_CHANGE_TO_TALKING; return; } else if ( ubItemCursor == AIDCURS ) { // IF it's an ememy, goto confirm action mode if ( ( guiUIFullTargetFlags & OWNED_MERC ) && ( guiUIFullTargetFlags & VISIBLE_MERC ) && !( guiUIFullTargetFlags & DEAD_MERC ) ) { //uiMoveTargetSoldierId = gusUIFullTargetID; //*puiNewEvent = A_ON_TERRAIN; //return; } } else { // IF it's an ememy, goto confirm action mode if ( ( guiUIFullTargetFlags & ENEMY_MERC ) && ( guiUIFullTargetFlags & VISIBLE_MERC ) && !( guiUIFullTargetFlags & DEAD_MERC ) ) { uiMoveTargetSoldierId = gusUIFullTargetID; *puiNewEvent = A_ON_TERRAIN; return; } } } } } *puiNewEvent = M_ON_TERRAIN; break; case ACTION_MODE: // First check if we are on a guy, if so, make selected if it's ours // Check if the guy is visible guiUITargetSoldierId = NOBODY; fOnValidGuy = FALSE; if ( gfUIFullTargetFound ) //if ( gfUIFullTargetFound ) { if ( IsValidTargetMerc( (UINT8)gusUIFullTargetID ) ) { guiUITargetSoldierId = gusUIFullTargetID; if ( MercPtrs[ gusUIFullTargetID ]->bTeam != gbPlayerNum ) { fOnValidGuy = TRUE; } else { if ( gUIActionModeChangeDueToMouseOver ) { *puiNewEvent = A_CHANGE_TO_MOVE; return; } } } } else { if ( gUIActionModeChangeDueToMouseOver ) { *puiNewEvent = A_CHANGE_TO_MOVE; return; } } *puiNewEvent = A_ON_TERRAIN; break; case CONFIRM_MOVE_MODE: if ( usMapPos != usOldMapPos ) { // Switch event out of confirm mode // Set off ALL move.... gfUIAllMoveOn = FALSE; *puiNewEvent = A_CHANGE_TO_MOVE; } break; case CONFIRM_ACTION_MODE: // DONOT CANCEL IF BURST if( GetSoldier( &pSoldier, gusSelectedSoldier ) ) { if ( pSoldier->bDoBurst ) { pSoldier->sEndGridNo = usMapPos; if ( pSoldier->sEndGridNo != pSoldier->sStartGridNo && fLeftButtonDown ) { pSoldier->flags.fDoSpread = TRUE; gfBeginBurstSpreadTracking = TRUE; } if ( pSoldier->flags.fDoSpread ) { // Accumulate gridno AccumulateBurstLocation( usMapPos ); *puiNewEvent = CA_ON_TERRAIN; break; } } } // First check if we are on a guy, if so, make selected if it's ours if ( gfUIFullTargetFound ) { if ( guiUITargetSoldierId != gusUIFullTargetID ) { // Switch event out of confirm mode *puiNewEvent = CA_END_CONFIRM_ACTION; } else { *puiNewEvent = CA_ON_TERRAIN; } } else { if ( ConfirmActionCancel( usMapPos, usOldMapPos ) ) { // Switch event out of confirm mode *puiNewEvent = CA_END_CONFIRM_ACTION; } else { *puiNewEvent = CA_ON_TERRAIN; } } break; } //if ( gCurrentUIMode != CONFIRM_ACTION_MODE ) //{ // if( GetSoldier( &pSoldier, gusSelectedSoldier ) ) // { // Change refine value back to 1 /// pSoldier->aiData.bShownAimTime = REFINE_AIM_1; // } //} usOldMapPos = usMapPos; } } //***13.02.2008*** постановка в тактике мешков с песком //usSubIndex может быть от 1 до 10 //void PlaceSandbag (UINT16 usSubIndex) //{ // INT16 sGridNo; // UINT16 usIndex, cnt; // INT8 bOverTerrainType; // UINT32 uiType; // //SECTORINFO *pSector; // // /*if( (gTacticalStatus.uiFlags & INCOMBAT) && (gTacticalStatus.uiFlags & TURNBASED) ) // { // return; // } // // if( gWorldSectorX != -1 && gWorldSectorY != -1 && gWorldSectorX != 0 && gWorldSectorY != 0 && // NumEnemiesInAnySector( gWorldSectorX, gWorldSectorY, gbWorldSectorZ ) > 0 ) // { // return; // } // // if( gbWorldSectorZ > 0 || gsInterfaceLevel > 0) // { // return; // } // // for(uiType = 0; uiType < NUMBEROFTILETYPES; uiType++) // { // if( !gTilesets[ giCurrentTilesetID].TileSurfaceFilenames[ uiType ][0] ) // { // if( !_strnicmp(gTilesets[ 0 ].TileSurfaceFilenames[ uiType ], "sandbag.sti", 11) ) // break; // } // else // { // if( !_strnicmp(gTilesets[ giCurrentTilesetID ].TileSurfaceFilenames[ uiType ], "sandbag.sti", 11) ) // break; // } // } // // if(uiType >= NUMBEROFTILETYPES) // return;*/ // // if( GetMouseMapPos( &sGridNo ) ) // { // //if( InARoom( sGridNo, NULL ) ) // // return; // // //bOverTerrainType = GetTerrainType( sGridNo ); // //if( bOverTerrainType == MED_WATER || bOverTerrainType == DEEP_WATER || bOverTerrainType == LOW_WATER ) // // return; // // //pSector = &SectorInfo[ SECTOR(gWorldSectorX, gWorldSectorY) ]; // //if( pSector->bUSUSED <= 0 ) //проверяем число доступных мешков // //{ // // ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"No Sandbags"); // //} //usIndex =1; // //GetTileIndexFromTypeSubIndex( SECONDLARGEEXPDEBRIS, usSubIndex, &usIndex ); //только для 0 тайлсета //GetTileIndexFromTypeSubIndex( 150, usSubIndex, &usIndex ); //только для 0 тайлсета //ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"No Sandbags"); // //GetTileIndexFromTypeSubIndex( SECONDLARGEEXPDEBRIS, usSubIndex, &usIndex ); // ApplyMapChangesToMapTempFile( TRUE ); // AddStructToHead( sGridNo, usIndex); // //if( pSector->bUSUSED <= 0 || !AddStructToHead( sGridNo, usIndex ) ) // //{ // //перебор для удаления всех видов мешков // // for(cnt = 1; cnt <= 10; cnt++) // // { // // GetTileIndexFromTypeSubIndex( uiType, cnt, &usIndex ); // // if(RemoveStruct( sGridNo, usIndex )) // // { // // RecompileLocalMovementCosts(sGridNo); // // pSector->bUSUSED += 1; // // break; // // } // // } // //} // //else // //{ // RecompileLocalMovementCosts(sGridNo); //// pSector->bUSUSED -= 1; // //} // ApplyMapChangesToMapTempFile( FALSE ); // SetRenderFlags( RENDER_FLAG_FULL ); // } // //} // // // void QueryRTMButton( UINT32 *puiNewEvent ) { INT32 sMapPos; if ( gViewportRegion.uiFlags & MSYS_MOUSE_IN_AREA ) { if (!GetMouseMapPos( &sMapPos ) ) return; if (gViewportRegion.ButtonState & MSYS_MIDDLE_BUTTON) // MID MOUSE BUTTON { if ( !fMiddleButtonDown ) { fMiddleButtonDown = TRUE; //RESETCOUNTER( RMOUSECLICK_DELAY_COUNTER ); } } else if ( fMiddleButtonDown ) { /////ddd{ test okop placement //if ( _KeyDown( CTRL ) ) //{ // // PlaceSandbag(1); // fMiddleButtonDown = FALSE; // return; //} /////ddd } if ( _KeyDown( ALT ) ) { //переключение режима огня if ( ( gpItemPointer == NULL ) && ( gusSelectedSoldier != NOBODY ) && ( ( gsCurInterfacePanel != SM_PANEL ) || ( ButtonList[ iSMPanelButtons[ BURSTMODE_BUTTON ] ]->uiFlags & BUTTON_ENABLED ) ) ) ChangeWeaponMode( MercPtrs[ gusSelectedSoldier ] ); } else *puiNewEvent = LC_LOOK; fMiddleButtonDown = FALSE; // Reset counter //RESETCOUNTER( RMOUSECLICK_DELAY_COUNTER ); } } }//void QueryRTMButton( UINT32 *puiNewEvent ) void QueryRTWheels( UINT32 *puiNewEvent ) { INT32 sMapPos=0; UINT8 bID; if ( gViewportRegion.uiFlags & MSYS_MOUSE_IN_AREA ) { if (!GetMouseMapPos( &sMapPos ) ) return; if ( gViewportRegion.WheelState != 0 ) { // printf("wheel %d\n", gViewportRegion.WheelState);MessageBeep(0x00000040L); if ( gpItemPointer == NULL ) { if ( gusSelectedSoldier != NOBODY ) { // Switch on UI mode switch( gCurrentUIMode ) { case IDLE_MODE: case MOVE_MODE: // nothing in hand and either not in SM panel, or the matching button is enabled if we are in SM panel if ( !( gTacticalStatus.uiFlags & ENGAGED_IN_CONV ) && ( ( gsCurInterfacePanel != SM_PANEL ) || ( ButtonList[ iSMPanelButtons[ NEXTMERC_BUTTON ] ]->uiFlags & BUTTON_ENABLED ) ) ) { if ( gViewportRegion.WheelState > 0 ) //колесо от себя { //change stance ->DOWN if ( _KeyDown( ALT ) ) { if ( (gusSelectedSoldier != NOBODY) && ( gpItemPointer == NULL ) ) GotoLowerStance(MercPtrs[ gusSelectedSoldier ]); break; } if ( gusSelectedSoldier != NOBODY ) { //Select prev merc bID = FindPrevActiveAndAliveMerc( MercPtrs[ gusSelectedSoldier ], TRUE, TRUE ); HandleLocateSelectMerc( bID, LOCATEANDSELECT_MERC ); // Center to guy.... LocateSoldier( gusSelectedSoldier, SETLOCATOR ); } } else { //change stance ->UP if ( _KeyDown( ALT ) ) { if ( (gusSelectedSoldier != NOBODY) && ( gpItemPointer == NULL ) ) GotoHeigherStance( MercPtrs[ gusSelectedSoldier ] ); break; } //ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, L"wheel %d", gViewportRegion.WheelState); if ( gusSelectedSoldier != NOBODY ) { //Select next merc bID = FindNextMercInTeamPanel( MercPtrs[ gusSelectedSoldier ], FALSE, FALSE ); HandleLocateSelectMerc( bID, LOCATEANDSELECT_MERC ); // Center to guy.... LocateSoldier( gusSelectedSoldier, SETLOCATOR ); } } //*puiNewEvent = M_ON_TERRAIN; ???????????????? } break; case ACTION_MODE: case CONFIRM_MOVE_MODE: case HANDCURSOR_MODE: case LOOKCURSOR_MODE: case TALKCURSOR_MODE: case MENU_MODE: break; case CONFIRM_ACTION_MODE: //стрелять здесь. но до сюда не доходит ;) break; }//switch }//if ( gusSelectedSoldier != NOBODY ) }//if ( gpItemPointer == NULL ResetWheelState( &gViewportRegion ); }//if ( gViewportRegion.WheelState != 0 ) } }//void QueryRTWheels( UINT32 *puiNewEvent ) void QueryRTX1Button( UINT32 *puiNewEvent ) { INT32 sMapPos; if ( gViewportRegion.uiFlags & MSYS_MOUSE_IN_AREA ) { if (!GetMouseMapPos( &sMapPos ) ) return; if (gViewportRegion.ButtonState & MSYS_X1_BUTTON) // MID MOUSE BUTTON { if ( !fX1ButtonDown ) { fX1ButtonDown = TRUE; } } else if ( fX1ButtonDown ) { fX1ButtonDown = FALSE; if ( !_KeyDown( ALT ) && !_KeyDown( SHIFT )) { UIHandleChangeLevel( NULL ); } else if( _KeyDown( SHIFT ) ) { // WANNE: Jump through window? if (gGameExternalOptions.fCanJumpThroughWindows == TRUE ) { INT8 bDirection; SOLDIERTYPE *lSoldier; if ( GetSoldier( &lSoldier, gusSelectedSoldier ) ) { if ( FindWindowJumpDirection( lSoldier, lSoldier->sGridNo, lSoldier->ubDirection, &bDirection ) ) { lSoldier->BeginSoldierClimbWindow( ); } } } } else if (_KeyDown( ALT ) ) { // Climb on roofs SOLDIERTYPE *pjSoldier; if ( GetSoldier( &pjSoldier, gusSelectedSoldier ) ) { BOOLEAN fNearHeigherLevel; BOOLEAN fNearLowerLevel; INT8 bDirection; // CHRISL: Turn off manual jumping while wearing a backpack if(UsingNewInventorySystem() == true && pjSoldier->inv[BPACKPOCKPOS].exists() == true) return; // Make sure the merc is not collapsed! if (!IsValidStance(pjSoldier, ANIM_CROUCH) ) { if ( pjSoldier->bCollapsed && pjSoldier->bBreath < OKBREATH ) ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_UI_FEEDBACK, gzLateLocalizedString[ 4 ], pjSoldier->name ); return; } GetMercClimbDirection( pjSoldier->ubID, &fNearLowerLevel, &fNearHeigherLevel ); if ( fNearLowerLevel ) pjSoldier->BeginSoldierClimbDownRoof( ); if ( fNearHeigherLevel ) pjSoldier->BeginSoldierClimbUpRoof( ); if ( FindFenceJumpDirection( pjSoldier, pjSoldier->sGridNo, pjSoldier->ubDirection, &bDirection ) ) pjSoldier->BeginSoldierClimbFence( ); } } } } } void QueryRTX2Button( UINT32 *puiNewEvent ) { INT32 sMapPos; if ( gViewportRegion.uiFlags & MSYS_MOUSE_IN_AREA ) { if (!GetMouseMapPos( &sMapPos ) ) return; if (gViewportRegion.ButtonState & MSYS_X2_BUTTON) // MID MOUSE BUTTON { if ( !fX2ButtonDown ) { fX2ButtonDown = TRUE; } } else if ( fX2ButtonDown ) { fX2ButtonDown = FALSE; if ( _KeyDown( ALT ) ) AutoReload( MercPtrs[ gusSelectedSoldier ] ); else // Toggle squad's stealth mode..... // For each guy on squad... { SOLDIERTYPE *pTeamSoldier; INT8 bLoop; BOOLEAN fStealthOn = FALSE; // Check if at least one guy is on stealth.... for (bLoop=gTacticalStatus.Team[gbPlayerNum].bFirstID, pTeamSoldier=MercPtrs[bLoop]; bLoop <= gTacticalStatus.Team[gbPlayerNum].bLastID; bLoop++, pTeamSoldier++) { if ( OK_CONTROLLABLE_MERC( pTeamSoldier ) && pTeamSoldier->bAssignment == CurrentSquad( ) ) { if ( pTeamSoldier->bStealthMode ) { fStealthOn = TRUE; } } } fStealthOn = !fStealthOn; for (bLoop=gTacticalStatus.Team[gbPlayerNum].bFirstID, pTeamSoldier=MercPtrs[bLoop]; bLoop <= gTacticalStatus.Team[gbPlayerNum].bLastID; bLoop++, pTeamSoldier++) { if ( OK_CONTROLLABLE_MERC( pTeamSoldier ) && pTeamSoldier->bAssignment == CurrentSquad( ) && !AM_A_ROBOT( pTeamSoldier ) ) { if ( gpSMCurrentMerc != NULL && bLoop == gpSMCurrentMerc->ubID ) { gfUIStanceDifferent = TRUE; } pTeamSoldier->bStealthMode = fStealthOn; } } fInterfacePanelDirty = DIRTYLEVEL2; // OK, display message if ( fStealthOn ) { ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pMessageStrings[ MSG_SQUAD_ON_STEALTHMODE ] ); } else { ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, pMessageStrings[ MSG_SQUAD_OFF_STEALTHMODE ] ); } } } } }
[ "jazz_ja@b41f55df-6250-4c49-8e33-4aa727ad62a1" ]
[ [ [ 1, 1964 ] ] ]
bca2ab50ce6e9e4157749fe031e6f63fee6b9a99
b14d5833a79518a40d302e5eb40ed5da193cf1b2
/cpp/extern/xercesc++/2.6.0/samples/PSVIWriter/PSVIWriterHandlers.cpp
655e19622ffc57dc13d4bc849a272ca687a0a149
[ "Apache-2.0" ]
permissive
andyburke/bitflood
dcb3fb62dad7fa5e20cf9f1d58aaa94be30e82bf
fca6c0b635d07da4e6c7fbfa032921c827a981d6
refs/heads/master
2016-09-10T02:14:35.564530
2011-11-17T09:51:49
2011-11-17T09:51:49
2,794,411
1
0
null
null
null
null
UTF-8
C++
false
false
77,178
cpp
/* * Copyright 2003,2004 The Apache Software Foundation. * * 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. */ // --------------------------------------------------------------------------- // Includes // --------------------------------------------------------------------------- #include "PSVIWriterHandlers.hpp" #include "PSVIUni.hpp" #include <xercesc/util/XMLUni.hpp> #include <xercesc/util/XMLUniDefs.hpp> #include <xercesc/util/XMLString.hpp> #include <xercesc/sax/SAXParseException.hpp> #include <xercesc/sax/SAXException.hpp> #include <xercesc/dom/DOMAttr.hpp> #include <xercesc/dom/DOMDocument.hpp> #include <xercesc/dom/DOMNode.hpp> #include <xercesc/dom/DOMNodeList.hpp> #include <xercesc/dom/DOMTypeInfo.hpp> #include <xercesc/dom/DOMImplementationRegistry.hpp> #include <xercesc/dom/DOMImplementation.hpp> #include <xercesc/framework/psvi/XSValue.hpp> #include <string.h> #include <stdio.h> XERCES_CPP_NAMESPACE_USE static const XMLCh fgSpace[] = { chSpace, chNull }; static const XMLCh fgRoot[] = { chLatin_r, chLatin_o, chLatin_o, chLatin_t, chNull }; static const XMLCh fgChar[] = { chSpace, chLatin_C, chLatin_h, chLatin_a, chLatin_r, chNull }; // char static const XMLCh fgLine[] = { chSpace, chLatin_L, chLatin_i, chLatin_n, chLatin_e, chNull }; // line static const XMLCh fgError[] = { chLatin_E, chLatin_r, chLatin_r, chLatin_o, chLatin_r, chNull }; //Error static const XMLCh fgAtFile[] = { // at file chSpace, chLatin_a, chLatin_t, chSpace, chLatin_f, chLatin_i, chLatin_l, chLatin_e, chNull }; static const XMLCh fgFatalError[] = { //Fatal Error chLatin_F, chLatin_a, chLatin_t, chLatin_a, chLatin_l, chSpace, chLatin_E, chLatin_r, chLatin_r, chLatin_o, chLatin_r, chNull }; static const XMLCh fgMessage[] = { //Message chLatin_M, chLatin_e, chLatin_s, chLatin_s, chLatin_a, chLatin_g, chLatin_e, chNull }; static const XMLCh fgXsiNil[] = { //xsi:nil chLatin_x, chLatin_s, chLatin_i, chColon, chLatin_n, chLatin_i, chLatin_l, chNull }; static const XMLCh fgWarning[] = { //Warning chLatin_W, chLatin_a, chLatin_r, chLatin_n, chLatin_i, chLatin_n, chLatin_g, chNull }; static const XMLCh gXmlnsColonXsi[] = { //xmlns:xsi chLatin_x, chLatin_m, chLatin_l, chLatin_n, chLatin_s, chColon, chLatin_x, chLatin_s, chLatin_i, chNull }; static const XMLCh gXmlnsColonPsv[] = { //xmlns:psv chLatin_x, chLatin_m, chLatin_l, chLatin_n, chLatin_s, chColon, chLatin_p, chLatin_s, chLatin_v, chNull }; static const XMLCh gRef[] = { chLatin_r, chLatin_e, chLatin_f, chNull }; // ref static const XMLCh gId[] = { chLatin_i, chLatin_d, chNull }; // id static const XMLCh gEqualsQuote[] = { chEqual, chDoubleQuote, chNull }; static const XMLCh gAngleSlash[] = { chOpenAngle, chForwardSlash, chNull }; static const XMLCh gAngleFeed[] = { chCloseAngle, chLF, chNull }; static const XMLCh gSlashAngleFeed[] = { chForwardSlash, chCloseAngle, chLF, chNull }; static const XMLCh gQuoteAngleFeed[] = { chDoubleQuote, chCloseAngle, chLF, chNull }; static const XMLCh gActualValue[] = { chLatin_a, chLatin_c, chLatin_t, chLatin_u, chLatin_a, chLatin_l, chLatin_V, chLatin_a, chLatin_l, chLatin_u, chLatin_e, chNull }; static const XMLCh gDataType[] = { chLatin_d, chLatin_a, chLatin_t, chLatin_a, chLatin_T, chLatin_y, chLatin_p, chLatin_e, chNull }; static const XMLCh gDataValue[] = { chLatin_d, chLatin_a, chLatin_t, chLatin_a, chLatin_V, chLatin_a, chLatin_l, chLatin_u, chLatin_e, chNull }; static const XMLCh gCommentStart[] = { chOpenAngle, chBang, chDash, chDash, chLF, chNull}; static const XMLCh gCommentEnd[] = { chDash, chDash, chCloseAngle, chLF, chNull}; static const XMLCh gPartialElementPSVI[] = { chLatin_p, chLatin_a, chLatin_r, chLatin_t, chLatin_i, chLatin_t, chLatin_i, chLatin_a, chLatin_l, chLatin_E, chLatin_l, chLatin_e, chLatin_m, chLatin_e, chLatin_n, chLatin_t, chLatin_P, chLatin_S, chLatin_V, chLatin_I, chNull }; // --------------------------------------------------------------------------- // PSVIWriterHandlers: Constructors and Destructor // --------------------------------------------------------------------------- PSVIWriterHandlers::PSVIWriterHandlers(XMLFormatter* outputFormatter, XMLFormatter* errorFormatter) : PSVIHandler(), DefaultHandler() { fFormatter = outputFormatter; fErrorFormatter = (errorFormatter != NULL) ? errorFormatter : outputFormatter; fAttrList = new StringList(8, false); fTempResult = new XMLCh[51]; fIndentChars = (XMLCh*) XMLPlatformUtils::fgMemoryManager->allocate(101*sizeof(XMLCh)); fBaseUri = 0; XMLString::copyString(fIndentChars, XMLUni::fgZeroLenString); fIndent = 0; fIndentCap = 100; fAnonNum = 1000; fIdMap = new RefHashTableOf<XMLCh>(101, false); fDefinedIds = new RefVectorOf<XSObject>(25, false); fIdNames = new RefArrayVectorOf<XMLCh>(25, true); fObjectLocations = new RefArrayVectorOf<XMLCh>(25, true); fPrefixMap = new RefHashTableOf<XMLCh>(5, false); fNamespaces = new RefArrayVectorOf<XMLCh>(5, false); fNSAttributes = new ValueVectorOf<unsigned int>(15); fElementChildren = new ValueStackOf<bool>(20); fAttributesInfo = new RefVectorOf<AttrInfo>(8, true); } PSVIWriterHandlers::~PSVIWriterHandlers() { if (fBaseUri != NULL) XMLString::release(&fBaseUri); delete fAttrList; delete[] fTempResult; XMLPlatformUtils::fgMemoryManager->deallocate(fIndentChars); delete fIdMap; delete fDefinedIds; delete fIdNames; delete fObjectLocations; delete fPrefixMap; delete fNamespaces; delete fNSAttributes; delete fElementChildren; delete fAttributesInfo; } // ----------------------------------------------------------------------- // Convenience Utility // ----------------------------------------------------------------------- void PSVIWriterHandlers::resetPSVIFormatter(XMLFormatter* outputFormatter) { fFormatter = outputFormatter; } void PSVIWriterHandlers::resetDocument() { fIndent = 0; fAnonNum = 1000; XMLString::copyString(fIndentChars, XMLUni::fgZeroLenString); if (fBaseUri != NULL) XMLString::release(&fBaseUri); fIdMap->removeAll(); fDefinedIds->removeAllElements(); fIdNames->removeAllElements(); fObjectLocations->removeAllElements(); fPrefixMap->removeAll(); fNamespaces->removeAllElements(); fElementChildren->removeAllElements(); } // --------------------------------------------------------------------------- // PSVIWriterHandlers: Implementation of the SAX DocumentHandler interface // --------------------------------------------------------------------------- void PSVIWriterHandlers::startElement( const XMLCh* const uri, const XMLCh* const localname, const XMLCh* const qname, const Attributes& attrs) { fAttributesInfo->removeAllElements(); for (unsigned int i=0; i<attrs.getLength(); i++) { fAttributesInfo->addElement( new AttrInfo( attrs.getURI(i), attrs.getLocalName(i), attrs.getType(i), attrs.getValue(i) ) ); } } void PSVIWriterHandlers::endElement( const XMLCh* const uri, const XMLCh* const localname, const XMLCh* const qname) { } void PSVIWriterHandlers::startDocument() { fAttrList->removeAllElements(); fAttrList->addElement((XMLCh*)gXmlnsColonXsi); fAttrList->addElement((XMLCh*)PSVIUni::fgNamespaceInstance); fAttrList->addElement((XMLCh*)gXmlnsColonPsv); fAttrList->addElement((XMLCh*)PSVIUni::fgNamespacePsvi); fAttrList->addElement((XMLCh*)XMLUni::fgXMLNSString); fAttrList->addElement((XMLCh*)PSVIUni::fgNamespaceInfoset); writeOpen(PSVIUni::fgDocument, fAttrList); incIndent(); sendElementValue(PSVIUni::fgCharacterEncodingScheme, fFormatter->getEncodingName()); sendElementEmpty(PSVIUni::fgStandalone); sendElementValue(PSVIUni::fgVersion, PSVIUni::fgOnePointZero); fElementChildren->push(false); } void PSVIWriterHandlers::endDocument() { processChildrenEnd(); sendElementEmpty(PSVIUni::fgDocumentElement); writeEmpty(PSVIUni::fgNotations); writeEmpty(PSVIUni::fgUnparsedEntities); sendElementValue(PSVIUni::fgBaseURI, fBaseUri); sendElementValue(PSVIUni::fgAllDeclarationsProcessed, PSVIUni::fgTrue); sendUnindentedElement(PSVIUni::fgDocument); resetDocument(); } void PSVIWriterHandlers::characters( const XMLCh* const chars, const unsigned int length) { processChildren(); sendIndentedElement(PSVIUni::fgCharacter); sendElementValue(PSVIUni::fgTextContent, chars); sendUnindentedElement(PSVIUni::fgCharacter); } void PSVIWriterHandlers::ignorableWhitespace( const XMLCh* const chars, const unsigned int length) { //ignore it } void PSVIWriterHandlers::comment(const XMLCh* const chars, const unsigned int length) { processChildren(); sendIndentedElement(PSVIUni::fgComment); sendElementValue(PSVIUni::fgContent, chars); sendUnindentedElement(PSVIUni::fgComment); } void PSVIWriterHandlers::processingInstruction( const XMLCh* const target, const XMLCh* const data) { processChildren(); sendIndentedElement(PSVIUni::fgProcessingInstruction); sendElementValue(PSVIUni::fgTarget, target); sendElementValue(PSVIUni::fgContent, data); sendUnindentedElement(PSVIUni::fgProcessingInstruction); } void PSVIWriterHandlers::startPrefixMapping(const XMLCh* const prefix, const XMLCh* const uri) { if (!fPrefixMap->containsKey(uri)) { XMLCh* permaUri = XMLString::replicate((XMLCh*)uri); XMLCh* permaPrefix = XMLString::replicate((XMLCh*)prefix); fNamespaces->addElement(permaUri); fPrefixMap->put(permaUri, permaPrefix); } } void PSVIWriterHandlers::endPrefixMapping(const XMLCh* const prefix) { for (unsigned int i=0; i < fNamespaces->size(); i++) { if (XMLString::equals(fPrefixMap->get(fNamespaces->elementAt(i)), prefix)) { XMLCh* uri = fNamespaces->elementAt(i); XMLCh* pre = fPrefixMap->get(uri); fPrefixMap->removeKey(uri); fNamespaces->removeElementAt(i); XMLString::release(&uri); XMLString::release(&pre); break; } } } InputSource* PSVIWriterHandlers::resolveEntity(XMLResourceIdentifier* resourceIdentifier) { if (fBaseUri != NULL) XMLString::release(&fBaseUri); fBaseUri = XMLString::replicate(resourceIdentifier->getBaseURI()); return 0; } InputSource* PSVIWriterHandlers::resolveEntity(const XMLCh* const publicId, const XMLCh* const systemId) { return 0; } // --------------------------------------------------------------------------- // PSVIWriterHandlers: Overrides of the SAX ErrorHandler interface // --------------------------------------------------------------------------- void PSVIWriterHandlers::error(const SAXParseException& e) { XMLCh* temp1 = new XMLCh[10]; XMLCh* temp2 = new XMLCh[10]; XMLString::binToText(e.getLineNumber(), temp1, 9, 10); XMLString::binToText(e.getColumnNumber(), temp2, 9, 10); *fErrorFormatter << fgError << fgAtFile << chSpace << e.getSystemId() << chComma << fgLine << chSpace << temp1 << chComma << fgChar << chSpace << temp2 << chLF << fgMessage << chColon << e.getMessage() << chLF; delete[] temp1; delete[] temp2; } void PSVIWriterHandlers::fatalError(const SAXParseException& e) { XMLCh* temp1 = new XMLCh[10]; XMLCh* temp2 = new XMLCh[10]; XMLString::binToText(e.getLineNumber(), temp1, 9, 10); XMLString::binToText(e.getColumnNumber(), temp2, 9, 10); *fErrorFormatter << fgFatalError << fgAtFile << chSpace << e.getSystemId() << chComma << fgLine << chSpace << temp1 << chComma << fgChar << chSpace << temp2 << chLF << fgMessage << chColon << e.getMessage() << chLF; delete[] temp1; delete[] temp2; resetDocument(); } void PSVIWriterHandlers::warning(const SAXParseException& e) { XMLCh* temp1 = new XMLCh[10]; XMLCh* temp2 = new XMLCh[10]; XMLString::binToText(e.getLineNumber(), temp1, 9, 10); XMLString::binToText(e.getColumnNumber(), temp2, 9, 10); *fErrorFormatter << fgWarning << fgAtFile << chSpace << e.getSystemId() << chComma << fgLine << chSpace << temp1 << chComma << fgChar << chSpace << temp2 << chLF << fgMessage << chColon << e.getMessage() << chLF; delete[] temp1; delete[] temp2; } void PSVIWriterHandlers::resetErrors() { } // --------------------------------------------------------------------------- // PSVIWriterHandlers: Overrides of the PSVIHandler interface // --------------------------------------------------------------------------- void PSVIWriterHandlers::handleAttributesPSVI( const XMLCh* const localName, const XMLCh* const uri, PSVIAttributeList* psviAttributes ) { processChildren(); fElementChildren->push(false); sendIndentedElement(PSVIUni::fgElement); sendElementValue(PSVIUni::fgNamespaceName, uri); sendElementValue(PSVIUni::fgLocalName, localName); sendElementValue(PSVIUni::fgPrefix, fPrefixMap->get(uri)); processAttributes(psviAttributes, fAttributesInfo); processInScopeNamespaces(); sendElementValue(PSVIUni::fgBaseURI, fBaseUri); } void PSVIWriterHandlers::handleElementPSVI( const XMLCh* const localName, const XMLCh* const uri, PSVIElement* elementInfo ) { processActualValue(elementInfo); processChildrenEnd(); processSchemaInformation(elementInfo->getSchemaInformation()); sendElementValue( PSVIUni::fgValidationAttempted, translateValidationAttempted(elementInfo->getValidationAttempted())); sendElementValue(PSVIUni::fgValidationContext, elementInfo->getValidationContext()); sendElementValue(PSVIUni::fgValidity, translateValidity(elementInfo->getValidity())); //REVISIT errorCodes not supported //processSchemaErrorCode(elementInfo->getErrorCodes()); sendElementEmpty(PSVIUni::fgSchemaErrorCode); sendElementValue(PSVIUni::fgSchemaNormalizedValue, elementInfo->getSchemaNormalizedValue()); sendElementValue(PSVIUni::fgCanonicalRepresentation, elementInfo->getCanonicalRepresentation()); sendElementValue(PSVIUni::fgSchemaSpecified, (elementInfo->getIsSchemaSpecified() ? PSVIUni::fgSchema : PSVIUni::fgInfoset)); sendElementValue(PSVIUni::fgSchemaDefault, elementInfo->getSchemaDefault()); processTypeDefinitionRef(PSVIUni::fgTypeDefinition, elementInfo->getTypeDefinition()); processTypeDefinitionRef(PSVIUni::fgMemberTypeDefinition, elementInfo->getMemberTypeDefinition()); sendElementEmpty(PSVIUni::fgNil); processElementDeclarationRef(PSVIUni::fgDeclaration, elementInfo->getElementDeclaration()); sendReference(PSVIUni::fgNotation, elementInfo->getNotationDeclaration()); sendElementEmpty(PSVIUni::fgIdIdrefTable); sendElementEmpty(PSVIUni::fgIdentityConstraintTable); sendUnindentedElement(PSVIUni::fgElement); } /*** * * <partialElementPSVI> * getValidity() * getValidationAttemped() * getValidationContext() * getIsSchemaSpecified() * getElementDeclaration() * getTypeDefinition() * getMemberTypeDefinition() * getSchemaInformation() * getSchemaDefault() * getSchemaNormalizedValue() * getCanonicalRepresentation() * getNotationDeclaration() * </partialElementPSVI> * ***/ void PSVIWriterHandlers::handlePartialElementPSVI( const XMLCh* const localName, const XMLCh* const uri, PSVIElement* elementInfo ) { writeString(gCommentStart); incIndent(); writeOpen(gPartialElementPSVI); incIndent(); processSchemaInformation(elementInfo->getSchemaInformation()); sendElementValue(PSVIUni::fgValidationAttempted , translateValidationAttempted(elementInfo->getValidationAttempted())); sendElementValue(PSVIUni::fgValidationContext , elementInfo->getValidationContext()); sendElementValue(PSVIUni::fgValidity , translateValidity(elementInfo->getValidity())); sendElementValue(PSVIUni::fgSchemaNormalizedValue , elementInfo->getSchemaNormalizedValue()); sendElementValue(PSVIUni::fgCanonicalRepresentation , elementInfo->getCanonicalRepresentation()); sendElementValue(PSVIUni::fgSchemaSpecified , (elementInfo->getIsSchemaSpecified() ? PSVIUni::fgSchema : PSVIUni::fgInfoset)); sendElementValue(PSVIUni::fgSchemaDefault , elementInfo->getSchemaDefault()); processTypeDefinitionRef(PSVIUni::fgTypeDefinition , elementInfo->getTypeDefinition()); processTypeDefinitionRef(PSVIUni::fgMemberTypeDefinition , elementInfo->getMemberTypeDefinition()); processElementDeclarationRef(PSVIUni::fgDeclaration , elementInfo->getElementDeclaration()); sendReference(PSVIUni::fgNotation , elementInfo->getNotationDeclaration()); decIndent(); writeClose(gPartialElementPSVI); decIndent(); writeString(gCommentEnd); } // --------------------------------------------------------------------------- // Private methods // --------------------------------------------------------------------------- void PSVIWriterHandlers::processAttributes(PSVIAttributeList* psviAttributes, const RefVectorOf<AttrInfo>* attributesInfo) { fNSAttributes->removeAllElements(); //will store the indecies of namespace attributes bool firstFlag = true; for (unsigned int i = 0; i < attributesInfo->size(); i++) { if (attributesInfo->elementAt(i)->getUri() == XMLUni::fgXMLNSURIName) { fNSAttributes->addElement(i); } else { if (firstFlag) { sendIndentedElement(PSVIUni::fgAttributes); firstFlag = false; } const XMLCh* localName = attributesInfo->elementAt(i)->getLocalName(); const XMLCh* namespaceUri = attributesInfo->elementAt(i)->getUri(); sendIndentedElement(PSVIUni::fgAttribute); sendElementValue(PSVIUni::fgNamespaceName, namespaceUri); sendElementValue(PSVIUni::fgLocalName, localName); sendElementValue(PSVIUni::fgPrefix, fPrefixMap->get(attributesInfo->elementAt(i)->getUri())); sendElementValue(PSVIUni::fgNormalizedValue, attributesInfo->elementAt(i)->getValue()); if (psviAttributes!=NULL && psviAttributes->getAttributePSVIAtIndex(i)!=NULL) { sendElementValue(PSVIUni::fgSpecified, translateBool(!(psviAttributes->getAttributePSVIAtIndex(i)->getIsSchemaSpecified()))); } else //the desired value is !schemaSpecified sendElementValue(PSVIUni::fgSpecified, PSVIUni::fgUnknown); sendElementValue(PSVIUni::fgAttributeType, attributesInfo->elementAt(i)->getType()); sendElementEmpty(PSVIUni::fgReferences); PSVIAttribute* psviAttr = psviAttributes->getAttributePSVIByName(localName, namespaceUri); processAttributePSVI(psviAttr); sendUnindentedElement(PSVIUni::fgAttribute); } } if (firstFlag) writeEmpty(PSVIUni::fgAttributes); else sendUnindentedElement(PSVIUni::fgAttributes); processNamespaceAttributes(psviAttributes, attributesInfo); } void PSVIWriterHandlers::processNamespaceAttributes(PSVIAttributeList* psviAttributes, const RefVectorOf<AttrInfo>* attributes) { if (fNSAttributes->size()==0) { writeEmpty(PSVIUni::fgNamespaceAttributes); } else { sendIndentedElement(PSVIUni::fgNamespaceAttributes); int ind; for (unsigned int count = 0; count < fNSAttributes->size(); count++) { ind = fNSAttributes->elementAt(count); sendIndentedElement(PSVIUni::fgAttribute); sendElementValue(PSVIUni::fgNamespaceName, XMLUni::fgXMLNSURIName); sendElementValue(PSVIUni::fgLocalName, attributes->elementAt(ind)->getLocalName()); sendElementValue(PSVIUni::fgPrefix, XMLUni::fgXMLNSString); sendElementValue(PSVIUni::fgNormalizedValue, attributes->elementAt(ind)->getValue()); if (psviAttributes!=NULL) { sendElementValue(PSVIUni::fgSpecified, translateBool( psviAttributes->getAttributePSVIByName( attributes->elementAt(ind)->getLocalName(), attributes->elementAt(ind)->getUri() )->getIsSchemaSpecified() ) ); } else sendElementValue(PSVIUni::fgSpecified, PSVIUni::fgUnknown); sendElementValue(PSVIUni::fgAttributeType, attributes->elementAt(ind)->getType()); // this property isn't relevent to PSVI sendElementEmpty(PSVIUni::fgReferences); sendUnindentedElement(PSVIUni::fgAttribute); } sendUnindentedElement(PSVIUni::fgNamespaceAttributes); } } void PSVIWriterHandlers::processAttributePSVI(PSVIAttribute* attrPSVI) { if (attrPSVI != NULL) { sendElementValue(PSVIUni::fgValidationAttempted, translateValidationAttempted(attrPSVI->getValidationAttempted())); sendElementValue(PSVIUni::fgValidationContext, attrPSVI->getValidationContext()); sendElementValue(PSVIUni::fgValidity, translateValidity(attrPSVI->getValidity())); //REVISIT errorCodes not supported //processSchemaErrorCode(attrPSVI->getErrorCodes()); sendElementEmpty(PSVIUni::fgSchemaErrorCode); sendElementValue(PSVIUni::fgSchemaNormalizedValue, attrPSVI->getSchemaNormalizedValue()); sendElementValue(PSVIUni::fgSchemaSpecified, (attrPSVI->getIsSchemaSpecified() ? PSVIUni::fgSchema : PSVIUni::fgInfoset)); sendElementValue(PSVIUni::fgSchemaDefault, attrPSVI->getSchemaDefault()); processTypeDefinitionRef(PSVIUni::fgTypeDefinition, attrPSVI->getTypeDefinition()); processTypeDefinitionOrRef(PSVIUni::fgMemberTypeDefinition, attrPSVI->getMemberTypeDefinition()); processAttributeDeclarationRef(PSVIUni::fgDeclaration, attrPSVI->getAttributeDeclaration()); processActualValue(attrPSVI); } } void PSVIWriterHandlers::processInScopeNamespaces() { sendIndentedElement(PSVIUni::fgInScopeNamespaces); sendIndentedElement(PSVIUni::fgNamespace); sendElementValue(PSVIUni::fgPrefix, PSVIUni::fgXml); sendElementValue(PSVIUni::fgNamespaceName, XMLUni::fgXMLURIName); sendUnindentedElement(PSVIUni::fgNamespace); for (unsigned int i=0; i<fNamespaces->size(); i++) { sendIndentedElement(PSVIUni::fgNamespace); sendElementValue(PSVIUni::fgPrefix, fPrefixMap->get(fNamespaces->elementAt(i))); sendElementValue(PSVIUni::fgNamespaceName, fNamespaces->elementAt(i)); sendUnindentedElement(PSVIUni::fgNamespace); } sendUnindentedElement(PSVIUni::fgInScopeNamespaces); } void PSVIWriterHandlers::processSchemaInformation(XSModel* model) { if (fElementChildren->size()!=1 || model==NULL) { sendElementEmpty(PSVIUni::fgSchemaInformation); } else { sendIndentedElement(PSVIUni::fgSchemaInformation); XSNamespaceItemList* namespaceItems = model->getNamespaceItems(); for (unsigned int i=0; i < namespaceItems->size(); i++) { processNamespaceItem(namespaceItems->elementAt(i)); } sendUnindentedElement(PSVIUni::fgSchemaInformation); } } void PSVIWriterHandlers::processNamespaceItem(XSNamespaceItem* namespaceItem) { if (!XMLString::equals(namespaceItem->getSchemaNamespace(), PSVIUni::fgNamespaceXmlSchema)) { sendIndentedElement(PSVIUni::fgNamespaceSchemaInformation); sendElementValue(PSVIUni::fgSchemaNamespace, namespaceItem->getSchemaNamespace()); processSchemaComponents(namespaceItem); processSchemaDocuments(namespaceItem); processSchemaAnnotations(namespaceItem->getAnnotations()); sendUnindentedElement(PSVIUni::fgNamespaceSchemaInformation); } } void PSVIWriterHandlers::processSchemaComponents(XSNamespaceItem* namespaceItem) { sendIndentedElement(PSVIUni::fgSchemaComponents); XSNamedMap<XSTypeDefinition>* types = (XSNamedMap<XSTypeDefinition>*)(namespaceItem->getComponents(XSConstants::TYPE_DEFINITION)); for (unsigned int typeCount = 0; typeCount < types->getLength(); typeCount++) { processTypeDefinition(types->item(typeCount)); } XSNamedMap<XSAttributeDeclaration>* attributes = (XSNamedMap<XSAttributeDeclaration>*)namespaceItem->getComponents(XSConstants::ATTRIBUTE_DECLARATION); for (unsigned int attrCount = 0; attrCount < attributes->getLength(); attrCount++) { processAttributeDeclaration(attributes->item(attrCount)); } XSNamedMap<XSElementDeclaration>* elements = (XSNamedMap<XSElementDeclaration>*)namespaceItem->getComponents(XSConstants::ELEMENT_DECLARATION); for (unsigned int elemCount = 0; elemCount < elements->getLength(); elemCount++) { processElementDeclaration(elements->item(elemCount)); } XSNamedMap<XSAttributeGroupDefinition>* attrGroups = (XSNamedMap<XSAttributeGroupDefinition>*)namespaceItem->getComponents(XSConstants::ATTRIBUTE_GROUP_DEFINITION); for (unsigned int attrGroupCount = 0; attrGroupCount < attrGroups->getLength(); attrGroupCount++) { processAttributeGroupDefinition(attrGroups->item(attrGroupCount)); } XSNamedMap<XSModelGroupDefinition>* modelGroups = (XSNamedMap<XSModelGroupDefinition>*)namespaceItem->getComponents(XSConstants::MODEL_GROUP_DEFINITION); for (unsigned int modelGroupCount = 0; modelGroupCount < modelGroups->getLength(); modelGroupCount++) { processModelGroupDefinition(modelGroups->item(modelGroupCount)); } XSNamedMap<XSNotationDeclaration>* notations = (XSNamedMap<XSNotationDeclaration>*)namespaceItem->getComponents(XSConstants::NOTATION_DECLARATION); for (unsigned int notationCount = 0; notationCount < notations->getLength(); notationCount++) { processNotationDeclaration(notations->item(notationCount)); } sendUnindentedElement(PSVIUni::fgSchemaComponents); } void PSVIWriterHandlers::processSchemaDocuments(XSNamespaceItem* namespaceItem) { StringList* locations = namespaceItem->getDocumentLocations(); if (locations==NULL) { sendElementEmpty(PSVIUni::fgSchemaDocuments); } sendIndentedElement(PSVIUni::fgSchemaDocuments); for (unsigned int i = 0; i < locations->size(); i++) { sendIndentedElement(PSVIUni::fgSchemaDocument); sendElementValue(PSVIUni::fgDocumentLocation, locations->elementAt(i)); sendElementEmpty(PSVIUni::fgPsvDocument); //supposed to point to a document element, but we dont deal with them sendUnindentedElement(PSVIUni::fgSchemaDocument); } sendUnindentedElement(PSVIUni::fgSchemaDocuments); } void PSVIWriterHandlers::processSchemaAnnotations(XSAnnotationList* annotations) { if (annotations == NULL || annotations->size()==0) { sendElementEmpty(PSVIUni::fgSchemaAnnotations); } else { sendIndentedElement(PSVIUni::fgSchemaAnnotations); for (unsigned int i = 0; i < annotations->size(); i++) { processAnnotation(annotations->elementAt(i)); } sendUnindentedElement(PSVIUni::fgSchemaAnnotations); } } void PSVIWriterHandlers::processSchemaErrorCode(StringList* errors) { //REVISIT //ErrorCodes not yet supported } void PSVIWriterHandlers::processTypeDefinition(XSTypeDefinition* type) { if (type->getTypeCategory() == XSTypeDefinition::COMPLEX_TYPE) { processComplexTypeDefinition((XSComplexTypeDefinition*)type); } else { //XSTypeDefinition::SIMPLE_TYPE processSimpleTypeDefinition((XSSimpleTypeDefinition*)type); } } void PSVIWriterHandlers::processComplexTypeDefinition(XSComplexTypeDefinition* complexType) { sendIndentedElementWithID(PSVIUni::fgComplexTypeDefinition, (XSObject*) complexType); if (complexType->getAnonymous()) sendElementEmpty(PSVIUni::fgName); else sendElementValue(PSVIUni::fgName, complexType->getName()); sendElementValue(PSVIUni::fgTargetNamespace, complexType->getNamespace()); processTypeDefinitionOrRef(PSVIUni::fgBaseTypeDefinition, complexType->getBaseType()); sendElementValue(PSVIUni::fgDerivationMethod, translateDerivationMethod(complexType->getDerivationMethod())); sendElementValue(PSVIUni::fgFinal, translateBlockOrFinal(complexType->getFinal())); sendElementValue(PSVIUni::fgAbstract, translateBool(complexType->getAbstract())); processAttributeUses(complexType->getAttributeUses()); processAttributeWildcard(complexType->getAttributeWildcard()); sendIndentedElement(PSVIUni::fgContentType); sendElementValue(PSVIUni::fgVariety, translateComplexContentType(complexType->getContentType())); if (complexType->getSimpleType()==NULL) { sendElementEmpty(PSVIUni::fgSimpleTypeDefinition); } else { processSimpleTypeDefinitionOrRef(complexType->getSimpleType()); } processParticle(complexType->getParticle()); sendUnindentedElement(PSVIUni::fgContentType); sendElementValue(PSVIUni::fgProhibitedSubstitutions, translateBlockOrFinal(complexType->getProhibitedSubstitutions())); processAnnotations(complexType->getAnnotations()); sendUnindentedElement(PSVIUni::fgComplexTypeDefinition); } void PSVIWriterHandlers::processSimpleTypeDefinition(XSSimpleTypeDefinition* simpleType) { sendIndentedElementWithID(PSVIUni::fgSimpleTypeDefinition, (XSObject*) simpleType); if (simpleType->getAnonymous()) sendElementEmpty(PSVIUni::fgName); else sendElementValue(PSVIUni::fgName, simpleType->getName()); sendElementValue(PSVIUni::fgTargetNamespace, simpleType->getNamespace()); processTypeDefinitionOrRef(PSVIUni::fgBaseTypeDefinition, simpleType->getBaseType()); processTypeDefinitionOrRef(PSVIUni::fgPrimitiveTypeDefinition, simpleType->getPrimitiveType()); processFacets(simpleType->getFacets(), simpleType->getMultiValueFacets()); processFundamentalFacets(simpleType); sendElementValue(PSVIUni::fgFinal, translateBlockOrFinal(simpleType->getFinal())); sendElementValue(PSVIUni::fgVariety, translateSimpleTypeVariety(simpleType->getVariety())); processTypeDefinitionOrRef(PSVIUni::fgItemTypeDefinition, simpleType->getItemType()); processMemberTypeDefinitions(simpleType->getMemberTypes()); processAnnotations(simpleType->getAnnotations()); sendUnindentedElement(PSVIUni::fgSimpleTypeDefinition); } void PSVIWriterHandlers::processModelGroupDefinition(XSModelGroupDefinition* modelGroup) { if (modelGroup == NULL) { sendElementEmpty(PSVIUni::fgModelGroupDefinition); } else { sendIndentedElementWithID(PSVIUni::fgModelGroupDefinition, (XSObject*) modelGroup); sendElementValue(PSVIUni::fgName, modelGroup->getName()); sendElementValue(PSVIUni::fgTargetNamespace, modelGroup->getNamespace()); processModelGroup(modelGroup->getModelGroup()); processAnnotation(modelGroup->getAnnotation()); sendUnindentedElement(PSVIUni::fgModelGroupDefinition); } } void PSVIWriterHandlers::processAttributeGroupDefinition(XSAttributeGroupDefinition* attributeGroup) { if (attributeGroup == NULL) { sendElementEmpty(PSVIUni::fgAttributeGroupDefinition); } else { sendIndentedElementWithID(PSVIUni::fgAttributeGroupDefinition, (XSObject*) attributeGroup); sendElementValue(PSVIUni::fgName, attributeGroup->getName()); sendElementValue(PSVIUni::fgTargetNamespace, attributeGroup->getNamespace()); processAttributeUses(attributeGroup->getAttributeUses()); processAttributeWildcard(attributeGroup->getAttributeWildcard()); processAnnotation(attributeGroup->getAnnotation()); sendUnindentedElement(PSVIUni::fgAttributeGroupDefinition); } } void PSVIWriterHandlers::processElementDeclaration(XSElementDeclaration* element) { if (element == NULL) { sendElementEmpty(PSVIUni::fgElementDeclaration); } else { sendIndentedElementWithID(PSVIUni::fgElementDeclaration, (XSObject*) element); sendElementValue(PSVIUni::fgName, element->getName()); sendElementValue(PSVIUni::fgTargetNamespace, element->getNamespace()); processTypeDefinitionOrRef(PSVIUni::fgTypeDefinition, element->getTypeDefinition()); processScope(element->getEnclosingCTDefinition(), element->getScope()); processValueConstraint(element->getConstraintType(), element->getConstraintValue()); sendElementValue(PSVIUni::fgNillable, translateBool(element->getNillable())); processIdentityConstraintDefinition(element->getIdentityConstraints()); processElementDeclarationRef(PSVIUni::fgSubstitutionGroupAffiliation, element->getSubstitutionGroupAffiliation()); sendElementValue(PSVIUni::fgSubstitutionGroupExclusions, translateBlockOrFinal(element->getSubstitutionGroupExclusions())); sendElementValue(PSVIUni::fgDisallowedSubstitutions, translateBlockOrFinal(element->getDisallowedSubstitutions())); sendElementValue(PSVIUni::fgAbstract, translateBool(element->getAbstract())); processAnnotation(element->getAnnotation()); sendUnindentedElement(PSVIUni::fgElementDeclaration); } } void PSVIWriterHandlers::processAttributeDeclaration(XSAttributeDeclaration* attribute) { if (attribute == NULL) { sendElementEmpty(PSVIUni::fgAttributeDeclaration); } else { sendIndentedElementWithID(PSVIUni::fgAttributeDeclaration, (XSObject*) attribute); sendElementValue(PSVIUni::fgName, attribute->getName()); sendElementValue(PSVIUni::fgTargetNamespace, attribute->getNamespace()); sendIndentedElement(PSVIUni::fgTypeDefinition); processSimpleTypeDefinitionOrRef(attribute->getTypeDefinition()); sendUnindentedElement(PSVIUni::fgTypeDefinition); processScope(attribute->getEnclosingCTDefinition(), attribute->getScope()); processValueConstraint(attribute->getConstraintType(), attribute->getConstraintValue()); processAnnotation(attribute->getAnnotation()); sendUnindentedElement(PSVIUni::fgAttributeDeclaration); } } void PSVIWriterHandlers::processNotationDeclaration(XSNotationDeclaration* notation) { if (notation == NULL) { sendElementEmpty(PSVIUni::fgNotationDeclaration); } else { sendIndentedElementWithID(PSVIUni::fgNotationDeclaration, (XSObject*) notation); sendElementValue(PSVIUni::fgName, notation->getName()); sendElementValue(PSVIUni::fgTargetNamespace, notation->getNamespace()); sendElementValue(PSVIUni::fgSystemIdentifier, notation->getSystemId()); sendElementValue(PSVIUni::fgPublicIdentifier, notation->getPublicId()); processAnnotation(notation->getAnnotation()); sendUnindentedElement(PSVIUni::fgNotationDeclaration); } } void PSVIWriterHandlers::processAnnotations(XSAnnotationList* annotations) { if (annotations == NULL) { sendElementEmpty(PSVIUni::fgAnnotations); } else { sendIndentedElement(PSVIUni::fgAnnotations); for (unsigned int i = 0; i < annotations->size(); i++) { processAnnotation(annotations->elementAt(i)); } sendUnindentedElement(PSVIUni::fgAnnotations); } } void PSVIWriterHandlers::processAttributeUses(XSAttributeUseList* attributeUses) { if (attributeUses == NULL) { sendElementEmpty(PSVIUni::fgAttributeUses); } else { sendIndentedElement(PSVIUni::fgAttributeUses); XSAttributeUse* attrUse; for (unsigned int i=0; i < attributeUses->size(); i++) { attrUse = attributeUses->elementAt(i); sendIndentedElement(PSVIUni::fgAttributeUse); sendElementValue(PSVIUni::fgRequired, translateBool(attrUse->getRequired())); processAttributeDeclarationOrRef(attrUse->getAttrDeclaration()); processValueConstraint(attrUse->getConstraintType(), attrUse->getConstraintValue()); sendUnindentedElement(PSVIUni::fgAttributeUse); } sendUnindentedElement(PSVIUni::fgAttributeUses); } } void PSVIWriterHandlers::processFacets(XSFacetList* facets, XSMultiValueFacetList* multiFacets) { if (facets == NULL && multiFacets == NULL) { sendElementEmpty(PSVIUni::fgFacets); } else { sendIndentedElement(PSVIUni::fgFacets); if (facets != NULL) { for (unsigned int facetCount = 0; facetCount < facets->size(); facetCount++) { XSFacet* facet = facets->elementAt(facetCount); sendIndentedElement(translateFacet(facet->getFacetKind())); sendElementValue(PSVIUni::fgValue, facet->getLexicalFacetValue()); sendElementValue(PSVIUni::fgFixed, translateBool(facet->isFixed())); processAnnotation(facet->getAnnotation()); sendUnindentedElement(translateFacet(facet->getFacetKind())); } } if (multiFacets != NULL) { for (unsigned int multiFacetCount = 0; multiFacetCount < multiFacets->size(); multiFacetCount++) { XSMultiValueFacet* multiFacet = multiFacets->elementAt(multiFacetCount); sendIndentedElement(translateFacet(multiFacet->getFacetKind())); StringList* values = multiFacet->getLexicalFacetValues(); for (unsigned int i=0; i < values->size(); i++) { sendElementValue(PSVIUni::fgValue, values->elementAt(i)); } sendElementValue(PSVIUni::fgFixed, translateBool(multiFacet->isFixed())); processAnnotations(multiFacet->getAnnotations()); sendUnindentedElement(translateFacet(multiFacet->getFacetKind())); } } sendUnindentedElement(PSVIUni::fgFacets); } } void PSVIWriterHandlers::processFundamentalFacets(XSSimpleTypeDefinition* type) { sendIndentedElement(PSVIUni::fgFundamentalFacets); sendIndentedElement(PSVIUni::fgOrdered); sendElementValue(PSVIUni::fgValue, translateOrderedFacet(type->getOrdered())); sendUnindentedElement(PSVIUni::fgOrdered); sendIndentedElement(PSVIUni::fgBounded); sendElementValue(PSVIUni::fgValue, translateBool(type->getBounded())); sendUnindentedElement(PSVIUni::fgBounded); sendIndentedElement(PSVIUni::fgCardinality); sendElementValue(PSVIUni::fgValue, translateBool(type->getFinite())); sendUnindentedElement(PSVIUni::fgCardinality); sendIndentedElement(PSVIUni::fgNumeric); sendElementValue(PSVIUni::fgValue, translateBool(type->getNumeric())); sendUnindentedElement(PSVIUni::fgNumeric); sendUnindentedElement(PSVIUni::fgFundamentalFacets); } void PSVIWriterHandlers::processMemberTypeDefinitions(XSSimpleTypeDefinitionList* memberTypes) { if (memberTypes == NULL) { sendElementEmpty(PSVIUni::fgMemberTypeDefinitions); } else { sendIndentedElement(PSVIUni::fgMemberTypeDefinitions); for (unsigned int i = 0; i < memberTypes->size(); i++) { processTypeDefinitionOrRef(PSVIUni::fgMemberTypeDefinition, (XSTypeDefinition*)memberTypes->elementAt(i)); } sendUnindentedElement(PSVIUni::fgMemberTypeDefinitions); } } void PSVIWriterHandlers::processAnnotation(XSAnnotation* annotation) { if (annotation == NULL) { sendElementEmpty(PSVIUni::fgAnnotation); } else { XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument* document = DOMImplementationRegistry::getDOMImplementation(XMLUni::fgZeroLenString)-> createDocument(); annotation->writeAnnotation((DOMNode*)document, XSAnnotation::W3C_DOM_DOCUMENT); DOMElement* elem = document->getDocumentElement(); sendIndentedElement(PSVIUni::fgAnnotation); processDOMElement(PSVIUni::fgApplicationInformation, elem, PSVIUni::fgAppinfo); processDOMElement(PSVIUni::fgUserInformation, elem, PSVIUni::fgDocumentation); processDOMAttributes(elem->getAttributes()); sendUnindentedElement(PSVIUni::fgAnnotation); document->release(); } } void PSVIWriterHandlers::processDOMElement(const XMLCh* const encloseName, DOMElement* rootElem, const XMLCh* const elementName) { DOMNodeList* elems = rootElem->getElementsByTagNameNS(SchemaSymbols::fgURI_SCHEMAFORSCHEMA, elementName); if (elems->getLength()==0) { sendElementEmpty(encloseName); } else { sendIndentedElement(encloseName); for (unsigned int i=0; i < elems->getLength(); i++) { DOMElement* elem = (DOMElement*)elems->item(i); sendIndentedElement(PSVIUni::fgElement); sendElementValue(PSVIUni::fgNamespaceName, elem->getNamespaceURI()); sendElementValue(PSVIUni::fgLocalName, elem->getLocalName()); sendElementValue(PSVIUni::fgPrefix, elem->getPrefix()); sendIndentedElement(PSVIUni::fgChildren); sendIndentedElement(PSVIUni::fgCharacter); sendElementValue(PSVIUni::fgTextContent, elem->getTextContent()); sendUnindentedElement(PSVIUni::fgCharacter); sendUnindentedElement(PSVIUni::fgChildren); processDOMAttributes(elem->getAttributes()); sendUnindentedElement(PSVIUni::fgElement); } sendUnindentedElement(encloseName); } } void PSVIWriterHandlers::processDOMAttributes(DOMNamedNodeMap* attrs) { fNSAttributes->removeAllElements(); bool firstFlag = true; for (unsigned int count=0; count < attrs->getLength(); count++) { DOMAttr* attr = (DOMAttr*)attrs->item(count); if (XMLString::equals(attr->getNamespaceURI(), XMLUni::fgXMLNSURIName)) { fNSAttributes->addElement(count); } else { if (firstFlag) { sendIndentedElement(PSVIUni::fgAttributes); firstFlag = false; } sendIndentedElement(PSVIUni::fgAttribute); sendElementValue(PSVIUni::fgNamespaceName, attr->getNamespaceURI()); sendElementValue(PSVIUni::fgLocalName, attr->getLocalName()); sendElementValue(PSVIUni::fgPrefix, attr->getPrefix()); sendElementValue(PSVIUni::fgNormalizedValue, attr->getValue()); sendElementValue(PSVIUni::fgSpecified, translateBool(attr->getSpecified())); sendElementValue(PSVIUni::fgAttributeType, attr->getTypeInfo()->getName()); sendElementEmpty(PSVIUni::fgReferences); sendUnindentedElement(PSVIUni::fgAttribute); } } if (firstFlag) writeEmpty(PSVIUni::fgAttributes); else sendUnindentedElement(PSVIUni::fgAttributes); //now for namespace attributes if (fNSAttributes->size()==0) { writeEmpty(PSVIUni::fgNamespaceAttributes); } else { sendIndentedElement(PSVIUni::fgNamespaceAttributes); for (unsigned int NScount = 0; NScount < fNSAttributes->size(); NScount++) { DOMAttr* attr = (DOMAttr*)attrs->item(fNSAttributes->elementAt(NScount)); sendIndentedElement(PSVIUni::fgAttribute); sendElementValue(PSVIUni::fgNamespaceName, XMLUni::fgXMLNSURIName); sendElementValue(PSVIUni::fgLocalName, attr->getLocalName()); sendElementValue(PSVIUni::fgPrefix, attr->getPrefix()); sendElementValue(PSVIUni::fgNormalizedValue, attr->getValue()); sendElementValue(PSVIUni::fgSpecified, translateBool(attr->getSpecified())); sendElementValue(PSVIUni::fgAttributeType, attr->getTypeInfo()->getName()); sendElementEmpty(PSVIUni::fgReferences); sendUnindentedElement(PSVIUni::fgAttribute); } sendUnindentedElement(PSVIUni::fgNamespaceAttributes); } } void PSVIWriterHandlers::processWildcard(XSWildcard* wildcard) { if (wildcard == NULL) { sendElementEmpty(PSVIUni::fgWildcard); } else { sendIndentedElement(PSVIUni::fgWildcard); sendIndentedElement(PSVIUni::fgNamespaceConstraint); if (wildcard->getConstraintType()==XSWildcard::NSCONSTRAINT_ANY) { sendElementValue(PSVIUni::fgVariety, PSVIUni::fgAny); sendElementEmpty(PSVIUni::fgNamespaces); } else { if (wildcard->getConstraintType()==XSWildcard::NSCONSTRAINT_DERIVATION_LIST) { sendElementEmpty(PSVIUni::fgVariety); sendElementValueList(PSVIUni::fgNamespaces, wildcard->getNsConstraintList()); } else { //NSCONSTRAINT_NOT sendElementValue(PSVIUni::fgVariety, PSVIUni::fgNot); sendElementValueList(PSVIUni::fgNamespaces, wildcard->getNsConstraintList()); } } sendUnindentedElement(PSVIUni::fgNamespaceConstraint); sendElementValue(PSVIUni::fgProcessContents, translateProcessContents(wildcard->getProcessContents())); processAnnotation(wildcard->getAnnotation()); sendUnindentedElement(PSVIUni::fgWildcard); } } void PSVIWriterHandlers::processModelGroup(XSModelGroup* modelGroup) { if (modelGroup == NULL) { sendElementEmpty(PSVIUni::fgModelGroup); } else { sendIndentedElement(PSVIUni::fgModelGroup); sendElementValue(PSVIUni::fgCompositor, translateCompositor(modelGroup->getCompositor())); sendIndentedElement(PSVIUni::fgParticles); for (unsigned int i=0; i < modelGroup->getParticles()->size(); i++) { processParticle(modelGroup->getParticles()->elementAt(i)); } sendUnindentedElement(PSVIUni::fgParticles); processAnnotation(modelGroup->getAnnotation()); sendUnindentedElement(PSVIUni::fgModelGroup); } } void PSVIWriterHandlers::processParticle(XSParticle* particle) { if (particle == NULL) { sendElementEmpty(PSVIUni::fgParticle); } else { sendIndentedElement(PSVIUni::fgParticle); sendElementValueInt(PSVIUni::fgMinOccurs, particle->getMinOccurs()); if (particle->getMaxOccursUnbounded()) { sendElementValue(PSVIUni::fgMaxOccurs, PSVIUni::fgUnbounded); } else { sendElementValueInt(PSVIUni::fgMaxOccurs,particle->getMaxOccurs()); } sendIndentedElement(PSVIUni::fgTerm); switch (particle->getTermType()) { case XSParticle::TERM_ELEMENT: processElementDeclarationOrRef(particle->getElementTerm()); break; case XSParticle::TERM_MODELGROUP: processModelGroup(particle->getModelGroupTerm()); break; case XSParticle::TERM_WILDCARD: processWildcard(particle->getWildcardTerm()); } sendUnindentedElement(PSVIUni::fgTerm); sendUnindentedElement(PSVIUni::fgParticle); } } void PSVIWriterHandlers::processAttributeWildcard(XSWildcard* wildcard) { if (wildcard == NULL) { sendElementEmpty(PSVIUni::fgAttributeWildcard); } else { sendIndentedElement(PSVIUni::fgAttributeWildcard); processWildcard(wildcard); sendUnindentedElement(PSVIUni::fgAttributeWildcard); } } void PSVIWriterHandlers::processScope(XSComplexTypeDefinition* enclosingCTD, short scope) { switch (scope) { case XSConstants::SCOPE_ABSENT: sendElementEmpty(PSVIUni::fgScope); break; case XSConstants::SCOPE_LOCAL: sendIndentedElement(PSVIUni::fgScope); sendReference(PSVIUni::fgComplexTypeDefinition, enclosingCTD); sendUnindentedElement(PSVIUni::fgScope); break; case XSConstants::SCOPE_GLOBAL: sendElementValue(PSVIUni::fgScope, PSVIUni::fgGlobal); } } void PSVIWriterHandlers::processValueConstraint(XSConstants::VALUE_CONSTRAINT valueConstraintType, const XMLCh* constraintValue) { if (valueConstraintType == XSConstants::VALUE_CONSTRAINT_NONE) { sendElementEmpty(PSVIUni::fgValueConstraint); } else { sendIndentedElement(PSVIUni::fgValueConstraint); sendElementValue(PSVIUni::fgVariety, translateValueConstraint(valueConstraintType)); sendElementValue(PSVIUni::fgValue, constraintValue); sendUnindentedElement(PSVIUni::fgValueConstraint); } } void PSVIWriterHandlers::processIdentityConstraintDefinition(XSNamedMap<XSIDCDefinition>* idConstraint) { if (idConstraint == NULL) { sendElementEmpty(PSVIUni::fgIdentityConstraintDefinitions); } else { sendIndentedElement(PSVIUni::fgIdentityConstraintDefinitions); for (unsigned int i=0; i < idConstraint->getLength(); i++) { XSIDCDefinition* constraint = idConstraint->item(i); sendIndentedElementWithID(PSVIUni::fgIdentityConstraintDefinition, (XSObject*) constraint); sendElementValue(PSVIUni::fgName, constraint->getName()); sendElementValue(PSVIUni::fgTargetNamespace, constraint->getNamespace()); sendElementValue(PSVIUni::fgIdentityConstraintCategory, translateIdConstraintCategory(constraint->getCategory())); sendIndentedElement(PSVIUni::fgSelector); processXPath(constraint->getSelectorStr()); sendUnindentedElement(PSVIUni::fgSelector); processFields(constraint->getFieldStrs()); sendReference(PSVIUni::fgReferencedKey, constraint->getRefKey()); processAnnotations(constraint->getAnnotations()); sendUnindentedElement(PSVIUni::fgIdentityConstraintDefinition); } sendUnindentedElement(PSVIUni::fgIdentityConstraintDefinitions); } } void PSVIWriterHandlers::processFields(StringList* fields) { sendIndentedElement(PSVIUni::fgFields); for (unsigned int i=0; i < fields->size(); i++) { processXPath(fields->elementAt(i)); } sendUnindentedElement(PSVIUni::fgFields); } void PSVIWriterHandlers::processXPath(const XMLCh* xpath) { sendIndentedElement(PSVIUni::fgXpath); sendElementValue(PSVIUni::fgXpath, xpath); sendUnindentedElement(PSVIUni::fgXpath); } void PSVIWriterHandlers::processChildren() { if (!fElementChildren->empty() && !fElementChildren->peek()) { fElementChildren->pop(); sendIndentedElement(PSVIUni::fgChildren); fElementChildren->push(true); } } void PSVIWriterHandlers::processChildrenEnd() { if (fElementChildren->pop()) { sendUnindentedElement(PSVIUni::fgChildren); } else { writeEmpty(PSVIUni::fgChildren); } } void PSVIWriterHandlers::processTypeDefinitionOrRef(const XMLCh* enclose, XSTypeDefinition* type) { if (type==NULL) { sendElementEmpty(enclose); } else { sendIndentedElement(enclose); if (type->getAnonymous() && !(fDefinedIds->containsElement(type))) { processTypeDefinition(type); } else { if (type->getTypeCategory() == XSTypeDefinition::SIMPLE_TYPE) { sendReference(PSVIUni::fgSimpleTypeDefinition, type); } else { sendReference(PSVIUni::fgComplexTypeDefinition, type); } } sendUnindentedElement(enclose); } } void PSVIWriterHandlers::processSimpleTypeDefinitionOrRef(XSSimpleTypeDefinition* type) { if (type==NULL) { sendElementEmpty(PSVIUni::fgSimpleTypeDefinition); } else { if (type->getAnonymous() && !(fDefinedIds->containsElement(type))) { processSimpleTypeDefinition(type); } else { sendReference(PSVIUni::fgSimpleTypeDefinition, type); } } } void PSVIWriterHandlers::processAttributeDeclarationOrRef(XSAttributeDeclaration* attrDecl) { if (attrDecl==NULL) { sendElementEmpty(PSVIUni::fgAttributeDeclaration); } else { if (fDefinedIds->containsElement(attrDecl) || (attrDecl->getScope() == XSConstants::SCOPE_GLOBAL)) { sendReference(PSVIUni::fgAttributeDeclaration, attrDecl); } else { processAttributeDeclaration(attrDecl); } } } void PSVIWriterHandlers::processElementDeclarationOrRef(XSElementDeclaration* elemDecl) { if (elemDecl==NULL) { sendElementEmpty(PSVIUni::fgElementDeclaration); } else { if (fDefinedIds->containsElement(elemDecl) || (elemDecl->getScope() == XSConstants::SCOPE_GLOBAL)) { sendReference(PSVIUni::fgElementDeclaration, elemDecl); } else { processElementDeclaration(elemDecl); } } } void PSVIWriterHandlers::processTypeDefinitionRef(const XMLCh* enclose, XSTypeDefinition* type) { if (type==NULL) { sendElementEmpty(enclose); } else { sendIndentedElement(enclose); if (type->getTypeCategory() == XSTypeDefinition::SIMPLE_TYPE) { sendReference(PSVIUni::fgSimpleTypeDefinition, type); } else { sendReference(PSVIUni::fgComplexTypeDefinition, type); } sendUnindentedElement(enclose); } } void PSVIWriterHandlers::processAttributeDeclarationRef(const XMLCh* enclose, XSAttributeDeclaration* attrDecl) { if (attrDecl == NULL) { sendElementEmpty(PSVIUni::fgDeclaration); } else { sendIndentedElement(PSVIUni::fgDeclaration); sendReference(PSVIUni::fgAttributeDeclaration, attrDecl); sendUnindentedElement(PSVIUni::fgDeclaration); } } void PSVIWriterHandlers::processElementDeclarationRef(const XMLCh* enclose, XSElementDeclaration* elemDecl) { if (elemDecl==NULL) { sendElementEmpty(enclose); } else { sendIndentedElement(enclose); sendReference(PSVIUni::fgElementDeclaration, elemDecl); sendUnindentedElement(enclose); } } void PSVIWriterHandlers::sendReference(const XMLCh* elementName, XSObject* obj) { if (obj==NULL) { sendElementEmpty(elementName); } else { fAttrList->removeAllElements(); fAttrList->addElement((XMLCh*)gRef); fAttrList->addElement((XMLCh*)getIdName(obj)); fAttrList->addElement((XMLCh*)fgXsiNil); fAttrList->addElement((XMLCh*)PSVIUni::fgTrue); writeEmpty(elementName, fAttrList); } } void PSVIWriterHandlers::sendElementEmpty(const XMLCh* const elementName) { fAttrList->removeAllElements(); fAttrList->addElement((XMLCh*)fgXsiNil); fAttrList->addElement((XMLCh*)PSVIUni::fgTrue); writeEmpty(elementName, fAttrList); } void PSVIWriterHandlers::sendElementValueInt(const XMLCh* elementName, int value) { XMLString::binToText(value, fTempResult, 50, 10); writeValue(elementName, fTempResult); } void PSVIWriterHandlers::sendElementValue(const XMLCh* const elementName, const XMLCh* const value) { if (value==NULL || XMLString::equals(value, XMLUni::fgZeroLenString)) { sendElementEmpty(elementName); } else { writeValue(elementName, value); } } void PSVIWriterHandlers::sendElementValueList(const XMLCh* const elementName, const StringList* values) { if (values==NULL) { sendElementEmpty(elementName); } else { writeValue(elementName, values); } } void PSVIWriterHandlers::sendIndentedElement(const XMLCh* const elementName) { writeOpen(elementName); incIndent(); } void PSVIWriterHandlers::sendIndentedElementWithID(const XMLCh* elementName, XSObject* obj) { fDefinedIds->addElement(obj); fAttrList->removeAllElements(); fAttrList->addElement((XMLCh*)gId); fAttrList->addElement((XMLCh*)getIdName(obj)); writeOpen(elementName, fAttrList); incIndent(); } void PSVIWriterHandlers::sendUnindentedElement(const XMLCh* elementName) { decIndent(); writeClose(elementName); } void PSVIWriterHandlers::writeOpen(const XMLCh* const elementName) { *fFormatter << XMLFormatter::NoEscapes << fIndentChars << chOpenAngle << elementName << gAngleFeed; } void PSVIWriterHandlers::writeOpen(const XMLCh* const elementName, const StringList* const attrs) { *fFormatter << XMLFormatter::NoEscapes << fIndentChars << chOpenAngle << elementName ; for (unsigned int i=0; i < attrs->size(); i+=2 ) { *fFormatter << XMLFormatter::NoEscapes << chSpace << attrs->elementAt(i) << gEqualsQuote << XMLFormatter::AttrEscapes << attrs->elementAt(i+1) << XMLFormatter::NoEscapes << chDoubleQuote ; } *fFormatter << XMLFormatter::NoEscapes << gAngleFeed; } void PSVIWriterHandlers::writeClose(const XMLCh* const elementName) { *fFormatter << XMLFormatter::NoEscapes << fIndentChars << gAngleSlash << elementName << gAngleFeed; } void PSVIWriterHandlers::writeValue(const XMLCh* const elementName, const XMLCh* const value) { *fFormatter << XMLFormatter::NoEscapes << fIndentChars << chOpenAngle << elementName << chCloseAngle << XMLFormatter::CharEscapes << value << XMLFormatter::NoEscapes << gAngleSlash << elementName << gAngleFeed ; } void PSVIWriterHandlers::writeValue(const XMLCh* const elementName, const StringList* values) { *fFormatter << XMLFormatter::NoEscapes << fIndentChars << chOpenAngle << elementName << chCloseAngle; for (unsigned int i=0; i < values->size(); i++) { *fFormatter << XMLFormatter::CharEscapes << values->elementAt(i) << chSpace; } *fFormatter << XMLFormatter::NoEscapes << gAngleSlash << elementName << gAngleFeed ; } void PSVIWriterHandlers::writeEmpty(const XMLCh* const elementName, const StringList* const attrs) { *fFormatter << XMLFormatter::NoEscapes << fIndentChars << chOpenAngle << elementName ; for (unsigned int i=0; i < attrs->size(); i+=2 ) { *fFormatter << XMLFormatter::NoEscapes << chSpace << attrs->elementAt(i) << gEqualsQuote << XMLFormatter::AttrEscapes << attrs->elementAt(i+1) << XMLFormatter::NoEscapes << chDoubleQuote ; } *fFormatter << XMLFormatter::NoEscapes << gSlashAngleFeed ; } void PSVIWriterHandlers::writeEmpty(const XMLCh* const elementName) { *fFormatter << XMLFormatter::NoEscapes << fIndentChars << chOpenAngle << elementName << gSlashAngleFeed ; } void PSVIWriterHandlers::writeString(const XMLCh* const string) { *fFormatter << XMLFormatter::NoEscapes << fIndentChars << string; } const XMLCh* PSVIWriterHandlers::translateScope(XSConstants::SCOPE scope) { switch (scope) { case XSConstants::SCOPE_ABSENT : return NULL; case XSConstants::SCOPE_GLOBAL : return PSVIUni::fgGlobal; case XSConstants::SCOPE_LOCAL : return PSVIUni::fgLocal; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateValueConstraint(XSConstants::VALUE_CONSTRAINT constraintKind) { switch (constraintKind) { case XSConstants::VALUE_CONSTRAINT_DEFAULT : return PSVIUni::fgDefault; case XSConstants::VALUE_CONSTRAINT_FIXED : return PSVIUni::fgFixed; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateBlockOrFinal(short val) { XMLString::copyString(fTempResult, XMLUni::fgZeroLenString); if ((val & XSConstants::DERIVATION_EXTENSION) != 0) { XMLString::catString(fTempResult, PSVIUni::fgExtension); } if ((val & XSConstants::DERIVATION_RESTRICTION) != 0) { if (XMLString::stringLen(fTempResult) != 0) XMLString::catString(fTempResult, fgSpace); XMLString::catString(fTempResult, PSVIUni::fgRestriction); } if ((val & XSConstants::DERIVATION_LIST) != 0) { if (XMLString::stringLen(fTempResult) != 0) XMLString::catString(fTempResult, fgSpace); XMLString::catString(fTempResult, PSVIUni::fgList); } if ((val & XSConstants::DERIVATION_UNION) != 0) { if (XMLString::stringLen(fTempResult) != 0) XMLString::catString(fTempResult, fgSpace); XMLString::catString(fTempResult, PSVIUni::fgUnion); } if ((val & XSConstants::DERIVATION_SUBSTITUTION) != 0) { if (XMLString::stringLen(fTempResult) != 0) XMLString::catString(fTempResult, fgSpace); XMLString::catString(fTempResult, PSVIUni::fgSubstitution); } return fTempResult; } const XMLCh* PSVIWriterHandlers::translateDerivationMethod(XSConstants::DERIVATION_TYPE derivation) { switch (derivation) { case XSConstants::DERIVATION_EXTENSION : return PSVIUni::fgExtension; case XSConstants::DERIVATION_LIST : return PSVIUni::fgList; case XSConstants::DERIVATION_RESTRICTION : return PSVIUni::fgRestriction; case XSConstants::DERIVATION_SUBSTITUTION : return PSVIUni::fgSubstitution; case XSConstants::DERIVATION_UNION : return PSVIUni::fgUnion; case XSConstants::DERIVATION_NONE : return NULL; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateProcessContents(XSWildcard::PROCESS_CONTENTS processContents) { switch (processContents) { case XSWildcard::PC_LAX : return PSVIUni::fgLax; case XSWildcard::PC_SKIP : return PSVIUni::fgSkip; case XSWildcard::PC_STRICT : return PSVIUni::fgStrict; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateCompositor(XSModelGroup::COMPOSITOR_TYPE compositor) { switch (compositor) { case XSModelGroup::COMPOSITOR_SEQUENCE : return PSVIUni::fgSequence; case XSModelGroup::COMPOSITOR_CHOICE : return PSVIUni::fgChoice; case XSModelGroup::COMPOSITOR_ALL : return PSVIUni::fgAll; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateValidity(PSVIItem::VALIDITY_STATE validity) { switch (validity) { case PSVIItem::VALIDITY_NOTKNOWN : return PSVIUni::fgNotKnown; case PSVIItem::VALIDITY_VALID : return PSVIUni::fgValid; case PSVIItem::VALIDITY_INVALID : return PSVIUni::fgInvalid; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateValidationAttempted(PSVIItem::ASSESSMENT_TYPE validation) { switch (validation) { case PSVIItem::VALIDATION_NONE : return PSVIUni::fgNone; case PSVIItem::VALIDATION_PARTIAL : return PSVIUni::fgPartial; case PSVIItem::VALIDATION_FULL : return PSVIUni::fgFull; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateIdConstraintCategory(XSIDCDefinition::IC_CATEGORY category) { switch (category) { case XSIDCDefinition::IC_KEY : return PSVIUni::fgKey; case XSIDCDefinition::IC_KEYREF : return PSVIUni::fgKeyref; case XSIDCDefinition::IC_UNIQUE : return PSVIUni::fgUnique; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateComplexContentType(XSComplexTypeDefinition::CONTENT_TYPE contentType) { switch (contentType) { case XSComplexTypeDefinition::CONTENTTYPE_ELEMENT : return PSVIUni::fgElementOnly; case XSComplexTypeDefinition::CONTENTTYPE_EMPTY : return PSVIUni::fgEmpty; case XSComplexTypeDefinition::CONTENTTYPE_MIXED : return PSVIUni::fgMixed; case XSComplexTypeDefinition::CONTENTTYPE_SIMPLE : return PSVIUni::fgSimple; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateSimpleTypeVariety(XSSimpleTypeDefinition::VARIETY variety) { switch (variety) { case XSSimpleTypeDefinition::VARIETY_LIST : return PSVIUni::fgList; case XSSimpleTypeDefinition::VARIETY_UNION : return PSVIUni::fgUnion; case XSSimpleTypeDefinition::VARIETY_ATOMIC : return PSVIUni::fgAtomic; case XSSimpleTypeDefinition::VARIETY_ABSENT : return NULL; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateOrderedFacet(XSSimpleTypeDefinition::ORDERING ordered) { switch (ordered) { case XSSimpleTypeDefinition::ORDERED_FALSE: return PSVIUni::fgFalse; case XSSimpleTypeDefinition::ORDERED_PARTIAL: return PSVIUni::fgPartial; case XSSimpleTypeDefinition::ORDERED_TOTAL: return PSVIUni::fgTotal; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateFacet(XSSimpleTypeDefinition::FACET facetKind) { switch (facetKind) { case XSSimpleTypeDefinition::FACET_WHITESPACE : return PSVIUni::fgWhiteSpace; case XSSimpleTypeDefinition::FACET_LENGTH : return PSVIUni::fgLength; case XSSimpleTypeDefinition::FACET_MINLENGTH : return PSVIUni::fgMinLength; case XSSimpleTypeDefinition::FACET_MAXLENGTH : return PSVIUni::fgMaxLength; case XSSimpleTypeDefinition::FACET_TOTALDIGITS : return PSVIUni::fgTotalDigits; case XSSimpleTypeDefinition::FACET_FRACTIONDIGITS : return PSVIUni::fgFractionDigits; case XSSimpleTypeDefinition::FACET_PATTERN : return PSVIUni::fgPattern; case XSSimpleTypeDefinition::FACET_ENUMERATION : return PSVIUni::fgEnumeration; case XSSimpleTypeDefinition::FACET_MAXINCLUSIVE : return PSVIUni::fgMaxInclusive; case XSSimpleTypeDefinition::FACET_MAXEXCLUSIVE : return PSVIUni::fgMaxExclusive; case XSSimpleTypeDefinition::FACET_MINEXCLUSIVE : return PSVIUni::fgMinExclusive; case XSSimpleTypeDefinition::FACET_MININCLUSIVE : return PSVIUni::fgMinInclusive; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateComponentType(XSConstants::COMPONENT_TYPE type) { switch (type) { case XSConstants::TYPE_DEFINITION : return PSVIUni::fgType; case XSConstants::ANNOTATION : return PSVIUni::fgAnnot; case XSConstants::ATTRIBUTE_DECLARATION : return PSVIUni::fgAttr; case XSConstants::ATTRIBUTE_GROUP_DEFINITION : return PSVIUni::fgAg; case XSConstants::ATTRIBUTE_USE : return PSVIUni::fgAu; case XSConstants::ELEMENT_DECLARATION : return PSVIUni::fgElt; case XSConstants::MODEL_GROUP_DEFINITION : return PSVIUni::fgMg; case XSConstants::NOTATION_DECLARATION : return PSVIUni::fgNot; case XSConstants::IDENTITY_CONSTRAINT : return PSVIUni::fgIdc; default : return PSVIUni::fgUnknown; } } const XMLCh* PSVIWriterHandlers::translateBool(bool flag) { return (flag ? PSVIUni::fgTrue : PSVIUni::fgFalse); } XMLCh* PSVIWriterHandlers::createID(XSObject* obj) { const XMLCh* objPrefix = fPrefixMap->get(obj->getNamespace()); XMLCh* result = new XMLCh[100]; if (XMLString::equals(obj->getNamespace(), PSVIUni::fgNamespaceXmlSchema)) { XMLString::copyString(result, obj->getName()); } else { const XMLCh period[] = { chPeriod, chNull }; XMLCh anonNum[6]; bool hasPrefix = objPrefix!=NULL && XMLString::stringLen(objPrefix)!=0; if (hasPrefix) { XMLString::copyString(result, objPrefix); XMLString::catString(result, period); XMLString::catString(result, translateComponentType(obj->getType())); } else { XMLString::copyString(result, translateComponentType(obj->getType())); } XMLString::catString(result, period); if (obj->getType()==XSConstants::TYPE_DEFINITION && ((XSTypeDefinition*)obj)->getAnonymous()) { const XMLCh anon[] = { chLatin_a, chLatin_n, chLatin_o, chLatin_n, chUnderscore, chNull }; XMLString::catString(result, anon); XMLString::binToText(fAnonNum, anonNum, 5, 10); XMLString::catString(result, anonNum); fAnonNum++; } else { XMLString::catString(result, obj->getName()); if (!hasPrefix) { XMLString::catString(result, period); XMLString::binToText(fAnonNum, anonNum, 5, 10); XMLString::catString(result, anonNum); fAnonNum++; } } } fIdNames->addElement(result); return result; } const XMLCh* PSVIWriterHandlers::getIdName(XSObject* obj) { XMLCh* objLoc = new XMLCh[9]; XMLString::binToText((unsigned long)obj, objLoc, 8, 16); XMLCh* idName = fIdMap->get(objLoc); if (!idName) { idName = createID(obj); fIdMap->put(objLoc, idName); fObjectLocations->addElement(objLoc); } else { delete objLoc; } return idName; } void PSVIWriterHandlers::incIndent() { XMLCh tab[] = {chHTab, chNull}; if (fIndent >= fIndentCap) { fIndentCap *= 2; XMLCh* temp = (XMLCh*) XMLPlatformUtils::fgMemoryManager->allocate((fIndentCap+1)*sizeof(XMLCh)); XMLString::copyString(temp, fIndentChars); XMLPlatformUtils::fgMemoryManager->deallocate(fIndentChars); fIndentChars = temp; } XMLString::catString(fIndentChars, tab); fIndent++; } void PSVIWriterHandlers::decIndent() { fIndentChars[XMLString::stringLen(fIndentChars)-1] = chNull; fIndent--; } /*** * yyyy-mm-ddThh:mm:ss.sssss ***/ void PSVIWriterHandlers::formDateTime(XSValue* obj) { char buffer[1024]; memset(buffer, 0, sizeof buffer); sprintf(buffer, "%d-%d-%dT%d:%d:%f", obj->fData.fValue.f_datetime.f_year , obj->fData.fValue.f_datetime.f_month , obj->fData.fValue.f_datetime.f_day , obj->fData.fValue.f_datetime.f_hour , obj->fData.fValue.f_datetime.f_min , obj->fData.fValue.f_datetime.f_second + obj->fData.fValue.f_datetime.f_milisec); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } /*** * <actualValue> * <dataType>unsignedShort</dataType> * <dataValue>0</dataValue> * </actualValue> ***/ void PSVIWriterHandlers::processActualValue(PSVIItem* item) { if (!item) return; XSValue* obj = item->getActualValue(); if (obj) { char buffer[1024]; writeString(gCommentStart); incIndent(); writeOpen(gActualValue); incIndent(); switch (obj->fData.f_datatype) { case XSValue::dt_boolean: { writeValue(gDataType, SchemaSymbols::fgDT_BOOLEAN); writeValue(gDataValue, XMLUni::fgBooleanValueSpace[obj->fData.fValue.f_bool? 0: 1]); } break; case XSValue::dt_decimal: { writeValue(gDataType, SchemaSymbols::fgDT_DECIMAL); sprintf( buffer,"%f", obj->fData.fValue.f_decimal.f_dvalue); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_float: { writeValue(gDataType, SchemaSymbols::fgDT_FLOAT); sprintf( buffer,"%f", obj->fData.fValue.f_float); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_double: { writeValue(gDataType, SchemaSymbols::fgDT_DOUBLE); sprintf( buffer,"%f", obj->fData.fValue.f_double); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_duration: { writeValue(gDataType, SchemaSymbols::fgDT_DURATION); formDateTime(obj); } break; case XSValue::dt_dateTime: { writeValue(gDataType, SchemaSymbols::fgDT_DATETIME); formDateTime(obj); } break; case XSValue::dt_time: { writeValue(gDataType, SchemaSymbols::fgDT_TIME); formDateTime(obj); } break; case XSValue::dt_date: { writeValue(gDataType, SchemaSymbols::fgDT_DATE); formDateTime(obj); } break; case XSValue::dt_gYearMonth: { writeValue(gDataType, SchemaSymbols::fgDT_YEARMONTH); formDateTime(obj); } break; case XSValue::dt_gYear: { writeValue(gDataType, SchemaSymbols::fgDT_YEAR); formDateTime(obj); } break; case XSValue::dt_gMonthDay: { writeValue(gDataType, SchemaSymbols::fgDT_MONTHDAY); formDateTime(obj); } break; case XSValue::dt_gDay: { writeValue(gDataType, SchemaSymbols::fgDT_DAY); formDateTime(obj); } break; case XSValue::dt_gMonth: { writeValue(gDataType, SchemaSymbols::fgDT_MONTH); formDateTime(obj); } break; case XSValue::dt_hexBinary: { writeValue(gDataType, SchemaSymbols::fgDT_HEXBINARY); writeValue(gDataValue, obj->fData.fValue.f_strVal); } break; case XSValue::dt_base64Binary: { writeValue(gDataType, SchemaSymbols::fgDT_BASE64BINARY); writeValue(gDataValue, obj->fData.fValue.f_strVal); } break; case XSValue::dt_integer: { writeValue(gDataType, SchemaSymbols::fgDT_INTEGER); sprintf( buffer,"%d", obj->fData.fValue.f_long); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_nonPositiveInteger: { writeValue(gDataType, SchemaSymbols::fgDT_NONPOSITIVEINTEGER); sprintf( buffer,"%d", obj->fData.fValue.f_long); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_negativeInteger: { writeValue(gDataType, SchemaSymbols::fgDT_NEGATIVEINTEGER); sprintf( buffer,"%d", obj->fData.fValue.f_long); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_long: { writeValue(gDataType, SchemaSymbols::fgDT_LONG); sprintf( buffer,"%d", obj->fData.fValue.f_long); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_int: { writeValue(gDataType, SchemaSymbols::fgDT_INT); sprintf( buffer,"%d", obj->fData.fValue.f_int); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_short: { writeValue(gDataType, SchemaSymbols::fgDT_SHORT); sprintf( buffer,"%d", obj->fData.fValue.f_short); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_byte: { writeValue(gDataType, SchemaSymbols::fgDT_BYTE); sprintf( buffer,"%d", obj->fData.fValue.f_char); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_nonNegativeInteger: { writeValue(gDataType, SchemaSymbols::fgDT_NONNEGATIVEINTEGER); sprintf( buffer,"%u", obj->fData.fValue.f_long); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_unsignedLong: { writeValue(gDataType, SchemaSymbols::fgDT_ULONG); sprintf( buffer,"%u", obj->fData.fValue.f_ulong); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_unsignedInt: { writeValue(gDataType, SchemaSymbols::fgDT_UINT); sprintf( buffer,"%u", obj->fData.fValue.f_uint); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_unsignedShort: { writeValue(gDataType, SchemaSymbols::fgDT_USHORT); sprintf( buffer,"%u", obj->fData.fValue.f_ushort); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_unsignedByte: { writeValue(gDataType, SchemaSymbols::fgDT_UBYTE); sprintf( buffer,"%u", obj->fData.fValue.f_uchar); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_positiveInteger: { writeValue(gDataType, SchemaSymbols::fgDT_POSITIVEINTEGER); sprintf( buffer,"%u", obj->fData.fValue.f_long); XMLCh *value = XMLString::transcode(buffer); ArrayJanitor<XMLCh> jan(value); writeValue(gDataValue, value); } break; case XSValue::dt_string: case XSValue::dt_anyURI: case XSValue::dt_QName: case XSValue::dt_NOTATION: case XSValue::dt_normalizedString: case XSValue::dt_token: case XSValue::dt_language: case XSValue::dt_NMTOKEN: case XSValue::dt_NMTOKENS: case XSValue::dt_Name: case XSValue::dt_NCName: case XSValue::dt_ID: case XSValue::dt_IDREF: case XSValue::dt_IDREFS: case XSValue::dt_ENTITY: case XSValue::dt_ENTITIES: break; //we shouldn't see them default: break; } decIndent(); writeClose(gActualValue); decIndent(); writeString(gCommentEnd); } delete obj; }
[ [ [ 1, 1938 ] ] ]
7d051ca00f7b6e1da513facb242324ae583ae986
51574a600a87ecfaaec8ea0e46b3809884859680
/MotionPlan/QuadNavRectMapView.h
d7d3ebab40ebd963d1315e99f17a21de3487d05a
[]
no_license
suilevap/motion-plan
b5ad60a8448b118c3742c8c9c42b29fd5e41ef3e
d9f5693938287f2179ca2cb4eb75bda51b97bbb0
refs/heads/master
2021-01-10T03:29:50.373970
2011-12-20T22:39:55
2011-12-20T22:39:55
49,495,165
0
0
null
null
null
null
UTF-8
C++
false
false
2,096
h
#pragma once #ifndef MOTIONPLAN_QUADNAVRECTMAPVIEW_H_ #define MOTIONPLAN_QUADNAVRECTMAPVIEW_H_ #include <vector> #include "NavigationRectangle.h" #include "NavRectMapView.h" #include "GridMapView.h" #include "Rectangle.h" template<class CellType, typename CoordType = float, bool UseFastNodeSearch = false> class QuadNavRectMapView: public AStar::NavRectMapView<CellType, CoordType> { typedef AStar::NavRectMapView<CellType, CoordType> base; protected: class QuadTreeNode { public: int NavRectId; QuadTreeNode* Childs[4]; QuadTreeNode* GetChild(Point<CoordType>& point, Point<CoordType>& center) { int i = (point.X >= center.X ? 1 : 0) + (point.Y >= center.Y ? 1 : 0)*2; return Childs[i]; } QuadTreeNode() { NavRectId = -1; for (int i =0; i <4; i++) { Childs[i] = NULL; } } ~QuadTreeNode() { for (int i = 0; i <4; i++) { if (Childs[i] != NULL) { delete Childs[i]; } } } }; QuadTreeNode* _root; Point<CoordType> _cellSize; GridMapView<int, CoordType>* _fastNodeSearch; std::vector<AStar::Rectangle<CoordType>> LoadFrom(GridMapView<CellType, CoordType>* map); QuadTreeNode* AddQuadsFrom(Point<CoordType> point1, Point<CoordType> point2, std::vector<AStar::Rectangle<CoordType>>* rects, GridMapView<CellType, CoordType>* map); QuadNavRectMapView() {} public: virtual int GetNode(Point<CoordType>& point); static QuadNavRectMapView<CellType, CoordType, UseFastNodeSearch>* Create(GridMapView<CellType, CoordType>* fromMap); ~QuadNavRectMapView() { delete _root; if (UseFastNodeSearch) { delete _fastNodeSearch; } } }; #include "QuadNavRectMapView.inl" #endif//MOTIONPLAN_QUADNAVRECTMAPVIEW_H_
[ "suilevap@localhost", "[email protected]" ]
[ [ [ 1, 13 ], [ 15, 18 ], [ 20, 20 ], [ 58, 58 ], [ 63, 63 ], [ 65, 69 ], [ 79, 83 ] ], [ [ 14, 14 ], [ 19, 19 ], [ 21, 57 ], [ 59, 62 ], [ 64, 64 ], [ 70, 78 ] ] ]
a5828fb64953f5aae8eb245e0ce0840a91655a06
111599781f886c42099cb9f4ccadff397cab51e8
/ColumnHeader.h
623fe80dc0ce715dc5f806fd8a9bd47aabb797f2
[]
no_license
victorliu/ColumnViewBrowser
6fd5f02cc37b4834aec59c736d3b9006ba3fc183
a37b8bcf272c125041492b681bdb280f051fa478
refs/heads/master
2020-05-29T17:30:33.683440
2011-02-05T10:45:03
2011-02-05T10:45:03
528,279
2
0
null
null
null
null
UTF-8
C++
false
false
1,006
h
#pragma once // The display text is kept in the window text (use SetWindowText) class CColumnHeader : public CWindowImpl<CColumnHeader> { protected: int m_nDesiredHeight; static const int m_nPadding = 1; BOOL m_bActive; public: DECLARE_WND_CLASS_EX(_T("ColumnPaneHeader"), 0, -1) enum{ m_NotifyCodeResize = 1 }; typedef struct{ int nMinHeight; } CreateParams, *LPCREATEPARAMS; BEGIN_MSG_MAP_EX(CColumnHeader) MSG_WM_CREATE(OnCreate) MSG_WM_PAINT(OnPaint) MSG_WM_SETTEXT(OnSetText) /* MESSAGE_HANDLER(WM_SETFOCUS, OnSetFocus) MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBackground) MESSAGE_HANDLER(WM_NOTIFY, OnNotify) MESSAGE_HANDLER(WM_COMMAND, OnCommand) */ FORWARD_NOTIFICATIONS() END_MSG_MAP() LRESULT OnCreate(LPCREATESTRUCT cs); void OnPaint(CDCHandle dc); void DrawHeader(CDCHandle dc); int OnSetText(LPCTSTR lpstrText); int GetDesiredHeight() const{ return m_nDesiredHeight; } void SetActiveState(BOOL bActive); };
[ [ [ 1, 42 ] ] ]
cd484e2bb37059985a18b2583a7ad6c84907f9ae
5c4e36054f0752a610ad149dfd81e6f35ccb37a1
/OpenGL/GLDebugFont.cpp
de880c3af97af453907f16c108ff74c268c97347
[]
no_license
Akira-Hayasaka/ofxBulletPhysics
4141dc7b6dff7e46b85317b0fe7d2e1f8896b2e4
5e45da80bce2ed8b1f12de9a220e0c1eafeb7951
refs/heads/master
2016-09-15T23:11:01.354626
2011-09-22T04:11:35
2011-09-22T04:11:35
1,152,090
6
0
null
null
null
null
UTF-8
C++
false
false
452,964
cpp
/* Bullet Continuous Collision Detection and Physics Library Copyright (c) 2003-2009 Erwin Coumans http://bulletphysics.org This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #include "GLDebugFont.h" #include "GlutStuff.h" #include <stdio.h> #include <string.h> //for memset extern unsigned char sFontData[]; static GLuint sTexture = -1; static int sScreenWidth = -1; static int sScreenHeight = -1; void GLDebugResetFont(int screenWidth,int screenHeight) { if ((sScreenWidth == screenWidth) && (sScreenHeight == screenHeight)) return; sScreenWidth = screenWidth; sScreenHeight = screenHeight; if (sTexture==-1) { glGenTextures(1, &sTexture); glBindTexture(GL_TEXTURE_2D, sTexture); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); glTexImage2D(GL_TEXTURE_2D, 0, 3, 256 , 256 , 0, GL_RGB, GL_UNSIGNED_BYTE, &sFontData[0]); } int windowWidth=screenWidth; int windowHeight = screenHeight; printf("generating font at resolution %d,%d\n",screenWidth,screenHeight); } void GLDebugDrawString(int x,int y,const char* string) { const char* string2 = "test"; if (sTexture==-1) { GLDebugResetFont(sScreenWidth,sScreenHeight); } if (strlen(string)) { glColor3f(1.,1.,1.); float cx; float cy; glMatrixMode(GL_TEXTURE); glLoadIdentity(); glDisable(GL_TEXTURE_GEN_S); glDisable(GL_TEXTURE_GEN_T); glDisable(GL_TEXTURE_GEN_R); glEnable(GL_TEXTURE_2D); glBlendFunc(GL_SRC_ALPHA,GL_ONE); glDepthFunc (GL_LEQUAL); glEnable(GL_BLEND); glEnable (GL_DEPTH_TEST); glBindTexture(GL_TEXTURE_2D, sTexture); glDisable(GL_DEPTH_TEST); glMatrixMode(GL_PROJECTION); glPushMatrix(); glLoadIdentity(); glOrtho(0,sScreenWidth,0,sScreenHeight,-1,1); glMatrixMode(GL_MODELVIEW); glPushMatrix(); glLoadIdentity(); glTranslated(x,sScreenHeight - y,0); for (int i=0;i<strlen(string);i++) { char ch = string[i]-32; if (ch>=0) { cx=float(ch%16) * 1./16.f; cy=float(ch/16) * 1./16.f; glBegin(GL_QUADS); glTexCoord2f(cx,1-cy-1./16.f); glVertex2i(0,0); glTexCoord2f(cx+1./16.f,1-cy-1./16.f); glVertex2i(16 - 1,0); glTexCoord2f(cx+1./16.f,1-cy); glVertex2i(16 - 1,16 -1); glTexCoord2f(cx,1-cy); glVertex2i(0,16 -1); glEnd(); glTranslated(10,0,0); } } glMatrixMode(GL_PROJECTION); glPopMatrix(); glMatrixMode(GL_MODELVIEW); glPopMatrix(); glEnable(GL_DEPTH_TEST); glBlendFunc(GL_SRC_ALPHA,GL_ONE); glDepthFunc (GL_LEQUAL); glDisable(GL_BLEND); glDisable(GL_TEXTURE_2D); glMatrixMode(GL_TEXTURE); glLoadIdentity(); glScalef(0.025,0.025,0.025); //glDisable(GL_TEXTURE_2D); } } unsigned char sFontData[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,145,145,145,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,213,213,213,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,2,2,2,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213, 213,213,255,255,255,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,2,2,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,246,246,246,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,2,2,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,213,213,213,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,213,213,213,2,2,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,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,213,213,213,255,255,255,255,255,255,255,255,255,213,213,213,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,178,178,178,178,178,178,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,0,0,0,0,0,0,0,0,0,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,178,178,178,255,255,255,255,255,255,255,255,255,145,145,145,103,103,103,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,2,2,2,255,255,255,178,178,178,103,103,103,145,145,145,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255, 255,255,145,145,145,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,178,178,178,255,255,255,255,255,255,178,178,178,2,2,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,103,103,103,255,255,255,213,213,213,178,178,178,255,255,255,255,255,255,178,178,178,2,2,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,145,145,145,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,145,145,145,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70, 70,70,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,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,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,70,70, 70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,213,213,213,255,255,255,255,255,255,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,255,255,255,213,213,213,70,70,70,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,255,255,255,246,246,246,178,178,178,246,246,246,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37, 37,37,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,213,213, 213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,255,255,255,213,213,213,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,2,2,103,103,103,255,255,255,103,103,103,2,2,2,2,2,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,255,255,255,103,103,103,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,255,255,255,255,255,255,145,145,145,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255, 255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,145,145,145,255,255, 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,70,70,70,255,255,255,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,103,103,103,246,246,246,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,70,70,70,255,255,255,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,0,0,0,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,0,0,0,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,70,70,70,255,255, 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,213,213,213,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,145,145,145,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,255,255,255,37,37,37,0,0,0,145,145,145,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,178,178,178,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255, 255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,2,2,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,103,103,103,178,178,178,255,255,255,213,213,213,37,37,37,0,0,0,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,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,246,246,246,103,103,103,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,37,37,37,2,2,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,2,2,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,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,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,70,70,70,255,255,255,246,246,246,103,103,103,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,70,70,70,0,0,0,103,103,103,255,255, 255,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,2,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,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,2,2,213,213,213,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,2,2,2,255,255,255,255,255, 255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,178,178,178,2,2,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,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, 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,2,2,2,2,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,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,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,246,246,246,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255, 255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,178,178,178,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,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,2,2,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,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,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,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,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,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,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,178,178,178,255,255,255,255,255,255,178,178,178,2,2,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,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178, 178,178,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,145,145,145,255,255,255,255,255,255,255,255,255,178,178,178,2,2,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,255,255,255,255,255,255,145,145,145,145,145,145,255,255,255,255,255,255,2,2,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,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,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,2,2,246,246,246,255,255,255,145,145,145,0,0,0,37,37,37,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,145,145,145,0,0,0,37,37,37,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2, 2,2,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,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,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103, 103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178, 178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, 37,37,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246, 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,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,103,103,103,255,255,255,213,213,213,0,0,0,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103, 103,0,0,0,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,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,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,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103, 103,103,246,246,246,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0, 0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,2,2,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,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,2,2,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,2,2,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,213,213,213,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,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,255,255,255,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,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,2,2,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,255,255,255,255,255,255,2,2,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,103,103,103,213,213,213,255,255,255,255,255,255,2,2,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,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,37,37,37,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,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,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,145,145,145,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,2,2,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,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,213,213,213,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246, 246,246,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,2,2,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,37,37,37,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,145,145,145,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,178,178,178,255,255,255,255,255,255,2,2,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,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,246,246,246,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,103,103,103,255,255,255,255,255,255,2,2,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,103,103,103,255, 255,255,213,213,213,178,178,178,255,255,255,255,255,255,178,178,178,2,2,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,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,178,178,178,0,0,0,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,103,103,103,178,178,178,255,255,255,2,2, 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,2,2,2,255,255,255,2,2,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,255,255,255,2,2,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,2,2,2,255,255,255,2,2,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,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,2,2,2,37,37,37,145,145,145,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, 255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,145,145,145,255,255,255,103,103,103,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,178,178,178,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,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,2,2,255,255,255,246,246,246,0,0,0,0,0,0,246,246,246,70,70, 70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,2,2,2,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,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,255, 255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,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,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,70,70,70,2,2,2,2,2,2,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,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,2,2,255,255,255,178,178,178,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,255,255,255,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,178,178,178,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,2,0,0,0,145,145,145,255,255,255,103,103,103,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,178,178,178,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,246,246,246,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,246,246,246,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,103,103,103,178,178,178,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,103,103,103,103,103,103,2,2,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,103,103,103,255, 255,255,213,213,213,0,0,0,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,213,213,213,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,70,70,70,103,103,103,246,246,246,0,0,0,213,213,213,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,246,246, 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,145,145,145,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255, 255,255,255,255,255,0,0,0,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,213,213,213,2,2,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,37,37,37,255,255,255,255,255,255,213,213,213,213,213,213,255,255,255,255,255,255,2,2,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,2,2,2,213, 213,213,255,255,255,255,255,255,255,255,255,178,178,178,2,2,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,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,213,213,213,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,213,213,213,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,145,145,145,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,178,178,178,255,255,255,255,255,255,178,178,178,2,2,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,255,255,255,246, 246,246,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,255,255,255,178,178,178,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,178,178,178,255,255,255,255,255,255,2,2,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,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,103,103,103,246,246,246,255,255,255,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,37,37,37,178,178,178,255,255,255,37,37,37,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,70,70,70,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,103,103,103,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,2,2,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,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246, 246,246,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,255,255,255,2,2,2,0,0,0,255,255,255,2,2,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,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255, 255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,2,2,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,255,255,255,255,255,255,103,103,103,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,103,103,103,103,103,103,103,103,103,0,0,0,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,2,2,255,255,255,255,255,255,103,103,103,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,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,2,2,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,213,213,213,255,255,255,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,37,37,37,255,255,255,255,255,255,70,70,70,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,145,145,145,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,178,178,178,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,213,213,213,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,145,145,145,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,145,145,145,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,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,2,2,213,213,213,255,255,255,255,255,255,178,178,178,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,178,178,178,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,37,37, 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,246,246,246,255,255,255,145,145,145,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,213,213,213,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 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,2,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,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,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,103,103,103,2,2, 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,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246, 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70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,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,246,246,246,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0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,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, 255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,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,2,2,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,2,2,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,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255, 255,255,145,145,145,103,103,103,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,213,213,213,255,255,255,246,246,246,2,2,2,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,103,103,103,178,178,178,255,255,255,2,2, 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,2,2,2,255,255,255,2,2,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,103,103,103,255,255,255,2,2,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,2,2,2,255,255,255,2,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,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,2,2,255,255,255,37, 37,37,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,2,2,2,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,255,255,255,103,103, 103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,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,2,2,0,0,0,103,103,103,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2, 2,2,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,37,37,37,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,255,255,255,2,2,2,246,246,246,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,2,2,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,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,145,145,145,103,103, 103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,213,213,213,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,246,246,246,255,255,255,145,145,145,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,2,2,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,255,255,255,103, 103,103,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,103,103,103,246,246,246,255,255,255,103,103,103,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,70,70,70,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,2,2,2,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,145,145,145,2,2,2,0,0,0,0,0,0,2,2,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,213,213,213,255,255,255,0,0,0,70,70,70,255,255,255,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213, 213,213,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,255,255,255,255,255,255,2,2,2,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,70,70,70,0,0,0,255,255,255,255,255,255,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,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,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,255,255,255,37,37,37,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255, 255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,103,103,103,255,255,255,2,2,2,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,37,37,37,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,213,213,213,255,255,255,103,103,103,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,103,103,103,246,246,246,255,255,255,178,178,178,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,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,255,255,255,255,255,255,2,2,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,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,255,255,255,246,246,246,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255, 255,255,103,103,103,103,103,103,0,0,0,70,70,70,103,103,103,255,255,255,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,213,213,213,255,255,255,145,145,145,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,145,145,145,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,103,103,103,213,213,213,255,255,255,255,255, 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255, 255,255,255,255,255,255,255,255,2,2,2,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,178,178,178,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,103,103,103,0,0,0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0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,2,2,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,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,2,2,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,255,255,255,255,255,255,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,213,213,213,103,103,103,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,103,103,103,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,145,145,145,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,178,178,178,103,103,103,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,145,145,145,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255, 255,255,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,103,103,103,103,103,103,213,213,213,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,103,103,103,0,0,0,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,70,70,70,0,0,0,37,37,37,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,103,103,103,103,103,103,103,103,103,178,178,178,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,255,255,255,103,103,103,0,0,0,2,2,2,178,178,178,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,246,246,246,255,255,255,103,103,103,0,0,0,70,70,70,255,255,255,255,255,255,2,2,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,178,178,178,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,255,255,255,70,70,70,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,2,2,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,178,178,178,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,2,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, 255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,2,2,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,2,2,2,255,255,255,37,37,37,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,145,145,145,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,246,246,246,255,255,255,2,2,2,213,213,213,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,178,178,178,103,103,103,255,255,255,213,213,213,70,70,70,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,103,103,103,103,103,103,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,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,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,2,2,2,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,246,246,246,255,255,255,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,255,255,255,213,213,213,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,178,178,178,37,37,37,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,2,2,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,255,255,255,103,103,103,246,246,246,255,255,255,178,178,178,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,70,70,70,255,255,255,70,70,70,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,2,2,2,213,213,213,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,145,145,145,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,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,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246, 246,246,213,213,213,0,0,0,70,70,70,255,255,255,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,70,70,70,255,255,255,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,246,246,246,213,213,213,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,246,246,246,103,103,103,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,213,213,213,255,255,255,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,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,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,70,70,70,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145, 145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37, 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,246,246,246,2,2,2,103,103,103,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,246,246,246,103,103,103,103,103,103,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,255,255,255,255,255,255,255,255,255,2,2,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,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,103,103,103,255,255,255,255,255,255,178,178,178,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,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213, 213,213,255,255,255,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,246,246,246,37,37,37,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,2,2,103,103,103,103,103,103,255,255,255,246,246,246,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,255,255,255,246,246, 246,103,103,103,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,213,213,213,255,255,255,103,103,103,103,103,103,0,0,0,255,255,255,255,255,255,145,145,145,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,213,213,213,255,255,255,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,2,2,2,0,0,0,255,255,255,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,70,70,70,0,0,0,103,103,103,255,255,255,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,145,145,145,103,103,103,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255, 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,246,246,246,255,255,255,255,255,255,255,255,255,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,2,2,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2,2,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,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,2,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255, 255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,178,178,178,255,255,255,178,178,178,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,103,103,103,178,178,178,255,255,255,2,2,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,246,246,246,255,255,255,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,255,255,255,178,178,178,2,2,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,255,255,255,213, 213,213,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,103,103,103,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,246,246,246,0,0,0,103,103,103,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,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,2,2,255,255,255,37,37,37,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,213,213,213,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,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,2,2,2,2,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,103,103,103,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,103,103,103,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,37,37,37,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,213,213,213,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,213,213,213,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,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,145,145,145,255,255,255,178,178,178,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246, 246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,246,246,246,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,246,246,246,2,2,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,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,178,178,178,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,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,2,2,103,103,103,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,103,103,103,255,255,255,2,2,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,255,255,255,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145, 145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,103,103,103,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,37,37,37,255,255,255,2,2,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,145,145,145,255,255,255,0,0,0,0,0,0,37,37,37,255,255,255,2,2,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,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,246,246,246,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, 37,37,255,255,255,103,103,103,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,103,103,103,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,213,213,213,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,213,213,213,103,103,103,103,103,103,255,255,255,255,255,255,2,2,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,178,178,178,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,213,213,213,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,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,2,2,213,213,213,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,246,246,246,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,178,178,178,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,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0,0,145,145,145,255,255,255,255,255,255,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,246,246,246,213,213,213,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,213,213,213,255,255,255,255,255,255,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,2,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,178, 178,178,0,0,0,0,0,0,213,213,213,213,213,213,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,2,2,2,178,178,178,255,255,255,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,145,145,145,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103, 103,103,255,255,255,178,178,178,0,0,0,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,103,103,103,0,0, 0,0,0,0,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,2,2,246,246,246,246,246,246,255,255,255,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,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,255,255,255,103,103,103,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,178,178,178,255,255,255,103,103,103,2,2,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,246,246,246,255,255,255,213,213,213,37,37,37,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,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,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,213,213,213,255,255,255,37,37, 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,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,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,213,213,213,255,255,255,145,145,145,2,2,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,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255, 255,255,255,255,255,145,145,145,0,0,0,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,37,37,37,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,70,70,70,2,2,2,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255, 255,255,0,0,0,255,255,255,2,2,2,0,0,0,2,2,2,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,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,2,2,255, 255,255,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,2,2,2,255,255,255,145,145,145,70,70, 70,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,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,103,103,103,255,255,255,2,2,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,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70, 70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,145,145,145,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255, 255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,246,246,246,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, 37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0, 0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,213,213,213,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,2,2,2,2,2,2,2,2,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,255,255,255,178,178,178,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,2,2,2,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,213,213,213,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, 0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,37,37,37,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,2,2,2,255,255,255,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,246,246,246,103,103,103,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,2,2,2,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,103,103,103,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,213,213,213,246,246,246,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,145,145,145,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,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,213,213,213,255,255,255,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,103,103,103,255,255,255,2,2,2,2,2,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,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, 37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,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,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,37,37,37,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,145,145,145,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,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,103,103,103,255,255,255,255,255,255,2,2,2,2,2,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,37,37,37,37,37,37,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,70,70,70,0,0,0,2,2,2,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,37,37,37,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0, 0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,145,145,145,0,0,0,70,70,70,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,178,178,178,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0, 0,145,145,145,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,145,145,145,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, 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,2,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,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,246,246,246,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255, 255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,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,255,255,255,255,255,255,37,37,37,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,2,2,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,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0, 0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255, 255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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,103,103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,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,103,103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,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,103, 103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,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,103,103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2, 2,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,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,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,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,2,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,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,2,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,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,2,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255, 255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2,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,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145, 145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255, 255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,178,178, 178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,103,103,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103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,145,145,145,0,0,0,70,70,70,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,246,246,246,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,70,70,70,0,0,0,145,145,145,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,213,213,213,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,70,70,70,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,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,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,37,37,37,246,246,246,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,2,2,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,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,255,255,255,37,37,37,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,37,37,37,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,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,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,145,145,145,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,213,213,213,0,0,0,145,145,145,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,213,213,213,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,255,255,255,0,0,0,255,255,255,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,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,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,145,145,145,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,246,246,246,0,0,0,255,255,255,0,0,0,213,213,213,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,0,0,0,103,103,103,246,246,246,255,255,255,0,0,0,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178, 178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,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,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,37,37,37,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,2,2,2,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,70,70,70,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,2,2,2,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,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,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255, 255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,70,70,70,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,246,246,246,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,2,2,2,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,37,37,37,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,246,246,246,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,37,37,37,246,246,246,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,255,255,255,70,70,70,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2, 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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,213,213,213,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,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,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,2,2,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,103,103,103,255,255,255,103,103,103,37,37,37,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37, 37,37,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,37,37,37,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2, 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,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2, 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,255,255,255,103,103,103,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,2,2,2,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,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2, 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,255,255,255,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,178,178,178,246,246,246,255,255,255,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255, 255,255,255,255,255,246,246,246,246,246,246,246,246,246,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2, 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,255,255,255,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,246,246,246,103,103,103,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213, 213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,213,213,213,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2, 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,255,255,255,103,103,103,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,246,246,246,246,246,246,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,255,255,255,37,37,37,70,70,70,255,255,255,246,246,246,0,0,0,0,0,0,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,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,70,70,70,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,246,246,246,2,2,2,145,145,145,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,2,2,2,255,255,255,2,2, 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,255,255,255,103,103,103,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,70,70,70,255,255,255,246,246,246,178,178,178,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,246,246,246,2,2,2,145,145,145,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,145,145,145,246,246,246,246,246,246,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,178,178,178,145,145,145,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,2,2,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,103,103,103,255,255,255,255,255,255,255,255,255,255,255,255,2,2, 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,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,246,246,246,255,255,255,0,0,0,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,37,37,37,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37,37,0,0,0,145,145,145,255,255,255,2,2,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,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, 255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,0,0,0,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,246,246,246,0,0,0,255,255,255,213,213,213,145,145,145,0,0,0,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,2,2,255,255,255,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,255,255,255,246,246,246,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,255,255,255,0,0,0,255,255,255,2,2,2,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,37,37,37,255,255,255,103,103,103,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,2,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,255,255,255,103,103,103,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,255,255,255,0,0,0,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,2,2,255,255,255,0,0,0,246,246,246,255,255,255,178,178,178,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,2,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,37,37,37,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,37,37, 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,2,2,2,246,246,246,0,0,0,0,0,0,246,246,246,2,2,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,213,213,213,255,255,255,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255, 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,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,2,2,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255, 255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,103,103,103,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,37,37,37,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,213,213,213,0,0,0,0,0,0,0,0,0,103,103,103,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,2,2,2,2,2,2,2,2,178,178,178,255,255,255,2,2,2,2,2,2,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,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,2,2,2,2,2,2,2,2,2,2,2,178,178, 178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,213,213,213,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,145,145,145,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,2,2,2,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,246,246,246,246,246,246,246,246,246,246,246,246,246,246, 246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,2,2,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,178,178,178,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,246,246,246,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,255,255,255,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,37,37, 37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255, 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,0,0,0,0,0,0,103,103,103,0,0,0,70,70,70,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255, 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,255,255,255,178,178,178,178,178,178,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255, 255,2,2,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,255,255,255,103,103,103,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,103,103,103,255,255,255,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,2,2,2,255,255,255,0,0,0,178,178,178,255,255,255,2,2,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,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255, 255,2,2,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,255,255,255,103,103,103,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,255,255,255,246,246,246,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,2,2,2,246,246,246,0,0,0,0,0,0,255,255,255,2,2,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,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,246,246,246,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255, 255,2,2,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,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,213,213,213,178,178,178,255,255,255,70,70,70,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,103,103,103,255,255,255,2,2,2,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,2,2,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,213,213,213,145,145,145,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,178,178,178,2,2,2,2,2,2,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255, 255,2,2,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,255,255,255,103,103,103,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,255,255,255,2,2,2,103,103,103,213,213,213,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,178,178,178,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,103,103,103,0,0,0,145,145,145,103,103,103,0,0,0,255,255,255,2,2,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,70,70,70,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255, 255,2,2,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,255,255,255,103,103,103,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,255,255,255,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,246,246,246,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,2,2,255,255,255,0,0,0,0,0,0,103,103,103,246,246,246,255,255,255,2,2,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,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,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,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255, 255,2,2,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,255,255,255,103,103,103,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,37,37,37,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,2,2,2,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,2,2,2,70,70,70,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,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,255,255,255,178,178,178,2,2,2,2,2,2,2,2,2,2,2,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,178,178,178,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,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,2,2,2,2,2,178,178,178,255,255,255,2,2,2,2,2,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,2,2,2,2,2,2,103,103,103,255,255, 255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,213,213,213,2,2,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,70,70,70,246,246,246,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,246,246,246,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246, 246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,213,213,213,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,70,70,70,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,2,2,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,255,255,255,255,255,255,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,255,255,246,246,246,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,246,246,246,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2, 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,255,255,255,255,255,255,2,2,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,70,70,70,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,2,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,2,2,2,2,2,2,2,2,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,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,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,2,2,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2, 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,255,255,255,255,255,255,2,2,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,70,70,70,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,2,2,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,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,2,2,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,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,2,2,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,2,2,2,2,2,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,70,70,70,255,255,255,246,246,246,2,2,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,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,0,0,0,103,103,103,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,246,246,246,2,2,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,103,103,103,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,246,246,246,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,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,2,2,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,70,70,70,103,103,103,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,2,2,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,2,2,2,2,2,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,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,70,70,70,0,0,0,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,2,2,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,0,0,0,0,0,0,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,2,2,37,37,37,246,246,246,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,246,246,246,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,246,246,246,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,213,213,213,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2, 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,255,255,255,255,255,255,2,2,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,178,178,178,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,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,70,70,70,255,255,255,103,103,103,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,2,2, 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,255,255,255,255,255,255,2,2,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,2,2,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,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,178,178,178,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,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,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,246,246,246,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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103,103,0,0,0,2,2,2,255,255,255,2,2,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,255,255,255,255,255,255,178,178,178,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,2,2,2,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,246,246,246,246,246,246,103,103,103,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,2,2,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,103,103,103,103,103,103,103,103,103,103,103,103,145,145,145,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,2,2,2,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,2,2,2,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,255,255,255,255,255,255,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,145,145,145,246,246,246,246,246,246,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,255,255,255,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,255,255,255,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,255,255,255,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,255,255,255,255,255,255,103,103,103,145,145,145,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,2,2,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,255,255,255,255,255,255,2,2,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,255,255,255,255,255,255,2,2,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,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,2,2,2,0,0,0,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246, 246,246,37,37,37,0,0,0,37,37,37,246,246,246,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,103,103,103,0,0,0,0,0,0,246,246,246,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,255,255,255,246,246,246,255,255,255,255,255,255,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,70,70,70,246,246,246,37,37,37,246,246,246,0,0,0,2,2,2,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,246,246,246,255,255,255,0,0,0,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,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213,213,213,103,103,103,145,145,145,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,70,70,70,255,255,255,2,2,2,0,0,0,246,246,246,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,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,2,2,2,2,2,2,2,2,255,255,255,103,103,103,2,2,2,2,2,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,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2,2,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,213,213,213,37,37,37,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,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,2,2,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,255,255,255,246,246,246,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,255,255, 255,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,0,0,0,0,0,0,2,2,2,2,2,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,103,103,103,103,103,103,255,255,255,103,103,103,213,213,213,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,255,255,255,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,0, 0,0,0,0,0,255,255,255,255,255,255,145,145,145,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,103,103,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,145,145,145,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,2,2,2,0,0,0,70,70, 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, 0,0,0,0,0,103,103,103,103,103,103,0,0,0,255,255,255,2,2,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,255,255,255,103,103,103,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,103,103,103,2,2,2,70,70,70,70,70, 70,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,70,70,70,0,0,0,178,178,178,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,178,178,178,70,70,70,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,255,255,255,103,103,103,255,255,255,2,2,2,103,103,103,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,213,213,103, 103,103,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,213,213,213,0,0,0,255,255,255,103,103,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,246,246,246,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,70,70,70,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,178,178,178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,0,0,178, 178,178,246,246,246,37,37,37,0,0,0,0,0,0,0,0,0,103,103,103,213,213,213,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,178,178,178,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,2,2,255,255,255,255,255,255,2,2,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,178,178,178,255,255,255,145,145,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,70,70,145,145,145,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,246,246,70,70,70,0,0,0,0,0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,0,0,0,0,0,0,0, };
[ [ [ 1, 902 ] ] ]
2c03d2d40315bb6cbb637008b75da59c20d75a70
51ca1ee99aae78c01f040086c41bd1ff5874cc07
/gumble/gumble/vglobales.h
dafcf86768de5909a3e6fd5628b5854fc6572573
[]
no_license
arousset/gumble
7459c99f3f2d7cbb92b5669ec3be2d315f7339a4
4e5b612b5b7b5bcd7f661044c5e1b40b8c68b5f4
refs/heads/master
2016-09-05T11:07:40.995103
2011-02-28T19:05:43
2011-02-28T19:05:43
32,201,936
0
0
null
null
null
null
ISO-8859-1
C++
false
false
5,101
h
#ifndef VGLOBALES_H #define VGLOBALES_H #include <windows.h> #include "hge.h" #include <hgeresource.h> #include <hgesprite.h> #include <hgeanim.h> #include "menuitem.h" #include <math.h> #include "hgefont.h" #include "hgegui.h" #include <stdio.h> #include <stdlib.h> #include <iostream> #include <time.h> #include <hgeparticle.h> #include "hgeguictrls.h" #include <math.h> // Particules hgeParticleSystemInfo particle; hgeParticleSystemInfo particle_bulles; hgeParticleManager *particleManager; HGE *hge = 0; // Permet de créer un flux pour gérer la music HSTREAM myMusic; HSTREAM myMusic_menu; // Music du menu HSTREAM l4; //music level 4 HSTREAM myMusic_fin; // Music du menu // Channel pour gere plusieurs flux musicaux HCHANNEL chan[2]; hgeResourceManager* Res; hgeSprite* bgSprite; hgeSprite* game_over; hgeSprite* you_win; hgeSprite* canon_img; hgeSprite* bgfin; // Pointeur pour la police d'écriture hgeFont* font1; int alea_couleur = 0; int id_menu = -1; // Pour gérer les différents écrans de jeux char* pMap = NULL; // pointeur sur la desctiption de la map int* Tboule_count; // Pointeur pour les boules float* Tboule_stat; // Pinteur pour les stats int sizeX, sizeY; float fScale =27; const int xMap = 245; // abscisse de la plus basse ligne pour afficher les boules const int yMap = 385; // ordonnée de la plus basse ligne pour afficher les boules const float bouleSizeX = 37; // taille de la boule const float bouleSizeY = 31; float timeDown = 3000; // temps avant de faire tomber les boules(secondes) float timeCpt = 0; // compteur de temps int swapPair = 0; // variables utile pour déterminée si la ligne a besoin d'etre décalée bool isDowning = false; // les boules sont en train de descendre ? float animDowning = 0; // utile pour faire une sorte d'animation lors de la descente des boules float speedY = (float)0.05; // vitesse de la boule du joueur float speedX = (float)0.1; // inclinaison de la boule du joueur bool loose = false; // Permet de gérer si la partie est perdu bool win = false; float val = 0; float rot = 0.0; // Permet la rotation du canon float mouseX, mouseY; // Coordonnées de la souris float canonLocX = 398, canonLocY = 498; // Coordonnées pour le canon bool lunched = false; // Permet de savoir si la boule courante a été lancé ou non float alea_c = 1; // Chiffre qui prendra une valeur aléatoire entre [1 - 7] qui représente le nombre de couleur des boules float alea_n = 4; // Chiffre qui prendra une valeur aléatoire entre [1 - 7] qui représente le nombre de couleur des boules float tglobal = 0.0; bool blunched_boule = false; // Pour que la boule grimpe tte seul ! bool first = true; // Pour la 1er génération de nombre aléatoire bool firstTimeMenu = true; // Pour le premier passage au menu bool ttest = true; //boolean pour stopper le temps bool stop_time = false; bool premier = true; //Compteur pour supprimer les boules si plus de 2 sont accolées int cptDestroy = 0; bool tabToDestroy[88]; // pour faire descendre les boules non suspendus bool noSuspendedIsDowning = false; int noSuspendedAnimDowning = 0; bool noSuspendedTab[80]; // Variable pour calculer le score int score = 0; bool firstTimeMenufin = true; bool musicmenu = true; // Pour afficher le tire canon (bonus) int bonus = 0; // Variables pour gérer les boules 'courante' et 'suivante' // Boule courante char coul_bcourante; float posX_bcourante = 0; float posY_bcourante = 0; float posX_depart = 380; // Coordonnées de la boule de départ dans le canon float posY_depart = 480; // position boule suivante float bnext_X = 78; float bnext_Y = 445; // Boule suivante char coul_bsuivante; float ttime=0; // Permet de gérer le compteur de temps //test float posboulex = 240+(320/2)-(bouleSizeX/2); float posbouley = yMap-5; bool jesus = true; bool premierelignepaire = false; //test // Sprite pour le bouton du menu hgeAnimation* bt_menu; // bouton menu sur l'espace de jeux // Background intro hgeSprite* bgg; // Sprite pour le fond de l'intro // Back level hgeSprite* bg4; // Sprite pour les boules hgeAnimation* b_rouge; //rouge hgeAnimation* b_vert; // vert hgeAnimation* b_bleu; //bleu hgeAnimation* b_orange; //orange hgeAnimation* b_jaune; //jaune hgeAnimation* b_violet; //violet hgeAnimation* b_gris; //gris // frog animation hgeAnimation* frog; // numbers animation hgeAnimation* anumb; // Some resource handles HEFFECT snd; HTEXTURE tex; HEFFECT sgameover; HEFFECT swin; HEFFECT letire; HEFFECT explosion; // Pointeurs pour HGE object hgeGUI *gui; hgeFont *fnt; hgeSprite *spr; hgeGUIButton *btn; int lastid = 0; // pour gérer le menu // prototype de la mort bool menu(); bool game(); bool instruction(); bool credit(); bool multiplayer(); bool smenu(); bool fin(); float rotTd = 0; // variable temporaire pour la direction du tir bool game_int(); float timeBegin; int niveau = 0;// niveau du joueur #endif
[ "[email protected]@3e178732-d4e4-cf14-6a5f-ffb5eee997f9", "[email protected]@3e178732-d4e4-cf14-6a5f-ffb5eee997f9" ]
[ [ [ 1, 17 ], [ 19, 30 ], [ 35, 43 ], [ 46, 48 ], [ 51, 51 ], [ 54, 59 ], [ 61, 68 ], [ 70, 73 ], [ 76, 78 ], [ 81, 82 ], [ 84, 95 ], [ 101, 109 ], [ 111, 115 ], [ 117, 127 ], [ 133, 141 ], [ 147, 148 ], [ 150, 151 ], [ 157, 158 ], [ 165, 165 ], [ 175, 182 ] ], [ [ 18, 18 ], [ 31, 34 ], [ 44, 45 ], [ 49, 50 ], [ 52, 53 ], [ 60, 60 ], [ 69, 69 ], [ 74, 75 ], [ 79, 80 ], [ 83, 83 ], [ 96, 100 ], [ 110, 110 ], [ 116, 116 ], [ 128, 132 ], [ 142, 146 ], [ 149, 149 ], [ 152, 156 ], [ 159, 164 ], [ 166, 174 ] ] ]
3c35c6866673259b2c7b21193527f40472ddad52
d68d288de8b1643d92af2d339f1a3a8dcfc37015
/Poker.Equity/Card.h
8027d18e0c8cae1560b7cf4df20828a8b44a34ae
[]
no_license
tonetheman/poker-code
c8574084be9a85edfbc439fe16ace7eca9f64445
50e0e43b859aa23dd4d4eb5a802c7fc95c6e77d6
refs/heads/master
2016-09-01T22:30:58.854343
2009-04-20T12:25:20
2009-04-20T12:25:20
180,739
7
4
null
null
null
null
UTF-8
C++
false
false
1,607
h
/////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2009 James Devlin // // DISCLAIMER OF WARRANTY // // This source code is provided "as is" and without warranties as to performance // or merchantability. The author and/or distributors of this source code may // have made statements about this source code. Any such statements do not // constitute warranties and shall not be relied on by the user in deciding // whether to use this source code. // // This source code is provided without any express or implied warranties // whatsoever. Because of the diversity of conditions and hardware under which // this source code may be used, no warranty of fitness for a particular purpose // is offered. The user is advised to test the source code thoroughly before // relying on it. The user must assume the entire risk of using the source code. // /////////////////////////////////////////////////////////////////////////////// #pragma once #include "Poker.Equity.h" class POKEREQUITY_API Card { public: Card(void); virtual ~Card(void); enum Rank { UnknownRank = -1, Two = 0, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King, Ace = 12 }; enum Suit { UnknownSuit = -1, Hearts, Diamonds, Clubs, Spades }; static int CharToRank(TCHAR c); static int CharToSuit(TCHAR s); static TCHAR RankToChar(int rank); static TCHAR SuitToChar(int suit); private: static const char* m_rankChars; static const char* m_suitChars; };
[ "agcc@agcc-ubuntu.(none)" ]
[ [ [ 1, 66 ] ] ]
7735af63af6bec83b20a657559cc233e9f992b2e
f596200d0a3a98304d8108120bf97a8d4e16319e
/server/src/g_cmds.cpp
1a99fff10ae19db93312c5ab05515e33c7d7b873
[]
no_license
justinvh/Rogue-Reborn
692f8995d21c085bd2290ef22bbd3b2ce737a20c
b4356f3af39e82536c4254a51cc89fa5af0b6452
refs/heads/master
2021-01-06T20:38:28.362318
2011-01-10T01:07:14
2011-01-10T01:07:14
952,588
13
4
null
null
null
null
UTF-8
C++
false
false
50,917
cpp
/* =========================================================================== Copyright (C) 1999-2005 Id Software, Inc. Copyright (C) 2006 Robert Beckebans <[email protected]> This file is part of XreaL source code. XreaL source code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. XreaL source code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with XreaL source code; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA =========================================================================== */ // #include <hat/engine/javascript/weapon/interface.hpp> #include <hat/server/g_local.h> #include <hat/gui/menudef.h> // for the voice chats /* ================== DeathmatchScoreboardMessage ================== */ void DeathmatchScoreboardMessage(gentity_t * ent) { char entry[1024]; char string[1400]; int stringlength; int i, j; gclient_t *cl; int numSorted, scoreFlags, accuracy, perfect; // send the latest information on all clients string[0] = 0; stringlength = 0; scoreFlags = 0; numSorted = level.numConnectedClients; for(i = 0; i < numSorted; i++) { int ping; cl = &level.clients[level.sortedClients[i]]; if(cl->pers.connected == CON_CONNECTING) { ping = -1; } else { ping = cl->ps.ping < 999 ? cl->ps.ping : 999; } if(cl->accuracy_shots) { accuracy = cl->accuracy_hits * 100 / cl->accuracy_shots; } else { accuracy = 0; } perfect = (cl->ps.persistant[PERS_RANK] == 0 && cl->ps.persistant[PERS_KILLED] == 0) ? 1 : 0; Com_sprintf(entry, sizeof(entry), " %i %i %i %i %i %i %i %i %i %i %i %i %i %i", level.sortedClients[i], cl->ps.persistant[PERS_SCORE], ping, (level.time - cl->pers.enterTime) / 60000, scoreFlags, g_entities[level.sortedClients[i]].s.powerups, accuracy, cl->ps.persistant[PERS_IMPRESSIVE_COUNT], cl->ps.persistant[PERS_EXCELLENT_COUNT], cl->ps.persistant[PERS_GAUNTLET_FRAG_COUNT], cl->ps.persistant[PERS_DEFEND_COUNT], cl->ps.persistant[PERS_ASSIST_COUNT], perfect, cl->ps.persistant[PERS_CAPTURES]); j = strlen(entry); if(stringlength + j > 1024) break; strcpy(string + stringlength, entry); stringlength += j; } trap_SendServerCommand(ent - g_entities, va("scores %i %i %i%s", i, level.teamScores[TEAM_RED], level.teamScores[TEAM_BLUE], string)); } /* ================== Cmd_Score_f Request current scoreboard information ================== */ void Cmd_Score_f(gentity_t * ent) { DeathmatchScoreboardMessage(ent); } /* ================== CheatsOk ================== */ qboolean CheatsOk(gentity_t * ent) { if(!g_cheats.integer) { trap_SendServerCommand(ent - g_entities, va("print \"Cheats are not enabled on this server.\n\"")); return qfalse; } if(ent->health <= 0) { trap_SendServerCommand(ent - g_entities, va("print \"You must be alive to use this command.\n\"")); return qfalse; } return qtrue; } /* ================== ConcatArgs ================== */ char *ConcatArgs(int start) { int i, c, tlen; static char line[MAX_STRING_CHARS]; int len; char arg[MAX_STRING_CHARS]; len = 0; c = trap_Argc(); for(i = start; i < c; i++) { trap_Argv(i, arg, sizeof(arg)); tlen = strlen(arg); if(len + tlen >= MAX_STRING_CHARS - 1) { break; } memcpy(line + len, arg, tlen); len += tlen; if(i != c - 1) { line[len] = ' '; len++; } } line[len] = 0; return line; } /* ================== SanitizeString Remove case and control characters ================== */ void SanitizeString(char *in, char *out) { while(*in) { if(*in == 27) { in += 2; // skip color code continue; } if(*in < 32) { in++; continue; } *out++ = tolower(*in++); } *out = 0; } /* ================== ClientNumberFromString Returns a player number for either a number or name string Returns -1 if invalid ================== */ int ClientNumberFromString(gentity_t * to, char *s) { gclient_t *cl; int idnum; char s2[MAX_STRING_CHARS]; char n2[MAX_STRING_CHARS]; // numeric values are just slot numbers if(s[0] >= '0' && s[0] <= '9') { idnum = atoi(s); if(idnum < 0 || idnum >= level.maxclients) { trap_SendServerCommand(to - g_entities, va("print \"Bad client slot: %i\n\"", idnum)); return -1; } cl = &level.clients[idnum]; if(cl->pers.connected != CON_CONNECTED) { trap_SendServerCommand(to - g_entities, va("print \"Client %i is not active\n\"", idnum)); return -1; } return idnum; } // check for a name match SanitizeString(s, s2); for(idnum = 0, cl = level.clients; idnum < level.maxclients; idnum++, cl++) { if(cl->pers.connected != CON_CONNECTED) { continue; } SanitizeString(cl->pers.netname, n2); if(!strcmp(n2, s2)) { return idnum; } } trap_SendServerCommand(to - g_entities, va("print \"User %s is not on the server\n\"", s)); return -1; } /* ================== Cmd_Give_f Give items to a client ================== */ void Cmd_Give_f(gentity_t * ent) { char *name; gitem_t *it; int i; qboolean give_all; gentity_t *it_ent; trace_t trace; /* if(!CheatsOk(ent)) { return; } */ name = ConcatArgs(1); if(Q_stricmp(name, "all") == 0) give_all = qtrue; else give_all = qfalse; if(give_all || Q_stricmp(name, "health") == 0) { ent->health = ent->client->ps.stats[STAT_MAX_HEALTH]; if(!give_all) return; } if(give_all || Q_stricmp(name, "weapons") == 0) { ent->client->ps.stats[STAT_WEAPONS] = (1 << WP_NUM_WEAPONS) - 1 - (1 << WP_NONE); if(!give_all) return; } if(give_all || Q_stricmp(name, "ammo") == 0) { for(i = 0; i < MAX_WEAPONS; i++) { ent->client->ps.ammo[i] = 999; } if(!give_all) return; } if(give_all || Q_stricmp(name, "armor") == 0) { ent->client->ps.stats[STAT_ARMOR] = 200; if(!give_all) return; } if(Q_stricmp(name, "excellent") == 0) { ent->client->ps.persistant[PERS_EXCELLENT_COUNT]++; return; } if(Q_stricmp(name, "impressive") == 0) { ent->client->ps.persistant[PERS_IMPRESSIVE_COUNT]++; return; } if(Q_stricmp(name, "gauntletaward") == 0) { ent->client->ps.persistant[PERS_GAUNTLET_FRAG_COUNT]++; return; } if(Q_stricmp(name, "telefrag") == 0) { ent->client->ps.persistant[PERS_TELEFRAG_FRAG_COUNT]++; return; } if(Q_stricmp(name, "defend") == 0) { ent->client->ps.persistant[PERS_DEFEND_COUNT]++; return; } if(Q_stricmp(name, "assist") == 0) { ent->client->ps.persistant[PERS_ASSIST_COUNT]++; return; } // requesting a weapon if (!give_all) { const hat::Weapon_attrs* attrs; if (trap_LoadAndGetWeaponAttrs(ent->client->ps.clientNum, name, (const void**)(&attrs))) { int weapon_id = attrs->unique_id; ent->client->ps.stats[STAT_WEAPONS] |= 1 << weapon_id; ent->client->ps.weapon_fire_mode[weapon_id] = attrs->fire_modes[0]; for (int i = 0; i < MAX_MAGS; i++) ent->client->ps.primary_ammo[weapon_id][i] = 25 + i; // TODO(justinvh): This needs to be dynamically created somehow ent->client->ps.ammo[weapon_id] = 50; return; } } // spawn a specific item right on the player if(!give_all) { it = BG_FindItem(name); if(!it) { return; } it_ent = G_Spawn(); VectorCopy(ent->r.currentOrigin, it_ent->s.origin); it_ent->classname = it->classname; G_SpawnItem(it_ent, it); FinishSpawningItem(it_ent); memset(&trace, 0, sizeof(trace)); Touch_Item(it_ent, ent, &trace); if(it_ent->inuse) { G_FreeEntity(it_ent); } } } /* ================== Cmd_God_f Sets client to godmode argv(0) god ================== */ void Cmd_God_f(gentity_t * ent) { char *msg; if(!CheatsOk(ent)) { return; } ent->flags ^= FL_GODMODE; if(!(ent->flags & FL_GODMODE)) msg = "godmode OFF\n"; else msg = "godmode ON\n"; trap_SendServerCommand(ent - g_entities, va("print \"%s\"", msg)); } /* ================== Cmd_Notarget_f Sets client to notarget argv(0) notarget ================== */ void Cmd_Notarget_f(gentity_t * ent) { char *msg; if(!CheatsOk(ent)) { return; } ent->flags ^= FL_NOTARGET; if(!(ent->flags & FL_NOTARGET)) msg = "notarget OFF\n"; else msg = "notarget ON\n"; trap_SendServerCommand(ent - g_entities, va("print \"%s\"", msg)); } /* ================== Cmd_Noclip_f argv(0) noclip ================== */ void Cmd_Noclip_f(gentity_t * ent) { char *msg; if(!CheatsOk(ent)) { return; } if(ent->client->noclip) { msg = "noclip OFF\n"; } else { msg = "noclip ON\n"; } ent->client->noclip = (qboolean)!ent->client->noclip; trap_SendServerCommand(ent - g_entities, va("print \"%s\"", msg)); } /* ================== Cmd_LevelShot_f This is just to help generate the level pictures for the menus. It goes to the intermission immediately and sends over a command to the client to resize the view, hide the scoreboard, and take a special screenshot ================== */ void Cmd_LevelShot_f(gentity_t * ent) { if(!CheatsOk(ent)) { return; } // doesn't work in single player if(g_gametype.integer != 0) { trap_SendServerCommand(ent - g_entities, "print \"Must be in g_gametype 0 for levelshot\n\""); return; } BeginIntermission(); trap_SendServerCommand(ent - g_entities, "clientLevelShot"); } /* ================== Cmd_LevelShot_f This is just to help generate the level pictures for the menus. It goes to the intermission immediately and sends over a command to the client to resize the view, hide the scoreboard, and take a special screenshot ================== */ void Cmd_TeamTask_f(gentity_t * ent) { char userinfo[MAX_INFO_STRING]; char arg[MAX_TOKEN_CHARS]; int task; int client = ent->client - level.clients; if(trap_Argc() != 2) { return; } trap_Argv(1, arg, sizeof(arg)); task = atoi(arg); trap_GetUserinfo(client, userinfo, sizeof(userinfo)); Info_SetValueForKey(userinfo, "teamtask", va("%d", task)); trap_SetUserinfo(client, userinfo); ClientUserinfoChanged(client); } /* ================= Cmd_Kill_f ================= */ void Cmd_Kill_f(gentity_t * ent) { if(ent->client->sess.sessionTeam == TEAM_SPECTATOR) { return; } if(ent->health <= 0) { return; } ent->flags &= ~FL_GODMODE; ent->client->ps.stats[STAT_HEALTH] = ent->health = -999; player_die(ent, ent, ent, 100000, MOD_SUICIDE); } /* ================= BroadCastTeamChange Let everyone know about a team change ================= */ void BroadcastTeamChange(gclient_t * client, int oldTeam) { if(client->sess.sessionTeam == TEAM_RED) { trap_SendServerCommand(-1, va("cp \"%s" S_COLOR_WHITE " joined the red team.\n\"", client->pers.netname)); } else if(client->sess.sessionTeam == TEAM_BLUE) { trap_SendServerCommand(-1, va("cp \"%s" S_COLOR_WHITE " joined the blue team.\n\"", client->pers.netname)); } else if(client->sess.sessionTeam == TEAM_SPECTATOR && oldTeam != TEAM_SPECTATOR) { trap_SendServerCommand(-1, va("cp \"%s" S_COLOR_WHITE " joined the spectators.\n\"", client->pers.netname)); } else if(client->sess.sessionTeam == TEAM_FREE) { trap_SendServerCommand(-1, va("cp \"%s" S_COLOR_WHITE " joined the battle.\n\"", client->pers.netname)); } } /* ================= SetTeam ================= */ void SetTeam(gentity_t * ent, char *s) { int team, oldTeam; gclient_t *client; int clientNum; spectatorState_t specState; int specClient; int teamLeader; // // see what change is requested // client = ent->client; clientNum = client - level.clients; specClient = 0; specState = SPECTATOR_NOT; if(!Q_stricmp(s, "scoreboard") || !Q_stricmp(s, "score")) { team = TEAM_SPECTATOR; specState = SPECTATOR_SCOREBOARD; } else if(!Q_stricmp(s, "follow1")) { team = TEAM_SPECTATOR; specState = SPECTATOR_FOLLOW; specClient = -1; } else if(!Q_stricmp(s, "follow2")) { team = TEAM_SPECTATOR; specState = SPECTATOR_FOLLOW; specClient = -2; } else if(!Q_stricmp(s, "spectator") || !Q_stricmp(s, "s")) { team = TEAM_SPECTATOR; specState = SPECTATOR_FREE; } else if(g_gametype.integer >= GT_TEAM) { // if running a team game, assign player to one of the teams specState = SPECTATOR_NOT; if(!Q_stricmp(s, "red") || !Q_stricmp(s, "r")) { team = TEAM_RED; } else if(!Q_stricmp(s, "blue") || !Q_stricmp(s, "b")) { team = TEAM_BLUE; } else { // pick the team with the least number of players team = PickTeam(clientNum); } if(g_teamForceBalance.integer) { int counts[TEAM_NUM_TEAMS]; counts[TEAM_BLUE] = TeamCount(clientNum, TEAM_BLUE); counts[TEAM_RED] = TeamCount(clientNum, TEAM_RED); // We allow a spread of two if(team == TEAM_RED && counts[TEAM_RED] - counts[TEAM_BLUE] > 1) { // ignore the request trap_SendServerCommand(clientNum, "cp \"Red team has too many players.\n\""); return; } if(team == TEAM_BLUE && counts[TEAM_BLUE] - counts[TEAM_RED] > 1) { // ignore the request trap_SendServerCommand(clientNum, "cp \"Blue team has too many players.\n\""); return; } // It's ok, the team we are switching to has less or same number of players } } else { // force them to spectators if there aren't any spots free team = TEAM_FREE; } // override decision if limiting the players if((g_gametype.integer == GT_TOURNAMENT) && level.numNonSpectatorClients >= 2) { team = TEAM_SPECTATOR; } else if(g_maxGameClients.integer > 0 && level.numNonSpectatorClients >= g_maxGameClients.integer) { team = TEAM_SPECTATOR; } // // decide if we will allow the change // oldTeam = client->sess.sessionTeam; if(team == oldTeam && team != TEAM_SPECTATOR) { return; } // // execute the team change // // if the player was dead leave the body /* if(client->ps.stats[STAT_HEALTH] <= 0) { CopyToBodyQue(ent); } */ // he starts at 'base' client->pers.teamState.state = TEAM_BEGIN; if(oldTeam != TEAM_SPECTATOR) { // Kill him (makes sure he loses flags, etc) ent->flags &= ~FL_GODMODE; ent->client->ps.stats[STAT_HEALTH] = ent->health = 0; player_die(ent, ent, ent, 100000, MOD_SUICIDE); } // they go to the end of the line for tournements if(team == TEAM_SPECTATOR) { client->sess.spectatorTime = level.time; } client->sess.sessionTeam = (team_t)team; client->sess.spectatorState = specState; client->sess.spectatorClient = specClient; client->sess.teamLeader = qfalse; if(team == TEAM_RED || team == TEAM_BLUE) { teamLeader = TeamLeader(team); // if there is no team leader or the team leader is a bot and this client is not a bot if(teamLeader == -1 || (!(g_entities[clientNum].r.svFlags & SVF_BOT) && (g_entities[teamLeader].r.svFlags & SVF_BOT))) { SetLeader(team, clientNum); } } // make sure there is a team leader on the team the player came from if(oldTeam == TEAM_RED || oldTeam == TEAM_BLUE) { CheckTeamLeader(oldTeam); } BroadcastTeamChange(client, oldTeam); // get and distribute relevent paramters ClientUserinfoChanged(clientNum); ClientBegin(clientNum); } /* ================= StopFollowing If the client being followed leaves the game, or you just want to drop to free floating spectator mode ================= */ void StopFollowing(gentity_t * ent) { ent->client->ps.persistant[PERS_TEAM] = TEAM_SPECTATOR; ent->client->sess.sessionTeam = TEAM_SPECTATOR; ent->client->sess.spectatorState = SPECTATOR_FREE; ent->client->ps.pm_flags &= ~PMF_FOLLOW; ent->r.svFlags &= ~SVF_BOT; ent->client->ps.clientNum = ent - g_entities; } /* ================= Cmd_Team_f ================= */ void Cmd_Team_f(gentity_t * ent) { int oldTeam; char s[MAX_TOKEN_CHARS]; //G_Printf("Cmd_Team_f()\n"); if(trap_Argc() != 2) { oldTeam = ent->client->sess.sessionTeam; switch (oldTeam) { case TEAM_BLUE: trap_SendServerCommand(ent - g_entities, "print \"Blue team\n\""); break; case TEAM_RED: trap_SendServerCommand(ent - g_entities, "print \"Red team\n\""); break; case TEAM_FREE: trap_SendServerCommand(ent - g_entities, "print \"Free team\n\""); break; case TEAM_SPECTATOR: trap_SendServerCommand(ent - g_entities, "print \"Spectator team\n\""); break; } return; } if(ent->client->switchTeamTime > level.time) { trap_SendServerCommand(ent - g_entities, "print \"May not switch teams more than once per 5 seconds.\n\""); return; } // if they are playing a tournement game, count as a loss if((g_gametype.integer == GT_TOURNAMENT) && ent->client->sess.sessionTeam == TEAM_FREE) { ent->client->sess.losses++; } trap_Argv(1, s, sizeof(s)); SetTeam(ent, s); ent->client->switchTeamTime = level.time + 5000; } /* ================= Cmd_Follow_f ================= */ void Cmd_Follow_f(gentity_t * ent) { int i; char arg[MAX_TOKEN_CHARS]; if(trap_Argc() != 2) { if(ent->client->sess.spectatorState == SPECTATOR_FOLLOW) { StopFollowing(ent); } return; } trap_Argv(1, arg, sizeof(arg)); i = ClientNumberFromString(ent, arg); if(i == -1) { return; } // can't follow self if(&level.clients[i] == ent->client) { return; } // can't follow another spectator if(level.clients[i].sess.sessionTeam == TEAM_SPECTATOR) { return; } // if they are playing a tournement game, count as a loss if((g_gametype.integer == GT_TOURNAMENT) && ent->client->sess.sessionTeam == TEAM_FREE) { ent->client->sess.losses++; } // first set them to spectator if(ent->client->sess.sessionTeam != TEAM_SPECTATOR) { SetTeam(ent, "spectator"); } ent->client->sess.spectatorState = SPECTATOR_FOLLOW; ent->client->sess.spectatorClient = i; } /* ================= Cmd_FollowCycle_f ================= */ void Cmd_FollowCycle_f(gentity_t * ent, int dir) { int clientnum; int original; // if they are playing a tournement game, count as a loss if((g_gametype.integer == GT_TOURNAMENT) && ent->client->sess.sessionTeam == TEAM_FREE) { ent->client->sess.losses++; } // first set them to spectator if(ent->client->sess.spectatorState == SPECTATOR_NOT) { SetTeam(ent, "spectator"); } if(dir != 1 && dir != -1) { G_Error("Cmd_FollowCycle_f: bad dir %i", dir); } clientnum = ent->client->sess.spectatorClient; original = clientnum; do { clientnum += dir; if(clientnum >= level.maxclients) { clientnum = 0; } if(clientnum < 0) { clientnum = level.maxclients - 1; } // can only follow connected clients if(level.clients[clientnum].pers.connected != CON_CONNECTED) { continue; } // can't follow another spectator if(level.clients[clientnum].sess.sessionTeam == TEAM_SPECTATOR) { continue; } // this is good, we can use it ent->client->sess.spectatorClient = clientnum; ent->client->sess.spectatorState = SPECTATOR_FOLLOW; return; } while(clientnum != original); // leave it where it was } /* ================== G_Say ================== */ static void G_SayTo(gentity_t * ent, gentity_t * other, int mode, int color, const char *name, const char *message) { if(!other) { return; } if(!other->inuse) { return; } if(!other->client) { return; } if(other->client->pers.connected != CON_CONNECTED) { return; } if(mode == SAY_TEAM && !OnSameTeam(ent, other)) { return; } // no chatting to players in tournements if((g_gametype.integer == GT_TOURNAMENT) && other->client->sess.sessionTeam == TEAM_FREE && ent->client->sess.sessionTeam != TEAM_FREE) { return; } trap_SendServerCommand(other - g_entities, va("%s \"%s%c%c%s\"", mode == SAY_TEAM ? "tchat" : "chat", name, Q_COLOR_ESCAPE, color, message)); } #define EC "\x19" void G_Say(gentity_t * ent, gentity_t * target, int mode, const char *chatText) { int j; gentity_t *other; int color; char name[64]; // don't let text be too long for malicious reasons char text[MAX_SAY_TEXT]; char location[64]; if(g_gametype.integer < GT_TEAM && mode == SAY_TEAM) { mode = SAY_ALL; } switch (mode) { default: case SAY_ALL: G_LogPrintf("say: %s: %s\n", ent->client->pers.netname, chatText); Com_sprintf(name, sizeof(name), "%s%c%c" EC ": ", ent->client->pers.netname, Q_COLOR_ESCAPE, COLOR_WHITE); color = COLOR_GREEN; break; case SAY_TEAM: G_LogPrintf("sayteam: %s: %s\n", ent->client->pers.netname, chatText); if(Team_GetLocationMsg(ent, location, sizeof(location))) Com_sprintf(name, sizeof(name), EC "(%s%c%c" EC ") (%s)" EC ": ", ent->client->pers.netname, Q_COLOR_ESCAPE, COLOR_WHITE, location); else Com_sprintf(name, sizeof(name), EC "(%s%c%c" EC ")" EC ": ", ent->client->pers.netname, Q_COLOR_ESCAPE, COLOR_WHITE); color = COLOR_CYAN; break; case SAY_TELL: if(target && g_gametype.integer >= GT_TEAM && target->client->sess.sessionTeam == ent->client->sess.sessionTeam && Team_GetLocationMsg(ent, location, sizeof(location))) Com_sprintf(name, sizeof(name), EC "[%s%c%c" EC "] (%s)" EC ": ", ent->client->pers.netname, Q_COLOR_ESCAPE, COLOR_WHITE, location); else Com_sprintf(name, sizeof(name), EC "[%s%c%c" EC "]" EC ": ", ent->client->pers.netname, Q_COLOR_ESCAPE, COLOR_WHITE); color = COLOR_MAGENTA; break; } Q_strncpyz(text, chatText, sizeof(text)); if(target) { G_SayTo(ent, target, mode, color, name, text); return; } // echo the text to the console if(g_dedicated.integer) { G_Printf("%s%s\n", name, text); } // send it to all the apropriate clients for(j = 0; j < level.maxclients; j++) { other = &g_entities[j]; G_SayTo(ent, other, mode, color, name, text); } } /* ================== Cmd_Say_f ================== */ static void Cmd_Say_f(gentity_t * ent, int mode, qboolean arg0) { char *p; if(trap_Argc() < 2 && !arg0) { return; } if(arg0) { p = ConcatArgs(0); } else { p = ConcatArgs(1); } G_Say(ent, NULL, mode, p); } /* ================== Cmd_Tell_f ================== */ static void Cmd_Tell_f(gentity_t * ent) { int targetNum; gentity_t *target; char *p; char arg[MAX_TOKEN_CHARS]; if(trap_Argc() < 2) { return; } trap_Argv(1, arg, sizeof(arg)); targetNum = atoi(arg); if(targetNum < 0 || targetNum >= level.maxclients) { return; } target = &g_entities[targetNum]; if(!target || !target->inuse || !target->client) { return; } p = ConcatArgs(2); G_LogPrintf("tell: %s to %s: %s\n", ent->client->pers.netname, target->client->pers.netname, p); G_Say(ent, target, SAY_TELL, p); // don't tell to the player self if it was already directed to this player // also don't send the chat back to a bot if(ent != target && !(ent->r.svFlags & SVF_BOT)) { G_Say(ent, ent, SAY_TELL, p); } } static void G_VoiceTo(gentity_t * ent, gentity_t * other, int mode, const char *id, qboolean voiceonly) { int color; char *cmd; if(!other) { return; } if(!other->inuse) { return; } if(!other->client) { return; } if(mode == SAY_TEAM && !OnSameTeam(ent, other)) { return; } // no chatting to players in tournements if((g_gametype.integer == GT_TOURNAMENT)) { return; } if(mode == SAY_TEAM) { color = COLOR_CYAN; cmd = "vtchat"; } else if(mode == SAY_TELL) { color = COLOR_MAGENTA; cmd = "vtell"; } else { color = COLOR_GREEN; cmd = "vchat"; } trap_SendServerCommand(other - g_entities, va("%s %d %d %d %s", cmd, voiceonly, ent->s.number, color, id)); } void G_Voice(gentity_t * ent, gentity_t * target, int mode, const char *id, qboolean voiceonly) { int j; gentity_t *other; if(g_gametype.integer < GT_TEAM && mode == SAY_TEAM) { mode = SAY_ALL; } if(target) { G_VoiceTo(ent, target, mode, id, voiceonly); return; } // echo the text to the console if(g_dedicated.integer) { G_Printf("voice: %s %s\n", ent->client->pers.netname, id); } // send it to all the apropriate clients for(j = 0; j < level.maxclients; j++) { other = &g_entities[j]; G_VoiceTo(ent, other, mode, id, voiceonly); } } /* ================== Cmd_Voice_f ================== */ static void Cmd_Voice_f(gentity_t * ent, int mode, qboolean arg0, qboolean voiceonly) { char *p; if(trap_Argc() < 2 && !arg0) { return; } if(arg0) { p = ConcatArgs(0); } else { p = ConcatArgs(1); } G_Voice(ent, NULL, mode, p, voiceonly); } /* ================== Cmd_VoiceTell_f ================== */ static void Cmd_VoiceTell_f(gentity_t * ent, qboolean voiceonly) { int targetNum; gentity_t *target; char *id; char arg[MAX_TOKEN_CHARS]; if(trap_Argc() < 2) { return; } trap_Argv(1, arg, sizeof(arg)); targetNum = atoi(arg); if(targetNum < 0 || targetNum >= level.maxclients) { return; } target = &g_entities[targetNum]; if(!target || !target->inuse || !target->client) { return; } id = ConcatArgs(2); G_LogPrintf("vtell: %s to %s: %s\n", ent->client->pers.netname, target->client->pers.netname, id); G_Voice(ent, target, SAY_TELL, id, voiceonly); // don't tell to the player self if it was already directed to this player // also don't send the chat back to a bot if(ent != target && !(ent->r.svFlags & SVF_BOT)) { G_Voice(ent, ent, SAY_TELL, id, voiceonly); } } /* ================== Cmd_VoiceTaunt_f ================== */ static void Cmd_VoiceTaunt_f(gentity_t * ent) { gentity_t *who; int i; if(!ent->client) { return; } // insult someone who just killed you if(ent->enemy && ent->enemy->client && ent->enemy->client->lastkilled_client == ent->s.number) { // i am a dead corpse if(!(ent->enemy->r.svFlags & SVF_BOT)) { G_Voice(ent, ent->enemy, SAY_TELL, VOICECHAT_DEATHINSULT, qfalse); } if(!(ent->r.svFlags & SVF_BOT)) { G_Voice(ent, ent, SAY_TELL, VOICECHAT_DEATHINSULT, qfalse); } ent->enemy = NULL; return; } // insult someone you just killed if(ent->client->lastkilled_client >= 0 && ent->client->lastkilled_client != ent->s.number) { who = g_entities + ent->client->lastkilled_client; if(who->client) { // who is the person I just killed if(who->client->lasthurt_mod == MOD_GAUNTLET) { if(!(who->r.svFlags & SVF_BOT)) { G_Voice(ent, who, SAY_TELL, VOICECHAT_KILLGAUNTLET, qfalse); // and I killed them with a gauntlet } if(!(ent->r.svFlags & SVF_BOT)) { G_Voice(ent, ent, SAY_TELL, VOICECHAT_KILLGAUNTLET, qfalse); } } else { if(!(who->r.svFlags & SVF_BOT)) { G_Voice(ent, who, SAY_TELL, VOICECHAT_KILLINSULT, qfalse); // and I killed them with something else } if(!(ent->r.svFlags & SVF_BOT)) { G_Voice(ent, ent, SAY_TELL, VOICECHAT_KILLINSULT, qfalse); } } ent->client->lastkilled_client = -1; return; } } if(g_gametype.integer >= GT_TEAM) { // praise a team mate who just got a reward for(i = 0; i < MAX_CLIENTS; i++) { who = g_entities + i; if(who->client && who != ent && who->client->sess.sessionTeam == ent->client->sess.sessionTeam) { if(who->client->rewardTime > level.time) { if(!(who->r.svFlags & SVF_BOT)) { G_Voice(ent, who, SAY_TELL, VOICECHAT_PRAISE, qfalse); } if(!(ent->r.svFlags & SVF_BOT)) { G_Voice(ent, ent, SAY_TELL, VOICECHAT_PRAISE, qfalse); } return; } } } } // just say something G_Voice(ent, NULL, SAY_ALL, VOICECHAT_TAUNT, qfalse); } static char *gc_orders[] = { "hold your position", "hold this position", "come here", "cover me", "guard location", "search and destroy", "report" }; void Cmd_GameCommand_f(gentity_t * ent) { int player; int order; char str[MAX_TOKEN_CHARS]; trap_Argv(1, str, sizeof(str)); player = atoi(str); trap_Argv(2, str, sizeof(str)); order = atoi(str); if(player < 0 || player >= MAX_CLIENTS) { return; } if(order < 0 || order > sizeof(gc_orders) / sizeof(char *)) { return; } G_Say(ent, &g_entities[player], SAY_TELL, gc_orders[order]); G_Say(ent, ent, SAY_TELL, gc_orders[order]); } /* ================== Cmd_Where_f ================== */ void Cmd_Where_f(gentity_t * ent) { trap_SendServerCommand(ent - g_entities, va("print \"%s\n\"", vtos(ent->s.origin))); } static const char *gameNames[] = { "Free For All", "Tournament", "Single Player", "Team Deathmatch", "Capture the Flag", "One Flag CTF", "Overload", "Harvester" }; /* ================== Cmd_CallVote_f ================== */ void Cmd_CallVote_f(gentity_t * ent) { char *c; int i; char arg1[MAX_STRING_TOKENS]; char arg2[MAX_STRING_TOKENS]; if(!g_allowVote.integer) { trap_SendServerCommand(ent - g_entities, "print \"Voting not allowed here.\n\""); return; } if(level.voteTime) { trap_SendServerCommand(ent - g_entities, "print \"A vote is already in progress.\n\""); return; } if(ent->client->pers.voteCount >= MAX_VOTE_COUNT) { trap_SendServerCommand(ent - g_entities, "print \"You have called the maximum number of votes.\n\""); return; } if(ent->client->sess.sessionTeam == TEAM_SPECTATOR) { trap_SendServerCommand(ent - g_entities, "print \"Not allowed to call a vote as spectator.\n\""); return; } // make sure it is a valid command to vote on trap_Argv(1, arg1, sizeof(arg1)); trap_Argv(2, arg2, sizeof(arg2)); // check for command separators in arg2 for(c = arg2; *c; ++c) { switch (*c) { case '\n': case '\r': case ';': trap_SendServerCommand(ent - g_entities, "print \"Invalid vote string.\n\""); return; default: break; } } if(!Q_stricmp(arg1, "map_restart")) { } else if(!Q_stricmp(arg1, "nextmap")) { } else if(!Q_stricmp(arg1, "map")) { } else if(!Q_stricmp(arg1, "g_gametype")) { } else if(!Q_stricmp(arg1, "kick")) { } else if(!Q_stricmp(arg1, "clientkick")) { } else if(!Q_stricmp(arg1, "g_doWarmup")) { } else if(!Q_stricmp(arg1, "timelimit")) { } else if(!Q_stricmp(arg1, "fraglimit")) { } else { trap_SendServerCommand(ent - g_entities, "print \"Invalid vote string.\n\""); trap_SendServerCommand(ent - g_entities, "print \"Vote commands are: map_restart, nextmap, map <mapname>, g_gametype <n>, kick <player>, clientkick <clientnum>, g_doWarmup, timelimit <time>, fraglimit <frags>.\n\""); return; } // if there is still a vote to be executed if(level.voteExecuteTime) { level.voteExecuteTime = 0; trap_SendConsoleCommand(EXEC_APPEND, va("%s\n", level.voteString)); } // special case for g_gametype, check for bad values if(!Q_stricmp(arg1, "g_gametype")) { i = atoi(arg2); if(i == GT_SINGLE_PLAYER || i < GT_FFA || i >= GT_MAX_GAME_TYPE) { trap_SendServerCommand(ent - g_entities, "print \"Invalid gametype.\n\""); return; } Com_sprintf(level.voteString, sizeof(level.voteString), "%s %d", arg1, i); Com_sprintf(level.voteDisplayString, sizeof(level.voteDisplayString), "%s %s", arg1, gameNames[i]); } else if(!Q_stricmp(arg1, "map")) { // special case for map changes, we want to reset the nextmap setting // this allows a player to change maps, but not upset the map rotation char s[MAX_STRING_CHARS]; trap_Cvar_VariableStringBuffer("nextmap", s, sizeof(s)); if(*s) { Com_sprintf(level.voteString, sizeof(level.voteString), "%s %s; set nextmap \"%s\"", arg1, arg2, s); } else { Com_sprintf(level.voteString, sizeof(level.voteString), "%s %s", arg1, arg2); } Com_sprintf(level.voteDisplayString, sizeof(level.voteDisplayString), "%s", level.voteString); } else if(!Q_stricmp(arg1, "nextmap")) { char s[MAX_STRING_CHARS]; trap_Cvar_VariableStringBuffer("nextmap", s, sizeof(s)); if(!*s) { trap_SendServerCommand(ent - g_entities, "print \"nextmap not set.\n\""); return; } Com_sprintf(level.voteString, sizeof(level.voteString), "vstr nextmap"); Com_sprintf(level.voteDisplayString, sizeof(level.voteDisplayString), "%s", level.voteString); } else { Com_sprintf(level.voteString, sizeof(level.voteString), "%s \"%s\"", arg1, arg2); Com_sprintf(level.voteDisplayString, sizeof(level.voteDisplayString), "%s", level.voteString); } trap_SendServerCommand(-1, va("print \"%s called a vote.\n\"", ent->client->pers.netname)); // start the voting, the caller autoamtically votes yes level.voteTime = level.time; level.voteYes = 1; level.voteNo = 0; for(i = 0; i < level.maxclients; i++) { level.clients[i].ps.eFlags &= ~EF_VOTED; } ent->client->ps.eFlags |= EF_VOTED; trap_SetConfigstring(CS_VOTE_TIME, va("%i", level.voteTime)); trap_SetConfigstring(CS_VOTE_STRING, level.voteDisplayString); trap_SetConfigstring(CS_VOTE_YES, va("%i", level.voteYes)); trap_SetConfigstring(CS_VOTE_NO, va("%i", level.voteNo)); } /* ================== Cmd_Vote_f ================== */ void Cmd_Vote_f(gentity_t * ent) { char msg[64]; if(!level.voteTime) { trap_SendServerCommand(ent - g_entities, "print \"No vote in progress.\n\""); return; } if(ent->client->ps.eFlags & EF_VOTED) { trap_SendServerCommand(ent - g_entities, "print \"Vote already cast.\n\""); return; } if(ent->client->sess.sessionTeam == TEAM_SPECTATOR) { trap_SendServerCommand(ent - g_entities, "print \"Not allowed to vote as spectator.\n\""); return; } trap_SendServerCommand(ent - g_entities, "print \"Vote cast.\n\""); ent->client->ps.eFlags |= EF_VOTED; trap_Argv(1, msg, sizeof(msg)); if(msg[0] == 'y' || msg[1] == 'Y' || msg[1] == '1') { level.voteYes++; trap_SetConfigstring(CS_VOTE_YES, va("%i", level.voteYes)); } else { level.voteNo++; trap_SetConfigstring(CS_VOTE_NO, va("%i", level.voteNo)); } // a majority will be determined in CheckVote, which will also account // for players entering or leaving } /* ================== Cmd_CallTeamVote_f ================== */ void Cmd_CallTeamVote_f(gentity_t * ent) { int i, team, cs_offset; char arg1[MAX_STRING_TOKENS]; char arg2[MAX_STRING_TOKENS]; team = ent->client->sess.sessionTeam; if(team == TEAM_RED) cs_offset = 0; else if(team == TEAM_BLUE) cs_offset = 1; else return; if(!g_allowVote.integer) { trap_SendServerCommand(ent - g_entities, "print \"Voting not allowed here.\n\""); return; } if(level.teamVoteTime[cs_offset]) { trap_SendServerCommand(ent - g_entities, "print \"A team vote is already in progress.\n\""); return; } if(ent->client->pers.teamVoteCount >= MAX_VOTE_COUNT) { trap_SendServerCommand(ent - g_entities, "print \"You have called the maximum number of team votes.\n\""); return; } if(ent->client->sess.sessionTeam == TEAM_SPECTATOR) { trap_SendServerCommand(ent - g_entities, "print \"Not allowed to call a vote as spectator.\n\""); return; } // make sure it is a valid command to vote on trap_Argv(1, arg1, sizeof(arg1)); arg2[0] = '\0'; for(i = 2; i < trap_Argc(); i++) { if(i > 2) strcat(arg2, " "); trap_Argv(i, &arg2[strlen(arg2)], sizeof(arg2) - strlen(arg2)); } if(strchr(arg1, ';') || strchr(arg2, ';')) { trap_SendServerCommand(ent - g_entities, "print \"Invalid vote string.\n\""); return; } if(!Q_stricmp(arg1, "leader")) { char netname[MAX_NETNAME], leader[MAX_NETNAME]; if(!arg2[0]) { i = ent->client->ps.clientNum; } else { // numeric values are just slot numbers for(i = 0; i < 3; i++) { if(!arg2[i] || arg2[i] < '0' || arg2[i] > '9') break; } if(i >= 3 || !arg2[i]) { i = atoi(arg2); if(i < 0 || i >= level.maxclients) { trap_SendServerCommand(ent - g_entities, va("print \"Bad client slot: %i\n\"", i)); return; } if(!g_entities[i].inuse) { trap_SendServerCommand(ent - g_entities, va("print \"Client %i is not active\n\"", i)); return; } } else { Q_strncpyz(leader, arg2, sizeof(leader)); Q_CleanStr(leader); for(i = 0; i < level.maxclients; i++) { if(level.clients[i].pers.connected == CON_DISCONNECTED) continue; if(level.clients[i].sess.sessionTeam != team) continue; Q_strncpyz(netname, level.clients[i].pers.netname, sizeof(netname)); Q_CleanStr(netname); if(!Q_stricmp(netname, leader)) { break; } } if(i >= level.maxclients) { trap_SendServerCommand(ent - g_entities, va("print \"%s is not a valid player on your team.\n\"", arg2)); return; } } } Com_sprintf(arg2, sizeof(arg2), "%d", i); } else { trap_SendServerCommand(ent - g_entities, "print \"Invalid vote string.\n\""); trap_SendServerCommand(ent - g_entities, "print \"Team vote commands are: leader <player>.\n\""); return; } Com_sprintf(level.teamVoteString[cs_offset], sizeof(level.teamVoteString[cs_offset]), "%s %s", arg1, arg2); for(i = 0; i < level.maxclients; i++) { if(level.clients[i].pers.connected == CON_DISCONNECTED) continue; if(level.clients[i].sess.sessionTeam == team) trap_SendServerCommand(i, va("print \"%s called a team vote.\n\"", ent->client->pers.netname)); } // start the voting, the caller autoamtically votes yes level.teamVoteTime[cs_offset] = level.time; level.teamVoteYes[cs_offset] = 1; level.teamVoteNo[cs_offset] = 0; for(i = 0; i < level.maxclients; i++) { if(level.clients[i].sess.sessionTeam == team) level.clients[i].ps.eFlags &= ~EF_TEAMVOTED; } ent->client->ps.eFlags |= EF_TEAMVOTED; trap_SetConfigstring(CS_TEAMVOTE_TIME + cs_offset, va("%i", level.teamVoteTime[cs_offset])); trap_SetConfigstring(CS_TEAMVOTE_STRING + cs_offset, level.teamVoteString[cs_offset]); trap_SetConfigstring(CS_TEAMVOTE_YES + cs_offset, va("%i", level.teamVoteYes[cs_offset])); trap_SetConfigstring(CS_TEAMVOTE_NO + cs_offset, va("%i", level.teamVoteNo[cs_offset])); } /* ================== Cmd_TeamVote_f ================== */ void Cmd_TeamVote_f(gentity_t * ent) { int team, cs_offset; char msg[64]; team = ent->client->sess.sessionTeam; if(team == TEAM_RED) cs_offset = 0; else if(team == TEAM_BLUE) cs_offset = 1; else return; if(!level.teamVoteTime[cs_offset]) { trap_SendServerCommand(ent - g_entities, "print \"No team vote in progress.\n\""); return; } if(ent->client->ps.eFlags & EF_TEAMVOTED) { trap_SendServerCommand(ent - g_entities, "print \"Team vote already cast.\n\""); return; } if(ent->client->sess.sessionTeam == TEAM_SPECTATOR) { trap_SendServerCommand(ent - g_entities, "print \"Not allowed to vote as spectator.\n\""); return; } trap_SendServerCommand(ent - g_entities, "print \"Team vote cast.\n\""); ent->client->ps.eFlags |= EF_TEAMVOTED; trap_Argv(1, msg, sizeof(msg)); if(msg[0] == 'y' || msg[1] == 'Y' || msg[1] == '1') { level.teamVoteYes[cs_offset]++; trap_SetConfigstring(CS_TEAMVOTE_YES + cs_offset, va("%i", level.teamVoteYes[cs_offset])); } else { level.teamVoteNo[cs_offset]++; trap_SetConfigstring(CS_TEAMVOTE_NO + cs_offset, va("%i", level.teamVoteNo[cs_offset])); } // a majority will be determined in TeamCheckVote, which will also account // for players entering or leaving } /* ================= Cmd_SetViewpos_f ================= */ void Cmd_SetViewpos_f(gentity_t * ent) { vec3_t origin, angles; char buffer[MAX_TOKEN_CHARS]; int i; if(!g_cheats.integer) { trap_SendServerCommand(ent - g_entities, va("print \"Cheats are not enabled on this server.\n\"")); return; } if(trap_Argc() != 5) { trap_SendServerCommand(ent - g_entities, va("print \"usage: setviewpos x y z yaw\n\"")); return; } VectorClear(angles); for(i = 0; i < 3; i++) { trap_Argv(i + 1, buffer, sizeof(buffer)); origin[i] = atof(buffer); } trap_Argv(4, buffer, sizeof(buffer)); angles[YAW] = atof(buffer); TeleportPlayer(ent, origin, angles); } /* ================= Cmd_Stats_f ================= */ void Cmd_Stats_f(gentity_t * ent) { /* int max, n, i; max = trap_AAS_PointReachabilityAreaIndex( NULL ); n = 0; for ( i = 0; i < max; i++ ) { if ( ent->client->areabits[i >> 3] & (1 << (i & 7)) ) n++; } //trap_SendServerCommand( ent-g_entities, va("print \"visited %d of %d areas\n\"", n, max)); trap_SendServerCommand( ent-g_entities, va("print \"%d%% level coverage\n\"", n * 100 / max)); */ } int reload_compare(const void* a, const void* b) { return *(int*)b - *(int*)a; } void Cmd_Reload_f(gentity_t* ent) { bool chambered = false; playerState_t* ps = &ent->client->ps; // Get the weapon attributes const hat::Weapon_attrs* attrs; if (!trap_GetWeaponAttrs(ps->clientNum, ps->weapon, (const void**)(&attrs))) { Com_Printf("WARNING: Cmd_Reload_f: Attempting to reload without a \ reload time. Bad animation?"); } // Adjust the times for the reload animation ps->weaponTime = ps->weaponTime < 0 ? attrs->times.reload : ps->weaponTime + attrs->times.reload; // Start the reload animation ps->weaponstate = WEAPON_RELOADING; // Cycle our magazines int* ammo = ps->primary_ammo[ps->weapon]; // If we have positive ammo, then we can assume a round is chambered if (ammo[0] > 0) { Com_Printf("NOTICE: Round was already chambered.\n"); ammo[0]--; chambered = true; } Com_Printf("Before reload: "); for (int i = 0; i < MAX_MAGS; i++) Com_Printf("%d ", ammo[i]); Com_Printf("\nAfter reload: "); // We always pull the largest magazine first qsort(ammo, MAX_MAGS, sizeof(int), reload_compare); for (int i = 0; i < MAX_MAGS; i++) Com_Printf("%d ", ammo[i]); // If we had a round chambered, then add it back in. ammo[0] = chambered ? ammo[0] + 1 : ammo[0]; if (ammo[0] == 0) Com_Printf("WARNING: Cycled to an empty magazine.\n"); Com_Printf("\n"); } void Cmd_Firemode_f(gentity_t* ent) { playerState_t* ps = &ent->client->ps; // Get the weapon attributes const hat::Weapon_attrs* attrs; if (!trap_GetWeaponAttrs(ps->clientNum, ps->weapon, (const void**)(&attrs))) { Com_Printf("WARNING: Attempted to switch firemodes without a weapon?!"); } int current_mode = ps->weapon_fire_mode[ps->weapon]; int next_mode = 0; for ( hat::Fire_mode::const_iterator cit = attrs->fire_modes.begin(); cit != attrs->fire_modes.end(); ++cit) { next_mode++; if (*cit == current_mode) { break; } } if (next_mode >= attrs->fire_modes.size()) { next_mode = 0; } Com_Printf("Switching firemodes from %d to %d\n", current_mode, attrs->fire_modes[next_mode]); ps->weapon_fire_mode[ps->weapon] = attrs->fire_modes[next_mode]; } /* ================= ClientCommand ================= */ void ClientCommand(int clientNum) { gentity_t *ent; char cmd[MAX_TOKEN_CHARS]; ent = g_entities + clientNum; if(!ent->client) { return; // not fully in game yet } trap_Argv(0, cmd, sizeof(cmd)); #ifdef G_LUA if(Q_stricmp(cmd, "lua_status") == 0) { G_LuaStatus(ent); return; } // Lua API callbacks if(G_LuaHook_ClientCommand(clientNum, cmd)) { return; } #endif #if defined(ACEBOT) if(ACECM_Commands(ent)) return; #endif if(Q_stricmp(cmd, "say") == 0) { Cmd_Say_f(ent, SAY_ALL, qfalse); return; } if(Q_stricmp(cmd, "say_team") == 0) { Cmd_Say_f(ent, SAY_TEAM, qfalse); return; } if(Q_stricmp(cmd, "tell") == 0) { Cmd_Tell_f(ent); return; } if(Q_stricmp(cmd, "vsay") == 0) { Cmd_Voice_f(ent, SAY_ALL, qfalse, qfalse); return; } if(Q_stricmp(cmd, "vsay_team") == 0) { Cmd_Voice_f(ent, SAY_TEAM, qfalse, qfalse); return; } if(Q_stricmp(cmd, "vtell") == 0) { Cmd_VoiceTell_f(ent, qfalse); return; } if(Q_stricmp(cmd, "vosay") == 0) { Cmd_Voice_f(ent, SAY_ALL, qfalse, qtrue); return; } if(Q_stricmp(cmd, "vosay_team") == 0) { Cmd_Voice_f(ent, SAY_TEAM, qfalse, qtrue); return; } if(Q_stricmp(cmd, "votell") == 0) { Cmd_VoiceTell_f(ent, qtrue); return; } if(Q_stricmp(cmd, "vtaunt") == 0) { Cmd_VoiceTaunt_f(ent); return; } if(Q_stricmp(cmd, "score") == 0) { Cmd_Score_f(ent); return; } // ignore all other commands when at intermission if(level.intermissiontime) { Cmd_Say_f(ent, qfalse, qtrue); return; } if(Q_stricmp(cmd, "reload") == 0) Cmd_Reload_f(ent); else if(Q_stricmp(cmd, "firemode") == 0) Cmd_Firemode_f(ent); else if(Q_stricmp(cmd, "give") == 0) Cmd_Give_f(ent); else if(Q_stricmp(cmd, "god") == 0) Cmd_God_f(ent); else if(Q_stricmp(cmd, "notarget") == 0) Cmd_Notarget_f(ent); else if(Q_stricmp(cmd, "noclip") == 0) Cmd_Noclip_f(ent); else if(Q_stricmp(cmd, "kill") == 0) Cmd_Kill_f(ent); else if(Q_stricmp(cmd, "teamtask") == 0) Cmd_TeamTask_f(ent); else if(Q_stricmp(cmd, "levelshot") == 0) Cmd_LevelShot_f(ent); else if(Q_stricmp(cmd, "follow") == 0) Cmd_Follow_f(ent); else if(Q_stricmp(cmd, "follownext") == 0) Cmd_FollowCycle_f(ent, 1); else if(Q_stricmp(cmd, "followprev") == 0) Cmd_FollowCycle_f(ent, -1); else if(Q_stricmp(cmd, "team") == 0) Cmd_Team_f(ent); else if(Q_stricmp(cmd, "where") == 0) Cmd_Where_f(ent); else if(Q_stricmp(cmd, "callvote") == 0) Cmd_CallVote_f(ent); else if(Q_stricmp(cmd, "vote") == 0) Cmd_Vote_f(ent); else if(Q_stricmp(cmd, "callteamvote") == 0) Cmd_CallTeamVote_f(ent); else if(Q_stricmp(cmd, "teamvote") == 0) Cmd_TeamVote_f(ent); else if(Q_stricmp(cmd, "gc") == 0) Cmd_GameCommand_f(ent); else if(Q_stricmp(cmd, "setviewpos") == 0) Cmd_SetViewpos_f(ent); else if(Q_stricmp(cmd, "stats") == 0) Cmd_Stats_f(ent); else trap_SendServerCommand(clientNum, va("print \"unknown cmd %s\n\"", cmd)); }
[ [ [ 1, 2108 ] ] ]
b9a7a0922308fe4991ee28e15994c6a4cbd3df5a
0b55a33f4df7593378f58b60faff6bac01ec27f3
/Konstruct/Common/Utility/kpuRay.h
98403542279e4d557ff60eabe8d6cdbc63b0d85a
[]
no_license
RonOHara-GG/dimgame
8d149ffac1b1176432a3cae4643ba2d07011dd8e
bbde89435683244133dca9743d652dabb9edf1a4
refs/heads/master
2021-01-10T21:05:40.480392
2010-09-01T20:46:40
2010-09-01T20:46:40
32,113,739
1
0
null
null
null
null
UTF-8
C++
false
false
293
h
#pragma once #include "Common/Utility/kpuVector.h" class kpuRay { public: kpuRay(kpuVector vOrigin, kpuVector vDir); ~kpuRay(void); kpuVector GetPoint(float fDist) { return m_vOrigin + (m_vDirection * fDist); } protected: kpuVector m_vOrigin; kpuVector m_vDirection; };
[ "bflassing@0c57dbdb-4d19-7b8c-568b-3fe73d88484e" ]
[ [ [ 1, 15 ] ] ]
db6f92c8affdb9d08961299816abe4fec276b782
c27c037c99c3c80bf976f9eb2f841488516c640b
/demo/sample_00/main.cpp
261d81d934b45b75652a723d0a9c2f10ba37a73e
[ "MIT" ]
permissive
leandronunescorreia/realtimecameras
7ccfabdaa80bb5e89e19b7b65e9b2d7f97ef6fe7
f4c3a532d5c5c2747f68dd45cdf3fbf1aebf403f
refs/heads/master
2016-09-02T01:08:42.182481
2009-04-09T08:03:49
2009-04-09T08:03:49
39,148,159
0
1
null
null
null
null
UTF-8
C++
false
false
665
cpp
#include "csample0application.h" #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 #define WIN32_LEAN_AND_MEAN #include "windows.h" INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ) #else int main(int argc, char **argv) #endif { // Create application object CSample0Application app; try { app.go(); } catch( Ogre::Exception& e ) { #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 MessageBoxA( NULL, e.what(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL); #else fprintf(stderr, "An exception has occurred: %s\n", e.what()); #endif } return 0; }
[ "jmathews@5c5f61b4-215a-11de-a108-cd2f117ce590" ]
[ [ [ 1, 27 ] ] ]
bd134ae2d79dab050ea78b587effa0468a8d2b3e
c238f3867d4b352ed99f4c7b9c9bea6eca01f63d
/foliage/foliage/timer.hpp
090c9c8412c238dadb0368609210b2a26782bbfa
[]
no_license
mguillemot/kamaku.sg15
f34197677e6ebf6105435d927929e4dd24d6005d
0eb6ce1068f8198e01e25483f0cbc14e522c54a4
refs/heads/master
2021-01-01T19:42:52.583481
2007-09-20T13:19:35
2007-09-20T13:19:35
2,226,821
0
0
null
null
null
null
UTF-8
C++
false
false
308
hpp
#ifndef _FOLIAGE__TIMER #define _FOLIAGE__TIMER #include <xtime_l.h> //TEMP namespace Foliage { class Timer { public: Timer(); void start(); void stop(); void reset(); float duration() const; private: XTime _started, _stopped; }; } #endif //_FOLIAGE__TIMER
[ "erhune@1bdb3d1c-df69-384c-996e-f7b9c3edbfcf" ]
[ [ [ 1, 24 ] ] ]
13a3e8f18c8c0bd7d0dbc65b310f53398438d613
4d5ee0b6f7be0c3841c050ed1dda88ec128ae7b4
/src/nvmath/SphericalHarmonic.cpp
5a2b0d5960974f8fedcfd31eccbd3a2090731cb9
[]
no_license
saggita/nvidia-mesh-tools
9df27d41b65b9742a9d45dc67af5f6835709f0c2
a9b7fdd808e6719be88520e14bc60d58ea57e0bd
refs/heads/master
2020-12-24T21:37:11.053752
2010-09-03T01:39:02
2010-09-03T01:39:02
56,893,300
0
1
null
null
null
null
UTF-8
C++
false
false
6,374
cpp
// This code is in the public domain -- [email protected] #include <nvmath/SphericalHarmonic.h> using namespace nv; namespace { // Basic integer factorial. inline static int factorial( int v ) { const static int fac_table[] = { 1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800 }; if(v <= 11){ return fac_table[v]; } int result = v; while (--v > 0) { result *= v; } return result; } // Double factorial. // Defined as: n!! = n*(n - 2)*(n - 4)..., n!!(0,-1) = 1. inline static int doubleFactorial( int x ) { if (x == 0 || x == -1) { return 1; } int result = x; while ((x -= 2) > 0) { result *= x; } return result; } /// Normalization constant for spherical harmonic. /// @param l is the band. /// @param m is the argument, in the range [0, m] inline static float K( int l, int m ) { nvDebugCheck( m >= 0 ); return sqrtf(((2 * l + 1) * factorial(l - m)) / (4 * PI * factorial(l + m))); } /// Normalization constant for hemispherical harmonic. inline static float HK( int l, int m ) { nvDebugCheck( m >= 0 ); return sqrtf(((2 * l + 1) * factorial(l - m)) / (2 * PI * factorial(l + m))); } /// Evaluate Legendre polynomial. */ static float legendre( int l, int m, float x ) { // piDebugCheck( m >= 0 ); // piDebugCheck( m <= l ); // piDebugCheck( fabs(x) <= 1 ); // Rule 2 needs no previous results if (l == m) { return powf(-1.0f, float(m)) * doubleFactorial(2 * m - 1) * powf(1 - x*x, 0.5f * m); } // Rule 3 requires the result for the same argument of the previous band if (l == m + 1) { return x * (2 * m + 1) * legendrePolynomial(m, m, x); } // Main reccurence used by rule 1 that uses result of the same argument from // the previous two bands return (x * (2 * l - 1) * legendrePolynomial(l - 1, m, x) - (l + m - 1) * legendrePolynomial(l - 2, m, x)) / (l - m); } template <int l, int m> float legendre(float x); template <> float legendre<0, 0>(float ) { return 1; } template <> float legendre<1, 0>(float x) { return x; } template <> float legendre<1, 1>(float x) { return -sqrtf(1 - x * x); } template <> float legendre<2, 0>(float x) { return -0.5f + (3 * x * x) / 2; } template <> float legendre<2, 1>(float x) { return -3 * x * sqrtf(1 - x * x); } template <> float legendre<2, 2>(float x) { return -3 * (-1 + x * x); } template <> float legendre<3, 0>(float x) { return -(3 * x) / 2 + (5 * x * x * x) / 2; } template <> float legendre<3, 1>(float x) { return -3 * sqrtf(1 - x * x) / 2 * (-1 + 5 * x * x); } template <> float legendre<3, 2>(float x) { return -15 * (-x + x * x * x); } template <> float legendre<3, 3>(float x) { return -15 * powf(1 - x * x, 1.5f); } template <> float legendre<4, 0>(float x) { return 0.125f * (3.0f - 30.0f * x * x + 35.0f * x * x * x * x); } template <> float legendre<4, 1>(float x) { return -2.5f * x * sqrtf(1.0f - x * x) * (7.0f * x * x - 3.0f); } template <> float legendre<4, 2>(float x) { return -7.5f * (1.0f - 8.0f * x * x + 7.0f * x * x * x * x); } template <> float legendre<4, 3>(float x) { return -105.0f * x * powf(1 - x * x, 1.5f); } template <> float legendre<4, 4>(float x) { return 105.0f * (x * x - 1.0f) * (x * x - 1.0f); } } // namespace float nv::legendrePolynomial(int l, int m, float x) { switch(l) { case 0: return legendre<0, 0>(x); case 1: if(m == 0) return legendre<1, 0>(x); return legendre<1, 1>(x); case 2: if(m == 0) return legendre<2, 0>(x); else if(m == 1) return legendre<2, 1>(x); return legendre<2, 2>(x); case 3: if(m == 0) return legendre<3, 0>(x); else if(m == 1) return legendre<3, 1>(x); else if(m == 2) return legendre<3, 2>(x); return legendre<3, 3>(x); case 4: if(m == 0) return legendre<4, 0>(x); else if(m == 1) return legendre<4, 1>(x); else if(m == 2) return legendre<4, 2>(x); else if(m == 3) return legendre<4, 3>(x); else return legendre<4, 4>(x); } // Fallback to the expensive version. return legendre(l, m, x); } /** * Evaluate the spherical harmonic function for the given angles. * @param l is the band. * @param m is the argument, in the range [-l,l] * @param theta is the altitude, in the range [0, PI] * @param phi is the azimuth, in the range [0, 2*PI] */ float nv::y( int l, int m, float theta, float phi ) { if( m == 0 ) { // K(l, 0) = sqrt((2*l+1)/(4*PI)) return sqrtf((2 * l + 1) / (4 * PI)) * legendrePolynomial(l, 0, cosf(theta)); } else if( m > 0 ) { return sqrtf(2.0f) * K(l, m) * cosf(m * phi) * legendrePolynomial(l, m, cosf(theta)); } else { return sqrtf(2.0f) * K(l, -m) * sinf(-m * phi) * legendrePolynomial(l, -m, cosf(theta)); } } /** * Real spherical harmonic function of an unit vector. Uses the following * equalities to call the angular function: * x = sin(theta)*cos(phi) * y = sin(theta)*sin(phi) * z = cos(theta) */ float nv::y( int l, int m, Vector3::Arg v ) { float theta = acosf(v.z()); float phi = atan2f(v.y(), v.x()); return y( l, m, theta, phi ); } /** * Evaluate the hemispherical harmonic function for the given angles. * @param l is the band. * @param m is the argument, in the range [-l,l] * @param theta is the altitude, in the range [0, PI/2] * @param phi is the azimuth, in the range [0, 2*PI] */ float nv::hy( int l, int m, float theta, float phi ) { if( m == 0 ) { // HK(l, 0) = sqrt((2*l+1)/(2*PI)) return sqrtf((2 * l + 1) / (2 * PI)) * legendrePolynomial(l, 0, 2*cosf(theta)-1); } else if( m > 0 ) { return sqrtf(2.0f) * HK(l, m) * cosf(m * phi) * legendrePolynomial(l, m, 2*cosf(theta)-1); } else { return sqrtf(2.0f) * HK(l, -m) * sinf(-m * phi) * legendrePolynomial(l, -m, 2*cosf(theta)-1); } } /** * Real hemispherical harmonic function of an unit vector. Uses the following * equalities to call the angular function: * x = sin(theta)*cos(phi) * y = sin(theta)*sin(phi) * z = cos(theta) */ float nv::hy( int l, int m, Vector3::Arg v ) { float theta = acosf(v.z()); float phi = atan2f(v.y(), v.x()); return y( l, m, theta, phi ); }
[ "castano@0f2971b0-9fc2-11dd-b4aa-53559073bf4c" ]
[ [ [ 1, 243 ] ] ]
75ce64f49a460f7d662d0b784eb4789f56ca358a
8b3186e126ac2d19675dc19dd473785de97068d2
/bmt_prod/core/texturehandler.h
bfab30a560012f4409112854d1513a39ead6c7c7
[]
no_license
leavittx/revenge
e1fd7d6cd1f4a1fb1f7a98de5d16817a0c93da47
3389148f82e6434f0619df47c076c60c8647ed86
refs/heads/master
2021-01-01T17:28:26.539974
2011-08-25T20:25:14
2011-08-25T20:25:14
618,159
2
0
null
null
null
null
UTF-8
C++
false
false
986
h
#pragma once #include "texture.h" #include "image.h" extern class TextureHandler g_textures; class TextureParameters; class Texture; class TextureHandler { public: TextureHandler(); ~TextureHandler(); void init(); void clear(); //textures void addTextureParameters(string name, TextureParameters* params); void loadImages(); void uploadImages(); void bindTexture(string name, int texunit = GL_TEXTURE0_ARB); void clearTextureUnits(); //for lazy progammers //images void addImage(string name, Image *image); Image& image(string name); //framebuffer objects void bindDepthFBO(); void bindTextureFBO(string name); void unbindFBO(); //debug void dumpUnusedImages(); private: static const int MAX_TEXTURES = 8; map<string, Image*> m_images; map<string, Texture*> m_textures; map<string, TextureParameters*> m_textureParameters; string m_lastBoundTexture[8]; //rendertargets class FBOManager *m_FBO; };
[ [ [ 1, 50 ] ] ]
41c8e2b6cee885769db83102dc5b486c78e05bed
30a1e1c0c95239e5fa248fbb1b4ed41c6fe825ff
/jy/place.cpp
9e5d2399e697cf014e57a4d5a676c4c7dd19710e
[]
no_license
inspirer/history
ed158ef5c04cdf95270821663820cf613b5c8de0
6df0145cd28477b23748b1b50e4264a67441daae
refs/heads/master
2021-01-01T17:22:46.101365
2011-06-12T00:58:37
2011-06-12T00:58:37
1,882,931
1
0
null
null
null
null
UTF-8
C++
false
false
2,616
cpp
// place.cpp // This file is part of the Linker project. // AUTHORS: Eugeniy Gryaznov, 2002, [email protected] #include "place.h" #include "defs.h" TokenPlace::TokenPlace() { next100 = nextindex = 0; fi = NULL;fp = NULL; } TokenPlace::~TokenPlace() { clear(); } int TokenPlace::add_place(where& q) { pool *p = fp; int i; use_index(q.index); while(p){ if (p->used<100){ for( i=0; i<100; i++) if (p->data[i].used == -1){ p->data[i] = q; p->data[i].used = 1; p->used ++; return i+p->frompos; } } p=p->next; } p = new pool; p->next = fp; fp = p; p->used = 1; for( i=1; i<100; i++) p->data[i].used = -1; p->frompos = next100; next100 += 100; p->data[0] = q; p->data[0].used=1; return p->frompos; } TokenPlace::where * TokenPlace::get_place(int place) { pool *p = fp; int hund = place - place%100; while(p){ if( p->frompos == hund ) if (p->data[place%100].used >=0) return &p->data[place%100]; p = p->next; } return NULL; } void TokenPlace::use_place(int place,int num) { pool *p = fp; int hund = place - place%100; while(p){ if( p->frompos == hund ) if (p->data[place%100].used >=0){ p->data[place%100].used += num; return; } p = p->next; } } void TokenPlace::free_place(int place) { pool *p = fp, **prev = &fp; int hund = place - place%100; while(p){ if( p->frompos == hund ) if (p->data[place%100].used >=0){ p->data[place%100].used--; if (p->data[place%100].used == -1){ free_index(p->data[place%100].index); p->used--; if (!p->used){ *prev = p->next; delete p; } } return; } prev = &p->next; p = p->next; } } int TokenPlace::add_index(const char *s) { index *i; i = new index; i->ind = nextindex ++; i->next = fi; fi = i; i->used = 0; i->text = new char[strlen(s) + 1]; strcpy(i->text,s); return i->ind; } void TokenPlace::use_index(int y) { index *i = fi; while(i){ if (i->ind == y) i->used++; i = i->next; } } void TokenPlace::free_index(int y) { index *i = fi; while(i){ if (i->ind == y) i->used--; i = i->next; } } char * TokenPlace::get_index(int number) { index *i = fi; while(i){ if (i->ind == number){ return i->text; } i = i->next; } return NULL; } void TokenPlace::clear() { index *t; while(fi){ t=fi;fi=fi->next; delete t->text; delete t; } pool *p; while(fp){ p=fp;fp=fp->next; delete p; } next100 = 0; fi = NULL;fp = NULL; }
[ [ [ 1, 160 ] ] ]
b184e0c9a1c82da0e2e8d617c4ccde520dab2ce8
967868cbef4914f2bade9ef8f6c300eb5d14bc57
/String/StringTable.hpp
c7c5be2ce9abaeb51c65e8cb21105ff33cc69dd1
[]
no_license
saminigod/baseclasses-001
159c80d40f69954797f1c695682074b469027ac6
381c27f72583e0401e59eb19260c70ee68f9a64c
refs/heads/master
2023-04-29T13:34:02.754963
2009-10-29T11:22:46
2009-10-29T11:22:46
null
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
2,859
hpp
/* © Vestris Inc., Geneva, Switzerland http://www.vestris.com, 1994-1999 All Rights Reserved ______________________________________________ written by Daniel Doubrovkine - [email protected] */ #ifndef BASE_CSTRING_TABLE_HPP #define BASE_CSTRING_TABLE_HPP #include <platform/platform.hpp> #include <String/StringPair.hpp> #include <Vector/Vector.hpp> #include <Mutex/RWMutex.hpp> #include <Tree/XmlTree.hpp> class CStringTable : public CObject { property(CVector<CStringPair>, Table); public: CStringTable(void); CStringTable(const CStringTable&); virtual ~CStringTable(void); virtual CStringTable& operator=(const CStringTable&); virtual ostream& operator<<(ostream&) const; friend ostream& operator<<(ostream&, const CStringTable&); /* queries */ virtual inline unsigned int GetSize(void) const { return m_Table.GetSize(); } /* addition */ virtual void Add(const CStringTable& StringTable); virtual void Add(const CString&, const CString&); virtual inline void Add(const CStringPair& Pair) { Add(Pair.GetName(), Pair.GetValue()); } virtual void Set(const CString&, const CString&); virtual inline void Set(const CStringPair& Pair) { Set(Pair.GetName(), Pair.GetValue()); } virtual void SetAt(const unsigned int, const CString&, const CString&); virtual void InsertAt(const unsigned int, const CString&, const CString&); virtual inline void SetAt(const unsigned int Index, const CStringPair& Pair) { SetAt(Index, Pair.GetName(), Pair.GetValue()); } /* retrieval */ virtual CString GetValue(const CString&) const; virtual CString GetNameAt(const unsigned int) const; virtual CString GetValueAt(const unsigned int) const; virtual bool Contains(const CString& Name) const { return (FindName(Name) != -1); } virtual bool FindAndCopy(const CString& Name, CString& Target) const; virtual int FindName(const CString& Name) const; virtual const CStringPair& operator[](const unsigned int) const; virtual CStringPair& operator[](const unsigned int); /* removal */ virtual void RemoveAll(void); virtual void RemoveAt(const unsigned int); virtual void Remove(const CString&); /* mapping using the table */ virtual inline CString& MapTermEach(CString& Term, int /* Dummy */ = 0) const { Term = GetValue(Term); return Term; } virtual CString Map(const CString& /* Format */) const; virtual CString& MapTerm(const CString& /* Format */, CString& /* Target */, int /* Dummy */ = 0) const; virtual void PopulateXmlNode(CXmlTree& Tree, CTreeElement< CXmlNode > * pXmlNode) const; virtual CString Get(void) const; }; inline ostream& operator<<(ostream& Stream, const CStringTable& Table) { return Table.operator<<(Stream); } #endif
[ [ [ 1, 64 ] ] ]
a5a95dafa4b1fe504f963f696eb81669488a16e7
f12a33df3711392891e10b97ae18f687041e846b
/canon_noir/ModeleCpp/TirCaseCanon.h
a0ff05789480f1897dcc4c94ca0ca59aad55c25c
[]
no_license
MilenaKasaka/poocanonnoir
63e9cc68f0e560dece36f01f28df88a1bd46cbc6
04750469ac30fd9f59730c7b93154c3261a74f93
refs/heads/master
2020-05-18T06:34:07.996980
2011-01-26T18:39:29
2011-01-26T18:39:29
32,133,754
0
0
null
null
null
null
UTF-8
C++
false
false
466
h
/** * \file TirCaseCanon.h * \brief Fichier d'en-tete decrivant la classe TirCaseCanon * \author Sophie Le Corre * \author Gregoire Lecourt * \version 1.0 * \date 26/01/2011 */ #ifndef TIR_CASE_CANON_H #define TIR_CASE_CANON_H #include "Tir.h" /** * \class TirCaseCanon * \brief Définit un tir à partir d'une case de type CANON */ class TirCaseCanon : public Tir { public : TirCaseCanon(Moteur* m); //void gerer(); }; #endif
[ "[email protected]@c2238186-79af-eb75-5ca7-4ae61b27dd8b" ]
[ [ [ 1, 27 ] ] ]
579522b1827ec8b90eef5edb37a044e9e505ffd7
138a353006eb1376668037fcdfbafc05450aa413
/source/ogre/OgreNewt/boost/mpl/aux_/config/use_preprocessed.hpp
df0d85adfeb938d212d78769ce903e3b04e59354
[]
no_license
sonicma7/choreopower
107ed0a5f2eb5fa9e47378702469b77554e44746
1480a8f9512531665695b46dcfdde3f689888053
refs/heads/master
2020-05-16T20:53:11.590126
2009-11-18T03:10:12
2009-11-18T03:10:12
32,246,184
0
0
null
null
null
null
UTF-8
C++
false
false
675
hpp
#ifndef BOOST_MPL_AUX_CONFIG_USE_PREPROCESSED_HPP_INCLUDED #define BOOST_MPL_AUX_CONFIG_USE_PREPROCESSED_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/mpl for documentation. // $Source: /cvsroot/ogre/ogreaddons/ogrenewt/OgreNewt_Main/inc/boost/mpl/aux_/config/use_preprocessed.hpp,v $ // $Date: 2006/04/17 23:47:07 $ // $Revision: 1.1 $ // #define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS #endif // BOOST_MPL_AUX_CONFIG_USE_PREPROCESSED_HPP_INCLUDED
[ "Sonicma7@0822fb10-d3c0-11de-a505-35228575a32e" ]
[ [ [ 1, 19 ] ] ]
29be0d098f89a6fa97fb7de63a089e3541c364a5
d54d8b1bbc9575f3c96853e0c67f17c1ad7ab546
/hlsdk-2.3-p3/singleplayer/utils/vgui/include/VGUI_Layout.h
462396434df7ecc8c2018efcdb52d5489f4cc5ec
[]
no_license
joropito/amxxgroup
637ee71e250ffd6a7e628f77893caef4c4b1af0a
f948042ee63ebac6ad0332f8a77393322157fa8f
refs/heads/master
2021-01-10T09:21:31.449489
2010-04-11T21:34:27
2010-04-11T21:34:27
47,087,485
1
0
null
null
null
null
WINDOWS-1252
C++
false
false
558
h
//========= Copyright © 1996-2002, Valve LLC, All rights reserved. ============ // // Purpose: // // $NoKeywords: $ //============================================================================= #ifndef VGUI_LAYOUT_H #define VGUI_LAYOUT_H #include<VGUI.h> namespace vgui { class Panel; class VGUIAPI Layout { //private: // Panel* _panel; public: Layout(); public: //virtual void setPanel(Panel* panel); //called by Panel::setLayout virtual void performLayout(Panel* panel); }; } #endif
[ "joropito@23c7d628-c96c-11de-a380-73d83ba7c083" ]
[ [ [ 1, 31 ] ] ]
45992b331025522a2cd6ea89b790bada50aae9b8
1bbd5854d4a2efff9ee040e3febe3f846ed3ecef
/src/scrview/sspacket.h
330f2bf978b075ac5d80eb574597d120263b5c27
[]
no_license
amanuelg3/screenviewer
2b896452a05cb135eb7b9eb919424fe6c1ce8dd7
7fc4bb61060e785aa65922551f0e3ff8423eccb6
refs/heads/master
2021-01-01T18:54:06.167154
2011-12-21T02:19:10
2011-12-21T02:19:10
37,343,569
0
0
null
null
null
null
UTF-8
C++
false
false
416
h
#ifndef SSPACKET_H #define SSPACKET_H #include "screenshot.h" #include "abstractpacket.h" #include <QTcpSocket> class SsPacket : public AbstractPacket { public: SsPacket(); void makePacket(); void setNewContent(Screenshot* ss); static Screenshot* analyzePacket(QTcpSocket *socket, quint16 size); Screenshot* getContent(); private: Screenshot* ss; }; #endif // SSPACKET_H
[ "JuliusR@localhost" ]
[ [ [ 1, 19 ] ] ]
f4baaf3443cf928f61ef93153d0f2e6870d4447d
5ac13fa1746046451f1989b5b8734f40d6445322
/minimangalore/Nebula2/code/nebula2/src/kernel/nobject_cmds.cc
7c59348de99ecce84f054a954e5ff23c4d768e0e
[]
no_license
moltenguy1/minimangalore
9f2edf7901e7392490cc22486a7cf13c1790008d
4d849672a6f25d8e441245d374b6bde4b59cbd48
refs/heads/master
2020-04-23T08:57:16.492734
2009-08-01T09:13:33
2009-08-01T09:13:33
35,933,330
0
0
null
null
null
null
UTF-8
C++
false
false
6,793
cc
//------------------------------------------------------------------------------ // (c) 2004 Vadim Macagon // Refactored out of nRoot. //------------------------------------------------------------------------------ #include "kernel/nkernelserver.h" #include "kernel/ncmdproto.h" #include "kernel/nobject.h" #include "kernel/nref.h" static void n_saveas(void *, nCmd *); static void n_clone(void *, nCmd *); static void n_getrefcount(void *, nCmd *); static void n_getclass(void *, nCmd *); static void n_getclasses(void *, nCmd *); static void n_isa(void *, nCmd *); static void n_isinstanceof(void *, nCmd *); static void n_getcmds(void *, nCmd *); static void n_getinstancesize(void*, nCmd*); //------------------------------------------------------------------- /** @scriptclass nobject @cppclass nObject @superclass --- @classinfo nobject is the superclass of all higher level Nebula classes and defines this basic behavior and properties for all nobject derived classes: - runtime type information - object persistency - language independent scripting interface */ void n_initcmds(nClass *cl) { cl->BeginCmds(); cl->AddCmd("b_saveas_s", 'SVAS', n_saveas); cl->AddCmd("o_clone_s", 'CLON', n_clone); cl->AddCmd("i_getrefcount_v", 'GRCT', n_getrefcount); cl->AddCmd("s_getclass_v", 'GCLS', n_getclass); cl->AddCmd("l_getclasses_v", 'GCLL', n_getclasses); cl->AddCmd("b_isa_s", 'ISA_', n_isa); cl->AddCmd("b_isinstanceof_s", 'ISIO', n_isinstanceof); cl->AddCmd("l_getcmds_v", 'GMCD', n_getcmds); cl->AddCmd("i_getinstancesize_v", 'GISZ', n_getinstancesize); n_initcmds_nsignalemitter(cl); cl->EndCmds(); } //------------------------------------------------------------------- /** @cmd saveas @input s (Name) @output b (Success) @info Save the object under a given name into a file. */ static void n_saveas(void *o, nCmd *cmd) { nObject *self = (nObject *) o; cmd->Out()->SetB(self->SaveAs(cmd->In()->GetS())); } //------------------------------------------------------------------- /** @cmd clone @input s (CloneName) @output o (CloneHandle) @info Creates a clone of this object. - If the object's class hierarchy doesn't contain nroot then 'CloneName' is ignored. Otherwise 'CloneName' is the name given to the new cloned object. - If the original object has child objects, they will be cloned as well. */ static void n_clone(void *o, nCmd *cmd) { nObject *self = (nObject *) o; cmd->Out()->SetO(self->Clone(cmd->In()->GetS())); } //------------------------------------------------------------------- /** @cmd getrefcount @input v @output i (Refcount) @info Return current ref count of object. */ static void n_getrefcount(void *o, nCmd *cmd) { nObject *self = (nObject *) o; cmd->Out()->SetI(self->GetRefCount()); } //------------------------------------------------------------------- /** @cmd getclass @input v @output s (Classname) @info Return name of class which the object is an instance of. */ static void n_getclass(void *o, nCmd *cmd) { nObject *self = (nObject *) o; cmd->Out()->SetS(self->GetClass()->GetName()); } //------------------------------------------------------------------- /** @cmd getclasses @input v @output l (ClassnameList) @info Return the list of classes which the object is an instance of. */ static void n_getclasses(void *o, nCmd *cmd) { nObject *self = (nObject *) o; nClass* classObject; // count classes int numClasses = 0; for (classObject = self->GetClass(); classObject; classObject = classObject->GetSuperClass()) { numClasses++; } // Allocate nArg* args = n_new_array(nArg, numClasses); // And fill int i = 0; classObject = self->GetClass(); do { args[i++].SetS(classObject->GetName()); } while ((classObject = classObject->GetSuperClass())); cmd->Out()->SetL(args, numClasses); } //------------------------------------------------------------------- /** @cmd isa @input s (Classname) @output b (Success) @info Check whether the object is instantiated or derived from the class given by 'Classname'. */ static void n_isa(void* o, nCmd* cmd) { nObject* self = (nObject*)o; const char* arg0 = cmd->In()->GetS(); cmd->Out()->SetB(self->IsA(arg0)); } //------------------------------------------------------------------- /** @cmd isinstanceof @input s (Classname) @output b (Success) @info Check whether the object is an instance of the class given by 'Classname'. */ static void n_isinstanceof(void* o, nCmd* cmd) { nObject* self = (nObject*)o; const char* arg0 = cmd->In()->GetS(); cmd->Out()->SetB(self->IsInstanceOf(arg0)); } //------------------------------------------------------------------- /** @cmd getcmds @input v @output l (Commands) @info Return a list of all script command prototypes the object accepts. */ static void n_getcmds(void *o, nCmd *cmd) { nObject *self = (nObject *) o; nHashList cmdList; nHashNode* node; int numCmds = 0; self->GetCmdProtos(&cmdList); // count commands for (node = cmdList.GetHead(); node; node = node->GetSucc()) { numCmds++; } nArg* args = n_new_array(nArg, numCmds); int i = 0; while ((node = cmdList.RemHead())) { args[i++].SetS(((nCmdProto*) node->GetPtr())->GetProtoDef()); n_delete(node); } cmd->Out()->SetL(args, numCmds); } //------------------------------------------------------------------- /** @cmd getinstancesize @input v @output i (InstanceSize) @info Get byte size of this object. This may or may not accurate, depending on whether the object uses external allocated memory, and if the object's class takes this into account. */ static void n_getinstancesize(void* o, nCmd* cmd) { nObject* self = (nObject*)o; cmd->Out()->SetI(self->GetInstanceSize()); } //------------------------------------------------------------------- // EOF //-------------------------------------------------------------------
[ "BawooiT@d1c0eb94-fc07-11dd-a7be-4b3ef3b0700c" ]
[ [ [ 1, 288 ] ] ]
db4f7e46980fee62c6fcbdb587ec97a9706ccb05
6c8c4728e608a4badd88de181910a294be56953a
/UiModule/Common/UiVisibilityAction.h
ab4432f35b6ba8064a3686d138b410337bb9c6ee
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
caocao/naali
29c544e121703221fe9c90b5c20b3480442875ef
67c5aa85fa357f7aae9869215f840af4b0e58897
refs/heads/master
2021-01-21T00:25:27.447991
2010-03-22T15:04:19
2010-03-22T15:04:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
736
h
// For conditions of distribution and use, see copyright notice in license.txt #ifndef incl_UiModule_UiVisibilityAction_h #define incl_UiModule_UiVisibilityAction_h #include "UiModuleApi.h" #include "UiAction.h" #include <QGraphicsWidget> namespace UiServices { class UI_MODULE_API UiVisibilityAction : public UiAction { Q_OBJECT public: UiVisibilityAction(QGraphicsWidget *controlled_widget, QObject *parent = 0); public slots: void SetControlledWidget(QGraphicsWidget *controlled_widget); void ToggleVisibility(); signals: void VisibilityChanged(bool visible); private: QGraphicsWidget *controlled_widget_; }; } #endif
[ "[email protected]@5b2332b8-efa3-11de-8684-7d64432d61a3" ]
[ [ [ 1, 34 ] ] ]
b1074079f4c0e7f6cb579cb73a00ccacad73d555
b8fbe9079ce8996e739b476d226e73d4ec8e255c
/src/engine/rb_core/jptr.h
7fd80641c90316e916265d7515c2ba509472e3a6
[]
no_license
dtbinh/rush
4294f84de1b6e6cc286aaa1dd48cf12b12a467d0
ad75072777438c564ccaa29af43e2a9fd2c51266
refs/heads/master
2021-01-15T17:14:48.417847
2011-06-16T17:41:20
2011-06-16T17:41:20
41,476,633
1
0
null
2015-08-27T09:03:44
2015-08-27T09:03:44
null
UTF-8
C++
false
false
1,591
h
//****************************************************************************/ // File: JPtr.h //****************************************************************************/ #ifndef __JPTR_H__ #define __JPTR_H__ //****************************************************************************/ // Class: JPtr // Desc: Smart pointer to some object of JObject-derived class //****************************************************************************/ template <class T> class JPtr { T* m_pObject; public: JPtr( T* pObject = NULL ) : m_pObject( pObject ) { if (m_pObject) { m_pObject->AddRef(); } } ~JPtr() { if (m_pObject) { m_pObject->Release(); } } operator T*() { return m_pObject; } T& operator *() { return *m_pObject; } bool operator !() const { return (m_pObject == NULL); } T* operator ->() { return m_pObject; } const T* operator ->() const { return m_pObject; } JPtr& operator = ( JPtr<T> &pObject ) { return operator = ((T*) pObject); } JPtr& operator = ( T* pObject ) { if (m_pObject) { m_pObject->Release(); } m_pObject = pObject; if (m_pObject) { m_pObject->AddRef(); } return *this; } }; // class JPtr #endif // __JPTR_H__
[ [ [ 1, 80 ] ] ]
1af7a7ee2060eb006557eed2782e875a7c07271f
46c766a3da1fbfb390613f8d4aeaea079180d739
/Statistics.h
30fcd1f63547540583305daf1bbb903ef3f235b9
[]
no_license
laosland/CSCE350_final_project
c72cf43905b76dbd0fd429b0f359df3cf19134b8
90e4a85f96497be5e3f52e1468b70e19c2679d77
refs/heads/master
2021-01-10T19:09:01.746106
2011-10-25T22:10:19
2011-10-25T22:10:19
2,621,820
0
0
null
null
null
null
UTF-8
C++
false
false
573
h
#ifndef STATISTICS_H #define STATISTICS_H #include <math.h> #include <vector> #include <iostream> using namespace std; class Statistics { public: Statistics(); virtual ~Statistics(); int calculateNumberofSamplings(const float,const int); float calculateMean(const vector <long> &); float calculateStandardDeviation(const vector <long> ,const float); float calculateVariance(const float); float calculateZvalue(const vector <long> &); protected: private: }; #endif // STATISTICS_H
[ [ [ 1, 24 ] ] ]
48a5c49b14e514c8d848624dfb06dccace4f84a8
ea12fed4c32e9c7992956419eb3e2bace91f063a
/zombie/code/renaissance/rnsgameplay/src/ncgpperception/ncgphearing_main.cc
17523a49b6e0400a51ba355f3e7a5045109b1090
[]
no_license
ugozapad/TheZombieEngine
832492930df28c28cd349673f79f3609b1fe7190
8e8c3e6225c2ed93e07287356def9fbdeacf3d6a
refs/heads/master
2020-04-30T11:35:36.258363
2011-02-24T14:18:43
2011-02-24T14:18:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,117
cc
#include "precompiled/pchrnsgameplay.h" //------------------------------------------------------------------------------ // ncgphearing_main.cc // (C) Conjurer Services, S.A. 2006 //------------------------------------------------------------------------------ #include "entity/nentityobjectserver.h" #include "ncgpperception/ncgphearing.h" #include "ncgameplayliving/ncgameplaylivingclass.h" #include "zombieentity/nctransform.h" #include "mathlib/sphere.h" #include "ntrigger/ngameevent.h" #include "ncfsm/ncfsm.h" #include "ncagentmemory/ncagentmemory.h" //------------------------------------------------------------------------------ nNebulaComponentObject(ncGPHearing,nComponentObject); //------------------------------------------------------------------------------ NSCRIPT_INITCMDS_BEGIN(ncGPHearing) NSCRIPT_INITCMDS_END() //------------------------------------------------------------------------------ /** Constructor */ ncGPHearing::ncGPHearing(): hearingRadius(-1), trComp(0) { } //------------------------------------------------------------------------------ /** Destructor */ ncGPHearing::~ncGPHearing() { // Empty } //------------------------------------------------------------------------------ /** Init */ void ncGPHearing::InitInstance(nObject::InitInstanceMsg /*initType*/) { nEntityObject *entity = this->GetEntityObject(); n_assert(entity); // get the entity's transform component ncTransform *trComp = entity->GetComponent<ncTransform>(); n_assert(trComp); this->trComp = trComp; // update the information that comes from the class this->UpdateClassInfo(); } //------------------------------------------------------------------------------ /** Update the information comming from the entity class. */ void ncGPHearing::UpdateClassInfo() { nEntityObject *entity = this->GetEntityObject(); n_assert(entity); // get the hearing radius from the entity's gameplay living class ncGameplayLivingClass *livingClass = entity->GetClassComponent<ncGameplayLivingClass>(); n_assert(livingClass); this->hearingRadius = livingClass->GetHearingRadius(); } //------------------------------------------------------------------------------ /** Do a full perception process on the given event @see ncGPSight::SeeEvent for the steps involved in a perception process */ bool ncGPHearing::HearEvent( nGameEvent* event ) { // Finish if the event's source is myself if ( event->GetSourceEntity() == this->GetEntityObject()->GetId() ) { return false; } // Build the hearing field sphere hearingSphere( this->trComp->GetPosition(), this->hearingRadius ); // Finish if the event doesn't fall within the feeling field nEntityObject* emitter = nEntityObjectServer::Instance()->GetEntityObject( event->GetEmitterEntity() ); n_assert2( emitter, "The entity that emits the event doesn't exist anymore" ); #ifndef NGAME if ( !emitter ) { return false; } #endif const vector3& pos = emitter->GetComponentSafe<ncTransform>()->GetPosition(); if ( !hearingSphere.contains( pos ) ) { return false; } // Update the agent's memory ncAgentMemory* memory = this->GetComponent<ncAgentMemory>(); n_assert2( memory, "The entity doesn't have the agent memory component" ); #ifndef NGAME if ( !memory ) { return false; } #endif if ( memory->AddEvent( event ) ) { NLOG( perception, (0, "Entity %d hears event %d", this->GetEntityObject()->GetId(), event->GetId()) ); // Notify the FSM about a new perceived event ncFSM* fsm = this->GetComponent<ncFSM>(); n_assert2( fsm, "The entity doesn't have the FSM component" ); #ifndef NGAME if ( !fsm ) { return false; } #endif fsm->OnTransitionEvent( event->GetType() ); return true; } // Event not given to the FSM return false; }
[ "magarcias@c1fa4281-9647-0410-8f2c-f027dd5e0a91" ]
[ [ [ 1, 138 ] ] ]
eb4833a99ce6e795e7f9904fe793ea85f001b31d
91ac219c4cde8c08a6b23ac3d207c1b21124b627
/common/matlib/MatlibStdToolbox.cpp
2a239159cde0f1becf395f523b11a9fccbd6284f
[]
no_license
DazDSP/hamdrm-dll
e41b78d5f5efb34f44eb3f0c366d7c1368acdbac
287da5949fd927e1d3993706204fe4392c35b351
refs/heads/master
2023-04-03T16:21:12.206998
2008-01-05T19:48:59
2008-01-05T19:48:59
354,168,520
0
0
null
null
null
null
UTF-8
C++
false
false
12,198
cpp
/******************************************************************************\ * Copyright (c) 2001 * * Author(s): * Volker Fischer * * Description: * c++ Mathematic Library (Matlib) * ****************************************************************************** * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * \******************************************************************************/ #include "MatlibStdToolbox.h" /* Implementation *************************************************************/ CMatlibVector<CReal> Sort(const CMatlibVector<CReal>& rvI) { const int iSize = rvI.GetSize(); const int iEnd = iSize - 1; CMatlibVector<CReal> fvRet(iSize, VTY_TEMP); CReal rSwap; /* Copy input vector in output vector */ fvRet = rvI; /* Loop through the array one less than its total cell count */ for (int i = 0; i < iEnd; i++) { /* Loop through every cell (value) in array */ for (int j = 0; j < iEnd; j++) { /* Compare the values and switch if necessary */ if (fvRet[j] > fvRet[j + 1]) { rSwap = fvRet[j]; fvRet[j] = fvRet[j + 1]; fvRet[j + 1] = rSwap; } } } return fvRet; } CMatlibMatrix<CReal> Eye(const int iLen) { CMatlibMatrix<CReal> matrRet(iLen, iLen, VTY_TEMP); /* Set all values except of the diagonal to zero, diagonal entries = 1 */ for (int i = 0; i < iLen; i++) { for (int j = 0; j < iLen; j++) { if (i == j) matrRet[i][j] = (CReal) 1.0; else matrRet[i][j] = (CReal) 0.0; } } return matrRet; } CMatlibMatrix<CComplex> Diag(const CMatlibVector<CComplex>& cvI) { const int iSize = cvI.GetSize(); CMatlibMatrix<CComplex> matcRet(iSize, iSize, VTY_TEMP); /* Set the diagonal to the values of the input vector */ for (int i = 0; i < iSize; i++) { for (int j = 0; j < iSize; j++) { if (i == j) matcRet[i][j] = cvI[i]; else matcRet[i][j] = (CReal) 0.0; } } return matcRet; } CMatlibMatrix<CComplex> Transp(const CMatlibMatrix<CComplex>& cmI) { const int iRowSize = cmI.GetRowSize(); const int iColSize = cmI.GetColSize(); /* Swaped row and column size due to transpose operation */ CMatlibMatrix<CComplex> matcRet(iColSize, iRowSize, VTY_TEMP); /* Transpose matrix */ for (int i = 0; i < iRowSize; i++) for (int j = 0; j < iColSize; j++) matcRet[j][i] = cmI[i][j]; return matcRet; } CMatlibMatrix<CComplex> Inv(const CMatlibMatrix<CComplex>& matrI) { /* Parts of the following code are taken from Ptolemy (http://ptolemy.eecs.berkeley.edu/) The input matrix must be square, this is NOT checked here! */ _COMPLEX temp; int row, col, i; const int iSize = matrI.GetColSize(); CMatlibMatrix<CComplex> matrRet(iSize, iSize, VTY_TEMP); /* Make a working copy of input matrix */ CMatlibMatrix<CComplex> work(matrI); /* Set result to be the identity matrix */ matrRet = Eye(iSize); for (i = 0; i < iSize; i++) { /* Check that the element in (i,i) is not zero */ if ((Real(work[i][i]) == 0) && (Imag(work[i][i]) == 0)) { /* Swap with a row below this one that has a non-zero element in the same column */ for (row = i + 1; row < iSize; row++) if ((Real(work[i][i]) != 0) || (Imag(work[i][i]) != 0)) break; // TEST if (row == iSize) { // Error::abortRun("couldn't invert matrix, possibly singular.\n"); matrRet = Eye(iSize); return matrRet; } /* Swap rows */ for (col = 0; col < iSize; col++) { temp = work[i][col]; work[i][col] = work[row][col]; work[row][col] = temp; temp = matrRet[i][col]; matrRet[i][col] = matrRet[row][col]; matrRet[row][col] = temp; } } /* Divide every element in the row by element (i,i) */ temp = work[i][i]; for (col = 0; col < iSize; col++) { work[i][col] /= temp; matrRet[i][col] /= temp; } /* Zero out the rest of column i */ for (row = 0; row < iSize; row++) { if (row != i) { temp = work[row][i]; for (col = iSize - 1; col >= 0; col--) { work[row][col] -= (temp * work[i][col]); matrRet[row][col] -= (temp * matrRet[i][col]); } } } } return matrRet; } CMatlibVector<CComplex> Fft(CMatlibVector<CComplex>& cvI, const CFftPlans& FftPlans) { int i; CFftPlans* pCurPlan; fftw_complex* pFftwComplexIn; fftw_complex* pFftwComplexOut; const int n(cvI.GetSize()); CMatlibVector<CComplex> cvReturn(n, VTY_TEMP); /* If input vector has zero length, return */ if (n == 0) return cvReturn; /* Check, if plans are already created, else: create it */ if (!FftPlans.IsInitialized()) { pCurPlan = new CFftPlans; pCurPlan->Init(n); } else { /* Ugly, but ok: We transform "const" object in "non constant" object since we KNOW that the original object is not constant since it was already initialized! */ pCurPlan = (CFftPlans*) &FftPlans; } pFftwComplexIn = pCurPlan->pFftwComplexIn; pFftwComplexOut = pCurPlan->pFftwComplexOut; /* fftw (Homepage: http://www.fftw.org/) */ for (i = 0; i < n; i++) { pFftwComplexIn[i].re = cvI[i].real(); pFftwComplexIn[i].im = cvI[i].imag(); } /* Actual fftw call */ fftw_one(pCurPlan->FFTPlForw, pFftwComplexIn, pFftwComplexOut); for (i = 0; i < n; i++) cvReturn[i] = CComplex(pFftwComplexOut[i].re, pFftwComplexOut[i].im); if (!FftPlans.IsInitialized()) delete pCurPlan; return cvReturn; } CMatlibVector<CComplex> Ifft(CMatlibVector<CComplex>& cvI, const CFftPlans& FftPlans) { int i; CFftPlans* pCurPlan; fftw_complex* pFftwComplexIn; fftw_complex* pFftwComplexOut; const int n(cvI.GetSize()); CMatlibVector<CComplex> cvReturn(n, VTY_TEMP); /* If input vector has zero length, return */ if (n == 0) return cvReturn; /* Check, if plans are already created, else: create it */ if (!FftPlans.IsInitialized()) { pCurPlan = new CFftPlans; pCurPlan->Init(n); } else { /* Ugly, but ok: We transform "const" object in "non constant" object since we KNOW that the original object is not constant since it was already initialized! */ pCurPlan = (CFftPlans*) &FftPlans; } pFftwComplexIn = pCurPlan->pFftwComplexIn; pFftwComplexOut = pCurPlan->pFftwComplexOut; /* fftw (Homepage: http://www.fftw.org/) */ for (i = 0; i < n; i++) { pFftwComplexIn[i].re = cvI[i].real(); pFftwComplexIn[i].im = cvI[i].imag(); } /* Actual fftw call */ fftw_one(pCurPlan->FFTPlBackw, pFftwComplexIn, pFftwComplexOut); const CReal scale = (CReal) 1.0 / n; for (i = 0; i < n; i++) cvReturn[i] = CComplex(pFftwComplexOut[i].re * scale, pFftwComplexOut[i].im * scale); if (!FftPlans.IsInitialized()) delete pCurPlan; return cvReturn; } CMatlibVector<CComplex> rfft(CMatlibVector<CReal>& fvI, const CFftPlans& FftPlans) { int i; CFftPlans* pCurPlan; fftw_real* pFftwRealIn; fftw_real* pFftwRealOut; const int iSizeI = fvI.GetSize(); const int iLongLength(iSizeI); const int iShortLength(iLongLength / 2); const int iUpRoundShortLength((iLongLength + 1) / 2); CMatlibVector<CComplex> cvReturn(iShortLength /* Include Nyquist frequency in case of even N */ + 1, VTY_TEMP); /* If input vector has zero length, return */ if (iLongLength == 0) return cvReturn; /* Check, if plans are already created, else: create it */ if (!FftPlans.IsInitialized()) { pCurPlan = new CFftPlans; pCurPlan->Init(iLongLength); } else { /* Ugly, but ok: We transform "const" object in "non constant" object since we KNOW that the original object is not constant since it was already initialized! */ pCurPlan = (CFftPlans*) &FftPlans; } pFftwRealIn = pCurPlan->pFftwRealIn; pFftwRealOut = pCurPlan->pFftwRealOut; /* fftw (Homepage: http://www.fftw.org/) */ for (i = 0; i < iSizeI; i++) pFftwRealIn[i] = fvI[i]; /* Actual fftw call */ rfftw_one(pCurPlan->RFFTPlForw, pFftwRealIn, pFftwRealOut); /* Now build complex output vector */ /* Zero frequency */ cvReturn[0] = pFftwRealOut[0]; for (i = 1; i < iUpRoundShortLength; i++) cvReturn[i] = CComplex(pFftwRealOut[i], pFftwRealOut[iLongLength - i]); /* If N is even, include Nyquist frequency */ if (iLongLength % 2 == 0) cvReturn[iShortLength] = pFftwRealOut[iShortLength]; if (!FftPlans.IsInitialized()) delete pCurPlan; return cvReturn; } CMatlibVector<CReal> rifft(CMatlibVector<CComplex>& cvI, const CFftPlans& FftPlans) { /* This function only works with EVEN N! */ int i; CFftPlans* pCurPlan; fftw_real* pFftwRealIn; fftw_real* pFftwRealOut; const int iShortLength(cvI.GetSize() - 1); /* Nyquist frequency! */ const int iLongLength(iShortLength * 2); CMatlibVector<CReal> fvReturn(iLongLength, VTY_TEMP); /* If input vector is too short, return */ if (iShortLength <= 0) return fvReturn; /* Check, if plans are already created, else: create it */ if (!FftPlans.IsInitialized()) { pCurPlan = new CFftPlans; pCurPlan->Init(iLongLength); } else { /* Ugly, but ok: We transform "const" object in "non constant" object since we KNOW that the original object is not constant since it was already initialized! */ pCurPlan = (CFftPlans*) &FftPlans; } pFftwRealIn = pCurPlan->pFftwRealIn; pFftwRealOut = pCurPlan->pFftwRealOut; /* Now build half-complex-vector */ pFftwRealIn[0] = cvI[0].real(); for (i = 1; i < iShortLength; i++) { pFftwRealIn[i] = cvI[i].real(); pFftwRealIn[iLongLength - i] = cvI[i].imag(); } /* Nyquist frequency */ pFftwRealIn[iShortLength] = cvI[iShortLength].real(); /* Actual fftw call */ rfftw_one(pCurPlan->RFFTPlBackw, pFftwRealIn, pFftwRealOut); /* Scale output vector */ const CReal scale = (CReal) 1.0 / iLongLength; for (i = 0; i < iLongLength; i++) fvReturn[i] = pFftwRealOut[i] * scale; if (!FftPlans.IsInitialized()) delete pCurPlan; return fvReturn; } /* FftPlans implementation -------------------------------------------------- */ CFftPlans::~CFftPlans() { if (bInitialized) { /* Delete old plans and intermediate buffers */ rfftw_destroy_plan(RFFTPlForw); rfftw_destroy_plan(RFFTPlBackw); fftw_destroy_plan(FFTPlForw); fftw_destroy_plan(FFTPlBackw); delete[] pFftwRealIn; delete[] pFftwRealOut; delete[] pFftwComplexIn; delete[] pFftwComplexOut; } } void CFftPlans::Init(const int iFSi) { if (bInitialized) { /* Delete old plans and intermediate buffers */ rfftw_destroy_plan(RFFTPlForw); rfftw_destroy_plan(RFFTPlBackw); fftw_destroy_plan(FFTPlForw); fftw_destroy_plan(FFTPlBackw); delete[] pFftwRealIn; delete[] pFftwRealOut; delete[] pFftwComplexIn; delete[] pFftwComplexOut; } /* Create new plans and intermediate buffers */ pFftwRealIn = new fftw_real[iFSi]; pFftwRealOut = new fftw_real[iFSi]; pFftwComplexIn = new fftw_complex[iFSi]; pFftwComplexOut = new fftw_complex[iFSi]; RFFTPlForw = rfftw_create_plan(iFSi, FFTW_REAL_TO_COMPLEX, FFTW_ESTIMATE); RFFTPlBackw = rfftw_create_plan(iFSi, FFTW_COMPLEX_TO_REAL, FFTW_ESTIMATE); FFTPlForw = fftw_create_plan(iFSi, FFTW_FORWARD, FFTW_ESTIMATE); FFTPlBackw = fftw_create_plan(iFSi, FFTW_BACKWARD, FFTW_ESTIMATE); bInitialized = true; }
[ [ [ 1, 463 ] ] ]
73e49ebd97b0539acf63f46cd6d6a81caed244cc
b84a38aad619acf34c22ed6e6caa0f7b00ebfa0a
/Code/TootleFilesys/TLFileSys.h
f888e74f1a65fd5400d5265c3f69fc46eb4eedcd
[]
no_license
SoylentGraham/Tootle
4ae4e8352f3e778e3743e9167e9b59664d83b9cb
17002da0936a7af1f9b8d1699d6f3e41bab05137
refs/heads/master
2021-01-24T22:44:04.484538
2010-11-03T22:53:17
2010-11-03T22:53:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,624
h
/*------------------------------------------------------ Base filesystem type & factory -------------------------------------------------------*/ #pragma once #include <TootleCore/TLTypes.h> #include <TootleCore/TClassFactory.h> #include <TootleCore/TLTime.h> #include <TootleCore/TManager.h> #include "TFile.h" #include "TFileSys.h" namespace TLFileSys { class TFileSysFactory; // file system class factory class TFileFactory; // TFile class factory class TFileGroup; // groups files with the same ref (same filename) together so we can sort out which to load/convert/etc TPtr<TLFileSys::TFileSys>& GetFileSys(TRefRef FileSysRef); // return a file system void GetFileSys(TPtrArray<TLFileSys::TFileSys>& FileSysList,TRefRef FileSysRef,TRefRef FileSysTypeRef); // return all matching file systems to these refs/types TPtrArray<TLFileSys::TFileSys>& GetFileSystems(); // return al the file systems void GetFileList(TArray<TRef>& FileList); // get a list of all files in all the file systems (gets refs out of the groups) TPtr<TFile>& GetLatestFile(TTypedRefRef FileRef); // given a file & type - get the latest version of that file from the file groups TPtr<TFileGroup>& GetFileGroup(TRefRef FileRef); // get the group of files for a file ref Bool UpdateFileLists(); // update the file lists on the file systems, returns TRUE if any file sys' has change TPtr<TFile> CreateFileInFileSys(const TString& Filename,TPtrArray<TLFileSys::TFileSys>& FileSysList); TPtr<TFile> CreateAssetFileInFileSys(const TTypedRef& AssetAndTypeRef,TPtrArray<TLFileSys::TFileSys>& FileSysList); // wrapper to create a file for a .asset file (to ensure consistent filenames) TPtr<TFile>& GetLatestFile(TPtrArray<TLFileSys::TFile>& Files,TRef FileType=TRef(),TRefRef ExportAssetType=TRef()); // from a list of files, return the one with the most recent timestamp // create a local file system SyncBool CreateLocalFileSys(TRef& FileSysRef,const TString& Directory,Bool IsWritable); // async create a local filesystem for the specified path. FileSysRef is set to the new file system's ref for the purposes of asynchronousness so keep using it when async calling this func Bool GetParentDir(TString& Directory); // directory manipulation - turns filename to dir, then chops off a dir at a time TTypedRef GetFileAndTypeRef(const TString& Filename); // generate file ref with explicit type extern TPtr<TFileSysFactory> g_pFactory; // extern'd as it's a manager, the file factory is not exposed // System specific directory helper routines Bool GetAssetDirectory(TString& AssetDir); Bool GetAssetSubDirectory(TString& AssetDir, const TString& Subdirectory); Bool GetUserDirectory(TString& UserDir); namespace Platform { Bool GetAssetDirectory(TString& AssetDir); Bool GetUserDirectory(TString& UserDir); } }; //------------------------------------------------------------ // class factory for file systems //------------------------------------------------------------ class TLFileSys::TFileSysFactory : public TLCore::TManager, public TClassFactory<TLFileSys::TFileSys> { friend class TLFileSys::TFileSys; public: TFileSysFactory(TRefRef ManagerRef); ~TFileSysFactory(); Bool UpdateFileLists(); // update file lists of the file systems, return TRUE if any changed protected: virtual SyncBool Initialise(); virtual SyncBool Shutdown(); virtual SyncBool Update(float fTimeStep); virtual TLFileSys::TFileSys* CreateObject(TRefRef InstanceRef,TRefRef TypeRef); virtual void OnEventChannelAdded(TRefRef refPublisherID, TRefRef refChannelID); void OnFileChanged(TTypedRefRef FileRef,TRefRef FileSysRef); // notify subscribers that this file has changed }; //------------------------------------------------------------ // class factory for file systems //------------------------------------------------------------ class TLFileSys::TFileFactory : public TClassFactory<TLFileSys::TFile> { public: TFileFactory() {} FORCEINLINE TPtr<TFileGroup>& GetFileGroup(TRefRef FileRef) { return m_FileGroups.FindPtr( FileRef ); } FORCEINLINE const TPtrArray<TFileGroup>& GetFileGroups() const { return m_FileGroups; } TPtr<TLFileSys::TFile>& CreateFileInstance(const TString& Filename,TRefRef FileSysRef); // create instance, init, add to group Bool RemoveFileInstance(TPtr<TLFileSys::TFile>& pFile); // delete instance, remove from group protected: virtual TLFileSys::TFile* CreateObject(TRefRef InstanceRef,TRefRef TypeRef); private: void OnFileAdded(TPtr<TFile>& pFile); // file was found in a file system, put it into it's group void OnFileRemoved(TPtr<TFile>& pFile); // file removed from a file system, remove from it's group protected: TPtrArray<TFileGroup> m_FileGroups; }; //------------------------------------------------------------ // Group of files with the same FileRef (filename) but with different extensions (Types) // we use this to fetch the most recent file, so even if there's a world.scheme.asset, // we will fetch world.scheme if it's newer and it'll output a newer .asset //------------------------------------------------------------ class TLFileSys::TFileGroup { public: TFileGroup(TRefRef FileRef); FORCEINLINE TRefRef GetFileRef() const { return m_FileRef; } // get file ref for the group void Add(TPtr<TFile>& pFile); // add file to group void Remove(TPtr<TFile>& pFile); // remove file from group TPtr<TFile>& GetNewestFile(TRefRef FileType=TRef(),TRefRef ExportAssetType=TRef()); // get file with newest timestamp. FileType filters file types, ExportAssetType filters only files that can export this asset type FORCEINLINE Bool IsEmpty() const { return (m_Files.GetSize() == 0); } TPtrArray<TFile>& GetFiles() { return m_Files; } FORCEINLINE Bool operator==(TRefRef FileRef) const { return GetFileRef() == FileRef; } FORCEINLINE Bool operator==(const TFileGroup& FileGroup) const { return GetFileRef() == FileGroup.GetFileRef(); } protected: TRef m_FileRef; // file ref of group TPtrArray<TFile> m_Files; // list of files in this group }; //----------------------------------------------------------- // return al the file systems //----------------------------------------------------------- FORCEINLINE TPtrArray<TLFileSys::TFileSys>& TLFileSys::GetFileSystems() { return g_pFactory->GetInstanceArray(); }
[ [ [ 1, 11 ], [ 15, 16 ], [ 20, 20 ], [ 22, 22 ], [ 32, 33 ], [ 35, 35 ], [ 38, 38 ], [ 40, 42 ], [ 53, 56 ], [ 58, 60 ], [ 62, 62 ], [ 64, 64 ], [ 66, 66 ], [ 70, 70 ], [ 74, 74 ], [ 76, 76 ], [ 80, 83 ], [ 85, 85 ], [ 87, 88 ], [ 90, 90 ], [ 93, 93 ], [ 96, 97 ], [ 103, 104 ], [ 106, 108 ], [ 125, 125 ] ], [ [ 12, 14 ], [ 17, 19 ], [ 21, 21 ], [ 23, 31 ], [ 34, 34 ], [ 36, 37 ], [ 39, 39 ], [ 43, 52 ], [ 57, 57 ], [ 61, 61 ], [ 63, 63 ], [ 65, 65 ], [ 67, 69 ], [ 71, 73 ], [ 75, 75 ], [ 77, 79 ], [ 84, 84 ], [ 86, 86 ], [ 89, 89 ], [ 91, 92 ], [ 94, 95 ], [ 98, 102 ], [ 105, 105 ], [ 109, 124 ], [ 126, 144 ] ] ]
1ac27f9d321363440bd41878653eba0b092e8e68
83ed25c6e6b33b2fabd4f81bf91d5fae9e18519c
/code/DefaultLogger.cpp
4484463e38f7a7f3d89de0ab5eaef2587609ccd6
[ "BSD-3-Clause" ]
permissive
spring/assimp
fb53b91228843f7677fe8ec18b61d7b5886a6fd3
db29c9a20d0dfa9f98c8fd473824bba5a895ae9e
refs/heads/master
2021-01-17T23:19:56.511185
2011-11-08T12:15:18
2011-11-08T12:15:18
2,017,841
1
1
null
null
null
null
UTF-8
C++
false
false
12,456
cpp
/* --------------------------------------------------------------------------- Open Asset Import Library (ASSIMP) --------------------------------------------------------------------------- Copyright (c) 2006-2010, ASSIMP Development Team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the ASSIMP team, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of the ASSIMP Development Team. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------------------------------------------- */ /** @file DefaultLogger.cpp * @brief Implementation of DefaultLogger (and Logger) */ #include "AssimpPCH.h" #include "DefaultIOSystem.h" // Default log streams #include "Win32DebugLogStream.h" #include "StdOStreamLogStream.h" #include "FileLogStream.h" #ifndef ASSIMP_BUILD_SINGLETHREADED # include <boost/thread/thread.hpp> # include <boost/thread/mutex.hpp> boost::mutex loggerMutex; #endif namespace Assimp { // ---------------------------------------------------------------------------------- NullLogger DefaultLogger::s_pNullLogger; Logger *DefaultLogger::m_pLogger = &DefaultLogger::s_pNullLogger; static const unsigned int SeverityAll = Logger::Info | Logger::Err | Logger::Warn | Logger::Debugging; // ---------------------------------------------------------------------------------- // Represents a log-stream + its error severity struct LogStreamInfo { unsigned int m_uiErrorSeverity; LogStream *m_pStream; // Constructor LogStreamInfo( unsigned int uiErrorSev, LogStream *pStream ) : m_uiErrorSeverity( uiErrorSev ), m_pStream( pStream ) { // empty } // Destructor ~LogStreamInfo() { delete m_pStream; } }; // ---------------------------------------------------------------------------------- // Construct a default log stream LogStream* LogStream::createDefaultStream(aiDefaultLogStream streams, const char* name /*= "AssimpLog.txt"*/, IOSystem* io /*= NULL*/) { switch (streams) { // This is a platform-specific feature case aiDefaultLogStream_DEBUGGER: #ifdef WIN32 return new Win32DebugLogStream(); #else return NULL; #endif // Platform-independent default streams case aiDefaultLogStream_STDERR: return new StdOStreamLogStream(std::cerr); case aiDefaultLogStream_STDOUT: return new StdOStreamLogStream(std::cout); case aiDefaultLogStream_FILE: return (name && *name ? new FileLogStream(name,io) : NULL); default: // We don't know this default log stream, so raise an assertion ai_assert(false); }; // For compilers without dead code path detection return NULL; } // ---------------------------------------------------------------------------------- // Creates the only singleton instance Logger *DefaultLogger::create(const char* name /*= "AssimpLog.txt"*/, LogSeverity severity /*= NORMAL*/, unsigned int defStreams /*= aiDefaultLogStream_DEBUGGER | aiDefaultLogStream_FILE*/, IOSystem* io /*= NULL*/) { // enter the mutex here to avoid concurrency problems #ifndef ASSIMP_BUILD_SINGLETHREADED boost::mutex::scoped_lock lock(loggerMutex); #endif if (m_pLogger && !isNullLogger() ) delete m_pLogger; m_pLogger = new DefaultLogger( severity ); // Attach default log streams // Stream the log to the MSVC debugger? if (defStreams & aiDefaultLogStream_DEBUGGER) m_pLogger->attachStream( LogStream::createDefaultStream(aiDefaultLogStream_DEBUGGER)); // Stream the log to COUT? if (defStreams & aiDefaultLogStream_STDOUT) m_pLogger->attachStream( LogStream::createDefaultStream(aiDefaultLogStream_STDOUT)); // Stream the log to CERR? if (defStreams & aiDefaultLogStream_STDERR) m_pLogger->attachStream( LogStream::createDefaultStream(aiDefaultLogStream_STDERR)); // Stream the log to a file if (defStreams & aiDefaultLogStream_FILE && name && *name) m_pLogger->attachStream( LogStream::createDefaultStream(aiDefaultLogStream_FILE,name,io)); return m_pLogger; } // ---------------------------------------------------------------------------------- void Logger::debug(const char* message) { // SECURITY FIX: otherwise it's easy to produce overruns since // sometimes importers will include data from the input file // (i.e. node names) in their messages. if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) { ai_assert(false); return; } return OnDebug(message); } // ---------------------------------------------------------------------------------- void Logger::info(const char* message) { // SECURITY FIX: see above if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) { ai_assert(false); return; } return OnInfo(message); } // ---------------------------------------------------------------------------------- void Logger::warn(const char* message) { // SECURITY FIX: see above if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) { ai_assert(false); return; } return OnWarn(message); } // ---------------------------------------------------------------------------------- void Logger::error(const char* message) { // SECURITY FIX: see above if (strlen(message)>MAX_LOG_MESSAGE_LENGTH) { ai_assert(false); return; } return OnError(message); } // ---------------------------------------------------------------------------------- void DefaultLogger::set( Logger *logger ) { // enter the mutex here to avoid concurrency problems #ifndef ASSIMP_BUILD_SINGLETHREADED boost::mutex::scoped_lock lock(loggerMutex); #endif if (!logger)logger = &s_pNullLogger; if (m_pLogger && !isNullLogger() ) delete m_pLogger; DefaultLogger::m_pLogger = logger; } // ---------------------------------------------------------------------------------- bool DefaultLogger::isNullLogger() { return m_pLogger == &s_pNullLogger; } // ---------------------------------------------------------------------------------- // Singleton getter Logger *DefaultLogger::get() { return m_pLogger; } // ---------------------------------------------------------------------------------- // Kills the only instance void DefaultLogger::kill() { // enter the mutex here to avoid concurrency problems #ifndef ASSIMP_BUILD_SINGLETHREADED boost::mutex::scoped_lock lock(loggerMutex); #endif if (m_pLogger == &s_pNullLogger)return; delete m_pLogger; m_pLogger = &s_pNullLogger; } // ---------------------------------------------------------------------------------- // Debug message void DefaultLogger::OnDebug( const char* message ) { if ( m_Severity == Logger::NORMAL ) return; char msg[MAX_LOG_MESSAGE_LENGTH*2]; ::sprintf(msg,"Debug, T%i: %s", GetThreadID(), message ); WriteToStreams( msg, Logger::Debugging ); } // ---------------------------------------------------------------------------------- // Logs an info void DefaultLogger::OnInfo( const char* message ) { char msg[MAX_LOG_MESSAGE_LENGTH*2]; ::sprintf(msg,"Info, T%i: %s", GetThreadID(), message ); WriteToStreams( msg , Logger::Info ); } // ---------------------------------------------------------------------------------- // Logs a warning void DefaultLogger::OnWarn( const char* message ) { char msg[MAX_LOG_MESSAGE_LENGTH*2]; ::sprintf(msg,"Warn, T%i: %s", GetThreadID(), message ); WriteToStreams( msg, Logger::Warn ); } // ---------------------------------------------------------------------------------- // Logs an error void DefaultLogger::OnError( const char* message ) { char msg[MAX_LOG_MESSAGE_LENGTH*2]; ::sprintf(msg,"Error, T%i: %s", GetThreadID(), message ); WriteToStreams( msg, Logger::Err ); } // ---------------------------------------------------------------------------------- // Will attach a new stream bool DefaultLogger::attachStream( LogStream *pStream, unsigned int severity ) { if (!pStream) return false; if (0 == severity) { severity = Logger::Info | Logger::Err | Logger::Warn | Logger::Debugging; } for ( StreamIt it = m_StreamArray.begin(); it != m_StreamArray.end(); ++it ) { if ( (*it)->m_pStream == pStream ) { (*it)->m_uiErrorSeverity |= severity; return true; } } LogStreamInfo *pInfo = new LogStreamInfo( severity, pStream ); m_StreamArray.push_back( pInfo ); return true; } // ---------------------------------------------------------------------------------- // Detatch a stream bool DefaultLogger::detatchStream( LogStream *pStream, unsigned int severity ) { if (!pStream) return false; if (0 == severity) { severity = SeverityAll; } for ( StreamIt it = m_StreamArray.begin(); it != m_StreamArray.end(); ++it ) { if ( (*it)->m_pStream == pStream ) { (*it)->m_uiErrorSeverity &= ~severity; if ( (*it)->m_uiErrorSeverity == 0 ) { // don't delete the underlying stream 'cause the caller gains ownership again (**it).m_pStream = NULL; delete *it; m_StreamArray.erase( it ); break; } return true; } } return false; } // ---------------------------------------------------------------------------------- // Constructor DefaultLogger::DefaultLogger(LogSeverity severity) : Logger ( severity ) , noRepeatMsg (false) , lastLen( 0 ) { lastMsg[0] = '\0'; } // ---------------------------------------------------------------------------------- // Destructor DefaultLogger::~DefaultLogger() { for ( StreamIt it = m_StreamArray.begin(); it != m_StreamArray.end(); ++it ) { // also frees the underlying stream, we are its owner. delete *it; } } // ---------------------------------------------------------------------------------- // Writes message to stream void DefaultLogger::WriteToStreams(const char *message, ErrorSeverity ErrorSev ) { ai_assert(NULL != message); // Check whether this is a repeated message if (! ::strncmp( message,lastMsg, lastLen-1)) { if (!noRepeatMsg) { noRepeatMsg = true; message = "Skipping one or more lines with the same contents\n"; } else return; } else { // append a new-line character to the message to be printed lastLen = ::strlen(message); ::memcpy(lastMsg,message,lastLen+1); ::strcat(lastMsg+lastLen,"\n"); message = lastMsg; noRepeatMsg = false; ++lastLen; } for ( ConstStreamIt it = m_StreamArray.begin(); it != m_StreamArray.end(); ++it) { if ( ErrorSev & (*it)->m_uiErrorSeverity ) (*it)->m_pStream->write( message); } } // ---------------------------------------------------------------------------------- // Returns thread id, if not supported only a zero will be returned. unsigned int DefaultLogger::GetThreadID() { // fixme: we can get this value via boost::threads #ifdef WIN32 return (unsigned int)::GetCurrentThreadId(); #else return 0; // not supported #endif } // ---------------------------------------------------------------------------------- } // !namespace Assimp
[ "aramis_acg@67173fc5-114c-0410-ac8e-9d2fd5bffc1f", "kimmi@67173fc5-114c-0410-ac8e-9d2fd5bffc1f" ]
[ [ [ 1, 46 ], [ 48, 49 ], [ 51, 51 ], [ 54, 65 ], [ 69, 69 ], [ 87, 87 ], [ 90, 124 ], [ 126, 129 ], [ 131, 152 ], [ 154, 157 ], [ 160, 207 ], [ 209, 228 ], [ 235, 235 ], [ 239, 244 ], [ 246, 246 ], [ 249, 249 ], [ 251, 251 ], [ 256, 258 ], [ 262, 262 ], [ 264, 264 ], [ 266, 268 ], [ 272, 272 ], [ 274, 274 ], [ 276, 278 ], [ 282, 282 ], [ 284, 284 ], [ 286, 288 ], [ 292, 292 ], [ 294, 294 ], [ 296, 299 ], [ 301, 312 ], [ 316, 316 ], [ 319, 319 ], [ 321, 321 ], [ 323, 326 ], [ 328, 328 ], [ 336, 336 ], [ 339, 342 ], [ 345, 345 ], [ 348, 348 ], [ 351, 351 ], [ 353, 360 ], [ 362, 362 ], [ 366, 367 ], [ 369, 369 ], [ 372, 372 ], [ 374, 375 ], [ 377, 399 ], [ 405, 405 ], [ 409, 409 ], [ 411, 411 ], [ 413, 413 ], [ 415, 415 ], [ 417, 417 ], [ 421, 421 ], [ 423, 423 ] ], [ [ 47, 47 ], [ 50, 50 ], [ 52, 53 ], [ 66, 68 ], [ 70, 86 ], [ 88, 89 ], [ 125, 125 ], [ 130, 130 ], [ 153, 153 ], [ 158, 159 ], [ 208, 208 ], [ 229, 234 ], [ 236, 238 ], [ 245, 245 ], [ 247, 248 ], [ 250, 250 ], [ 252, 255 ], [ 259, 261 ], [ 263, 263 ], [ 265, 265 ], [ 269, 271 ], [ 273, 273 ], [ 275, 275 ], [ 279, 281 ], [ 283, 283 ], [ 285, 285 ], [ 289, 291 ], [ 293, 293 ], [ 295, 295 ], [ 300, 300 ], [ 313, 315 ], [ 317, 318 ], [ 320, 320 ], [ 322, 322 ], [ 327, 327 ], [ 329, 335 ], [ 337, 338 ], [ 343, 344 ], [ 346, 347 ], [ 349, 350 ], [ 352, 352 ], [ 361, 361 ], [ 363, 365 ], [ 368, 368 ], [ 370, 371 ], [ 373, 373 ], [ 376, 376 ], [ 400, 404 ], [ 406, 408 ], [ 410, 410 ], [ 412, 412 ], [ 414, 414 ], [ 416, 416 ], [ 418, 420 ], [ 422, 422 ] ] ]
857fbe2657b8e53f25b75a8a507db411dfb79f91
ef23e388061a637f82b815d32f7af8cb60c5bb1f
/src/mame/includes/ohmygod.h
9f889e0838a30b43402533588f10cb79e5cc0650
[]
no_license
marcellodash/psmame
76fd877a210d50d34f23e50d338e65a17deff066
09f52313bd3b06311b910ed67a0e7c70c2dd2535
refs/heads/master
2021-05-29T23:57:23.333706
2011-06-23T20:11:22
2011-06-23T20:11:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
918
h
/************************************************************************* Oh My God! *************************************************************************/ class ohmygod_state : public driver_device { public: ohmygod_state(running_machine &machine, const driver_device_config_base &config) : driver_device(machine, config) { } /* memory pointers */ UINT16 * m_videoram; UINT16 * m_spriteram; size_t m_spriteram_size; /* video-related */ tilemap_t *m_bg_tilemap; int m_spritebank; UINT16 m_scrollx; UINT16 m_scrolly; /* misc */ int m_adpcm_bank_shift; int m_sndbank; }; /*----------- defined in video/ohmygod.c -----------*/ WRITE16_HANDLER( ohmygod_videoram_w ); WRITE16_HANDLER( ohmygod_spritebank_w ); WRITE16_HANDLER( ohmygod_scrollx_w ); WRITE16_HANDLER( ohmygod_scrolly_w ); VIDEO_START( ohmygod ); SCREEN_UPDATE( ohmygod );
[ "Mike@localhost" ]
[ [ [ 1, 39 ] ] ]
5bd1b237b0b7e8642467344c2383d39edc0a9111
061348a6be0e0e602d4a5b3e0af28e9eee2d257f
/Examples/Tutorial/UserInterface/18List.cpp
0c6c4721124aefdafda5a64fe37329980a026222
[]
no_license
passthefist/OpenSGToolbox
4a76b8e6b87245685619bdc3a0fa737e61a57291
d836853d6e0647628a7dd7bb7a729726750c6d28
refs/heads/master
2023-06-09T22:44:20.711657
2010-07-26T00:43:13
2010-07-26T00:43:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
16,651
cpp
// OpenSG Tutorial Example: Creating a List // // This tutorial explains how to create a List // via the OSG User Interface library. // // Includes: placing multiple buttons using Flow Layout // General OpenSG configuration, needed everywhere #include "OSGConfig.h" // Methods to create simple geometry: boxes, spheres, tori etc. #include "OSGSimpleGeometry.h" // A little helper to simplify scene management and interaction #include "OSGSimpleSceneManager.h" #include "OSGNode.h" #include "OSGGroup.h" #include "OSGViewport.h" // The general scene file loading handler #include "OSGSceneFileHandler.h" // Input #include "OSGWindowUtils.h" // UserInterface Headers #include "OSGUIForeground.h" #include "OSGInternalWindow.h" #include "OSGUIDrawingSurface.h" #include "OSGGraphics2D.h" #include "OSGLookAndFeelManager.h" // Activate the OpenSG namespace OSG_USING_NAMESPACE // The SimpleSceneManager to manage simple applications SimpleSceneManager *mgr; WindowEventProducerRefPtr TutorialWindow; // Forward declaration so we can have the interesting stuff upfront void display(void); void reshape(Vec2f Size); // 18List Headers #include "OSGLookAndFeelManager.h" #include "OSGColorLayer.h" #include "OSGBevelBorder.h" #include "OSGFlowLayout.h" #include "OSGButton.h" #include "OSGToggleButton.h" #include "OSGScrollPanel.h" // List header files #include "OSGList.h" #include "OSGDefaultListModel.h" #include "OSGDefaultListSelectionModel.h" // Declare the SelectionModel up front to allow for // the ActionListeners ListSelectionModelPtr ExampleListSelectionModel(new DefaultListSelectionModel()); ToggleButtonRefPtr SingleSelectionButton; ToggleButtonRefPtr SingleIntervalSelectionButton; ToggleButtonRefPtr MultipleIntervalSelectionButton; // Create ListModel ListRefPtr ExampleList; DefaultListModelRefPtr ExampleListModel; DefaultListModelRefPtr ExampleListModel2; // Create a class to allow for the use of the Ctrl+q class TutorialKeyListener : public KeyListener { public: virtual void keyPressed(const KeyEventUnrecPtr e) { if(e->getKey() == KeyEvent::KEY_Q && e->getModifiers() & KeyEvent::KEY_MODIFIER_COMMAND) { TutorialWindow->closeWindow(); } switch(e->getKey()) { case KeyEvent::KEY_S: if(ExampleList->getModel() == ExampleListModel) { ExampleList->setModel(ExampleListModel2); } else { ExampleList->setModel(ExampleListModel); } break; } } virtual void keyReleased(const KeyEventUnrecPtr e) { } virtual void keyTyped(const KeyEventUnrecPtr e) { } }; class SingleSelectionButtonSelectedListener : public ButtonSelectedListener { public: virtual void buttonSelected(const ButtonSelectedEventUnrecPtr e) { SingleIntervalSelectionButton->setSelected(false); MultipleIntervalSelectionButton->setSelected(false); ExampleListSelectionModel->setSelectionMode(DefaultListSelectionModel::SINGLE_SELECTION); } virtual void buttonDeselected(const ButtonSelectedEventUnrecPtr e) { } }; class SingleIntervalSelectionButtonSelectedListener : public ButtonSelectedListener { public: virtual void buttonSelected(const ButtonSelectedEventUnrecPtr e) { SingleSelectionButton->setSelected(false); MultipleIntervalSelectionButton->setSelected(false); ExampleListSelectionModel->setSelectionMode(DefaultListSelectionModel::SINGLE_INTERVAL_SELECTION); } virtual void buttonDeselected(const ButtonSelectedEventUnrecPtr e) { } }; class MultipleIntervalSelectionButtonSelectedListener : public ButtonSelectedListener { public: virtual void buttonSelected(const ButtonSelectedEventUnrecPtr e) { SingleSelectionButton->setSelected(false); SingleIntervalSelectionButton->setSelected(false); ExampleListSelectionModel->setSelectionMode(DefaultListSelectionModel::MULTIPLE_INTERVAL_SELECTION); } virtual void buttonDeselected(const ButtonSelectedEventUnrecPtr e) { } }; class AddItemButtonSelectedListener : public ActionListener { public: virtual void actionPerformed(const ActionEventUnrecPtr e) { std::cout << "Add Item Action" << std::endl; UInt32 SelectedItemIndex(ExampleList->getSelectionModel()->getMinSelectionIndex()); ExampleListModel->insert(SelectedItemIndex, boost::any(std::string("Added"))); } }; class RemoveItemButtonSelectedListener : public ActionListener { public: virtual void actionPerformed(const ActionEventUnrecPtr e) { std::cout << "Remove Item Action" << std::endl; UInt32 SelectedItemIndex(ExampleList->getSelectionModel()->getMinSelectionIndex()); ExampleListModel->erase(SelectedItemIndex); } }; int main(int argc, char **argv) { // OSG init osgInit(argc,argv); TutorialWindow = createNativeWindow(); TutorialWindow->initWindow(); TutorialWindow->setDisplayCallback(display); TutorialWindow->setReshapeCallback(reshape); TutorialKeyListener TheKeyListener; TutorialWindow->addKeyListener(&TheKeyListener); // Make Torus Node (creates Torus in background of scene) NodeRefPtr TorusGeometryNode = makeTorus(.5, 2, 16, 16); // Make Main Scene Node and add the Torus NodeRefPtr scene = OSG::Node::create(); scene->setCore(OSG::Group::create()); scene->addChild(TorusGeometryNode); // Create the Graphics GraphicsRefPtr TutorialGraphics = OSG::Graphics2D::create(); // Initialize the LookAndFeelManager to enable default settings LookAndFeelManager::the()->getLookAndFeel()->init(); /****************************************************** Create and edit some ToggleButtons to allow for dynamically changing List selection options. ******************************************************/ SingleSelectionButton = OSG::ToggleButton::create(); SingleIntervalSelectionButton = OSG::ToggleButton::create(); MultipleIntervalSelectionButton = OSG::ToggleButton::create(); SingleSelectionButton->setText("Single Selection"); SingleSelectionButton->setPreferredSize(Vec2f(160, 50)); SingleSelectionButtonSelectedListener TheSingleSelectionButtonSelectedListener; SingleSelectionButton->addButtonSelectedListener(&TheSingleSelectionButtonSelectedListener); SingleIntervalSelectionButton->setText("Single Interval Selection"); SingleIntervalSelectionButton->setPreferredSize(Vec2f(160, 50)); SingleIntervalSelectionButtonSelectedListener TheSingleIntervalSelectionButtonSelectedListener; SingleIntervalSelectionButton->addButtonSelectedListener(&TheSingleIntervalSelectionButtonSelectedListener); MultipleIntervalSelectionButton->setText("Multiple Interval Selection"); MultipleIntervalSelectionButton->setPreferredSize(Vec2f(160, 50)); MultipleIntervalSelectionButtonSelectedListener TheMultipleIntervalSelectionButtonSelectedListener; MultipleIntervalSelectionButton->addButtonSelectedListener(&TheMultipleIntervalSelectionButtonSelectedListener); ButtonRefPtr AddItemButton = OSG::Button::create(); AddItemButton->setText("Add Item"); AddItemButtonSelectedListener TheAddItemButtonSelectedListener; AddItemButton->addActionListener(&TheAddItemButtonSelectedListener); ButtonRefPtr RemoveItemButton = OSG::Button::create(); RemoveItemButton->setText("Remove Item"); RemoveItemButtonSelectedListener TheRemoveItemButtonSelectedListener; RemoveItemButton->addActionListener(&TheRemoveItemButtonSelectedListener); /****************************************************** Create a List. A List has several parts to it: -ListModel: Contains the data which is to be displayed in the List. Data is added as shown below -ListCellRenderer: Creates the Components to be used within the List (the default setting is to create Labels using the desired text). -ListSelectionModel: Determines how the List may be selected. To add values to the list: First, create SFStrings and use the .setValue("Value") function to set their values. Then, use the .pushBack(&SFStringName) to add them to the List. Next, create the CellRenderer and ListSelectionModel defaults. Finally, actually create the List. Set its Model, CellRenderer, and SelectionModel as shown below. Finally, choose the type of display for the List (choices outlined below). ******************************************************/ // Add data to it ExampleListModel = DefaultListModel::create(); ExampleListModel->pushBack(boost::any(std::string("Red"))); ExampleListModel->pushBack(boost::any(std::string("Green"))); ExampleListModel->pushBack(boost::any(std::string("Blue"))); ExampleListModel->pushBack(boost::any(std::string("Orange"))); ExampleListModel->pushBack(boost::any(std::string("Purple"))); ExampleListModel->pushBack(boost::any(std::string("Yellow"))); ExampleListModel->pushBack(boost::any(std::string("White"))); ExampleListModel->pushBack(boost::any(std::string("Black"))); ExampleListModel->pushBack(boost::any(std::string("Gray"))); ExampleListModel->pushBack(boost::any(std::string("Brown"))); ExampleListModel->pushBack(boost::any(std::string("Indigo"))); ExampleListModel->pushBack(boost::any(std::string("Pink"))); ExampleListModel->pushBack(boost::any(std::string("Violet"))); ExampleListModel->pushBack(boost::any(std::string("Mauve"))); ExampleListModel->pushBack(boost::any(std::string("Peach"))); ExampleListModel2 = DefaultListModel::create(); ExampleListModel2->pushBack(boost::any(std::string("One"))); ExampleListModel2->pushBack(boost::any(std::string("Two"))); ExampleListModel2->pushBack(boost::any(std::string("Three"))); ExampleListModel2->pushBack(boost::any(std::string("Four"))); ExampleListModel2->pushBack(boost::any(std::string("Five"))); ExampleListModel2->pushBack(boost::any(std::string("Six"))); ExampleListModel2->pushBack(boost::any(std::string("Seven"))); ExampleListModel2->pushBack(boost::any(std::string("Eight"))); ExampleListModel2->pushBack(boost::any(std::string("Nine"))); ExampleListModel2->pushBack(boost::any(std::string("Ten"))); ExampleListModel2->pushBack(boost::any(std::string("Eleven"))); ExampleListModel2->pushBack(boost::any(std::string("Twelve"))); ExampleListModel2->pushBack(boost::any(std::string("Thirteen"))); ExampleListModel2->pushBack(boost::any(std::string("Fourteen"))); /****************************************************** Create ListCellRenderer and ListSelectionModel. Most often the defauls will be used. Note: the ListSelectionModel was created above and is referenced by the ActionListeners. ******************************************************/ /****************************************************** Create List itself and assign its Model, CellRenderer, and SelectionModel to it. -setOrientation(ENUM): Determine the Layout of the cells (Horizontal or Vertical). Takes List::VERTICAL_ORIENTATION and List::HORIZONTAL_ORIENTATION arguments. ******************************************************/ ExampleList = List::create(); ExampleList->setPreferredSize(Vec2f(200, 300)); ExampleList->setOrientation(List::VERTICAL_ORIENTATION); //ExampleList->setOrientation(List::HORIZONTAL_ORIENTATION); ExampleList->setModel(ExampleListModel); ExampleList->setSelectionModel(ExampleListSelectionModel); /****************************************************** Determine the SelectionModel -SINGLE_SELECTION lets you select ONE item via a single mouse click -SINGLE_INTERVAL_SELECTION lets you select one interval via mouse and SHIFT key -MULTIPLE_INTERVAL_SELECTION lets you select via mouse, and SHIFT and CONTRL keys Note: this tutorial is currently set up to allow for this to be changed via TogggleButtons with ActionListeners attached to them so this code is commented out. ******************************************************/ //SelectionModel.setMode(DefaultListSelectionModel::SINGLE_SELECTION); //SelectionModel.setMode(DefaultListSelectionModel::SINGLE_INTERVAL_SELECTION); //SelectionModel.setMode(DefaultListSelectionModel::MULTIPLE_INTERVAL_SELECTION); // Create a ScrollPanel for easier viewing of the List (see 27ScrollPanel) ScrollPanelRefPtr ExampleScrollPanel = ScrollPanel::create(); ExampleScrollPanel->setPreferredSize(Vec2f(200,300)); ExampleScrollPanel->setHorizontalResizePolicy(ScrollPanel::RESIZE_TO_VIEW); //ExampleScrollPanel->setVerticalResizePolicy(ScrollPanel::RESIZE_TO_VIEW); ExampleScrollPanel->setViewComponent(ExampleList); // Create MainFramelayout FlowLayoutRefPtr MainInternalWindowLayout = OSG::FlowLayout::create(); MainInternalWindowLayout->setOrientation(FlowLayout::HORIZONTAL_ORIENTATION); MainInternalWindowLayout->setMajorAxisAlignment(0.5f); MainInternalWindowLayout->setMinorAxisAlignment(0.5f); // Create The Main InternalWindow // Create Background to be used with the Main InternalWindow ColorLayerRefPtr MainInternalWindowBackground = OSG::ColorLayer::create(); MainInternalWindowBackground->setColor(Color4f(1.0,1.0,1.0,0.5)); InternalWindowRefPtr MainInternalWindow = OSG::InternalWindow::create(); MainInternalWindow->pushToChildren(SingleSelectionButton); MainInternalWindow->pushToChildren(SingleIntervalSelectionButton); MainInternalWindow->pushToChildren(MultipleIntervalSelectionButton); MainInternalWindow->pushToChildren(ExampleScrollPanel); MainInternalWindow->pushToChildren(AddItemButton); MainInternalWindow->pushToChildren(RemoveItemButton); MainInternalWindow->setLayout(MainInternalWindowLayout); MainInternalWindow->setBackgrounds(MainInternalWindowBackground); MainInternalWindow->setAlignmentInDrawingSurface(Vec2f(0.5f,0.5f)); MainInternalWindow->setScalingInDrawingSurface(Vec2f(0.7f,0.5f)); MainInternalWindow->setDrawTitlebar(false); MainInternalWindow->setResizable(false); // Create the Drawing Surface UIDrawingSurfaceRefPtr TutorialDrawingSurface = UIDrawingSurface::create(); TutorialDrawingSurface->setGraphics(TutorialGraphics); TutorialDrawingSurface->setEventProducer(TutorialWindow); TutorialDrawingSurface->openWindow(MainInternalWindow); // Create the UI Foreground Object UIForegroundRefPtr TutorialUIForeground = OSG::UIForeground::create(); TutorialUIForeground->setDrawingSurface(TutorialDrawingSurface); // Create the SimpleSceneManager helper mgr = new SimpleSceneManager; // Tell the Manager what to manage mgr->setWindow(TutorialWindow); mgr->setRoot(scene); // Add the UI Foreground Object to the Scene ViewportRefPtr TutorialViewport = mgr->getWindow()->getPort(0); TutorialViewport->addForeground(TutorialUIForeground); // Show the whole Scene mgr->showAll(); //Open Window Vec2f WinSize(TutorialWindow->getDesktopSize() * 0.85f); Pnt2f WinPos((TutorialWindow->getDesktopSize() - WinSize) *0.5); TutorialWindow->openWindow(WinPos, WinSize, "18List"); //Enter main Loop TutorialWindow->mainLoop(); osgExit(); return 0; } // Callback functions // Redraw the window void display(void) { mgr->redraw(); } // React to size changes void reshape(Vec2f Size) { mgr->resize(Size.x(), Size.y()); }
[ [ [ 1, 1 ], [ 3, 4 ], [ 8, 8 ], [ 21, 21 ], [ 24, 24 ], [ 27, 27 ], [ 33, 38 ], [ 40, 42 ], [ 44, 45 ], [ 53, 54 ], [ 109, 114 ], [ 116, 124 ], [ 126, 134 ], [ 136, 143 ], [ 145, 153 ], [ 155, 162 ], [ 164, 168 ], [ 194, 194 ], [ 212, 212 ], [ 216, 217 ], [ 219, 229 ], [ 233, 234 ], [ 236, 239 ], [ 241, 244 ], [ 246, 248 ], [ 258, 291 ], [ 324, 342 ], [ 344, 344 ], [ 347, 348 ], [ 354, 377 ], [ 379, 379 ], [ 382, 386 ], [ 391, 391 ], [ 410, 411 ], [ 413, 413 ], [ 415, 415 ], [ 418, 418 ], [ 420, 421 ], [ 423, 423 ], [ 426, 426 ], [ 428, 428 ], [ 430, 430 ], [ 434, 434 ], [ 452, 452 ], [ 454, 455 ], [ 461, 461 ] ], [ [ 2, 2 ], [ 5, 7 ], [ 9, 20 ], [ 22, 23 ], [ 25, 26 ], [ 28, 32 ], [ 39, 39 ], [ 43, 43 ], [ 46, 52 ], [ 55, 108 ], [ 115, 115 ], [ 125, 125 ], [ 135, 135 ], [ 144, 144 ], [ 154, 154 ], [ 163, 163 ], [ 169, 193 ], [ 195, 211 ], [ 213, 215 ], [ 218, 218 ], [ 230, 232 ], [ 235, 235 ], [ 240, 240 ], [ 245, 245 ], [ 249, 257 ], [ 292, 323 ], [ 343, 343 ], [ 345, 346 ], [ 349, 353 ], [ 378, 378 ], [ 380, 381 ], [ 387, 390 ], [ 392, 409 ], [ 412, 412 ], [ 414, 414 ], [ 416, 417 ], [ 419, 419 ], [ 422, 422 ], [ 424, 425 ], [ 427, 427 ], [ 429, 429 ], [ 431, 433 ], [ 435, 451 ], [ 453, 453 ], [ 456, 460 ], [ 462, 465 ] ] ]
c30d1ec15a7e24dce97a733994ca14426aa88268
6752e9c713c6e52fcc8d27cb8c894893b2cb6d31
/ hidden/Plugin/myplugin.cpp
491a6028b17591433a6c6e10bb3411b18725c944
[]
no_license
sloflin72/hidden
a12e2ed9799057671ad536b03d5ccf36e313b82e
998cb26057284700656875ec7307ff3e4abeba49
refs/heads/master
2021-01-01T17:32:40.533805
2007-05-28T18:41:53
2007-05-28T18:41:53
35,539,388
0
0
null
null
null
null
UTF-8
C++
false
false
13,637
cpp
// myPlugin.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" /* Plugin of miranda IM(ICQ) for Communicating with users of the baseProtocol. Copyright (C) 2004 Daniel Savi ([email protected]) -> Based on J. Lawler BaseProtocol <- Added: - plugin option window - make.bat (vc++) - tinyclib http://msdn.microsoft.com/msdnmag/issues/01/01/hood/default.aspx - C++ version Miranda ICQ: the free icq client for MS Windows Copyright (C) 2000-2 Richard Hughes, Roland Rabien & Tristan Van de Vreede */ #include <string> #include "Stegano.h" #include "baseProtocol.h" #include <conio.h> #include <stdio.h> #include <time.h> #include <stdlib.h> #include <fstream> #include <list> //#include "Encoder.h" //#include "Decoder.h" //#include "Consts.h" #define DO_DEBUG __asm int 3 using namespace std; ofstream gLogFile; HINSTANCE hinstance; PLUGINLINK *pluginLink; HANDLE hHookEventAdd; HANDLE hEnableMenu; CLISTMENUITEM mi; //HANDLE hHookRebuildMenu; bool fEnabled; int interval; HANDLE hSndWndEvent; char szModuleName[] = "myPlugin.dll"; typedef struct _MYCONTACTINFO { HANDLE hContact; HWND hWndDlg; } MYCONTACTINFO, *PMYCONTACTINFO; list<MYCONTACTINFO> *pHandleList; HICON hIconSteno; HICON hIconDisSteno; HANDLE hServiceToggle, hMenuToggle; CStegano *gpStegano; #define DBSETTING_STENO_DISABLE "Disable stenography" #define MODULE "myPlugin" #define MS_STENO_TOGGLE MODULE "/StenoOnOff" PLUGININFO pluginInfo={ sizeof(PLUGININFO), "Steganography messanger", PLUGIN_MAKE_VERSION(0,0,0,1), "Steganography messanger", "Andrey Smetanin", "[email protected]", "Copyright(C) 2007 Fizteh students", "http://code.google.com/p/hidden/", 0, 0 }; extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) { /* if (mirandaVersion < PLUGIN_MAKE_VERSION(0,4,0,0)) return NULL; else */ return &pluginInfo; } //===================================================== // Unloads plugin //===================================================== extern "C" __declspec(dllexport)int Unload(void) { // UnhookEvent(hHookEventAdd); if (pHandleList) delete pHandleList; if (gpStegano) delete gpStegano; if (hSndWndEvent) UnhookEvent(hSndWndEvent); gLogFile << "Unload" << endl; gLogFile.close(); return 0; } //===================================================== // WINAPI DllMain //===================================================== BOOL WINAPI DllMain(HINSTANCE hinst,DWORD fdwReason,LPVOID lpvReserved) { hinstance = hinst; return TRUE; } void WriteCharLog(char *buffer, int size) { gLogFile << "BEGIN MESSAGE" << endl; gLogFile << "Size is " << size << endl; for (int i = 0; i < size; i++) { gLogFile.put(buffer[i]); } gLogFile << "END MESSAGE" << endl; } void WriteLog(PBYTE Buffer, int Size) { for (int i = 0; i < Size; i++) { gLogFile << (int)Buffer[i]; } gLogFile << "end log" << endl; } WNDPROC oldEncProc; WNDPROC oldDecProc; WNDPROC oldClearProc; char upperchar(char ch) { if ((ch>='a') && (ch<='z')) { ch='A'+(ch - 'a'); return ch; } else return ch; }; #define SEPARATOR "*enter*" HANDLE GetContactFromWnd(HWND hWnd) { list<MYCONTACTINFO>::iterator it; gLogFile << "GetContactFromWnd " << (void *)pHandleList << endl; for (it = pHandleList->begin(); it!= pHandleList->end(); it++) { if (it->hWndDlg == hWnd) { return it->hContact; } } return NULL; } struct MessageWindowDataInternal { HANDLE hContact; HANDLE hDbEventFirst, hDbEventLast; HANDLE hSendId; int sendCount; HBRUSH hBkgBrush; int splitterPos, originalSplitterPos; char *sendBuffer; SIZE minEditBoxSize; RECT minEditInit; int lineHeight; int windowWasCascaded; int nFlash; int nFlashMax; int nLabelRight; int nTypeSecs; int nTypeMode; int avatarWidth; int avatarHeight; int limitAvatarH; HBITMAP avatarPic; DWORD nLastTyping; int showTyping; HWND hwndStatus; DWORD lastMessage; char *szProto; WORD wStatus; WORD wOldStatus; void *cmdList; //TCmdList * void *cmdListCurrent; //TCmdList * int bIsRtl, bIsFirstAppend, bIsAutoRTL; int lastEventType; }; void RealSendMessage(HANDLE hContact, const char *buffer, int size) { int wait_time; /* dat->sendBuffer = (char *)realloc(dat->sendBuffer, size*(sizeof(TCHAR) + 1)); memcpy(dat->sendBuffer, buffer, size); dat->bIsRtl = 0; */ gLogFile << "time begin " << time(NULL) << endl; wait_time = 3000 + rand()%1000; gLogFile << "wait_time " << wait_time << endl; Sleep(wait_time); gLogFile << "time end " << time(NULL) << endl; CallContactService(hContact, PSS_MESSAGE, 0, (LPARAM)buffer); gLogFile << "send time " << time(NULL) << endl; } void SendEncodedMessage(string &message, HANDLE hContact) { string::size_type idx, idx_prev = 0; char *data; string oneMessage; srand(time(NULL)); while ((idx = message.find(SEPARATOR, idx_prev)) != string::npos) { RealSendMessage(hContact, message.substr(idx_prev, idx - idx_prev).data(), idx - idx_prev); idx_prev = idx + strlen(SEPARATOR); } } void Decode(string &instr, string & outstr) { outstr.clear(); outstr.reserve(instr.length()); for (int i = 0; i < instr.length(); i++) { outstr+= upperchar(instr[i]); } } #define IDC_MESSAGE 1002 #define IDC_LOG 1001 typedef struct _THREADINFO { char *Buffer; int BufferSize; HANDLE hContact; } THREADINFO, *PTHREADINFO; DWORD SendThread(LPVOID lpThreadParameter) { string instr, outstr; PTHREADINFO ThreadInfo = (PTHREADINFO)lpThreadParameter; gLogFile << "SendThread " << GetCurrentThreadId() << endl; instr.assign(ThreadInfo->Buffer, ThreadInfo->BufferSize); instr.erase(instr.size()-1, 1); if (gpStegano->Encode(instr, outstr) == -1) { MessageBoxW(NULL, L"Invalid input", L"Input ERROR", 0); } else { SendEncodedMessage(outstr, ThreadInfo->hContact); } free(ThreadInfo->Buffer); free(ThreadInfo); return 0; } void SendWorker(PTHREADINFO ThreadInfo) { HANDLE hThread; hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)SendThread, ThreadInfo, 0, NULL); } #define IDC_LOG 1001 #define TIME_STAMP_END ": " bool FindTimeStamp(string &str, string::size_type pos, string::size_type &end) { end = str.find(TIME_STAMP_END, pos); if (end == string::npos) return false; end+= 2; return true; } void ParseLogData(string &logdata, string &out) { string temp; string::size_type begin, end, posr; begin = 0; temp = logdata; bool first = true; while (FindTimeStamp(temp, begin, end)) { temp.erase(begin, end - begin); if (!first) { temp.insert(begin, SEPARATOR); begin+= strlen(SEPARATOR); } else { first = false; } end = begin; posr = temp.find("\r\n", begin); begin = temp.find("\r\n", posr + 2); if (posr != string::npos) { if ((begin == string::npos) || (begin != posr + 2)) { // "\r\n" temp.erase(posr, 2); begin = posr; } else { // "\r\n\r\n" temp.erase(begin, 2); temp.erase(posr, 1); begin = posr + 1; } } else { begin = end; } } begin = temp.rfind(SEPARATOR); if ((temp.length() - begin) == strlen(SEPARATOR)) { temp.erase(begin, temp.length() - begin); } out = temp; } LRESULT DecWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT lResult; HWND hParentWnd, hLogWnd, hWndEdit; struct MessageWindowDataInternal *dat = NULL; PTHREADINFO ThreadInfo = (PTHREADINFO)malloc(sizeof(THREADINFO)); string out, parseout, finalout; if (uMsg == WM_LBUTTONDOWN) { gLogFile << "DecWndProc my button down" << endl; hParentWnd = GetParent(hWnd); hLogWnd = GetDlgItem(hParentWnd, IDC_LOG); int size = GetWindowTextLengthA(hLogWnd) + 1; if (size > 1) { char *buffer = (char *)malloc(size); // DO_DEBUG; GetWindowTextA(hLogWnd, buffer, size); out.assign(buffer, size); gLogFile << "incoming message" << endl << out << endl << "end out" << endl; ParseLogData(out, parseout); gLogFile << "parsed message" << endl << parseout << endl << "end parsed message" << endl; // DO_DEBUG; gpStegano->Decode(parseout, finalout); // DO_DEBUG; //DECODE!!!! // CreateWindowW("Edit", "DecodedMessage", dwStyle, 100, 100, 100, 100, NULL, NULL, hinstance, NULL); hWndEdit = CreateWindow(L"edit", L"Decoded message", WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_BORDER, 100, 100, 200, 60, NULL, NULL, hinstance, NULL); lResult = SendMessage(hWndEdit, EM_SETREADONLY, TRUE, 0); SetWindowTextA(hWndEdit, finalout.c_str()); gLogFile << "Edit handle " << hWndEdit << endl; // MessageBoxA(hParentWnd, parseout.c_str(), "DecodeMessage", MB_TOPMOST); free(buffer); } } return CallWindowProcW(oldClearProc, hWnd, uMsg, wParam, lParam); } LRESULT ClearWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT lResult; HWND hParentWnd, hLogWnd; if (uMsg == WM_LBUTTONDOWN) { gLogFile << "ClearWndProc my button down" << endl; hParentWnd = GetParent(hWnd); hLogWnd = GetDlgItem(hParentWnd, IDC_LOG); if (SetWindowText(hLogWnd, NULL) == NULL) { gLogFile << "ClearWndProc SetWindowText error " << GetLastError() << endl; } } return CallWindowProcW(oldClearProc, hWnd, uMsg, wParam, lParam); } LRESULT EncWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LRESULT lResult; HWND hParentWnd, hEdit; struct MessageWindowDataInternal *dat = NULL; PTHREADINFO ThreadInfo = (PTHREADINFO)malloc(sizeof(THREADINFO)); if (uMsg == WM_LBUTTONDOWN) { gLogFile << "EncWndProc my button down" << endl; hParentWnd = GetParent(hWnd); dat = (struct MessageWindowDataInternal *)GetWindowLong(hParentWnd, GWL_USERDATA); if (!dat) { return CallWindowProcW(oldEncProc, hWnd, uMsg, wParam, lParam); } if (hParentWnd) { hEdit = GetDlgItem(hParentWnd, IDC_MESSAGE); ThreadInfo->BufferSize = GetWindowTextLengthA(hEdit) + 1; if (ThreadInfo->BufferSize > 1) { ThreadInfo->Buffer = (char *)malloc(ThreadInfo->BufferSize*sizeof(char)); ThreadInfo->hContact = dat->hContact; if (GetWindowTextA(hEdit, ThreadInfo->Buffer, ThreadInfo->BufferSize)) { SendWorker(ThreadInfo); } else { free(ThreadInfo->Buffer); free(ThreadInfo); } } } } return CallWindowProcW(oldEncProc, hWnd, uMsg, wParam, lParam); } #define BUTTON_SIZE_X 26 #define BUTTON_SIZE_Y 24 #define ENCODE_BUTTON_NAME L"En" #define DECODE_BUTTON_NAME L"De" #define CLEAR_BUTTON_NAME L"CL" #define XSHIFT 200 int RenderWindowEvent(WPARAM wParam, LPARAM lParam) { MYCONTACTINFO ContactInfo; MessageWindowEventData *hEventHandle; StatusIconData IconData = {0}; int Result, newBlobSize, oldBlobSize; HANDLE hContact; HANDLE hDbEvent; HWND hWndDlg, hWndEnc, hWndDec, hWndClear; RECT Rect; hEventHandle = (MessageWindowEventData *)lParam; if(hEventHandle->uType == MSG_WINDOW_EVT_OPEN) { hWndDlg = hEventHandle->hwndWindow; hWndEnc = CreateWindowEx(0, L"button", ENCODE_BUTTON_NAME, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, XSHIFT, 2, BUTTON_SIZE_X, BUTTON_SIZE_Y, hWndDlg, NULL, hinstance, NULL); hWndDec = CreateWindowEx(0, L"button", DECODE_BUTTON_NAME, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, XSHIFT + BUTTON_SIZE_X, 2, BUTTON_SIZE_X, BUTTON_SIZE_Y, hWndDlg, NULL, hinstance, NULL); hWndClear = CreateWindowEx(0, L"button", CLEAR_BUTTON_NAME, WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, XSHIFT + 2*BUTTON_SIZE_X, 2, BUTTON_SIZE_X, BUTTON_SIZE_Y, hWndDlg, NULL, hinstance, NULL); ContactInfo.hContact = hEventHandle->hContact; ContactInfo.hWndDlg = hWndDlg; pHandleList->push_front(ContactInfo); oldEncProc = (WNDPROC)SetWindowLongW(hWndEnc, GWL_WNDPROC, (LONG)(EncWndProc)); oldClearProc = (WNDPROC)SetWindowLongW(hWndClear, GWL_WNDPROC, (LONG)(ClearWndProc)); oldDecProc = (WNDPROC)SetWindowLongW(hWndDec, GWL_WNDPROC, (LONG)(DecWndProc)); } if(hEventHandle->uType == MSG_WINDOW_EVT_CLOSE) { hWndDlg = hEventHandle->hwndWindow; list<MYCONTACTINFO>::iterator it; gLogFile << (void *)pHandleList << endl; for (it = pHandleList->begin(); it != pHandleList->end(); it++) { if (it->hWndDlg == hWndDlg) { pHandleList->erase(it); break; } } } return 0; } int MainInit(WPARAM wParam, LPARAM lParam) { gLogFile << "MainInit" << endl; if(GetModuleHandle(L"SRMM")) { hSndWndEvent = HookEvent(ME_MSG_WINDOWEVENT, RenderWindowEvent); } return 0; } //===================================================== // Called when plugin is loaded into Miranda //===================================================== extern "C" int __declspec(dllexport)Load(PLUGINLINK *link) { gLogFile.open("c:\\mypluginLog.txt"); gLogFile << "Load" << endl; pluginLink = link; hIconSteno = NULL; hIconDisSteno = NULL; hServiceToggle = NULL; hMenuToggle = NULL; DBVARIANT dbv; HANDLE hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDFIRST, 0, 0 ); pHandleList = new list<MYCONTACTINFO>; gLogFile << "PRIVED" << endl; gLogFile << "pHandleList " << (void *)pHandleList << endl; gpStegano = new CStegano; HookEvent(ME_SYSTEM_MODULESLOADED,MainInit); return 0; }
[ "OriginalNull@0364091d-a02e-0410-8043-37c777bc390d" ]
[ [ [ 1, 555 ] ] ]
e59871106e0368e424866c457c5f809e5e43eeb4
741b36f4ddf392c4459d777930bc55b966c2111a
/incubator/happylib/HappyLib/HTLdevector.h
188a2867ce472409f57e3dba70e9454c052acf10
[]
no_license
BackupTheBerlios/lwpp-svn
d2e905641f60a7c9ca296d29169c70762f5a9281
fd6f80cbba14209d4ca639f291b1a28a0ed5404d
refs/heads/master
2021-01-17T17:01:31.802187
2005-10-16T22:12:52
2005-10-16T22:12:52
40,805,554
0
0
null
null
null
null
UTF-8
C++
false
false
2,292
h
#ifndef _HTL_DEVECTOR #define _HTL_DEVECTOR #include <vector> #include <HLUtils.h> // [DOCUMENTME] double ended vector template <class Obj> class devector // [TESTME] { private: typedef typename std::vector<Obj>::size_type size_type; std::vector<Obj> vec; size_type first, count; public: devector() : first(0), count(0) {} size_type size() const { return count; } void reserve(size_type t) { vec.reserve(t); } void defragmentFull() { // degfragment the vector using 'count' swaps size_type beginPos = 0; size_type endPos = count; while (true) { // compute how much we should swap this pass size_type const swapLeft = first - beginPos; size_type const swapRight = endPos - first; size_type const swapAmount = Min(swapLeft, swapRight); if (!swapAmount) break; // all done // perform the swaps for (size_type i = 0; i < swapAmount; ++ i) Swap(vec[beginPos + i], vec[endPos - swapAmount + i]); // continue on the appropriate side if (swapLeft == swapAmount) endPos -= swapAmount; else beginPos += swapAmount; } first = 0; } void clear() { vec.clear(); first = count = 0; } void push_back(Obj const & o) { if (count == vec.size()) { defragmentFull(); vec.push_back(Obj()); } operator[](count ++) = o; } void push_front(Obj const & o) { if (count == vec.size()) { defragmentFull(); vec.push_back(Obj()); } ++ count; if (!first) first = vec.size() - 1; else -- first; vec[first] = o; } void pop_back() { -- count; } void pop_front() { -- count; if (++ first == vec.size()) first = 0; } Obj & operator[](size_type i) { if ((i += first) >= vec.size()) i -= vec.size(); return vec[i]; } Obj const & operator[](size_type i) const { if ((i += first) >= vec.size()) i -= vec.size(); return vec[i]; } Obj & front() { return vec[first]; } Obj const & front() const { return vec[first]; } Obj & back() { size_type i = count - 1; if ((i += first) >= vec.size()) i -= vec.size(); return vec[i]; } Obj const & back() const { size_type i = count - 1; if ((i += first) >= vec.size()) i -= vec.size(); return vec[i]; } }; #endif
[ "lightwolf@dac1304f-7ce9-0310-a59f-f2d444f72a61" ]
[ [ [ 1, 114 ] ] ]
385e64f2424e500839f9d59d26e47fd629692e2b
447a1817531f5eff55925709ff1cdde37033cf79
/src/utilities/itimer.h
e39b76ef92c12dea7ae6e592b9e2f151a6c46a43
[]
no_license
Kazade/kazengine
63276feef92f7daae5ac10563589bb5b87233644
0723eb6f22e651f9ea2d110b00b3f4c5d94465d5
refs/heads/master
2020-03-31T12:12:58.501020
2008-08-14T20:14:44
2008-08-14T20:14:44
32,983
4
1
null
null
null
null
UTF-8
C++
false
false
259
h
#ifndef ITIMER_H_INCLUDED #define ITIMER_H_INCLUDED class timer_interface { public: virtual ~timer_interface() {} virtual float get_elapsed_time() = 0; virtual bool initialize() = 0; virtual void update() = 0; }; #endif // ITIMER_H_INCLUDED
[ "luke@helium.(none)", "luke@Hydrogen.(none)" ]
[ [ [ 1, 5 ], [ 8, 8 ], [ 11, 13 ] ], [ [ 6, 7 ], [ 9, 10 ] ] ]
50278bb4eaeb2ff1c7269e504ba36b7eea6d00e0
3ec3b97044e4e6a87125470cfa7eef535f26e376
/timorg-chuzzle_bejeweled_clone/tile.cpp
3a166daf3cbcaf9b024fdc41656f182d23cc5ae2
[]
no_license
strategist922/TINS-Is-not-speedhack-2010
6d7a43ebb9ab3b24208b3a22cbcbb7452dae48af
718b9d037606f0dbd9eb6c0b0e021eeb38c011f9
refs/heads/master
2021-01-18T14:14:38.724957
2010-10-17T14:04:40
2010-10-17T14:04:40
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,517
cpp
#include "tile.h" #include "movement.h" #include <algorithm> TILE::TILE(POSITION p, ELEMENTS el) : pos(p), e(el), nuked(false), start(pos), dir(NONE), returning(false) { } TILE::TILE(POSITION p) : pos(p), nuked(false), start(pos), dir(NONE), returning(false) { switch(rand() % 5) { case 0: e = WIND; break; case 1: e = WATER; break; case 2: e = EARTH; break; case 3: e = FIRE; break; case 4: e = HEART; break; } } void TILE::shove(POSITION dest, DIRECTION d, bool r) { if (d == NONE) return; start = pos; destination = dest; dir = d; returning = r; update_xy(dir, POSITION(MAX_X, MAX_Y), pos); } void TILE::shove(POSITION dest, bool r) { DIRECTION d; if (dest.x < pos.x) { d = W; } else if (dest.x > pos.x) { d = E; } else if (dest.y < pos.y) { d = N; } else if (dest.y > pos.y) { d = S; } else d = NONE; if (d == NONE) return; start = pos; destination = dest; dir = d; returning = r; update_xy(dir, POSITION(MAX_X, MAX_Y), pos); } void TILE::logic() { if (!at_destination()) { update_xy(dir, POSITION(MAX_X, MAX_Y), pos); if (at_destination()) { if (returning) { std::swap(start, destination); returning = false; dir = invert(dir); } else { dir = NONE; } } } else { start = pos; dir = NONE; returning = false; // if (ungrid_request) // in_grid = false; } } bool TILE::will_arive(int distance) { POSITION t = pos; for (int c = 0; c < distance;c++) { update_xy(dir, POSITION(MAX_X, MAX_Y), t); if ((t.x == destination.x) && (t.y == destination.y)) return true; } return false; } #include "data.h" void TILE::render(BITMAP *buffer) { draw_sprite(buffer, (*data)[e], pos.x, pos.y); } bool TILE::at_destination() { if (dir == NONE) return true; return ((pos.x == destination.x) && (pos.y == destination.y)); } /* void TILE::ungrid() { ungrid_request = true; } */
[ [ [ 1, 142 ] ] ]
612ca53a0183fdce9a0108afa317886c61fb1237
d64ed1f7018aac768ddbd04c5b465c860a6e75fa
/DrawingElement.cpp
4b29753143d9249266096234ec12b2b31419ea33
[]
no_license
roc2/archive-freepcb-codeproject
68aac46d19ac27f9b726ea7246cfc3a4190a0136
cbd96cd2dc81a86e1df57b86ce540cf7c120c282
refs/heads/master
2020-03-25T00:04:22.712387
2009-06-13T04:36:32
2009-06-13T04:36:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,797
cpp
#include "stdafx.h" #include "DrawingElement.h" void dl_element::Draw(CDrawInfo const &di) const { if( visible && dlist->m_vis[ orig_layer ] ) _Draw(di); } void dl_element::DrawThermalRelief(CDrawInfo const &di) const { if( visible && dlist->m_vis[ orig_layer ] ) _DrawThermalRelief(di); } int dl_element::isHit(CPoint const &point) const { // don't select anything on an invisible layer or element if( visible && dlist->m_vis[layer] ) return _isHit(point); else return 0; } void dl_element::Remove(void) { if( this == NULL ) return; dlist->Remove(this); } int CDLE_Symmetric::onScreen(void) const { int sz = w/2; return ( i.x-sz < dlist->m_max_x && i.x+sz > dlist->m_org_x && i.y-sz < dlist->m_max_y && i.y+sz > dlist->m_org_y ); } int CDLE_Symmetric::_getBoundingRect(CRect &rect) const { int sz = w/2 + clearancew; rect.left = i.x - sz; rect.right = i.x + sz; rect.top = i.y + sz; rect.bottom = i.y - sz; return 1; } int CDLE_Rectangular::onScreen(void) const { int _xi = i.x; int _yi = i.y; int _xf = f.x; int _yf = f.y; if( _xf < _xi ) { _xf = _xi; _xi = f.x; } if( _yf < _yi ) { _yf = _yi; _yi = f.y; } return ( _xi < dlist->m_max_x && _xf > dlist->m_org_x && _yi < dlist->m_max_y && _yf > dlist->m_org_y ); } int CDLE_Rectangular::_getBoundingRect(CRect &rect) const { int sz = clearancew; int _xi = i.x; int _yi = i.y; int _xf = f.x; int _yf = f.y; if( _xf < _xi ) { _xf = _xi; _xi = f.x; } if( _yf < _yi ) { _yf = _yi; _yi = f.y; } rect.left = _xi - sz; rect.right = _xf + sz; rect.top = _yi - sz; rect.bottom = _yf + sz; return 1; } void CDLE_Rectangular::_DrawThermalRelief(CDrawInfo const &di) const { CFreePcbDoc * doc = theApp.m_Doc; int conn_tracew = doc->m_thermal_width / 2540; int therm_clearance = doc->m_thermal_clearance / 2540; int _xi = i.x; int _yi = i.y; int _xf = f.x; int _yf = f.y; if( _xf < _xi ) { _xf = _xi; _xi = f.x; } if( _yf < _yi ) { _yf = _yi; _yi = f.y; } di.DC->SelectObject( di.erase_brush ); di.DC->SelectObject( di.erase_pen ); di.DC->Rectangle( _xi - therm_clearance, _yi - therm_clearance, _xf + therm_clearance, _yf + therm_clearance); di.DC->SelectObject( di.fill_brush ); CPen pen( PS_SOLID, conn_tracew, di.layer_color[1] ); di.DC->SelectObject( &pen ); di.DC->MoveTo( (_xi + _xf) / 2, _yi - therm_clearance ); di.DC->LineTo( (_xi + _xf) / 2, _yf + therm_clearance ); di.DC->MoveTo( _xi - therm_clearance, (_yi + _yf) / 2 ); di.DC->LineTo( _xf + therm_clearance, (_yi + _yf) / 2 ); di.DC->SelectObject( di.line_pen ); }
[ "jamesdily@9bfb2a70-7351-0410-8a08-c5b0c01ed314" ]
[ [ [ 1, 146 ] ] ]
a6c37a6060c3398cb1d10f5eb7d52ece74dd8a54
df238aa31eb8c74e2c208188109813272472beec
/BCGInclude/BCGPShellList.h
65531d5542d4371fa39d638fe57fb6fe714a0987
[]
no_license
myme5261314/plugin-system
d3166f36972c73f74768faae00ac9b6e0d58d862
be490acba46c7f0d561adc373acd840201c0570c
refs/heads/master
2020-03-29T20:00:01.155206
2011-06-27T15:23:30
2011-06-27T15:23:30
39,724,191
0
0
null
null
null
null
UTF-8
C++
false
false
4,210
h
#if !defined(AFX_BCGPSHELLLIST_H__E4BD89AE_F335_4BC6_854F_751F8DBBE0D8__INCLUDED_) #define AFX_BCGPSHELLLIST_H__E4BD89AE_F335_4BC6_854F_751F8DBBE0D8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 //******************************************************************************* // COPYRIGHT NOTES // --------------- // This is a part of the BCGControlBar Library // Copyright (C) 1998-2008 BCGSoft Ltd. // All rights reserved. // // This source code can be used, distributed or modified // only under terms and conditions // of the accompanying license agreement. //******************************************************************************* // BCGPShellList.h : header file // #include "BCGCBPro.h" #ifndef BCGP_EXCLUDE_SHELL #include "BCGPShellManager.h" #include "BCGPListCtrl.h" class CBCGPShellTree; ///////////////////////////////////////////////////////////////////////////// // CBCGPShellList window class BCGCBPRODLLEXPORT CBCGPShellList : public CBCGPListCtrl { friend class CBCGPShellTree; DECLARE_DYNAMIC(CBCGPShellList) // Construction public: CBCGPShellList(); // Attributes public: enum { BCGPShellList_ColumnName = 0, BCGPShellList_ColumnSize = 1, BCGPShellList_ColumnType = 2, BCGPShellList_ColumnModified = 3, } BCGPShellListColumns; const IShellFolder* GetCurrentShellFolder () const { return m_psfCurFolder; } LPITEMIDLIST GetCurrentItemIdList () const { return m_pidlCurFQ; } BOOL IsDesktop () const { return m_bIsDesktop; } protected: IShellFolder* m_psfCurFolder; LPITEMIDLIST m_pidlCurFQ; BOOL m_bContextMenu; HWND m_hwndRelatedTree; BOOL m_bIsDesktop; BOOL m_bNoNotify; SHCONTF m_nTypes; static IContextMenu2* m_pContextMenu2; // Operations public: BOOL GetItemPath (CString& strPath, int iItem) const; BOOL GetCurrentFolder (CString& strPath) const; BOOL GetCurrentFolderName (CString& strName) const; virtual HRESULT Refresh (); virtual HRESULT DisplayFolder (LPCTSTR lpszPath); virtual HRESULT DisplayFolder (LPBCGCBITEMINFO lpItemInfo); virtual HRESULT DisplayParentFolder (); void SetItemTypes (SHCONTF nTypes); SHCONTF GetItemTypes () const { return m_nTypes; } void EnableShellContextMenu (BOOL bEnable = TRUE); // Overrides virtual void OnSetColumns (); virtual CString OnGetItemText (int iItem, int iColumn, LPBCGCBITEMINFO pItem); virtual int OnGetItemIcon (int iItem, LPBCGCBITEMINFO pItem); virtual void OnFormatFileSize (long lFileSize, CString& str); virtual void OnFormatFileDate (const CTime& tmFile, CString& str); virtual int OnCompareItems (LPARAM lParam1, LPARAM lParam2, int iColumn); // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBCGPShellList) protected: virtual void PreSubclassWindow(); virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam); //}}AFX_VIRTUAL // Implementation public: virtual ~CBCGPShellList(); // Generated message map functions protected: //{{AFX_MSG(CBCGPShellList) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDeleteitem(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnReturn(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnContextMenu(CWnd* pWnd, CPoint point); afx_msg void OnDestroy(); //}}AFX_MSG DECLARE_MESSAGE_MAP() HIMAGELIST GetShellImageList (BOOL bLarge); HRESULT LockCurrentFolder (LPBCGCBITEMINFO pItemInfo); void ReleaseCurrFolder (); virtual HRESULT EnumObjects (LPSHELLFOLDER pParentFolder, LPITEMIDLIST pidlParent); virtual void DoDefault (int iItem); BOOL InitList (); CBCGPShellTree* GetRelatedTree () const; }; extern BCGCBPRODLLEXPORT UINT BCGPM_CHANGE_CURRENT_FOLDER; #endif // BCGP_EXCLUDE_SHELL ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BCGPSHELLLIST_H__E4BD89AE_F335_4BC6_854F_751F8DBBE0D8__INCLUDED_)
[ "myme5261314@ec588229-7da7-b333-41f6-0e1ebc3afda5" ]
[ [ [ 1, 154 ] ] ]
f9ad2f106bfed780f33b558f7dc68e1f96cd2cf0
0ee189afe953dc99825f55232cd52b94d2884a85
/mstd/command_queue.cpp
aabfab81ffed45445b41ff7141f445c259830a8c
[]
no_license
spolitov/lib
fed99fa046b84b575acc61919d4ef301daeed857
7dee91505a37a739c8568fdc597eebf1b3796cf9
refs/heads/master
2016-09-11T02:04:49.852151
2011-08-11T18:00:44
2011-08-11T18:00:44
2,192,752
0
0
null
null
null
null
UTF-8
C++
false
false
1,348
cpp
#if !defined(_STLP_NO_IOSTREAMS) #include "reverse_lock.hpp" #include "command_queue.hpp" namespace mstd { command_queue::command_queue() { thread_ = move(boost::thread(&command_queue::execute, this)); } command_queue::~command_queue() { thread_.interrupt(); thread_.join(); } void command_queue::enqueue(const command_type & command) { boost::unique_lock<boost::mutex> lock(mutex_); queue_.push_back(command); cond_.notify_one(); } void command_queue::execute() { queue_type queue; boost::unique_lock<boost::mutex> lock(mutex_); while(!boost::this_thread::interruption_requested()) { try { if(queue_.empty()) cond_.wait(lock); else { queue_.swap(queue); reverse_lock<boost::unique_lock<boost::mutex> > rlock(lock); for(queue_type::const_iterator i = queue.begin(), end = queue.end(); i != end; ++i) try { (*i)(); } catch(boost::thread_interrupted&) { return; } catch(...) { } queue.clear(); } } catch(boost::thread_interrupted&) { return; } } } } #endif
[ [ [ 1, 58 ] ] ]
7ff9393d1843109d3d2de64488e8a1d527c1e0b9
64f1bedba44187266c515a293664dd30300061a9
/src/compiler/SourcecodeCompiler.h
8c92de4992c933418de40025ff8f78c4883be1e0
[]
no_license
SOM-st/ActorSOMpp
ad6721df1dd2c80928fef59f0c88e531a3c80d50
a985469633ca5c7293ca621a99a22143ab4bca3f
refs/heads/master
2021-01-20T01:27:51.212730
2009-11-11T14:16:29
2009-11-11T14:16:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,932
h
#pragma once #ifndef SOURCECODECOMPILER_H_ #define SOURCECODECOMPILER_H_ /* * * Copyright (c) 2007 Michael Haupt, Tobias Pape, Arne Bergmann Software Architecture Group, Hasso Plattner Institute, Potsdam, Germany http://www.hpi.uni-potsdam.de/swa/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "../misc/defs.h" #include "../vmobjects/ObjectFormats.h" #include "../vmobjects/VMPointer.h" class VMClass; class Parser; class SourcecodeCompiler { public: SourcecodeCompiler(); ~SourcecodeCompiler(); pVMClass CompileClass(const StdString& path, const StdString& file, pVMClass systemClass); pVMClass CompileClassString(const StdString& stream, pVMClass systemClass); private: void showCompilationError(const StdString& filename, const char* message); pVMClass compile(pVMClass systemClass); Parser* parser; }; #endif
[ "" ]
[ [ [ 1, 55 ] ] ]
d21905aee4b1c6bfef2edba3eb3f4f4eea2d82f9
3cd7d37bbc0d8767dcdc0d104c8c445107e38f36
/osmap.h
bae89504aba7d51466795c3e5954c59d693055b3
[]
no_license
farihi/gpsturbo
8978fa37d4c164cbdd85091ec3feeb9aa1ff2662
a56634b63a9022c48f1e529385b6926366da1fda
refs/heads/master
2021-01-10T12:09:32.768016
2010-06-30T23:35:18
2010-06-30T23:35:18
44,369,116
0
0
null
null
null
null
UTF-8
C++
false
false
15,572
h
/*********************************************************************************/ /* GPSTurbo */ /* */ /* Programmed by Kevin Pickell */ /* */ /* http://www.scale18.com/cgi-bin/page/gpsturbo.html */ /* */ /* GPSTurbo 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; version 2. */ /* */ /* GPSTurbo 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. */ /* */ /* http://www.gnu.org/licenses/gpl.txt */ /* */ /* You should have received a copy of the GNU General Public License */ /* along with GPSTurbo; if not, write to the Free Software */ /* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /*********************************************************************************/ #ifndef __OSMMAP__ #define __OSMMAP__ #include "map.h" #define USEVHEAP 1 #include "vheap.h" enum { ACCESS_FALSE, ACCESS_PERMISSIVE, ACCESS_PRIVATE, ACCESS_TRUE, ACCESS_RESTRICTED, AEROWAY_AERODROME, AEROWAY_APRON, AEROWAY_RUNWAY, AEROWAY_TAXIWAY, AERIALWAY_UNKNOWN, AGRICULTURAL_TRUE, AMENITY_AIRPORTTERMINAL, AMENITY_AMBULANCESTATION, AMENITY_ARTGALLERY, AMENITY_ATTRACTION, AMENITY_BANK, AMENITY_BENCH, AMENITY_BICYCLEPARKING, AMENITY_BOATLAUNCH, AMENITY_BUILDING, AMENITY_BUSSTATION, AMENITY_CAFE, AMENITY_CAMPSITE, AMENITY_CARSHOP, AMENITY_CASINO, AMENITY_CEMETERY, AMENITY_CHAIRLIFT, AMENITY_CHURCH, AMENITY_COFFEESHOP, AMENITY_COLLEGE, AMENITY_COMMERCIAL, AMENITY_COMMUNITYCENTER, AMENITY_CONVENIENCE, AMENITY_COURTHOUSE, AMENITY_CULTURALCENTER, AMENITY_DAM, AMENITY_DIYSHOP, AMENITY_DOCK, AMENITY_DAYCARE, AMENITY_FARM, AMENITY_FASTFOOD, AMENITY_FERRYTERMINAL, AMENITY_FIRESTATION, AMENITY_FOUNTAIN, AMENITY_FUEL, AMENITY_FUNERALHOME, AMENITY_GARBAGEDUMP, AMENITY_GARDEN, AMENITY_GOLFCOURSE, AMENITY_GROCERY, AMENITY_HANGAR, AMENITY_HOCKEYRINK, AMENITY_HOSPITAL, AMENITY_HOTEL, AMENITY_INDUSTRIAL, AMENITY_INFORMATION, AMENITY_LANDFILL, AMENITY_LIBRARY, AMENITY_MAILBOX, AMENITY_MARINA, AMENITY_MONUMENT, AMENITY_MOTEL, AMENITY_MUSEUM, AMENITY_OFFICE, AMENITY_PARKING, AMENITY_PHARMACY, AMENITY_PIPELINE, AMENITY_PIER, AMENITY_PLAYGROUND, AMENITY_POLICE, AMENITY_POSTOFFICE, AMENITY_PRISON, AMENITY_PUB, AMENITY_PUBLICBUILDING, AMENITY_QUARRY, AMENITY_RECREATIONCENTER, AMENITY_RECYCLING, AMENITY_RESIDENTIAL, AMENITY_RESTRAUNT, AMENITY_RETAIL, AMENITY_SCHOOL, AMENITY_SERVICEYARD, AMENITY_SHOPPING, AMENITY_STADIUM, AMENITY_SUPERMARKET, AMENITY_SWIMMINGPOOL, AMENITY_TELEPHONE, AMENITY_TENNISCOURT, AMENITY_THEATRE, AMENITY_TRAINSTATION, AMENITY_TOILETS, AMENITY_TOWNHALL, AMENITY_TOWER, AMENITY_SPORTSTRACK, AMENITY_UNDERGROUNDPARKING, AMENITY_UNIVERSITY, AMENITY_WATERPARK, AMENITY_WATERTOWER, AMENITY_VIEWPOINT, AMENITY_ZOO, AREA_TRUE, AREA_FALSE, BICYCLE_TRUE, BICYCLE_FALSE, BOAT_TRUE, BOAT_FALSE, BORDER_COUNTY, BORDER_PROVINCE, BORDER_COUNTRY, BOUNDARY_ADMINISTRATIVE, BRIDGE_TRUE, BRIDGE_FALSE, BUILDING_TRUE, BUS_TRUE, BUS_FALSE, CAR_TRUE, CAR_FALSE, CLASS_MINOR, CLASS_PRIMARY, CLASS_SECONDARY, CONDITION_DEFICIENT, CONDITION_FAIR, CONDITION_GOOD, CONDITION_INTOLERABLE, CONSTRUCTION_PRIMARY, CONSTRUCTION_RESIDENTIAL, CROSSING_TRAFFIC_SIGNALS, CROSSING_UNCONTROLLED, CYCLEWAY_LANE, CYCLEWAY_TRACK, CYCLEWAY_TRUE, DENOMINATION_ADVENTIST, DENOMINATION_ALLIANCE, DENOMINATION_ANGLICAN, DENOMINATION_BAHAI, DENOMINATION_BAPTIST, DENOMINATION_BUDDHIST, DENOMINATION_CANADIANREFORMED, DENOMINATION_CATHOLIC, DENOMINATION_CHRISTIAN, DENOMINATION_CHRISTIANSCIENCE, DENOMINATION_COPTIC, DENOMINATION_EVANGELICAL, DENOMINATION_EVANGELICALFREE, DENOMINATION_GOSPEL, DENOMINATION_GREEKORTHODOX, DENOMINATION_INDEPENDENT, DENOMINATION_ISLAM, DENOMINATION_JEHOVAHSWITNESS, DENOMINATION_JEWISH, DENOMINATION_LUTHERAN, DENOMINATION_MENNONITE, DENOMINATION_METHODIST, DENOMINATION_MORMON, DENOMINATION_NORTHAMERICANBAPTIST, DENOMINATION_ORTHODOX, DENOMINATION_PENTECOSTAL, DENOMINATION_PRESBYTERIAN, DENOMINATION_PROTESTANT, DENOMINATION_ROMANCATHOLIC, DENOMINATION_RUSSIANORTHODOX, DENOMINATION_SALVATIONARMY, DENOMINATION_SEVENTHDAYADVENTIST, DENOMINATION_UKRANIANBAPTIST, DENOMINATION_UKRANIANCATHOLIC, DENOMINATION_UKRANIANORTHODOX, DENOMINATION_UNITED, DENOMINATION_WESLEYAN, DIRECTION_BACKWARD, DIRECTION_FORWARD, DIRECTION_NORTHEAST, DIRECTION_SOUTHEAST, DIRECTION_NORTHWEST, DIRECTION_SOUTHWEST, DISTANCE_MARKER_TRUE, DISPENSING_TRUE, EMERGENCY_TRUE, EMERGENCY_FALSE, FEE_TRUE, FEE_FALSE, FOOT_TRUE, FOOT_FALSE, FOOT_DESIGNATED, FOOT_PERMISSIVE, GOODS_TRUE, GOODS_FALSE, HIGHWAY_BRIDLEWAY, HIGHWAY_BRIDGE, HIGHWAY_BUS_GUIDEWAY, HIGHWAY_BUS_STOP, HIGHWAY_BYWAY, HIGHWAY_CATTLEGRID, HIGHWAY_CONSTRUCTION, HIGHWAY_CROSSING, HIGHWAY_CYCLEWAY, HIGHWAY_EMERGENCY_ACCESS_POINT, HIGHWAY_FOOTWAY, HIGHWAY_FORD, HIGHWAY_GATE, HIGHWAY_INCLINE, HIGHWAY_INCLINE_STEEP, HIGHWAY_LIVING_STREET, HIGHWAY_MINI_ROUNDABOUT, HIGHWAY_MINOR, HIGHWAY_MOTORWAY, HIGHWAY_MOTORWAY_LINK, HIGHWAY_MOTORWAYJUNCTION, HIGHWAY_PROPOSED, HIGHWAY_PATH, HIGHWAY_PEDESTRIAN, HIGHWAY_PRIMARY, HIGHWAY_PRIMARYLINK, HIGHWAY_RESIDENTIAL, HIGHWAY_ROAD, HIGHWAY_SECONDARY, HIGHWAY_SECONDARYLINK, HIGHWAY_SERVICE, HIGHWAY_SERVICES, HIGHWAY_SPEEDBUMP, HIGHWAY_STEPS, HIGHWAY_STILE, HIGHWAY_STOP, HIGHWAY_TERTIARY, HIGHWAY_TOLLBOOTH, HIGHWAY_TRACK, HIGHWAY_TRAILHEAD, HIGHWAY_TRAFFIC_SIGNALS, HIGHWAY_TRUNK, HIGHWAY_TRUNK_LINK, HIGHWAY_TURNING_CIRCLE, HIGHWAY_UNCLASSIFIED, HIGHWAY_UNPAVED, HORSE_TRUE, HORSE_FALSE, HGV_TRUE, //heavy goods vehicle HGV_FALSE, JUNCTION_TRUE, JUNCTION_ROUNDABOUT, JUNCTION_TRAFFICLIGHT, LAYER_N5, LAYER_N4, LAYER_N3, LAYER_N2, LAYER_N1, LAYER_0, LAYER_1, LAYER_2, LAYER_3, LAYER_4, LAYER_5, LCN_TRUE, //local cycle route LEISURE_BENCH, LEISURE_PARK, LEISURE_PITCH, LEISURE_RECREATIONAREA, LEVEL_1, LEVEL_2, LINK_TRUE, PLACE_AIRPORT, PLACE_CITY, PLACE_COUNTY, PLACE_HAMLET, PLACE_SUBURB, PLACE_TOWN, PLACE_VILLAGE, POWER_GENERATOR, POWER_LINE, POWER_SUBSTATION, POWER_TOWER, POWERSOURCE_WIND, PSV_TRUE, /* no cars, pedestrians only */ PSV_FALSE, NATURAL_BEACH, NATURAL_CANAL, NATURAL_CAVE, NATURAL_COASTLINE, NATURAL_DRAIN, NATURAL_GRASS, NATURAL_FIELD, NATURAL_FOREST, NATURAL_LAND, NATURAL_LAKE, NATURAL_MARSH, NATURAL_PEAK, NATURAL_SCRUB, NATURAL_RESERVOIR, NATURAL_RIVER, NATURAL_RIVERBANK, NATURAL_STREAM, NATURAL_WATER, NATURAL_WATERFALL, NCN_TRUE, //national cycle route NOEXIT_TRUE, NOEXIT_FALSE, ONEWAY_TRUE, ONEWAY_FALSE, ONEWAY_REVERSIBLE, PASSENGER_TRUE, PROPOSED_RESIDENTIAL, PROPOSED_PRIMARYLINK, LANES_HALF, LANES_1, LANES_2, LANES_3, LANES_4, LANES_5, LANES_6, MOTORCYCLE_TRUE, MOTORCYCLE_FALSE, RAILWAY_ABANDONED, RAILWAY_CROSSING, RAILWAY_HALT, RAILWAY_LAND, RAILWAY_LEVELCROSSING, RAILWAY_LIGHTRAIL, RAILWAY_MONORAIL, RAILWAY_PROPOSED, RAILWAY_RAIL, RAILWAY_SPUR, RAILWAY_STATION, RAILWAY_SUBWAY, RAILWAY_SUBWAYENTRANCE, RAILWAY_TRAM, RAILWAY_UNKNOWN, RAILWAY_YARD, RCN_TRUE, ROUTE_BUS, ROUTE_FERRY, ROUTE_SKI, SEPERATED_TRUE, SEPERATED_FALSE, SHELTER_TRUE, SHELTER_FALSE, SIZE_HUGE, SIZE_LARGE, SIZE_MEDIUM, SPORT_BASKETBALL, SPORT_BASEBALL, SPORT_FOOTBALL, SPORT_SOCCER, SPORT_TENNIS, SURFACE_ASPHALT, SURFACE_DIRT, SURFACE_GRASS, SURFACE_GRAVEL, SURFACE_PAVED, SURFACE_UNPAVED, SURFACE_WOOD, TAXI_TRUE, TAXI_FALSE, TOLL_TRUE, TOLL_FALSE, TRACKTYPE_GRADE1, TRACKTYPE_GRADE2, TRACKTYPE_GRADE3, TRACKTYPE_GRADE4, TRACKS_2, TRUCKROUTE_TRUE, TUNNEL_TRUE, TUNNEL_FALSE, TYPE_CMB, WHEELCHAIR_FALSE, WHEELCHAIR_TRUE, OSM_NUMTAGS }; #if 1 #define MINOSMZOOM 3 #define MAXOSMZOOM 19 typedef struct { GPXCoord c; }OSMNODE_DEF; typedef struct { unsigned int lod; unsigned int numtags; unsigned int tags[6]; int rendertype; int rendersubtype; kGUIColor colour; kGUIColor colour2; }OSMRENDER_INFO; class OSMWAY { public: OSMWAY() {m_ori=0;} unsigned int m_numnodes; kGUICorners m_corners; GPXCoord m_min; GPXCoord m_max; OSMNODE_DEF **m_nodes; const OSMRENDER_INFO *m_ori; kGUIFPoint2 *m_proj; /* used for pass 2 */ }; #define MAXOPP 8192 /* section node definition */ typedef struct { GPXCoord c; char *m_name; const OSMRENDER_INFO *m_render; }OSMSECNODE_DEF; typedef struct { unsigned int m_numcoords; bool m_closed:1; char *m_name; const OSMRENDER_INFO *m_render; GPXCoord *m_coords; /* optimize stuff */ GPXCoord m_min; GPXCoord m_max; kGUIFPoint2 *m_proj; /* used for pass 2 */ int m_pixlen; /* used for pass 3 drawing street names */ }OSMSECWAY_DEF; /* smaller area of map */ class OSMSection { friend class OSMMap; public: OSMSection(); ~OSMSection(); void LoadHeader(DataHandle *dh); void Load(DataHandle *dh); private: bool m_loaded; bool m_current; unsigned int m_lod; unsigned int m_numnodes; unsigned int m_numways; GPXCoord m_nw; GPXCoord m_se; double m_latscale,m_lonscale; unsigned int m_offset; unsigned int m_packedlength; unsigned int m_unpackedlength; OSMSECNODE_DEF *m_node; OSMSECWAY_DEF *m_way; Heap m_heap; }; /* openstreetmap.com map ( xml format ) */ class OSMMap : public GPXMap { public: OSMMap(const char *fn); ~OSMMap(); void ToMap(class GPXCoord *c,int *sx,int *sy); void FromMap(int sx,int sy,class GPXCoord *c); int DrawTile(int tx,int ty); /* draw the tile to the current display */ int GetNumCopyrightLines(void) {return 1;} const char *GetCopyrightLine(int l) {return "\xa9 www.openstreetmap.org Creative Commons Attribution-ShareAlike 2.0 license";} private: void Translate(unsigned int numpoints,kGUIFPoint2 *in,kGUIFPoint2 *out,float angle,float length); void DrawLineLabel(kGUIText *t,int nvert,kGUIFPoint2 *point,double over,bool root); void DrawLabel(kGUIText *t,double lx,double ly,double lw,double lh,double heading,bool clipedge); #if DRAWDEBUG void DebugDrawType(OSMSECWAY_DEF *w,kGUICorners *wc); #endif double m_pixelsPerLonDegree[MAXOSMZOOM]; double m_negpixelsPerLonRadian[MAXOSMZOOM]; double m_bitmapOrigo[MAXOSMZOOM]; unsigned int m_numsections; ClassArray<OSMSection>m_sections; kGUIString m_filename; Heap m_drawheap; unsigned int m_numdrawways; Array<OSMSECWAY_DEF *>m_drawways; static kGUIFPoint2 m_ppoints[MAXOPP]; static kGUIFPoint2 m_ppoints2[MAXOPP]; int m_txpix; int m_typix; GPXMapStrings m_lc; kGUIText m_t; int m_pixlen; }; #endif #define MAXTAGS 16 /* coverter node definition */ typedef struct { double m_lat; double m_lon; unsigned int m_renderindex:16; bool m_export:1; /* assigned when writing out file */ #if USEVHEAP unsigned int m_namelen:12; vheap_offset m_name; #else char *m_name; #endif }OSMCONVNODE_DEF; typedef struct { unsigned int m_renderindex:15; unsigned int m_numnodes:16; bool m_closed:1; #if USEVHEAP unsigned int m_namelen:12; vheap_offset m_name; vheap_offset m_coords; #else char *m_name; OSMCONVNODE_DEF **m_nodes; #endif }OSMCONVWAY_DEF; typedef struct { double m_lat; double m_lon; }OSMCONVWAYCOORD_DEF; class OSMConvert; class OSMBound { public: OSMBound() {m_boundinit=false;m_minlat=0.0f;m_maxlat=0.0f;m_minlon=0.0f;m_maxlon=0.0f;} void Bound(double lat,double lon); bool m_boundinit; double m_minlat,m_maxlat,m_minlon,m_maxlon; }; class OSMConvertSection : public OSMBound { friend class OSMConvert; public: OSMConvertSection(OSMConvert *parent,unsigned int lod,unsigned int defways); ~OSMConvertSection(); void Split(void); unsigned int WriteHeader(FILE *f,unsigned int); void Write(FILE *f); private: OSMConvert *m_parent; unsigned int m_lod; unsigned int m_numnodes; unsigned int m_numways; double m_latscale,m_lonscale; #if USEVHEAP vheap_offset m_nodeofflist; //Array<vheap_offset>m_nodeptrs; Array<vheap_offset>m_wayptrs; #else Array<OSMCONVNODE_DEF *>m_nodeptrs; Array<OSMCONVWAY_DEF *>m_wayptrs; #endif unsigned int m_packedlength; unsigned int m_unpackedlength; Array<unsigned char>m_packedbuffer; }; typedef struct { unsigned int id; const char *tag; }OSMTAG_DEF; class OSMConvert : public kGUIXML { friend class OSMConvertSection; public: OSMConvert(const char *filename); ~OSMConvert(); void Init(void); void ChildLoaded(kGUIXMLItem *child,kGUIXMLItem *parent); // kGUIString *GetOutput(void) {return &m_output;} void PrintUnknownPairs(void); void PrintUnknownRender(void); void AddSection(OSMConvertSection *s) {m_section.SetEntry(m_numsections++,s);} void SetPack(bool p) {m_pack=p;} bool GetPack(void) {return m_pack;} void InitRenderLookup(void); unsigned int GetRenderIndex(unsigned int numtags,OSMTAG_DEF **tags); private: void WindowEvent(kGUIEvent *event); CALLBACKGLUEPTR(OSMConvert,WindowEvent,kGUIEvent); void StopEvent(kGUIEvent *event); CALLBACKGLUEPTR(OSMConvert,StopEvent,kGUIEvent); void Update(void); CALLBACKGLUE(OSMConvert,Update); void ConvertThread(void); CALLBACKGLUE(OSMConvert,ConvertThread); void LoadShapefile(FILE *f); kGUIWindowObj m_window; kGUIBusyRectObj m_busyrect; kGUIInputBoxObj m_status; kGUIButtonObj m_stop; kGUIString m_filename; kGUIThread m_thread; kGUICommStack<kGUIString *> m_comm; volatile bool m_abort; static int SortUnknown(const void *v1,const void *v2); void AddUnknownPair(const char *s); void AddUnknownRender(const char *s); unsigned int m_nprintcount; unsigned int m_wprintcount; Hash m_taghash; Hash m_taggroupspecialhash; Hash m_tagpairhash; Hash m_unknownpair; /* used to stop duplicate reporting of unknown tag pairs */ Hash m_unknownrender; /* used to stop duplicate reporting of unknown renders */ #if USEVHEAP VHeap m_vheap; Array<OSMCONVWAYCOORD_DEF>m_tempcoords1; Array<OSMCONVWAYCOORD_DEF>m_tempcoords2; Array<vheap_offset>*m_nodeptrs; #else Heap m_heap; Array<OSMCONVNODE_DEF *>m_tempnodeptrs; Array<OSMCONVNODE_DEF *>m_tempnodeptrs2; #endif kGUIString m_pair; Hash *m_nodehash; OSMConvertSection *m_rs[3]; unsigned int m_numsections; Array<OSMConvertSection *>m_section; bool m_pack; unsigned int m_maxblocksize; bool m_hastag[OSM_NUMTAGS]; }; #endif
[ [ [ 1, 684 ] ] ]
6294ca51fcd0e42c2399497b90a0081fa815ab2e
854ee643a4e4d0b7a202fce237ee76b6930315ec
/arcemu_svn/src/arcemu-world/TerrainMgr.h
bfac591d46769690562fa7c124cd54afbf933048
[]
no_license
miklasiak/projekt
df37fa82cf2d4a91c2073f41609bec8b2f23cf66
064402da950555bf88609e98b7256d4dc0af248a
refs/heads/master
2021-01-01T19:29:49.778109
2008-11-10T17:14:14
2008-11-10T17:14:14
34,016,391
2
0
null
null
null
null
UTF-8
C++
false
false
7,825
h
/* * ArcEmu MMORPG Server * Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/> * Copyright (C) 2008 <http://www.ArcEmu.org/> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 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 Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ #ifndef _TERRAINMGR_H #define _TERRAINMGR_H typedef struct { uint16 AreaID[2][2]; uint8 LiquidType[2][2]; float LiquidLevel[2][2]; float Z[32][32]; }CellTerrainInformation; #define FL2UINT (uint32) #define TERRAIN_HEADER_SIZE 1048576 // size of [512][512] array. #define MAP_RESOLUTION 256 /* @class TerrainMgr TerrainMgr maintains the MapCellInfo information for accessing water levels, water types, Z levels, area id's, and walkable graph information. TerrainMgr can dynamically allocate and un-allocate cell information for main continents as their information is *quite* large and not needed at all times to be loaded. Unloading this in idle times is a nice way to save memory. However, on instanced maps, we would want to keep the cell's information loaded at all times as it is a lot smaller and we can have multiple instances wanting to access this information at once. */ class SERVER_DECL TerrainMgr { public: /* Initializes the terrain interface, allocates all required arrays, and sets all variables. Parameter 1: The path to the packed map files. Parameter 2: The map that we'll be retrieving information from. Parameter 3: Controls whether the map will unload information when it's not in use. No return value. */ TerrainMgr(string MapPath, uint32 MapId, bool Instanced); /* Cleans up all arrays, and unloads any pending cell information. No parameters. No return value. */ ~TerrainMgr(); /* If we're a non-instanced map, we'll unload the cell information as it's not needed. Parameter 1: The x co-ordinate of the cell that's gone idle. Parameter 2: The y co-ordinate of the cell that's gone idle. No return value. */ void CellGoneIdle(uint32 x, uint32 y); /* Loads the cell information if it has not already been loaded. Parameter 1: The x co-ordinate of the cell that's gone active. Parameter 2: The y co-ordinate of the cell that's gone active. No return value. */ void CellGoneActive(uint32 x, uint32 y); /* Information retrieval functions These functions all take the same input values, an x and y global co-ordinate. They will all return 0 if the cell information is not loaded or does not exist, apart from the water function which will return '-999999.0'. */ float GetLandHeight(float x, float y); float GetWaterHeight(float x, float y); uint8 GetWaterType(float x, float y); uint8 GetWalkableState(float x, float y); uint16 GetAreaID(float x, float y); private: /// MapPath contains the location of all mapfiles. string mapPath; /// Map ID uint32 mapId; /// Are we an instance? bool Instance; /// We don't want to be reading from a file from more than one thread at once Mutex mutex; #ifndef USE_MEMORY_MAPPING_FOR_MAPS /// Our main file descriptor for accessing the binary terrain file. FILE * FileDescriptor; /// This holds the offsets of the cell information for each cell. uint32 CellOffsets[_sizeX][_sizeY]; #else /// Mapped file handle HANDLE hMappedFile; HANDLE hMap; uint32 mFileSize; /// This holds the offsets of the cell information for each cell. uint32 CellOffsets[_sizeX][_sizeY]; uint8 * m_Memory; #endif /// Our storage array. This contains pointers to all allocated CellInfo's. CellTerrainInformation *** CellInformation; public: /* Initializes the file descriptor and readys it for data retreival. No parameters taken. Returns true if the index was read successfully, false if not. */ bool LoadTerrainHeader(); protected: /* Retrieves the cell data for the specified co-ordinates from the file and sets it in the CellInformation array. Parameter 1: x co-ordinate of the cell information to load. Parameter 2: y co-ordinate of the cell information to load. Returns true if the cell information exists and was loaded, false if not. */ bool LoadCellInformation(uint32 x, uint32 y); /* Unloads the cell data at the specified co-ordinates and frees the memory. Parameter 1: x co-ordinate of the cell information to free. Parameter 2: y co-ordinate of the cell information to free. Returns true if the free was successful, otherwise false. */ bool UnloadCellInformation(uint32 x, uint32 y); /* Gets the offset for the specified cell from the cached offset index. Parameter 1: cell x co-ordinate. Parameter 2: cell y co-ordinate. Returns the offset in bytes of that cell's information, or 0 if it doesn't exist. */ ARCEMU_INLINE uint32 GetCellInformationOffset(uint32 x, uint32 y) { return CellOffsets[x][y]; } /* Gets a cell information pointer so that another function can access its data. Parameter 1: cell x co-ordinate. Parameter 2: cell y co-ordinate. Returns the memory address of the information for that cell. */ ARCEMU_INLINE CellTerrainInformation* GetCellInformation(uint32 x, uint32 y) { return CellInformation[x][y]; } /* Converts a global x co-ordinate into a cell x co-ordinate. Parameter 1: global x co-ordinate. Returns the cell x co-ordinate. */ ARCEMU_INLINE uint32 ConvertGlobalXCoordinate(float x) { return FL2UINT((_maxX-x)/_cellSize); } /* Converts a global y co-ordinate into a cell y co-ordinate. Parameter 1: global y co-ordinate. Returns the cell y co-ordinate. */ ARCEMU_INLINE uint32 ConvertGlobalYCoordinate(float y) { return FL2UINT((_maxY-y)/_cellSize); } /* Converts a global x co-ordinate into a INTERNAL cell x co-ordinate. Parameter 1: global x co-ordinate. Parameter 2: the cell x co-ordinate. Returns the internal x co-ordinate. */ ARCEMU_INLINE float ConvertInternalXCoordinate(float x, uint32 cellx) { float X = (_maxX - x); X -= (cellx * _cellSize); return X; } /* Converts a global y co-ordinate into a INTERNAL cell y co-ordinate. Parameter 1: global y co-ordinate. Parameter 2: the cell y co-ordinate. Returns the internal y co-ordinate. */ ARCEMU_INLINE float ConvertInternalYCoordinate(float y, uint32 celly) { float Y = (_maxY - y); Y -= (celly * _cellSize); return Y; } /* Checks whether a cell information is loaded or not. */ ARCEMU_INLINE bool CellInformationLoaded(uint32 x, uint32 y) { if(CellInformation[x][y] != 0) return true; else return false; } /* Converts the internal co-ordinate to an index in the 2 dimension areaid, or liquid type arrays. */ ARCEMU_INLINE uint32 ConvertTo2dArray(float c) { return FL2UINT(c*(16/CellsPerTile/_cellSize)); } /* Checks that the co-ordinates are within range. */ ARCEMU_INLINE bool AreCoordinatesValid(float x, float y) { if(x > _maxX || x < _minX) return false; if(y > _maxY || y < _minY) return false; return true; } }; #endif
[ "[email protected]@3074cc92-8d2b-11dd-8ab4-67102e0efeef", "[email protected]@3074cc92-8d2b-11dd-8ab4-67102e0efeef" ]
[ [ [ 1, 1 ], [ 5, 48 ], [ 50, 159 ], [ 161, 169 ], [ 171, 178 ], [ 180, 187 ], [ 189, 197 ], [ 199, 209 ], [ 211, 218 ], [ 220, 229 ], [ 231, 236 ], [ 238, 247 ] ], [ [ 2, 4 ], [ 49, 49 ], [ 160, 160 ], [ 170, 170 ], [ 179, 179 ], [ 188, 188 ], [ 198, 198 ], [ 210, 210 ], [ 219, 219 ], [ 230, 230 ], [ 237, 237 ] ] ]
c899c1302e0ff33f092e953f3427beeb3f429249
91b964984762870246a2a71cb32187eb9e85d74e
/SRC/OFFI SRC!/boost_1_34_1/boost_1_34_1/boost/test/included/test_exec_monitor.hpp
4fb8533d74662af881bdb4e4b5d51d9c66e6e9c0
[ "BSL-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
willrebuild/flyffsf
e5911fb412221e00a20a6867fd00c55afca593c7
d38cc11790480d617b38bb5fc50729d676aef80d
refs/heads/master
2021-01-19T20:27:35.200154
2011-02-10T12:34:43
2011-02-10T12:34:43
32,710,780
3
0
null
null
null
null
UTF-8
C++
false
false
2,637
hpp
// (C) Copyright Gennadiy Rozental 2001-2005. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile: test_exec_monitor.hpp,v $ // // Version : $Revision: 1.15 $ // // Description : included (vs. linked) version of Test Execution Monitor // *************************************************************************** #ifndef BOOST_INCLUDED_TEST_EXEC_MONITOR_HPP_071894GER #define BOOST_INCLUDED_TEST_EXEC_MONITOR_HPP_071894GER #include <boost/test/impl/compiler_log_formatter.ipp> #include <boost/test/impl/execution_monitor.ipp> #include <boost/test/impl/framework.ipp> #include <boost/test/impl/plain_report_formatter.ipp> #include <boost/test/impl/progress_monitor.ipp> #include <boost/test/impl/results_collector.ipp> #include <boost/test/impl/results_reporter.ipp> #include <boost/test/impl/test_main.ipp> #include <boost/test/impl/test_tools.ipp> #include <boost/test/impl/unit_test_log.ipp> #include <boost/test/impl/unit_test_main.ipp> #include <boost/test/impl/unit_test_monitor.ipp> #include <boost/test/impl/unit_test_parameters.ipp> #include <boost/test/impl/unit_test_suite.ipp> #include <boost/test/impl/xml_log_formatter.ipp> #include <boost/test/impl/xml_report_formatter.ipp> #define BOOST_TEST_INCLUDED #include <boost/test/test_exec_monitor.hpp> // *************************************************************************** // Revision History : // // $Log: test_exec_monitor.hpp,v $ // Revision 1.15 2006/02/06 10:01:55 rogeeff // m,ake name similar to the primary header name // // Revision 1.14 2006/02/01 07:57:49 rogeeff // included components entry points // // Revision 1.13 2005/02/20 08:27:08 rogeeff // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates // // Revision 1.12 2005/02/01 08:59:38 rogeeff // supplied_log_formatters split // change formatters interface to simplify result interface // // Revision 1.11 2005/02/01 06:40:07 rogeeff // copyright update // old log entries removed // minor stilistic changes // depricated tools removed // // Revision 1.10 2005/01/22 19:22:13 rogeeff // implementation moved into headers section to eliminate dependency of included/minimal component on src directory // // *************************************************************************** #endif // BOOST_INCLUDED_TEST_EXEC_MONITOR_HPP_071894GER
[ "[email protected]@e2c90bd7-ee55-cca0-76d2-bbf4e3699278" ]
[ [ [ 1, 66 ] ] ]
2fe444c37b65ddd1bb1b74ca54f25118bb6fde79
cb1c6c586d769f919ed982e9364d92cf0aa956fe
/include/TRTSimd.h
d50bc874aeae3de8eb8cb40cc82774cada1c7a63
[]
no_license
jrk/tinyrt
86fd6e274d56346652edbf50f0dfccd2700940a6
760589e368a981f321e5f483f6d7e152d2cf0ea6
refs/heads/master
2016-09-01T18:24:22.129615
2010-01-07T15:19:44
2010-01-07T15:19:44
462,454
3
0
null
null
null
null
UTF-8
C++
false
false
1,314
h
//===================================================================================================================== // // TRTSimd.h // // SIMD vector types for TinyRT // // Part of the TinyRT Raytracing Library. // Author: Joshua Barczak // // Copyright 2008 Joshua Barczak. All rights reserved. // See Doc/LICENSE.txt for terms and conditions. // //===================================================================================================================== #ifndef _TRT_SIMD_H_ #define _TRT_SIMD_H_ #ifdef __GNUC__ #define TRT_SIMDALIGN // GCC keeps the stack 16-byte aligned, and it just spits warnings if we use __declspec(align()) #else #define TRT_SIMDALIGN __declspec(align(16)) #endif #include "TRTSSEVec4.h" #define TRT_SIMD_ALIGNMENT 16 namespace TinyRT { typedef SSEVec4 SimdVec4f; ///< Typedef corresponding to a four-component SIMD vector type typedef SSEVec4 SimdVecf; ///< Typedef corresponding to a platform-independent (variable-width) SIMD vector type typedef SSEVec4I SimdVec4i; ///< Typedef corresponding to a four-compponent SIMD integer type typedef SSEVec4I SimdVeci; ///< Typedef corresponding to a platform-independent (variable-width) SIMD integer type } #endif // _TRT_SIMD_H_
[ "jbarcz1@6ce04321-59f9-4392-9e3f-c0843787e809" ]
[ [ [ 1, 37 ] ] ]
61102bb5b056aca8326a8a09a8854650500bac7e
d6eba554d0c3db3b2252ad34ffce74669fa49c58
/Source/States/GameStates/mainMenuState.h
90aaafb7f3e80a71b74218f8817d17b25d15ea8c
[]
no_license
nbucciarelli/Polarity-Shift
e7246af9b8c3eb4aa0e6aaa41b17f0914f9d0b10
8b9c982f2938d7d1e5bd1eb8de0bdf10505ed017
refs/heads/master
2016-09-11T00:24:32.906933
2008-09-26T18:01:01
2008-09-26T18:01:01
3,408,115
1
0
null
null
null
null
UTF-8
C++
false
false
2,719
h
////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // File: "mainManuState.h" // Author: Scott Smallback (SS) / Nick Bucciarelli (NB) / Jared Hamby (JH) // Purpose: handles the main menus /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #pragma once #include "menuState.h" class mainMenuState : public menuState { protected: enum menuOptions { PLAY, OPTIONS, HOWTO, ACHIEVEMENTS, SCORES, CREDITS, EXIT, TOTAL }; int foregroundID; float m_fTime, m_fXPer, m_fXLerp, m_fSoundPer, m_fSoundLerp; bool m_bOptions, m_bHowTo, m_bScores, m_bCredits, m_bLevelSelect, m_bHighScores, m_bAchievements; void menuHandler(); int m_nParticleImageID; mainMenuState(void); mainMenuState(const mainMenuState&); mainMenuState& operator=(const mainMenuState&); virtual ~mainMenuState(void); public: ////////////////////////////////////////////////////////////////////////////////////////////////////// // Function: "getInstance" // Last Modified: August 25th, 2008 // Purpose: Gets the instance of the singleton ////////////////////////////////////////////////////////////////////////////////////////////////////// static mainMenuState* getInstance(); ////////////////////////////////////////////////////////////////////////////////////////////////////// // Function: "enter" // Last Modified: August 25, 2008 // Purpose: enters the main menu state ////////////////////////////////////////////////////////////////////////////////////////////////////// virtual void enter(void); ////////////////////////////////////////////////////////////////////////////////////////////////////// // Function: "exit" // Last Modified: August 25, 2008 // Purpose: exits the main menu state ////////////////////////////////////////////////////////////////////////////////////////////////////// virtual void exit(void); ////////////////////////////////////////////////////////////////////////////////////////////////////// // Function: "udpate" // Last Modified: August 25, 2008 // Purpose: updates the main menu state ////////////////////////////////////////////////////////////////////////////////////////////////////// virtual void update(float dt); ////////////////////////////////////////////////////////////////////////////////////////////////////// // Function: "render" // Last Modified: August 25, 2008 // Purpose: renders the main menu state ////////////////////////////////////////////////////////////////////////////////////////////////////// virtual void render(void) const; };
[ [ [ 1, 2 ], [ 4, 12 ], [ 14, 17 ], [ 23, 67 ] ], [ [ 3, 3 ], [ 13, 13 ], [ 18, 22 ] ] ]
c3ec04738eac954d6f560c55974d58d44d927006
b230ac713508aa4ca17a2d57d8b7c4103e865f53
/block-socket/socket-lib/socket-base.h
edf1fe0fbbd8c6ccccdf341195e988a826835bd8
[]
no_license
KiraiChang/c-socket-lib
48716298d04e7e689b749a219f765d9d85dbbdfb
7e3f40777c907e20de8c846bc08c8396d9e351af
refs/heads/master
2016-09-06T21:31:48.036041
2010-05-25T15:09:17
2010-05-25T15:09:17
32,337,095
0
1
null
null
null
null
BIG5
C++
false
false
3,368
h
#ifndef SOCKET_BASE_H_H #define SOCKET_BASE_H_H #include <iostream> #include <WINSOCK2.H> #pragma comment(lib, "wsock32.lib") enum{SERVER_DLL_ERROR = 1, SERVER_API_ERROR}; class SocketBase { protected: SOCKET s_main;//主要socket WORD wVersionRequested; //指定準備載入Windows Sockets DLL的版本 WSADATA wsaData;//Windows sockets DLL版本資訊 bool b_conning;//與客戶連線狀態 //int ret_val;//執行後回傳訊息 public: SocketBase(); virtual ~SocketBase(); void inti_member(void); int WSA_setup(void); BOOL recevice_line(SOCKET s, char *buf); BOOL send_line(SOCKET s,const char *buf); void get_last_error(void); void show_socket_msg(const char *msg); int handle_socket_error(const char * msg); int exit_client(int n_exit); }; SocketBase::SocketBase() { inti_member(); } SocketBase::~SocketBase() { exit_client(0); } void SocketBase::inti_member(void) { s_main = INVALID_SOCKET; b_conning = FALSE; //ret_val = 0; } int SocketBase::WSA_setup(void) { wVersionRequested = MAKEWORD(1,1); int ret_val = WSAStartup(wVersionRequested, &wsaData); if(0 != ret_val) { show_socket_msg("Can not find a usable Winodws Sockets dll!"); return SERVER_DLL_ERROR; } if(LOBYTE(wsaData.wVersion) != 1 || HIBYTE(wsaData.wVersion) != 1) { show_socket_msg("Can not find a usable Winodws Sockets dll!"); WSACleanup(); return SERVER_DLL_ERROR; } s_main = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); if(INVALID_SOCKET == s_main) { return handle_socket_error("Failed socket()!"); } return 0; } BOOL SocketBase::recevice_line(SOCKET s, char *buf) { BOOL ret_val = TRUE; BOOL b_line_end = FALSE; int n_read_len = 0; int n_data_len = 0; while(!b_line_end && b_conning) { n_read_len = recv(s, buf + n_data_len, 1, 0); if(SOCKET_ERROR == n_read_len) { get_last_error(); ret_val = FALSE; break; } if(0 == n_read_len)//客戶端關閉 { ret_val = FALSE; break; } if('\n' == *(buf + n_data_len))//換行字元 { b_line_end = true;//接收資料結束 } else { n_data_len += n_read_len;//增加資料長度 } } return ret_val; } BOOL SocketBase::send_line(SOCKET s, const char *buf) { int ret_val = send(s, buf, strlen(buf), 0); if(SOCKET_ERROR == ret_val) { get_last_error(); return FALSE; } return TRUE; } void SocketBase::get_last_error(void) { int n_error_code = WSAGetLastError();//接收錯誤代碼 if(WSAENOTCONN == n_error_code) { show_socket_msg("The socket is not connected!"); } else if(WSAESHUTDOWN == n_error_code) { show_socket_msg("The socket has been shut down!"); } else if(WSAETIMEDOUT == n_error_code) { show_socket_msg("The connection has been dropped!"); } else if(WSAECONNRESET == n_error_code) { show_socket_msg("The virtual circuit was reset by remote side!"); } else { } } void SocketBase::show_socket_msg(const char *msg) { MessageBoxA(NULL, msg, "SERVER ERROR", MB_OK); } int SocketBase::handle_socket_error(const char * msg) { show_socket_msg(msg); WSACleanup(); return SERVER_API_ERROR; } int SocketBase::exit_client(int n_exit) { closesocket(s_main); WSACleanup(); return n_exit; } #endif //SOCKET_BASE_H_H
[ "[email protected]@b409c5e8-2b4b-11df-b850-2185049e3855" ]
[ [ [ 1, 157 ] ] ]
803abddfff6b406b3d476a6071dbef95b7a17dc9
7575692fd3800ec48e7c941cdd40210d02ca96d0
/advanced-cpp-pa5/advanced-cpp-pa5/cDate_t.cpp
e16df537389dd40f28dc456e44c0b5e0fd97c2cd
[]
no_license
husamMaruf/advanced-programming-2011
bf577a8cc51d53599ed032c22ae31fc15db217fb
db285ae560495bd051400f0e372a2eec2434afe1
refs/heads/master
2021-01-10T10:12:46.760433
2011-05-21T17:00:12
2011-05-21T17:00:12
36,380,809
2
0
null
null
null
null
UTF-8
C++
false
false
4,619
cpp
#include "cDate_t.h" const char* cDate_t::monthNames[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }; const char* cDate_t::dayNames[] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" }; const cDate_t::PrintFormat cDate_t::DEFAULT_PRINT_FORMAT = European; void cDate_t::defaultInit() { time_t time_date = time(0); current_time = *localtime(&time_date); } cDate_t::cDate_t() : printFormat(DEFAULT_PRINT_FORMAT) { defaultInit(); } cDate_t::cDate_t(const cDate_t& cDate) { current_time = cDate.current_time; printFormat = cDate.printFormat; } // if passed parameters are illegal, default date object will be constructed (current date) cDate_t::cDate_t(const int& day, const int& month, const int& year) throw(int) : printFormat(DEFAULT_PRINT_FORMAT) { // this is needed so mktime (in setDate) will work properly defaultInit(); setDate(day,month,year); } const cDate_t& cDate_t::operator=(const cDate_t& cDate) { if (this != &cDate) { current_time = cDate.current_time; } return *this; } const cDate_t& cDate_t::operator+=(const int& increment) throw(int) { if (increment < 0) { throw ILLEGAL_INCREMENT_VALUE; } struct tm backup = current_time; current_time.tm_mday += increment; time_t result = mktime(&current_time); if (result == -1) { current_time = backup; throw OPERATION_BOUND_ERROR; } } const cDate_t& cDate_t::operator-=(const int& decrement) throw(int) { if (decrement < 0) { throw ILLEGAL_DECREMENT_VALUE; } struct tm backup = current_time; current_time.tm_mday -= decrement; time_t result = mktime(&current_time); if (result == -1) { current_time = backup; throw OPERATION_BOUND_ERROR; } } // throws an exception if one of the date parameters is illegal // restores previous state of date object void cDate_t::setDate(const int& day, const int& month, const int& year) throw(int) { if (day < 1 || month < 1 || month > 12 || year < 1970 || year > 3000) { throw ILLEGAL_DATE_PARAMS; } bool illegalDay = false; if (month == 2) { if (year % 4 == 0) { illegalDay = day > 29; } else { illegalDay = day > 28; } } else if (month == 4 || month == 6 || month == 9 || month == 11) { illegalDay = day > 30; } else { illegalDay = day > 31; } if (illegalDay) { throw ILLEGAL_DATE_PARAMS; } struct tm backup = current_time; current_time.tm_mday = day; current_time.tm_mon = month - 1; current_time.tm_year = year - 1900; time_t result = mktime(&current_time); if (result == -1) { current_time = backup; throw ILLEGAL_DATE_PARAMS; } } int cDate_t::getDay() const { return current_time.tm_mday; } int cDate_t::getMonth() const { return current_time.tm_mon+1; } int cDate_t::getYear() const { return current_time.tm_year+1900; } int cDate_t::getDayOfYear() const { return current_time.tm_yday+1; } bool cDate_t::isLeapYear() const { return getYear() % 4 == 0; } const char* cDate_t::getDayName() const { return dayNames[current_time.tm_wday]; } const char* cDate_t::getMonthName() const { return monthNames[current_time.tm_mon]; } int cDate_t::calcYearsElapsed() const { cDate_t currentDate; int elapsedYears = currentDate.getYear() - getYear(); if (currentDate.getMonth() < getMonth() || (currentDate.getMonth() == getMonth() && currentDate.getDay() <= getDay())) { elapsedYears--; } return elapsedYears; } void cDate_t::printDate(const PrintFormat& format) { setPrintFormat(format); cout << *this; } void cDate_t::setPrintFormat(const PrintFormat& format) { printFormat = format; } const cDate_t::PrintFormat& cDate_t::getPrintFormat() const { return printFormat; } ostream& operator<<(ostream& os, const const cDate_t& cDate) { if (cDate.printFormat == cDate.Text) { os << pad(cDate.current_time.tm_mday) << '/'; for (int i=0; i<3; i++) { os << cDate.monthNames[cDate.current_time.tm_mon][i]; } } else if (cDate.printFormat == cDate.European) { os << pad(cDate.current_time.tm_mday) << '/'; os << pad(cDate.current_time.tm_mon+1); } else { // cDate.printFormat == American os << pad(cDate.current_time.tm_mon+1) << '/'; os << pad(cDate.current_time.tm_mday); } os << '/' << cDate.current_time.tm_year+1900; return os; } string pad(const int& num) { ostringstream buffer; buffer << ((num < 10) ? "0" : "") << num; return buffer.str(); }
[ "dankilman@a7c0e201-94a5-d3f3-62b2-47f0ba67a830", "[email protected]" ]
[ [ [ 1, 145 ], [ 148, 150 ], [ 153, 153 ], [ 156, 192 ] ], [ [ 146, 147 ], [ 151, 152 ], [ 154, 155 ] ] ]
2d429e6adc0ca5eb5da3e0add83066e4aabf4979
e4bad8b090b8f2fd1ea44b681e3ac41981f50220
/trunk/gui/abeetlesgui/zoomslider.h
41d61a56a649d4b88cb7953952172e724f74c30a
[]
no_license
BackupTheBerlios/abeetles-svn
92d1ce228b8627116ae3104b4698fc5873466aff
803f916bab7148290f55542c20af29367ef2d125
refs/heads/master
2021-01-22T12:02:24.457339
2007-08-15T11:18:14
2007-08-15T11:18:14
40,670,857
0
0
null
null
null
null
UTF-8
C++
false
false
621
h
#ifndef SLIDCOMP_H #define SLIDCOMP_H #include <QWidget> class QSlider; //predbezna deklarace, soubor je includovan pozdeji. class QLabel; class ZoomSlider : public QWidget { Q_OBJECT public: ZoomSlider(QWidget*parent=0); ZoomSlider(const QString & labelText,QWidget*parent=0); int value() const; public slots: void setValue(int newValue); void setDisabled(bool isDis); signals: //are alway protected void valueChanged(int newValue); private: void init(const QString & labelText); private: QSlider * Slider; QLabel *Label; int counterDisable; }; #endif
[ "ibart@60a5a0de-1a2f-0410-942a-f28f22aea592" ]
[ [ [ 1, 36 ] ] ]
f1cb4619a3855be95b0241f70a38efc13a09b568
f38fce44b6b8faa614c5cc8ad112b0f2e74750ec
/SaberX Engine/SaberXMath.h
b97aaefdd9b655b3aa8ae7ca3bbfd6e83cc40710
[]
no_license
Eskat0n/Nebula
ac199ae8c7a807d99c6b8837a3bc52b079fbc6ee
8d47e83abc20b3abd98e49c4c4fcc1b74ba18f6d
refs/heads/master
2016-09-05T17:42:47.468149
2011-05-21T17:37:29
2011-05-21T17:37:29
1,779,667
0
0
null
null
null
null
UTF-8
C++
false
false
1,012
h
//------------------------------------------------------------- #include <time.h> #include <windows.h> #ifndef _SBRX_RANDOM_ #define _SBRX_RANDOM_ //------------------------------------------------------------- // Macros //------------------------------------------------------------- #define DTRAD(a) ( 3.14 / 180 ) * ##a #define TOPERC(a, m) ( ##a / ##m ) * 100.0f //------------------------------------------------------------- class SbrXRandom { public: static void Seed( unsigned int value = 0 ) { if ( value ) srand( value ); else srand( (unsigned int)time( 0 ) ); } static float RandomChance() { return ( rand() % 10000 ) / 100.0f; } }; //------------------------------------------------------------- class SbrXMath { private: SbrXMath() { } public: static bool Around( float value, float x, float delta ) { return ( abs( value - x ) <= delta ); } }; //------------------------------------------------------------- #endif
[ [ [ 1, 50 ] ] ]