repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
MrPepperoni/Reaping2-1
src/audio/i_audio.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_AUDIO_I_AUDIO_H #define INCLUDED_AUDIO_I_AUDIO_H #include "platform/i_platform.h" #ifdef PORTAUDIO_CMAKE_GENERATED #include <options_cmake.h> #endif #include <portaudio.h> #include <ogg/ogg.h> #include <vorbis/codec.h> #include <vorbis/vorbisfile.h> #include "audio_e...
MrPepperoni/Reaping2-1
src/core/scripted_controller/state.h
<reponame>MrPepperoni/Reaping2-1<filename>src/core/scripted_controller/state.h #ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_STATE_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_STATE_H #include "core/controller_component.h" #include "core/property_loader.h" #include "platform/export.h" #include <vector> #include "transition...
MrPepperoni/Reaping2-1
src/platform/log.h
#ifndef INCLUDED_PLATFORM_LOG_H #define INCLUDED_PLATFORM_LOG_H #include "singleton.h" #include <stdio.h> #include <boost/current_function.hpp> namespace platform { struct AutoNormalFile { FILE* mFile = nullptr; AutoNormalFile( const char* name, const char* mode ); AutoNormalFile(); ~AutoNormalFile()...
MrPepperoni/Reaping2-1
src/core/worm_head_component.h
#ifndef INCLUDED_CORE_WORM_HEAD_COMPONENT_H #define INCLUDED_CORE_WORM_HEAD_COMPONENT_H #include "i_worm_head_component.h" #include "core/property_loader.h" #include "platform/export.h" #include <boost/serialization/vector.hpp> #include <boost/serialization/list.hpp> class WormHeadComponent : public IWormHeadComponen...
MrPepperoni/Reaping2-1
src/engine/detonate_on_hit_system.h
#ifndef INCLUDED_ENGINE_DETONATE_ON_HIT_SYSTEM_H #define INCLUDED_ENGINE_DETONATE_ON_HIT_SYSTEM_H #include "core/scene.h" #include "engine/system.h" namespace engine { class DetonateOnHitSystem : public System { public: DEFINE_SYSTEM_BASE( DetonateOnHitSystem ) DetonateOnHitSystem(); protected: virtual v...
MrPepperoni/Reaping2-1
src/core/scripted_controller/random_condition.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_RANDOM_CONDITION_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_RANDOM_CONDITION_H #include "i_condition.h" #include "platform/frequency_timer.h" namespace scriptedcontroller { class RandomCondition : public ICondition { public: DEFINE_CONDI...
MrPepperoni/Reaping2-1
src/core/map/soldier_spawn_point_map_element.h
<filename>src/core/map/soldier_spawn_point_map_element.h #ifndef INCLUDED_MAP_SOLDIER_SPAWN_POINT_H #define INCLUDED_MAP_SOLDIER_SPAWN_POINT_H #include "core/map/map_element.h" #include "platform/i_platform.h" namespace map { class SoldierSpawnPointMapElement : public MapElement { public: DEFINE_MAP_ELEMENT_BASE...
MrPepperoni/Reaping2-1
src/network/secs_to_revive_message.h
<filename>src/network/secs_to_revive_message.h #ifndef INCLUDED_NETWORK_SECS_TO_REVIVE_H #define INCLUDED_NETWORK_SECS_TO_REVIVE_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "engine/secs_to_revive_event.h" #include "platform/export.h...
MrPepperoni/Reaping2-1
src/core/map/map_element_removed_event.h
#ifndef INCLUDED_MAP_MAP_ELEMENT_REMOVED_EVENT_H #define INCLUDED_MAP_MAP_ELEMENT_REMOVED_EVENT_H #include "platform/event.h" #include "map_element.h" #include "../opt.h" namespace map { struct MapElementRemovedEvent : public platform::Event { Opt<MapElement> mMapElement; MapElementRemovedEvent(Opt<MapElemen...
MrPepperoni/Reaping2-1
src/platform/package.h
#ifndef INCLUDED_PLATFORM_PACKAGE_H #define INCLUDED_PLATFORM_PACKAGE_H #include "ipackage.h" namespace platform { namespace detail { class PackageImpl; } // namespace detail class Package : public IPackage { public: Package( std::auto_ptr<File> source ); ~Package(); std::unique_ptr<File> Open( boost::f...
MrPepperoni/Reaping2-1
src/input/input_system.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_INPUT_SYSTEM_H #define INCLUDED_ENGINE_INPUT_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "input_state.h" #include <map> namespace engine { class InputSystem : public System { public: DEFINE_SYSTEM_BASE( InputSystem ) InputSyste...
MrPepperoni/Reaping2-1
src/network/fade_out_message.h
<gh_stars>1-10 #ifndef INCLUDED_NETWORK_FADE_OUT_H #define INCLUDED_NETWORK_FADE_OUT_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "platform/export.h" namespace network { class FadeOutMessage : public Message { friend class ::bo...
MrPepperoni/Reaping2-1
src/core/buffs/buff_holder_component.h
<gh_stars>1-10 #ifndef INCLUDED_CORE_BUFF_HOLDER_COMPONENT_H #define INCLUDED_CORE_BUFF_HOLDER_COMPONENT_H #include "i_buff_holder_component.h" #include "core/property_loader.h" class BuffHolderComponent : public IBuffHolderComponent { public: BuffHolderComponent(); virtual BuffList_t& GetBuffList(); virt...
MrPepperoni/Reaping2-1
src/core/i_level_end_component.h
<filename>src/core/i_level_end_component.h #ifndef INCLUDED_CORE_I_LEVEL_END_COMPONENT_H #define INCLUDED_CORE_I_LEVEL_END_COMPONENT_H #include "component.h" class ILevelEndComponent : public Component { public: DEFINE_COMPONENT_BASE(ILevelEndComponent) public: friend class ::boost::serialization::a...
MrPepperoni/Reaping2-1
src/engine/soldier_auto_revive_system.h
<reponame>MrPepperoni/Reaping2-1<filename>src/engine/soldier_auto_revive_system.h<gh_stars>1-10 #ifndef INCLUDED_ENGINE_SOLDIER_AUTO_REVIVE_SYSTEM_H #define INCLUDED_ENGINE_SOLDIER_AUTO_REVIVE_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "core/program_state.h" #include "core/map/soldier_auto_re...
MrPepperoni/Reaping2-1
src/engine/item_changed_event.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_ITEM_CHANGED_EVENT_H #define INCLUDED_ENGINE_ITEM_CHANGED_EVENT_H #include "platform/event.h" namespace engine { struct ItemChangedEvent : public platform::Event { int32_t mActorGUID; int32_t mNormalId; int32_t mWeaponId; ItemChangedEvent( int3...
MrPepperoni/Reaping2-1
src/core/scripted_controller/strafe_act.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_MOVE_STRAFE_ACT_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_MOVE_STRAFE_ACT_H #include "i_act.h" namespace scriptedcontroller { class StrafeAct : public IAct { public: DEFINE_ACT_BASE( StrafeAct ); virtual void Update( Actor& actor, d...
MrPepperoni/Reaping2-1
src/core/damage_taken_event.h
#ifndef INCLUDED_CORE_DAMAGE_TAKEN_EVENT_H #define INCLUDED_CORE_DAMAGE_TAKEN_EVENT_H #include "platform/i_platform.h" namespace core { struct DamageTakenEvent : public Event { enum Type { Health = 0, Armor }; glm::vec2 const Pos; int32_t Damage = 0; Type type = Health; int3...
MrPepperoni/Reaping2-1
src/network/my_name_message.h
#ifndef INCLUDED_NETWORK_MY_NAME_MESSAGE_H #define INCLUDED_NETWORK_MY_NAME_MESSAGE_H #include "network/message.h" #include "platform/export.h" namespace network { class MyNameMessage: public Message { friend class ::boost::serialization::access; public: DEFINE_MESSAGE_BASE( MyNameMessage ) std::string mN...
MrPepperoni/Reaping2-1
src/core/water_collision_component.h
<filename>src/core/water_collision_component.h #ifndef INCLUDED_CORE_WATER_COLLISION_COMPONENT_H #define INCLUDED_CORE_WATER_COLLISION_COMPONENT_H #include "collision_component.h" #include "core/property_loader.h" #include "platform/export.h" class WaterCollisionComponent : public CollisionComponent { public: Wat...
MrPepperoni/Reaping2-1
src/core/i_worm_body_component.h
#ifndef INCLUDED_CORE_I_WORM_BODY_COMPONENT_H #define INCLUDED_CORE_I_WORM_BODY_COMPONENT_H #include "component.h" #include "platform/i_platform.h" #include "platform/serialize_vec4.h" class IWormBodyComponent : public Component { public: DEFINE_COMPONENT_BASE( IWormBodyComponent ) virtual void SetHeadGUID(in...
MrPepperoni/Reaping2-1
src/core/detonate_on_hit_component.h
#ifndef INCLUDED_CORE_DETONATE_ON_HIT_COMPONENT_H #define INCLUDED_CORE_DETONATE_ON_HIT_COMPONENT_H #include "i_detonate_on_hit_component.h" #include "core/property_loader.h" #include "platform/export.h" class DetonateOnHitComponent : public IDetonateOnHitComponent { public: DetonateOnHitComponent(); virtual ...
MrPepperoni/Reaping2-1
src/engine/frame_counter_system.h
#ifndef INCLUDED_ENGINE_FRAME_COUNTER_SYSTEM_H #define INCLUDED_ENGINE_FRAME_COUNTER_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "platform/event.h" namespace engine { struct FrameCounterEvent : platform::Event { double mDiff; FrameCounterEvent( double diff ): mDiff( diff ) {} }; cla...
MrPepperoni/Reaping2-1
src/render/counter.h
#pragma once #ifndef INCLUDED_COUNTER_H #define INCLUDED_COUNTER_H #include <functional> #include <vector> #include "platform/rstdint.h" namespace render { struct RenderBatch { int32_t TexId; int32_t MaskId; int32_t NormalId; int32_t SecondaryTexId; int32_t ShaderId; bool operator==(RenderBatc...
MrPepperoni/Reaping2-1
src/network/ctf_client_list_displaying_system.h
#ifndef INCLUDED_NETWORK_CTF_CLIENT_LIST_SYSTEM_H #define INCLUDED_NETWORK_CTF_CLIENT_LIST_SYSTEM_H #include "engine/system.h" #include "platform/model_value.h" #include "platform/register.h" #include "core/ctf_program_state.h" #include <vector> namespace network { using platform::ModelValue; using platform::AutoReg;...
MrPepperoni/Reaping2-1
src/core/scripted_controller/scripted_controller_component.h
#ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_COMPONENT_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_COMPONENT_H #include "core/controller_component.h" #include "core/property_loader.h" #include "platform/export.h" #include <vector> #include "state.h" #include <boost/serialization/map.hpp> namespace scriptedcontroller { c...
MrPepperoni/Reaping2-1
src/engine/show_text_event.h
#ifndef INCLUDED_ENGINE_SHOW_TEXT_EVENT_H #define INCLUDED_ENGINE_SHOW_TEXT_EVENT_H #include "platform/event.h" namespace engine { struct ShowTextEvent : public platform::Event { double mSeconds; std::string mText; ShowTextEvent( double seconds, std::string text ) : mSeconds( seconds ), mText( te...
MrPepperoni/Reaping2-1
src/platform/serialize_vec4.h
#ifndef INCLUDED_PLATFORM_SERIALIZE_VEC4_H #define INCLUDED_PLATFORM_SERIALIZE_VEC4_H #include "platform/i_platform.h" namespace boost { namespace serialization { template<class Archive> void serialize( Archive & ar, glm::vec4 & g, const unsigned int version ) { ar & g.x; ...
MrPepperoni/Reaping2-1
src/core/i_flag_receiver_component.h
#ifndef INCLUDED_CTF_I_FLAG_RECEIVER_COMPONENT_H #define INCLUDED_CTF_I_FLAG_RECEIVER_COMPONENT_H #include "component.h" #include "platform/export.h" namespace ctf { class IFlagReceiverComponent : public Component { public: DEFINE_COMPONENT_BASE( IFlagReceiverComponent ) public: friend class ::boost::seriali...
MrPepperoni/Reaping2-1
src/input/mapping.h
<filename>src/input/mapping.h #pragma once #ifndef INCLUDED_INPUT_MAPPING_H #define INCLUDED_INPUT_MAPPING_H #include "platform/i_platform.h" namespace input { class Mapping : public platform::Singleton<Mapping> { friend class platform::Singleton<Mapping>; Mapping(); Json::Value mMappings; public: Jso...
MrPepperoni/Reaping2-1
src/engine/attach_state_changed_event.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_ATTACH_STATE_CHANGED_EVENT_H #define INCLUDED_ENGINE_ATTACH_STATE_CHANGED_EVENT_H #include "platform/event.h" namespace engine { struct AttachStateChangedEvent : public platform::Event { enum Type { Attached = 0, Detached }; Typ...
MrPepperoni/Reaping2-1
src/network/client_id_message_handler_sub_system.h
#ifndef INCLUDED_NETWORK_CLIENT_ID_MESSAGE_HANDLER_SUB_SYSTEM_H #define INCLUDED_NETWORK_CLIENT_ID_MESSAGE_HANDLER_SUB_SYSTEM_H #include "message_handler_sub_system.h" namespace network { class ClientIdMessageHandlerSubSystem: public MessageHandlerSubSystem { DEFINE_SUB_SYSTEM_BASE( ClientIdMessageHandlerSubSyste...
MrPepperoni/Reaping2-1
src/render/action_renderer_factory.h
#ifndef INCLUDED_RENDER_ACTION_RENDERER_FACTORY_H #define INCLUDED_RENDER_ACTION_RENDERER_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include "render/action_renderer.h" namespace render { class ActionRendererFactory : public platform::Factory<ActionRenderer>, public platform::Singleton<Act...
MrPepperoni/Reaping2-1
src/render/sprite_phase_cache.h
<filename>src/render/sprite_phase_cache.h #pragma once #ifndef INCLUDED_SPRITE_PHASE_CACHE_H #define INCLUDED_SPRITE_PHASE_CACHE_H #include "sprite_phase.h" #include "vao_base.h" #include "platform/singleton.h" #include "platform/glm_fix.h" #include <map> #include <set> namespace render { class SpritePhaseCache : ...
MrPepperoni/Reaping2-1
src/platform/i_platform.h
#include <fstream> #include <boost/ptr_container/ptr_vector.hpp> #include <boost/ptr_container/ptr_map.hpp> #include <boost/ptr_container/ptr_set.hpp> #include <boost/ptr_container/ptr_list.hpp> #include <boost/unordered_map.hpp> #include <boost/detail/endian.hpp> #include <boost/function.hpp> #include <boost/bind.hpp>...
MrPepperoni/Reaping2-1
src/core/scripted_controller/act_factory.h
<reponame>MrPepperoni/Reaping2-1<filename>src/core/scripted_controller/act_factory.h #ifndef INCLUDED_SCRIPTEDCONTROLLER_ACT_FACTORY_H #define INCLUDED_SCRIPTEDCONTROLLER_ACT_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include "i_act.h" namespace scriptedcontroller { class ActFactory : p...
MrPepperoni/Reaping2-1
src/core/border_type.h
#ifndef INCLUDED__BORDER_TYPE_H #define INCLUDED__BORDER_TYPE_H #include "platform/i_platform.h" #include "boost/bimap.hpp" class BorderType : public platform::Singleton<BorderType> { protected: friend class platform::Singleton<BorderType>; BorderType(); public: enum Type { Top = 0, To...
MrPepperoni/Reaping2-1
src/core/map/level_generator/random.h
#ifndef INCLUDED_MAP_RANDOM_H #define INCLUDED_MAP_RANDOM_H #include <random> namespace map { extern std::default_random_engine mRand; } // namespace map #endif//INCLUDED_MAP_RANDOM_H
MrPepperoni/Reaping2-1
src/core/lucky_rocket.h
#ifndef INCLUDED_CORE_LUCKY_ROCKET_H #define INCLUDED_CORE_LUCKY_ROCKET_H #include "core/weapon.h" #include "platform/export.h" class LuckyRocket : public Weapon { public: LuckyRocket( int32_t Id ); LuckyRocket(); friend class Factory<Item>; virtual glm::vec3 GetMouseColor() const; virtual std::str...
MrPepperoni/Reaping2-1
src/core/score_on_death_component.h
#ifndef INCLUDED_CORE_SCORE_ON_DEATH_COMPONENT_H #define INCLUDED_CORE_SCORE_ON_DEATH_COMPONENT_H #include "i_score_on_death_component.h" #include "core/property_loader.h" #include "platform/export.h" class ScoreOnDeathComponent : public IScoreOnDeathComponent { public: ScoreOnDeathComponent(); virtual void S...
MrPepperoni/Reaping2-1
src/core/item_dropped_event.h
#ifndef INCLUDED_CORE_ITEM_DROPPED_EVENT_H #define INCLUDED_CORE_ITEM_DROPPED_EVENT_H #include "platform/event.h" namespace core { struct ItemDroppedEvent : public platform::Event { Item& mItem; ItemDroppedEvent(Item& item) :mItem(item){} }; } // namespace core #endif//INCLUDED_CORE...
MrPepperoni/Reaping2-1
src/platform/folder_package.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_PLATFORM_FOLDER_PACKAGE_H #define INCLUDED_PLATFORM_FOLDER_PACKAGE_H #include "package.h" namespace platform { class FolderPackage : public IPackage { public: explicit FolderPackage( boost::filesystem::path const& root ); virtual ~FolderPackage(); virtual...
MrPepperoni/Reaping2-1
src/render/vao_base.h
#ifndef INCLUDED_RENDER_VAO_BASE_H #define INCLUDED_RENDER_VAO_BASE_H #include "platform/i_platform.h" class VaoBase { GLuint mDataBuffer; GLuint mVAO; GLuint mSampler; public: VaoBase(); ~VaoBase(); void Init(); void Bind()const; void Unbind()const; }; #endif//INCLUDED_RENDER_VAO_BASE...
MrPepperoni/Reaping2-1
src/core/component_loader_factory.h
#ifndef INCLUDED_CORE_COMPONENT_LOADER_FACTORY_H #define INCLUDED_CORE_COMPONENT_LOADER_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include "core/property_loader.h" #include "platform/i_platform.h" #include "component.h" template<typename BASE> class PropertyLoaderBase; class ComponentLoa...
MrPepperoni/Reaping2-1
src/engine/items/shotgun_weapon_sub_system.h
<gh_stars>1-10 #ifndef INCLUDED_ENGINE_ITEMS_SHOTGUN_WEAPON_SUB_SYSTEM_H #define INCLUDED_ENGINE_ITEMS_SHOTGUN_WEAPON_SUB_SYSTEM_H #include "engine/items/common_sub_system_includes.h" namespace engine { class ShotgunWeaponSubSystem : public SubSystem, public SubSystemHolder { public: DEFINE_SUB_SYSTEM_BASE( Shot...
MrPepperoni/Reaping2-1
src/core/map/editor_layer_system.h
<reponame>MrPepperoni/Reaping2-1<gh_stars>1-10 #ifndef INCLUDED_MAP_EDITOR_LAYER_SYSTEM_H #define INCLUDED_MAP_EDITOR_LAYER_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "editor_layer.h" namespace map { class EditorLayerSystem : public engine::System { public: DEFINE_SYSTEM_BASE(EditorLaye...
MrPepperoni/Reaping2-1
src/core/heat_source_component.h
#ifndef INCLUDED_CORE_HEAT_SOURCE_COMPONENT_H #define INCLUDED_CORE_HEAT_SOURCE_COMPONENT_H #include "i_heat_source_component.h" #include "core/property_loader.h" #include "platform/export.h" class HeatSourceComponent : public IHeatSourceComponent { public: HeatSourceComponent(); protected: friend class Compo...
MrPepperoni/Reaping2-1
src/network/position_message_sender_system.h
#ifndef INCLUDED_NETWORK_POSITION_MESSAGE_SENDER_SYSTEM_H #define INCLUDED_NETWORK_POSITION_MESSAGE_SENDER_SYSTEM_H #include "message_sender_system.h" #include "position_message.h" #include <set> #include "single_message_sender.h" namespace network { class PositionMessageSenderSystem: public MessageSenderSystem { ...
MrPepperoni/Reaping2-1
src/platform/r2process.h
#pragma once #ifndef INCLUDED_PROCESS_H #define INCLUDED_PROCESS_H #include <vector> #include <string> namespace platform { namespace process { bool Start( std::string const& command, std::vector<std::string> const& arguments ); bool Start( std::wstring const& command, std::vector<std::wstring> const& arguments ); } ...
MrPepperoni/Reaping2-1
src/platform/id_storage.h
#ifndef INCLUDED_CORE_ID_STORAGE_H #define INCLUDED_CORE_ID_STORAGE_H #include "singleton.h" #include "rstdint.h" #include <string> #include <memory> namespace platform { namespace detail { class IdStorageImpl; } // namespace detail class IdStorage : public Singleton<IdStorage> { friend class Singleton<IdStorage...
MrPepperoni/Reaping2-1
src/render/ctf_hat_action_renderer.h
#ifndef INCLUDED_RENDER_CTF_HAT_ACTION_RENDERER_H #define INCLUDED_RENDER_CTF_HAT_ACTION_RENDERER_H #include "platform/i_platform.h" #include "render/action_renderer.h" #include "core/actor.h" #include "renderable_sprite.h" #include "renderable_repo.h" #include "hat_action_renderer.h" namespace render { namespace ctf...
MrPepperoni/Reaping2-1
src/render/player_camera.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_RENDER_PLAYER_CAMERA_H #define INCLUDED_RENDER_PLAYER_CAMERA_H #include "camera.h" #include "core/scene.h" class PlayerCamera : public Camera { glm::vec2 mAllowedDistance; glm::vec4 mAllowedCenterRegion; bool mPinCenterToPlayer = true; Scene& mScene; ...
MrPepperoni/Reaping2-1
src/platform/osfile.h
#ifndef INCLUDED_PLATFORM_OSFILE_H #define INCLUDED_PLATFORM_OSFILE_H #include "ifile.h" #include <boost/filesystem.hpp> #include <memory> #include <iosfwd> namespace platform { namespace detail { class OsFileImpl; } // namespace detail class OsFile : public File { std::auto_ptr< detail::OsFileImpl > mImpl; publ...
MrPepperoni/Reaping2-1
src/network/messsage_holder.h
#ifndef INCLUDED_NETWORK_MESSAGE_HOLDER_H #define INCLUDED_NETWORK_MESSAGE_HOLDER_H #include "message.h" #include "boost/ptr_container/ptr_list.hpp" #include <boost/ptr_container/serialize_ptr_list.hpp> #include "boost/static_assert.hpp" #include <mutex> #include <condition_variable> namespace network ...
MrPepperoni/Reaping2-1
src/core/worm_body_component.h
#ifndef INCLUDED_CORE_WORM_BODY_COMPONENT_H #define INCLUDED_CORE_WORM_BODY_COMPONENT_H #include "i_worm_body_component.h" #include "core/property_loader.h" #include "platform/export.h" #include <boost/serialization/list.hpp> class WormBodyComponent : public IWormBodyComponent { public: WormBodyComponent(); v...
MrPepperoni/Reaping2-1
src/ui/text_widget.h
<filename>src/ui/text_widget.h #ifndef INCLUDED_UI_TEXT_WIDGET_H #define INCLUDED_UI_TEXT_WIDGET_H #include "ui/widget.h" class TextWidget : public Widget { typedef Widget BaseClass; public: enum class VAlign { Top, Mid, Bottom, }; enum class HAlign { Left, Cent...
MrPepperoni/Reaping2-1
src/core/program_state.h
#ifndef INCLUDED_CORE_PROGRAM_STATE_H #define INCLUDED_CORE_PROGRAM_STATE_H #include "platform/singleton.h" #include "platform/i_platform.h" #include "actor.h" #include "soldier_properties.h" #include "platform/export.h" #include "game_modes.h" namespace core { struct ClientData { int32_t mClientId; std::stri...
MrPepperoni/Reaping2-1
src/network/move_message_sender_system.h
#ifndef INCLUDED_NETWORK_MOVE_MESSAGE_SENDER_SYSTEM_H #define INCLUDED_NETWORK_MOVE_MESSAGE_SENDER_SYSTEM_H #include "message_sender_system.h" #include "move_message.h" #include <set> #include "single_message_sender.h" namespace network { class MoveMessageSenderSystem: public MessageSenderSystem { typedef std:...
MrPepperoni/Reaping2-1
src/render/text.h
#ifndef INCLUDED_RENDER_TEXT_H #define INCLUDED_RENDER_TEXT_H #include "platform/i_platform.h" #include "ui/text_widget.h" struct Text { double mFontSize; //50 is a small yet visible font glm::vec4 mDimensions; //posx, posy, width, height glm::vec4 mColor; std::string mText; TextWidget::VAlign m...
MrPepperoni/Reaping2-1
src/core/map/editor_mode_changed_event.h
#ifndef INCLUDED_MAP_EDITOR_MODE_CHANGED_EVENT_H #define INCLUDED_MAP_EDITOR_MODE_CHANGED_EVENT_H #include "platform/event.h" namespace map { struct EditorModeChangedEvent : public platform::Event { std::string mMode; std::string mPrevMode; EditorModeChangedEvent(std::string mode, std::string prevMode ) ...
MrPepperoni/Reaping2-1
src/render/border_action_renderer.h
#ifndef INCLUDED_RENDER_BORDER_ACTION_RENDERER_H #define INCLUDED_RENDER_BORDER_ACTION_RENDERER_H #include "platform/i_platform.h" #include "render/action_renderer.h" #include "core/actor.h" #include "renderable_sprite.h" #include "renderable_repo.h" #include "core/border_type.h" #include "core/i_border_component.h" ...
MrPepperoni/Reaping2-1
src/audio/audio_effect_repo.h
#ifndef INCLUDED_AUDIO_AUDIO_EFFECT_PLAYER_H #define INCLUDED_AUDIO_AUDIO_EFFECT_PLAYER_H #include "platform/i_platform.h" #include "audio_effect.h" namespace audio { class AudioEffectRepo : public Singleton<AudioEffectRepo>, public Repository<AudioEffect> { AudioEffect mDefaultEffect; friend class Singleton...
MrPepperoni/Reaping2-1
src/network/map_load_message.h
<gh_stars>1-10 #ifndef INCLUDED_NETWORK_MAP_LOAD_H #define INCLUDED_NETWORK_MAP_LOAD_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "platform/export.h" #include "core/map_load_event.h" namespace network { class MapLoadMessage : publi...
MrPepperoni/Reaping2-1
src/core/renderable_component.h
#ifndef INCLUDED_CORE_RENDERABLE_COMPONENT_H #define INCLUDED_CORE_RENDERABLE_COMPONENT_H #include "i_renderable_component.h" #include "core/property_loader.h" #include "platform/export.h" #include "platform/serialize_vec4.h" #include <boost/serialization/vector.hpp> class Actor; class RenderableComponentModifier { ...
MrPepperoni/Reaping2-1
src/core/team_component.h
#ifndef INCLUDED_CORE_TEAM_COMPONENT_H #define INCLUDED_CORE_TEAM_COMPONENT_H #include "i_team_component.h" #include "core/property_loader.h" #include "platform/export.h" class TeamComponent : public ITeamComponent { public: TeamComponent(); virtual void SetTeam( Team::Type team ); virtual Team::Type GetT...
MrPepperoni/Reaping2-1
src/core/map/level_generator/i_property.h
<filename>src/core/map/level_generator/i_property.h<gh_stars>0 #ifndef INCLUDED_MAP_I_PROPERTY_H #define INCLUDED_MAP_I_PROPERTY_H #include "platform/i_platform.h" #include "../map_system.h" #include "room_desc.h" namespace map { #define DEFINE_ROOM_PROPERTY_BASE( PropType ) \ static int GetType_static() \ {...
MrPepperoni/Reaping2-1
src/core/map/level_generator/level_generated_event.h
#ifndef INCLUDED_MAP_LEVEL_GENERATED_EVENT_H #define INCLUDED_MAP_LEVEL_GENERATED_EVENT_H #include "platform/event.h" namespace map { struct LevelGeneratedEvent : public platform::Event { enum State { TerrainGenerated, ActorsSpawned } mState; LevelGeneratedEvent(State state) :...
MrPepperoni/Reaping2-1
src/engine/buffs_engine/move_speed_buff_sub_system.h
<reponame>MrPepperoni/Reaping2-1<filename>src/engine/buffs_engine/move_speed_buff_sub_system.h #ifndef INCLUDED_ENGINE_MOVE_SPEED_BUFF_SUB_SYSTEM_H #define INCLUDED_ENGINE_MOVE_SPEED_BUFF_SUB_SYSTEM_H #include "core/scene.h" #include "engine/sub_system.h" #include "core/program_state.h" namespace engine { class Move...
MrPepperoni/Reaping2-1
src/core/cell_component.h
<gh_stars>1-10 #ifndef INCLUDED_CORE_CELL_COMPONENT_H #define INCLUDED_CORE_CELL_COMPONENT_H #include "i_cell_component.h" #include "core/property_loader.h" #include "platform/export.h" class CellComponent : public ICellComponent { public: CellComponent(); virtual void SetRoomDesc( Opt<map::RoomDesc> roomDesc...
MrPepperoni/Reaping2-1
src/network/accuracy_message.h
#ifndef INCLUDED_NETWORK_ACCURACY_H #define INCLUDED_NETWORK_ACCURACY_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "platform/export.h" namespace network { class AccuracyMessage : public Message { friend class ::boost::serializa...
MrPepperoni/Reaping2-1
src/core/grenade_normal_item.h
<gh_stars>1-10 #ifndef INCLUDED_CORE_GRENADE_NORMAL_ITEM_H #define INCLUDED_CORE_GRENADE_NORMAL_ITEM_H #include "normal_item.h" #include "platform/export.h" class GrenadeNormalItem : public NormalItem { public: GrenadeNormalItem( int32_t Id ); protected: GrenadeNormalItem(); public: friend class ::boost::s...
MrPepperoni/Reaping2-1
src/core/map/cell_entrance_editor_system.h
#ifndef INCLUDED_MAP_CELL_ENTRANCE_EDITOR_SYSTEM_H #define INCLUDED_MAP_CELL_ENTRANCE_EDITOR_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "editor_mode_changed_event.h" #include "editor_back_event.h" #include "level_generator/room_desc.h" #include "input/mouse.h" #include "room_editor_loaded_eve...
MrPepperoni/Reaping2-1
src/platform/tgatexture.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_PLATFORM_TGATEXTURE_H #define INCLUDED_PLATFORM_TGATEXTURE_H #include "texture_base.h" #include "rstdint.h" namespace platform { class File; class TgaTexture : public TextureBase { public: TgaTexture( File& F ); }; } // namespace platform #endif//INCLUDED_PLATF...
MrPepperoni/Reaping2-1
src/engine/items/weapon_item_sub_system.h
#ifndef INCLUDED_ENGINE_ITEMS_WEAPON_ITEM_SUB_SYSTEM_H #define INCLUDED_ENGINE_ITEMS_WEAPON_ITEM_SUB_SYSTEM_H #include "core/scene.h" #include "engine/sub_system.h" #include "core/opt.h" #include "engine/sub_system_holder.h" #include "core/weapon.h" #include "core/program_state.h" #include "core/shot_event.h" #include...
MrPepperoni/Reaping2-1
src/network/ctf_client_datas_changed_event.h
#ifndef INCLUDED_NETWORK_CTF_CLIENT_DATAS_CHANGED_EVENT_H #define INCLUDED_NETWORK_CTF_CLIENT_DATAS_CHANGED_EVENT_H #include "platform/event.h" #include "core/ctf_program_state.h" namespace network { struct CtfClientDatasChangedEvent : public platform::Event { ::ctf::ProgramState::ClientDatas_t mCtfClientDatas; ...
MrPepperoni/Reaping2-1
src/engine/client_datas_changed_event.h
#ifndef INCLUDED_ENGINE_CLIENT_DATAS_CHANGED_EVENT_H #define INCLUDED_ENGINE_CLIENT_DATAS_CHANGED_EVENT_H #include "platform/event.h" namespace engine { struct ClientDatasChangedEvent : public platform::Event { ClientDatasChangedEvent() {} }; } // namespace engine #endif//INCLUDED_ENGINE_CLIENT_DATAS_CHANGED_E...
MrPepperoni/Reaping2-1
src/core/map_loaded_event.h
<gh_stars>1-10 #ifndef INCLUDED_CORE_MAP_LOADED_EVENT_H #define INCLUDED_CORE_MAP_LOADED_EVENT_H #include "platform/event.h" namespace core { struct MapLoadedEvent : public platform::Event { MapLoadedEvent() {} }; } // namespace core #endif//INCLUDED_CORE_MAP_LOADED_EVENT_H
MrPepperoni/Reaping2-1
src/render/texture.h
<filename>src/render/texture.h #ifndef INCLUDED_RENDER_TEXTURE_H #define INCLUDED_RENDER_TEXTURE_H #include "platform/i_platform.h" class TextureRepo; class Texture { friend class TextureRepo; GLuint mTexId; GLuint mWidth; GLuint mHeight; Texture( size_t Width, size_t Height, size_t Channels, uint8...
MrPepperoni/Reaping2-1
src/core/i_armor_component.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_I_ARMOR_COMPONENT_H #define INCLUDED_CORE_I_ARMOR_COMPONENT_H #include "component.h" #include "platform/export.h" class IArmorComponent : public Component { public: DEFINE_COMPONENT_BASE( IArmorComponent ) virtual void SetCurrentArmor( int32_t currentArmo...
MrPepperoni/Reaping2-1
src/core/grid_template_instantiate.h
#include "platform/i_platform.h" #include "core/grid_template.h" #include "core/i_position_component.h" #include "core/i_move_component.h" #include <utility> template<typename Traits> void GridTemplate<Traits>::Cell::Refresh() const { if( !mDirty ) { return; } mDirty = false; mPossibleColli...
MrPepperoni/Reaping2-1
src/core/map/i_brush.h
#ifndef INCLUDED_CORE_MAP_I_BRUSH_H #define INCLUDED_CORE_MAP_I_BRUSH_H #include "platform/i_platform.h" #include "../scene.h" namespace map { class IBrush { public: IBrush( int32_t Id ); virtual ~IBrush(); virtual void Update( double DeltaTime ) = 0; std::vector<int32_t> GetActorsToRemove(); protecte...
MrPepperoni/Reaping2-1
src/render/render_target.h
<filename>src/render/render_target.h #ifndef INCLUDED_RENDER_TARGET_H #define INCLUDED_RENDER_TARGET_H #include "platform/i_platform.h" namespace render { struct RenderTargetProps { glm::vec2 Size; std::vector<GLenum> AttachmentTypes = { GL_RGBA }; RenderTargetProps( glm::vec2 const& size = glm::vec2(), ...
MrPepperoni/Reaping2-1
src/render/sprite_phase.h
#ifndef INCLUDED_RENDER_SPRITE_PHASE_H #define INCLUDED_RENDER_SPRITE_PHASE_H #include "platform/i_platform.h" struct SpritePhase { GLuint TexId; GLfloat Top; GLfloat Left; GLfloat Bottom; GLfloat Right; SpritePhase( GLuint i = 0, GLfloat t = 0.f, GLfloat l = 0.f, GLfloat b = 0.f, GLfloat r = 0...
MrPepperoni/Reaping2-1
src/input/controller_adapter_system.h
<gh_stars>1-10 #ifndef INCLUDED_ENGINE_CONTROLLER_ADAPTER_SYSTEM_H #define INCLUDED_ENGINE_CONTROLLER_ADAPTER_SYSTEM_H #include "core/scene.h" #include "engine/system.h" namespace engine { class ControllerAdapterSystem : public System { public: DEFINE_SYSTEM_BASE(ControllerAdapterSystem) ControllerAdapterSys...
MrPepperoni/Reaping2-1
src/network/load_clientlist_event.h
<reponame>MrPepperoni/Reaping2-1<gh_stars>1-10 #ifndef INCLUDED_NETWORK_LOAD_CLIENTLIST_EVENT_H #define INCLUDED_NETWORK_LOAD_CLIENTLIST_EVENT_H #include "platform/event.h" namespace network { struct LoadClientlistEvent : public platform::Event { std::string mGameMode; LoadClientlistEvent() {} }; } // names...
MrPepperoni/Reaping2-1
src/core/inventory_component.h
<filename>src/core/inventory_component.h #ifndef INCLUDED_CORE_INVENTORY_COMPONENT_H #define INCLUDED_CORE_INVENTORY_COMPONENT_H #include "core/i_inventory_component.h" #include "core/item_factory.h" #include "core/property_loader.h" #include "core/opt.h" #include "core/weapon.h" #include <boost/serialization/list.hpp>...
MrPepperoni/Reaping2-1
src/platform/pngtexture.h
<filename>src/platform/pngtexture.h #ifndef INCLUDED_PLATFORM_PNGTEXTURE_H #define INCLUDED_PLATFORM_PNGTEXTURE_H #include "texture_base.h" #include <memory> namespace platform { class File; class PngTexture : public TextureBase { public: PngTexture( File& F ); }; } // namespace platform #endif//INCLUDED_PLAT...
MrPepperoni/Reaping2-1
src/network/create_actor_message_sender_system.h
#ifndef INCLUDED_NETWORK_CREATE_ACTOR_MESSAGE_SENDER_SYSTEM_H #define INCLUDED_NETWORK_CREATE_ACTOR_MESSAGE_SENDER_SYSTEM_H #include "message_sender_system.h" #include "platform/register.h" #include "core/actor_event.h" namespace network { class CreateActorMessageSenderSystem: public MessageSenderSystem { AutoRe...
MrPepperoni/Reaping2-1
src/core/map/normal_brush.h
<reponame>MrPepperoni/Reaping2-1<gh_stars>1-10 #ifndef INCLUDED_CORE_MAP_NORMAL_BRUSH_H #define INCLUDED_CORE_MAP_NORMAL_BRUSH_H #include "platform/i_platform.h" #include "i_brush.h" #include "../scene.h" namespace map { class NormalBrush: public IBrush { public: NormalBrush( int32_t Id ); virtual void Update...
MrPepperoni/Reaping2-1
src/engine/remove_components_on_death_system.h
#ifndef INCLUDED_ENGINE_REMOVE_COMPONENTS_ON_DEATH_SYSTEM_H #define INCLUDED_ENGINE_REMOVE_COMPONENTS_ON_DEATH_SYSTEM_H #include "core/scene.h" #include "engine/system.h" namespace engine { class RemoveComponentsOnDeathSystem : public System { public: DEFINE_SYSTEM_BASE( RemoveComponentsOnDeathSystem ) Remov...
MrPepperoni/Reaping2-1
src/core/map/level_generator/level_generated_map_element.h
#ifndef INCLUDED_MAP_LEVEL_GENERATED_H #define INCLUDED_MAP_LEVEL_GENERATED_H #include "core/map/map_element.h" #include "platform/i_platform.h" #include "../base_output.h" namespace map { class LevelGeneratedMapElement : public MapElement, public BaseOutput { public: DEFINE_MAP_ELEMENT_BASE(LevelGeneratedMapEle...
MrPepperoni/Reaping2-1
src/network/lifecycle_message_handler_sub_system.h
<gh_stars>1-10 #ifndef INCLUDED_NETWORK_LIFECYCLE_MESSAGE_HANDLER_SUB_SYSTEM_H #define INCLUDED_NETWORK_LIFECYCLE_MESSAGE_HANDLER_SUB_SYSTEM_H #include "message_handler_sub_system.h" #include "core/map_start_event.h" namespace network { class LifecycleMessageHandlerSubSystem: public MessageHandlerSubSystem { DEFI...
MrPepperoni/Reaping2-1
src/core/buffs/heal_over_time_buff.h
#ifndef INCLUDED_CORE_BUFFS_HEAL_OVER_TIME_BUFF_H #define INCLUDED_CORE_BUFFS_HEAL_OVER_TIME_BUFF_H #include "buff.h" #include "platform/frequency_timer.h" class HealOverTimeBuff : public Buff { public: DEFINE_BUFF_BASE( HealOverTimeBuff ) HealOverTimeBuff(); void SetHealPerTick( int32_t healPerTick ); ...
MrPepperoni/Reaping2-1
src/main/window.h
#ifndef INCLUDED_MAIN_WINDOW_H #define INCLUDED_MAIN_WINDOW_H #include "platform/i_platform.h" #include "engine/system.h" struct WindowResizeEvent : public Event { const int Width; const int Height; WindowResizeEvent( int W, int H ): Width( W ), Height( H ) {} }; namespace engine { class WindowSystem : p...
MrPepperoni/Reaping2-1
src/render/corpses.h
<reponame>MrPepperoni/Reaping2-1 #pragma once #ifndef INCLUDED_CORPSES_H #define INCLUDED_CORPSES_H #include "platform/i_platform.h" #include "core/actor_event.h" #include "decal_engine.h" class Corpses : public Singleton<Corpses> { DecalEngine& mDecalEngine; Corpses(); friend class Singleton<Corpses>; ...
MrPepperoni/Reaping2-1
src/core/map/level_generator/entrance_type.h
<filename>src/core/map/level_generator/entrance_type.h #ifndef INCLUDED_MAP_ENTRANCE_TYPE_H #define INCLUDED_MAP_ENTRANCE_TYPE_H #include "platform/singleton.h" #include "boost/bimap.hpp" namespace map { class EntranceType : public platform::Singleton<EntranceType> { protected: friend class platform::...
MrPepperoni/Reaping2-1
src/render/text_uimodel.h
#ifndef INCLUDED_RENDER_TEXT_UIMODEL_H #define INCLUDED_RENDER_TEXT_UIMODEL_H #include "platform/i_platform.h" #include "ui/i_ui.h" #include "uimodel.h" #include "ui_renderer.h" struct Text; class TextUiModel : public UiModel { virtual void CollectVertices( Widget const& Wdg, UiVertexInserter_t& Inserter )const; ...
MrPepperoni/Reaping2-1
src/core/owner_component.h
<filename>src/core/owner_component.h #ifndef INCLUDED_CORE_OWNER_COMPONENT_H #define INCLUDED_CORE_OWNER_COMPONENT_H #include "i_owner_component.h" #include "core/property_loader.h" #include "platform/export.h" class OwnerComponent : public IOwnerComponent { public: OwnerComponent(); virtual void SetOwnerGUID...
MrPepperoni/Reaping2-1
src/core/map/spawn_actor_map_element_system.h
#ifndef INCLUDED_MAP_SPAWN_ACTOR_MAP_ELEMENT_SYSTEM_H #define INCLUDED_MAP_SPAWN_ACTOR_MAP_ELEMENT_SYSTEM_H #include "core/map/map_element_system.h" #include "core/actor_factory.h" namespace map { class SpawnActorMapElementSystem : public MapElementSystem { public: DEFINE_SYSTEM_BASE( SpawnActorMapElementSystem ...
MrPepperoni/Reaping2-1
src/core/renderable_layer.h
#ifndef INCLUDED_CORE_RENDERABLE_LAYER_H #define INCLUDED_CORE_RENDERABLE_LAYER_H #include "platform/singleton.h" #include <map> #include "json/json.h" #include "platform/i_platform.h" class RenderableLayer : public platform::Singleton<RenderableLayer> { protected: friend class platform::Singleton<RenderableLayer>...