#ifndef __URDE_WEAPONCOMMON_HPP__ #define __URDE_WEAPONCOMMON_HPP__ #include "RetroTypes.hpp" #include "DataSpec/DNACommon/Tweaks/ITweakPlayerGun.hpp" #include "Audio/CSfxManager.hpp" #include #include namespace urde { class CAnimData; class CToken; class CPrimitive; class CStateManager; enum class EWeaponType { None = -1, Power = 0, Ice = 1, Wave = 2, Plasma = 3, Bomb = 4, PowerBomb = 5, Missile = 6, BoostBall = 7, Phazon = 8, AI = 9, PoisonWater = 10, Lava = 11, Hot = 12, Unused1 = 13, OrangePhazon = 14 }; namespace NWeaponTypes { enum class EGunAnimType { BasePosition, Shoot, ChargeUp, ChargeLoop, ChargeShoot, FromMissile, ToMissile, MissileShoot, MissileReload, FromBeam, ToBeam }; void primitive_set_to_token_vector(const CAnimData& animData, const std::set& primSet, std::vector& tokensOut, bool preLock); void unlock_tokens(std::vector& anims); void lock_tokens(std::vector& anims); bool are_tokens_ready(const std::vector& anims); void get_token_vector(const CAnimData& animData, int begin, int end, std::vector& tokensOut, bool preLock); void get_token_vector(const CAnimData& animData, int animIdx, std::vector& tokensOut, bool preLock); void do_sound_event(std::pair& sfxHandle, float& pitch, bool doPitchBend, u32 soundId, float weight, u32 flags, float falloff, float maxDist, float minVol, float maxVol, const zeus::CVector3f& posToCam, const zeus::CVector3f& pos, TAreaId aid, CStateManager& mgr); CAssetId get_asset_id_from_name(const char* name); CPlayerState::EPlayerSuit get_current_suit(const CStateManager& mgr); CSfxHandle play_sfx(u16 sfx, bool underwater, bool looped, float pan); } } #endif // __URDE_WEAPONCOMMON_HPP__