#include "Sim/Projectiles/Unsynced/BubbleProjectile.h" #include "Sim/Projectiles/Unsynced/SmokeTrailProjectile.h" #include "Sim/Units/Unit.h" #include "Sim/Weapons/WeaponDef.h" #include "TorpedoProjectile.h" #include "GlobalUnsynced.h" #ifdef TRACE_SYNC #include "Sync/SyncTracer.h" #endif CR_BIND_DERIVED(CTorpedoProjectile, CWeaponProjectile, (float3(0,0,0),float3(0,0,0),NULL,0,0,0,0,NULL,NULL)); CR_REG_METADATA(CTorpedoProjectile,( CR_SETFLAG(CF_Synced), CR_MEMBER(tracking), CR_MEMBER(dir), CR_MEMBER(maxSpeed), CR_MEMBER(curSpeed), CR_MEMBER(areaOfEffect), CR_MEMBER(target), CR_MEMBER(nextBubble), CR_MEMBER(texx), CR_MEMBER(texy), CR_RESERVED(16) )); CTorpedoProjectile::CTorpedoProjectile(const float3& pos, const float3& speed, CUnit* owner, float areaOfEffect, float maxSpeed, float tracking, int ttl, CUnit* target, const WeaponDef *weaponDef GML_PARG_C): CWeaponProjectile(pos, speed, owner, target, ZeroVector, weaponDef, 0, ttl GML_PARG_P),
#include "StdAfx.h" #include "mmgr.h" #include "FlameProjectile.h" #include "Game/Camera.h" #include "Map/Ground.h" #include "Rendering/GL/VertexArray.h" #include "Rendering/Textures/ColorMap.h" #include "Sim/Projectiles/ProjectileHandler.h" #include "Sim/Weapons/WeaponDef.h" #include "GlobalUnsynced.h" CR_BIND_DERIVED(CFlameProjectile, CWeaponProjectile, (float3(0,0,0),float3(0,0,0),float3(0,0,0),NULL,NULL,0)); CR_REG_METADATA(CFlameProjectile,( CR_MEMBER(color), CR_MEMBER(color2), CR_MEMBER(intensity), CR_MEMBER(spread), CR_MEMBER(curTime), CR_MEMBER(physLife), CR_MEMBER(invttl), CR_RESERVED(16) )); CFlameProjectile::CFlameProjectile(const float3& pos, const float3& speed, const float3& spread, CUnit* owner, const WeaponDef* weaponDef, int ttl GML_PARG_C) : CWeaponProjectile(pos, speed, owner, 0, ZeroVector, weaponDef, 0, true, ttl GML_PARG_P), color(color), color2(color2),
#include "Game/Team.h" #include "LogOutput.h" #include "Map/MapInfo.h" #include "Sim/MoveTypes/TAAirMoveType.h" #include "Sim/Projectiles/WeaponProjectiles/ExplosiveProjectile.h" #include "Sim/Projectiles/WeaponProjectiles/TorpedoProjectile.h" #include "Sim/Projectiles/WeaponProjectiles/WeaponProjectile.h" #include "Sim/Units/Unit.h" #include "Sound.h" #include "WeaponDefHandler.h" #include "mmgr.h" CR_BIND_DERIVED(CBombDropper, CWeapon, (NULL, false)); CR_REG_METADATA(CBombDropper,( CR_MEMBER(dropTorpedoes), CR_MEMBER(bombMoveRange), CR_MEMBER(tracking), CR_RESERVED(16) )); ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CBombDropper::CBombDropper(CUnit* owner,bool useTorps) : CWeapon(owner), dropTorpedoes(useTorps), bombMoveRange(3), tracking(0) {
#include "Sync/SyncTracer.h" #include "Rendering/UnitModels/3DModelParser.h" #include "Rendering/UnitModels/3DOParser.h" #include "Rendering/UnitModels/s3oParser.h" #include "Matrix44f.h" #include "Rendering/UnitModels/UnitDrawer.h" #include "ProjectileHandler.h" #include "mmgr.h" static const float Smoke_Time=40; CR_BIND_DERIVED(CPieceProjectile, CProjectile, (float3(0,0,0),float3(0,0,0),NULL,0,NULL,0)); CR_REG_METADATA(CPieceProjectile,( CR_SERIALIZER(creg_Serialize), // numCallback, oldInfos CR_MEMBER(flags), CR_MEMBER(dispList), // TODO what to do with the next two fields //CR_MEMBER(piece3do), //CR_MEMBER(pieces3o), CR_MEMBER(spinVec), CR_MEMBER(spinSpeed), CR_MEMBER(spinPos), CR_MEMBER(oldSmoke), CR_MEMBER(oldSmokeDir), // CR_MEMBER(target), CR_MEMBER(drawTrail), CR_MEMBER(curCallback), CR_MEMBER(age), CR_MEMBER(colorTeam), CR_RESERVED(32)
// WorldObject.cpp: implementation of the CWorldObject class. // ////////////////////////////////////////////////////////////////////// #include "StdAfx.h" #include "WorldObject.h" #include "mmgr.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CR_BIND_DERIVED(CWorldObject, CObject) CR_REG_METADATA(CWorldObject, ( CR_MEMBER(radius), CR_MEMBER_BEGINFLAG(CM_Config), // the projectile system needs to know that 'pos' is accessible by script CR_MEMBER(pos), CR_MEMBER(useAirLos), CR_MEMBER(alwaysVisible), CR_MEMBER_ENDFLAG(CM_Config), CR_MEMBER(sqRadius), CR_MEMBER(drawRadius)) ); CWorldObject::~CWorldObject() { }
#include "FlareProjectile.h" #include "Game/Camera.h" #include "Rendering/GlobalRendering.h" #include "Rendering/ProjectileDrawer.h" #include "Rendering/GL/VertexArray.h" #include "Rendering/Textures/TextureAtlas.h" #include "Sim/Misc/GlobalSynced.h" #include "Sim/Projectiles/WeaponProjectiles/MissileProjectile.h" #include "Sim/Units/UnitDef.h" #include "Sim/Units/Unit.h" CR_BIND_DERIVED(CFlareProjectile, CProjectile, (ZeroVector, ZeroVector, 0, 0)); CR_REG_METADATA(CFlareProjectile,( CR_SETFLAG(CF_Synced), CR_MEMBER(activateFrame), CR_MEMBER(deathFrame), CR_MEMBER(numSub), CR_MEMBER(lastSub), CR_MEMBER(subPos), CR_MEMBER(subSpeed), CR_MEMBER(alphaFalloff), CR_RESERVED(8) )); CFlareProjectile::CFlareProjectile(const float3& pos, const float3& speed, CUnit* owner, int activateFrame): //! these are synced, but neither weapon nor piece //! (only created by units that can drop flares) CProjectile(pos, speed, owner, true, false, false), activateFrame(activateFrame),
#include "Rendering/Textures/TextureAtlas.h" #include "Sim/Misc/GlobalSynced.h" #include "Sim/Misc/QuadField.h" #include "Sim/Features/Feature.h" #include "Sim/Misc/DamageArray.h" #include "Sim/Misc/Wind.h" #include "Sim/Projectiles/ProjectileHandler.h" #include "Sim/Units/Unit.h" #include "System/creg/STL_List.h" CR_BIND_DERIVED(CFireProjectile, CProjectile, (ZeroVector,ZeroVector,NULL,0,0,0,0)) CR_BIND(CFireProjectile::SubParticle, ) CR_REG_METADATA(CFireProjectile,( CR_SETFLAG(CF_Synced), CR_MEMBER(ttl), CR_MEMBER(emitPos), CR_MEMBER(emitRadius), CR_MEMBER(particleTime), CR_MEMBER(particleSize), CR_MEMBER(ageSpeed), CR_MEMBER(subParticles2), CR_MEMBER(subParticles), CR_RESERVED(16) )) CR_REG_METADATA_SUB(CFireProjectile, SubParticle, ( CR_MEMBER(pos), CR_MEMBER(posDif), CR_MEMBER(age), CR_MEMBER(maxSize),
#include "IncCREG.h" #include "IncExternAI.h" #include "IncGlobalAI.h" #include "KAIK.h" extern CKAIK* KAIKStateExt; CR_BIND(BuildingTracker, ) CR_REG_METADATA(BuildingTracker, ( CR_MEMBER(unitUnderConstruction), CR_ENUM_MEMBER(category), CR_MEMBER(hpLastFrame), CR_MEMBER(damage), CR_MEMBER(hpSomeTimeAgo), CR_MEMBER(damageSomeTimeAgo), CR_MEMBER(startedRealBuildingFrame), CR_MEMBER(etaFrame), CR_MEMBER(maxTotalBuildPower), CR_MEMBER(assignedTotalBuildPower), CR_MEMBER(energyUsage), CR_MEMBER(metalUsage), CR_MEMBER(buildTask), CR_MEMBER(factory), CR_MEMBER(economyUnitTracker), CR_RESERVED(16) )) CR_BIND(EconomyUnitTracker, ) CR_REG_METADATA(EconomyUnitTracker, ( CR_MEMBER(economyUnitId),
/* This file is part of the Spring engine (GPL v2 or later), see LICENSE.html */ #include "BeamLaserProjectile.h" #include "Game/Camera.h" #include "Rendering/GL/VertexArray.h" #include "Rendering/Textures/TextureAtlas.h" #include "Sim/Projectiles/ProjectileHandler.h" #include "Sim/Weapons/WeaponDef.h" CR_BIND_DERIVED(CBeamLaserProjectile, CWeaponProjectile, (ProjectileParams())); CR_REG_METADATA(CBeamLaserProjectile,( CR_SETFLAG(CF_Synced), CR_MEMBER(coreColStart), CR_MEMBER(coreColEnd), CR_MEMBER(edgeColStart), CR_MEMBER(edgeColEnd), CR_MEMBER(thickness), CR_MEMBER(corethickness), CR_MEMBER(flaresize), CR_MEMBER(decay), CR_MEMBER(midtexx), CR_RESERVED(16) )); CBeamLaserProjectile::CBeamLaserProjectile(const ProjectileParams& params): CWeaponProjectile(params, true) , thickness(0.0f) , corethickness(0.0f) , flaresize(0.0f)
#include "Containers.h" #include "IncGlobalAI.h" #include "KAIK.h" extern CKAIK* KAIKStateExt; CR_BIND(AIClasses, ); CR_REG_METADATA(AIClasses, ( CR_MEMBER(econTracker), CR_MEMBER(bu), CR_MEMBER(tm), CR_MEMBER(uh), CR_MEMBER(dm), CR_MEMBER(ah), CR_MEMBER(dgunConHandler), CR_RESERVED(16) )); CR_BIND(UnitType, ); CR_REG_METADATA(UnitType, ( CR_MEMBER(canBuildList), CR_MEMBER(builtByList), CR_MEMBER(DPSvsUnit), CR_MEMBER(TargetCategories), // cannot serialize this directly // CR_MEMBER(def), CR_ENUM_MEMBER(category), CR_MEMBER(isHub), CR_MEMBER(techLevel), CR_MEMBER(costMultiplier), CR_MEMBER(sides),
#include "Sim/Misc/GroundBlockingObjectMap.h" #include "Sim/Misc/QuadField.h" #include "Sim/Misc/ModInfo.h" #include "Sim/Misc/SmoothHeightMesh.h" #include "Sim/Units/Scripts/UnitScript.h" #include "Sim/Units/UnitDef.h" #include "Sim/Units/UnitTypes/TransportUnit.h" #include "Sim/Units/CommandAI/CommandAI.h" #include "System/myMath.h" #include "System/Matrix44f.h" CR_BIND_DERIVED(CHoverAirMoveType, AAirMoveType, (NULL)); CR_REG_METADATA(CHoverAirMoveType, ( CR_MEMBER(loadingUnits), CR_MEMBER(bankingAllowed), CR_MEMBER(orgWantedHeight), CR_MEMBER(circlingPos), CR_MEMBER(goalDistance), CR_MEMBER(waitCounter), CR_MEMBER(wantToStop), CR_MEMBER(wantedHeading), CR_MEMBER(wantedSpeed), CR_MEMBER(deltaSpeed), CR_MEMBER(currentBank),
#include "ExploSpikeProjectile.h" #include "Game/Camera.h" #include "Game/GlobalUnsynced.h" #include "Rendering/GlobalRendering.h" #include "Rendering/ProjectileDrawer.h" #include "Rendering/GL/VertexArray.h" #include "Rendering/Textures/TextureAtlas.h" CR_BIND_DERIVED(CExploSpikeProjectile, CProjectile, ); CR_REG_METADATA(CExploSpikeProjectile, ( CR_MEMBER_BEGINFLAG(CM_Config), CR_MEMBER(length), CR_MEMBER(width), CR_MEMBER(alpha), CR_MEMBER(alphaDecay), CR_MEMBER(lengthGrowth), CR_MEMBER(color), CR_MEMBER_ENDFLAG(CM_Config), CR_RESERVED(8) )); CExploSpikeProjectile::CExploSpikeProjectile() : CProjectile() , length(0.0f) , width(0.0f) , alpha(0.0f) , alphaDecay(0.0f)
#include "StdAfx.h" #include "mmgr.h" #include "Game/Camera.h" #include "HeatCloudProjectile.h" #include "Rendering/GlobalRendering.h" #include "Rendering/ProjectileDrawer.hpp" #include "Rendering/GL/VertexArray.h" #include "Rendering/Textures/TextureAtlas.h" CR_BIND_DERIVED(CHeatCloudProjectile, CProjectile, ); CR_REG_METADATA(CHeatCloudProjectile, ( CR_MEMBER_BEGINFLAG(CM_Config), CR_MEMBER(heat), CR_MEMBER(maxheat), CR_MEMBER(heatFalloff), CR_MEMBER(size), CR_MEMBER(sizeGrowth), CR_MEMBER(sizemod), CR_MEMBER(sizemodmod), CR_MEMBER(texture), CR_MEMBER_ENDFLAG(CM_Config), CR_RESERVED(8) )); ////////////////////////////////////////////////////////////////////// // Construction/Destruction //////////////////////////////////////////////////////////////////////
#include "WeaponDef.h" #include "WeaponDefHandler.h" #include "Game/GameHelper.h" #include "Game/TraceRay.h" #include "Rendering/Models/3DModel.h" #include "Sim/Misc/CollisionHandler.h" #include "Sim/Misc/GlobalSynced.h" #include "Sim/Misc/InterceptHandler.h" #include "Sim/Projectiles/WeaponProjectiles/WeaponProjectileFactory.h" #include "Sim/Units/Unit.h" CR_BIND_DERIVED(CLightningCannon, CWeapon, (NULL, NULL)); CR_REG_METADATA(CLightningCannon,( CR_MEMBER(color), CR_RESERVED(8) )); CLightningCannon::CLightningCannon(CUnit* owner, const WeaponDef* def): CWeapon(owner, def) { color = def->visuals.color; } void CLightningCannon::Update() { if (targetType != Target_None) { weaponPos = owner->GetObjectSpacePos(relWeaponPos); weaponMuzzlePos = owner->GetObjectSpacePos(relWeaponMuzzlePos);
#include "Rendering/GL/VertexArray.h" #include "Rendering/Textures/TextureAtlas.h" #include "Sim/Misc/GlobalSynced.h" #include "Sim/Weapons/Weapon.h" #include "Sim/Projectiles/ProjectileHandler.h" #include "Sim/Weapons/WeaponDef.h" #ifdef TRACE_SYNC #include "Sync/SyncTracer.h" #endif CR_BIND_DERIVED(CLightningProjectile, CWeaponProjectile, (float3(0,0,0),float3(0,0,0),NULL,float3(0,0,0),NULL,0,NULL)); CR_REG_METADATA(CLightningProjectile,( CR_SETFLAG(CF_Synced), CR_MEMBER(color), CR_MEMBER(endPos), CR_MEMBER(weapon), CR_MEMBER(displacements), CR_MEMBER(displacements2), CR_RESERVED(16) )); CLightningProjectile::CLightningProjectile( const float3& pos, const float3& end, CUnit* owner, const float3& color, const WeaponDef* weaponDef, int ttl, CWeapon* weap): CWeaponProjectile(pos, ZeroVector, owner, 0, ZeroVector, weaponDef, 0, ttl),
#include <sstream> #include "IncCREG.h" #include "IncExternAI.h" #include "IncGlobalAI.h" CR_BIND(CUnitHandler, (NULL)); CR_REG_METADATA(CUnitHandler, ( CR_MEMBER(IdleUnits), CR_MEMBER(BuildTasks), CR_MEMBER(TaskPlans), CR_MEMBER(AllUnitsByCat), CR_MEMBER(AllUnitsByType), CR_MEMBER(Factories), CR_MEMBER(NukeSilos), CR_MEMBER(MetalExtractors), CR_MEMBER(Limbo), CR_MEMBER(BuilderTrackers), CR_MEMBER(metalMaker), CR_MEMBER(ai), CR_MEMBER(taskPlanCounter), CR_RESERVED(16) )); CUnitHandler::CUnitHandler(AIClasses* ai) { this->ai = ai;
#include "Game/Team.h" #include "LogOutput.h" #include "Sim/Units/Unit.h" #include "Rendering/Env/BaseTreeDrawer.h" #include "Sim/ModInfo.h" #include "Sim/Projectiles/FireProjectile.h" #include "Sim/Projectiles/SmokeProjectile.h" #include "Sim/Projectiles/ProjectileHandler.h" #include "Sim/Projectiles/GeoThermSmokeProjectile.h" #include "myMath.h" #include "mmgr.h" CR_BIND_DERIVED(CFeature, CSolidObject) CR_REG_METADATA(CFeature, ( CR_MEMBER(createdFromUnit), CR_MEMBER(isRepairingBeforeResurrect), CR_MEMBER(resurrectProgress), CR_MEMBER(health), CR_MEMBER(reclaimLeft), CR_MEMBER(id), CR_MEMBER(allyteam), CR_MEMBER(tempNum), CR_MEMBER(lastReclaim), CR_MEMBER(def), //CR_MEMBER(transMatrix), CR_MEMBER(inUpdateQue), CR_MEMBER(drawQuad), CR_MEMBER(finalHeight), CR_MEMBER(myFire), CR_MEMBER(fireTime),
#include "Sim/Units/UnitDef.h" #include "Sim/Units/UnitLoader.h" #include "Sim/Units/UnitTypes/Building.h" #include "Sim/Misc/DamageArray.h" #include "Sim/Misc/LosHandler.h" #include "Sim/Misc/TeamHandler.h" #include "Sim/Misc/QuadField.h" #include "System/EventHandler.h" #include "System/myMath.h" #include "System/creg/STL_List.h" #include "System/mmgr.h" CR_BIND_DERIVED(CTransportUnit, CUnit, ); CR_REG_METADATA(CTransportUnit, ( CR_MEMBER(transportedUnits), CR_MEMBER(transportCapacityUsed), CR_MEMBER(transportMassUsed), CR_RESERVED(16), CR_POSTLOAD(PostLoad) )); CR_BIND(CTransportUnit::TransportedUnit,); CR_REG_METADATA_SUB(CTransportUnit,TransportedUnit,( CR_MEMBER(unit), CR_MEMBER(piece), CR_MEMBER(size), CR_MEMBER(mass), CR_RESERVED(8) ));
#include "Sim/Misc/TeamHandler.h" #include "Sim/Units/BuildInfo.h" #include "Sim/Units/UnitHandler.h" #include "Sim/Units/UnitLoader.h" #include "Sim/Units/UnitDefHandler.h" #include "Sim/Units/UnitTypes/Factory.h" #include "System/Log/ILog.h" #include "System/creg/STL_Map.h" #include "System/StringUtil.h" #include "System/EventHandler.h" #include "System/Exceptions.h" CR_BIND_DERIVED(CFactoryCAI ,CCommandAI , ) CR_REG_METADATA(CFactoryCAI , ( CR_MEMBER(newUnitCommands), CR_MEMBER(buildOptions) )) static std::string GetUnitDefBuildOptionToolTip(const UnitDef* ud, bool disabled) { std::string tooltip; if (disabled) { tooltip = "\xff\xff\x22\x22" "DISABLED: " "\xff\xff\xff\xff"; } else { tooltip = "Build: "; } tooltip += (ud->humanName + " - " + ud->tooltip); tooltip += ("\nHealth " + FloatToString(ud->health, "%.0f")); tooltip += ("\nMetal cost " + FloatToString(ud->metal, "%.0f"));
#include "Sim/Projectiles/ProjectileHandler.h" #include "Sim/Projectiles/Unsynced/SmokeTrailProjectile.h" #include "Sim/Units/Unit.h" #include "Sim/Weapons/WeaponDef.h" #include "StarburstProjectile.h" #include "Sync/SyncTracer.h" #include "Rendering/UnitModels/s3oParser.h" #include "GlobalUnsynced.h" static const float Smoke_Time=70; CR_BIND_DERIVED(CStarburstProjectile, CWeaponProjectile, (float3(0,0,0),float3(0,0,0),NULL,float3(0,0,0),0,0,0,0,NULL,NULL,NULL,0,float3(0,0,0))); CR_REG_METADATA(CStarburstProjectile,( CR_SETFLAG(CF_Synced), CR_MEMBER(tracking), CR_MEMBER(maxGoodDif), CR_MEMBER(dir), CR_MEMBER(maxSpeed), CR_MEMBER(curSpeed), CR_MEMBER(uptime), CR_MEMBER(areaOfEffect), CR_MEMBER(age), CR_MEMBER(oldSmoke), CR_MEMBER(oldSmokeDir), CR_MEMBER(drawTrail), CR_MEMBER(numParts), CR_MEMBER(doturn), CR_MEMBER(curCallback), CR_MEMBER(missileAge), CR_MEMBER(distanceToTravel),
#include "StdAfx.h" #include "mmgr.h" #include "EmgProjectile.h" #include "Game/Camera.h" #include "Map/Ground.h" #include "Rendering/GL/VertexArray.h" #include "Sim/Projectiles/ProjectileHandler.h" #include "Sim/Weapons/WeaponDefHandler.h" #include "Sync/SyncTracer.h" #include "System/GlobalUnsynced.h" CR_BIND_DERIVED(CEmgProjectile, CWeaponProjectile, (float3(0,0,0),float3(0,0,0),NULL,float3(0,0,0),0,0,NULL)); CR_REG_METADATA(CEmgProjectile,( CR_MEMBER(intensity), CR_MEMBER(color), CR_RESERVED(8) )); CEmgProjectile::CEmgProjectile(const float3& pos, const float3& speed, CUnit* owner, const float3& color, float intensity, int ttl, const WeaponDef* weaponDef GML_PARG_C): CWeaponProjectile(pos, speed, owner, 0, ZeroVector, weaponDef, 0, true, ttl GML_PARG_P), color(color), intensity(intensity) { if (weaponDef) { SetRadius(weaponDef->collisionSize); drawRadius=weaponDef->size; }
#include "Sim/MoveTypes/AirMoveType.h" #include "Sim/Projectiles/WeaponProjectiles/BeamLaserProjectile.h" #include "Sim/Projectiles/WeaponProjectiles/LargeBeamLaserProjectile.h" #include "Sim/Projectiles/WeaponProjectiles/LaserProjectile.h" #include "Sim/Units/COB/CobFile.h" #include "Sim/Units/COB/CobInstance.h" #include "Sim/Units/Unit.h" #include "Sim/Units/UnitTypes/Building.h" #include "PlasmaRepulser.h" #include "WeaponDefHandler.h" #include "mmgr.h" CR_BIND_DERIVED(CBeamLaser, CWeapon, (NULL)); CR_REG_METADATA(CBeamLaser,( CR_MEMBER(color), CR_MEMBER(oldDir), CR_MEMBER(damageMul), CR_RESERVED(16) )); CBeamLaser::CBeamLaser(CUnit* owner) : CWeapon(owner), oldDir(ZeroVector), lastFireFrame(0) { } CBeamLaser::~CBeamLaser(void) { }
#include "Rendering/GL/myGL.h" #include "Rendering/GL/glExtra.h" #include "Rendering/UnitModels/UnitDrawer.h" #include "Lua/LuaRules.h" #include "Sim/Units/UnitHandler.h" #include "Sim/Units/UnitLoader.h" #include "Sim/Units/UnitDefHandler.h" #include "Sim/Units/UnitTypes/Factory.h" #include "LogOutput.h" #include "mmgr.h" #include "creg/STL_Map.h" CR_BIND_DERIVED(CFactoryCAI ,CCommandAI , ); CR_REG_METADATA(CFactoryCAI , ( CR_MEMBER(newUnitCommands), CR_MEMBER(buildOptions), CR_MEMBER(building), CR_MEMBER(lastRestrictedWarning), CR_RESERVED(16), CR_POSTLOAD(PostLoad) )); CR_BIND(CFactoryCAI::BuildOption, ); CR_REG_METADATA_SUB(CFactoryCAI,BuildOption , ( CR_MEMBER(name), CR_MEMBER(fullName), CR_MEMBER(numQued) ));
#include "Matrix44f.h" #include "Sim/Features/Feature.h" #include "Sim/Units/Unit.h" #include "Sim/Misc/InterceptHandler.h" #include "System/LogOutput.h" #ifdef TRACE_SYNC #include "Sync/SyncTracer.h" #endif #include "Sim/Weapons/WeaponDefHandler.h" CR_BIND_DERIVED(CWeaponProjectile, CProjectile, ); CR_REG_METADATA(CWeaponProjectile,( CR_MEMBER(targeted), // CR_MEMBER(weaponDef), CR_MEMBER(weaponDefName), CR_MEMBER(target), CR_MEMBER(targetPos), CR_MEMBER(startpos), CR_MEMBER(ttl), CR_MEMBER(modelDispList), CR_MEMBER(colorTeam), CR_MEMBER(bounces), CR_MEMBER(keepBouncing), CR_MEMBER(ceg), CR_MEMBER(cegTag), CR_MEMBER(interceptTarget), CR_MEMBER(id), CR_RESERVED(15),
#include "Sim/Misc/QuadField.h" #include "Sim/Misc/ModInfo.h" #include "Sim/Misc/SmoothHeightMesh.h" #include "Sim/Projectiles/Unsynced/SmokeProjectile.h" #include "Sim/Units/Scripts/UnitScript.h" #include "Sim/Units/UnitDef.h" #include "Sim/Units/UnitTypes/TransportUnit.h" #include "Sim/Units/CommandAI/CommandAI.h" #include "System/myMath.h" #include "System/Matrix44f.h" #include "System/Sync/HsiehHash.h" CR_BIND_DERIVED(CHoverAirMoveType, AAirMoveType, (NULL)) CR_REG_METADATA(CHoverAirMoveType, ( CR_MEMBER(bankingAllowed), CR_MEMBER(airStrafe), CR_MEMBER(wantToStop), CR_MEMBER(goalDistance), CR_MEMBER(currentBank), CR_MEMBER(currentPitch), CR_MEMBER(turnRate), CR_MEMBER(maxDrift), CR_MEMBER(maxTurnAngle), CR_MEMBER(wantedSpeed), CR_MEMBER(deltaSpeed),
#include "StdAfx.h" #include "mmgr.h" #include "BubbleProjectile.h" #include "Game/Camera.h" #include "Rendering/GlobalRendering.h" #include "Rendering/ProjectileDrawer.hpp" #include "Rendering/GL/VertexArray.h" #include "Rendering/Textures/TextureAtlas.h" #include "Sim/Projectiles/ProjectileHandler.h" #include "System/GlobalUnsynced.h" CR_BIND_DERIVED(CBubbleProjectile, CProjectile, (ZeroVector, ZeroVector, 0.0f, 0.0f, 0.0f, NULL, 0.0f)); CR_REG_METADATA(CBubbleProjectile, ( CR_MEMBER(ttl), CR_MEMBER(alpha), CR_MEMBER(size), CR_MEMBER(startSize), CR_MEMBER(sizeExpansion), CR_RESERVED(8) )); CBubbleProjectile::CBubbleProjectile(float3 pos, float3 speed, float ttl, float startSize, float sizeExpansion, CUnit* owner, float alpha): CProjectile(pos, speed, owner, false, false, false), ttl((int) ttl), alpha(alpha), size(startSize * 0.4f), startSize(startSize), sizeExpansion(sizeExpansion)
#include "InterceptHandler.h" #include "GlobalSynced.h" #include "Sim/Weapons/Weapon.h" #include "Sim/Projectiles/WeaponProjectiles/WeaponProjectile.h" #include "Sim/Units/Unit.h" #include "Sim/Weapons/WeaponDefHandler.h" #include "Sim/Weapons/PlasmaRepulser.h" #include "Sim/Misc/TeamHandler.h" #include "LogOutput.h" #include "myMath.h" #include "creg/STL_List.h" CR_BIND(CInterceptHandler, ) CR_REG_METADATA(CInterceptHandler, ( CR_MEMBER(interceptors), CR_MEMBER(plasmaRepulsors), CR_RESERVED(8) )); CInterceptHandler interceptHandler; CInterceptHandler::CInterceptHandler(void) { } CInterceptHandler::~CInterceptHandler(void) {
#include "Game/Camera.h" #include "Game/GlobalUnsynced.h" #include "Map/Ground.h" #include "Rendering/GlobalRendering.h" #include "Rendering/ProjectileDrawer.h" #include "Rendering/GL/VertexArray.h" #include "Rendering/Textures/TextureAtlas.h" #include "Sim/Misc/Wind.h" CR_BIND_DERIVED(CSmokeProjectile2, CProjectile, ); CR_REG_METADATA(CSmokeProjectile2, ( CR_MEMBER_BEGINFLAG(CM_Config), CR_MEMBER(color), CR_MEMBER(ageSpeed), CR_MEMBER(size), CR_MEMBER(startSize), CR_MEMBER(sizeExpansion), CR_MEMBER(wantedPos), CR_MEMBER(glowFalloff), CR_MEMBER_ENDFLAG(CM_Config), CR_MEMBER(age), CR_MEMBER(textureNum), CR_RESERVED(8) )); ////////////////////////////////////////////////////////////////////// // Construction/Destruction //////////////////////////////////////////////////////////////////////
#include "Sim/Units/Unit.h" #include "Sim/Units/UnitDef.h" #include "Sim/Units/UnitHandler.h" #include "Sim/Units/Groups/Group.h" #include "Sim/Weapons/Weapon.h" #include "Sim/Weapons/WeaponDefHandler.h" #include "System/GlobalUnsynced.h" #include "System/myMath.h" #include "System/LogOutput.h" #include "System/Util.h" CR_BIND_DERIVED(CAirCAI,CMobileCAI , ); CR_REG_METADATA(CAirCAI, ( CR_MEMBER(basePos), CR_MEMBER(baseDir), CR_MEMBER(activeCommand), CR_MEMBER(targetAge), CR_MEMBER(lastPC1), CR_MEMBER(lastPC2), CR_RESERVED(16) )); CAirCAI::CAirCAI() : CMobileCAI() , activeCommand(0) , targetAge(0) , lastPC1(-1)
#include "Sim/MoveTypes/TAAirMoveType.h" #include "Sim/Projectiles/WeaponProjectiles/WeaponProjectile.h" #include "Sim/Units/COB/CobFile.h" #include "Sim/Units/COB/CobInstance.h" #include "Sim/Units/CommandAI/CommandAI.h" #include "Sim/Units/Unit.h" #include "Sync/SyncTracer.h" #include "System/EventHandler.h" #include "WeaponDefHandler.h" #include "Weapon.h" #include "mmgr.h" CR_BIND_DERIVED(CWeapon, CObject, (NULL)); CR_REG_METADATA(CWeapon,( CR_MEMBER(owner), CR_MEMBER(range), CR_MEMBER(heightMod), CR_MEMBER(reloadTime), CR_MEMBER(reloadStatus), CR_MEMBER(salvoLeft), CR_MEMBER(salvoDelay), CR_MEMBER(salvoSize), CR_MEMBER(nextSalvo), CR_MEMBER(predict), CR_MEMBER(targetUnit), CR_MEMBER(accuracy), CR_MEMBER(projectileSpeed), CR_MEMBER(predictSpeedMod), CR_MEMBER(metalFireCost), CR_MEMBER(energyFireCost),