repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
MrPepperoni/Reaping2-1
src/engine/controllers/path_controller_sub_system.h
#ifndef INCLUDED_ENGINE_PATH_CONTROLLER_SUB_SYSTEM_H #define INCLUDED_ENGINE_PATH_CONTROLLER_SUB_SYSTEM_H #include "engine/sub_system.h" #include "core/scene.h" #include "core/program_state.h" #include "core/i_target_holder_component.h" #include "engine/path_system.h" using core::ProgramState; namespace engine { cla...
MrPepperoni/Reaping2-1
src/core/position_component.h
#ifndef INCLUDED_CORE_POSITION_COMPONENT_H #define INCLUDED_CORE_POSITION_COMPONENT_H #include "i_position_component.h" #include "core/property_loader.h" #include "platform/export.h" class PositionComponent : public IPositionComponent { public: virtual double const& GetX()const; //TODO: component style, its not a...
MrPepperoni/Reaping2-1
src/core/waypoint_component.h
<filename>src/core/waypoint_component.h #ifndef INCLUDED_CORE_WAYPOINT_COMPONENT_H #define INCLUDED_CORE_WAYPOINT_COMPONENT_H #include "i_waypoint_component.h" #include "core/property_loader.h" #include "platform/export.h" class WaypointComponent : public IWaypointComponent { public: WaypointComponent(); protecte...
MrPepperoni/Reaping2-1
src/render/hat_action_renderer.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_RENDER_HAT_ACTION_RENDERER_H #define INCLUDED_RENDER_HAT_ACTION_RENDERER_H #include "platform/i_platform.h" #include "core/actor.h" #include "renderable_sprite.h" #include "renderable_repo.h" #include "action_renderer.h" #include <map> #include "platform/repository.h" ...
MrPepperoni/Reaping2-1
src/core/i_waypoint_component.h
#ifndef INCLUDED_CORE_I_WAYPOINT_COMPONENT_H #define INCLUDED_CORE_I_WAYPOINT_COMPONENT_H #include "component.h" class IWaypointComponent : public Component { public: DEFINE_COMPONENT_BASE(IWaypointComponent) public: friend class ::boost::serialization::access; template<class Archive> void...
MrPepperoni/Reaping2-1
src/engine/collisions/wall_collision_sub_system.h
<filename>src/engine/collisions/wall_collision_sub_system.h #ifndef INCLUDED_ENGINE_WALL_COLLISION_SUB_SYSTEM_H #define INCLUDED_ENGINE_WALL_COLLISION_SUB_SYSTEM_H #include "core/scene.h" #include "engine/collisions/collision_sub_system.h" namespace engine { class WallCollisionSubSystem : public CollisionSubSystem {...
MrPepperoni/Reaping2-1
src/render/death_action_renderer.h
#ifndef INCLUDED_RENDER_DEATH_ACTION_RENDERER_H #define INCLUDED_RENDER_DEATH_ACTION_RENDERER_H #include "platform/i_platform.h" #include "core/actor.h" #include "renderable_sprite.h" #include "renderable_repo.h" #include "action_renderer.h" namespace render { class DeathActionRenderer: public ActionRenderer { public...
MrPepperoni/Reaping2-1
src/ui/button.h
#ifndef INCLUDED_UI_BUTTON_H #define INCLUDED_UI_BUTTON_H class Button : public Widget { typedef Widget BaseClass; struct ActionDesc { ActionDesc( Widget* w ); std::string mAction; Widget::Prop mArg; }; typedef std::vector<ActionDesc> Actions_t; enum ActionType { ...
MrPepperoni/Reaping2-1
src/platform/timer.h
#ifndef INCLUDED_PLATFORM_TIMER_H #define INCLUDED_PLATFORM_TIMER_H #include "singleton.h" #include "register.h" #include <boost/function.hpp> #include "engine/system.h" namespace engine { typedef boost::function<void()> TimerCallback; using platform::Registry; using platform::Registration; class TimerServerSystem : ...
MrPepperoni/Reaping2-1
src/render/weapon_action_renderer.h
<filename>src/render/weapon_action_renderer.h #ifndef INCLUDED_RENDER_WEAPON_ACTION_RENDERER_H #define INCLUDED_RENDER_WEAPON_ACTION_RENDERER_H #include "platform/i_platform.h" #include "core/actor.h" #include "renderable_sprite.h" #include "renderable_repo.h" #include "action_renderer.h" namespace render { class Wea...
MrPepperoni/Reaping2-1
src/engine/buffs_engine/armor_buff_sub_system.h
<gh_stars>1-10 #ifndef INCLUDED_ENGINE_ARMOR_BUFF_SUB_SYSTEM_H #define INCLUDED_ENGINE_ARMOR_BUFF_SUB_SYSTEM_H #include "core/scene.h" #include "engine/sub_system.h" #include "core/program_state.h" namespace engine { class ArmorBuffSubSystem : public SubSystem { public: DEFINE_SUB_SYSTEM_BASE( ArmorBuffSubSystem...
MrPepperoni/Reaping2-1
src/network/message_sender_system.h
#ifndef INCLUDED_NETWORK_MESSAGE_SENDER_SYSTEM_H #define INCLUDED_NETWORK_MESSAGE_SENDER_SYSTEM_H #include "engine/system.h" #include "messsage_holder.h" #include "core/scene.h" #include "core/program_state.h" #include <set> #include "platform/frequency_timer.h" using core::ProgramState; namespace network { class Ac...
MrPepperoni/Reaping2-1
src/render/shader.h
<gh_stars>1-10 #ifndef INCLUDED_RENDER_SHADER_H #define INCLUDED_RENDER_SHADER_H #include "platform/i_platform.h" //#include "shader_repo.h" //#include "shader_manager.h" class ShaderRepo; class ShaderManager; class Shader { GLuint mVertexId; GLuint mFragmentId; GLuint mProgramId; void Load( std::strin...
MrPepperoni/Reaping2-1
src/render/death_recognizer.h
#ifndef INCLUDED_RENDER_DEATH_RECOGNIZER_H #define INCLUDED_RENDER_DEATH_RECOGNIZER_H #include "platform/i_platform.h" #include "render/recognizer.h" namespace render { class DeathRecognizer: public Recognizer { public: DeathRecognizer( int32_t Id ); virtual bool Recognize( Actor const& ) const; }; } // names...
MrPepperoni/Reaping2-1
src/engine/cloak_system.h
#ifndef INCLUDED_ENGINE_CLOAK_SYSTEM_H #define INCLUDED_ENGINE_CLOAK_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "core/program_state.h" namespace engine { class CloakSystem : public System { public: DEFINE_SYSTEM_BASE( CloakSystem ) CloakSystem(); enum CloakState { In...
MrPepperoni/Reaping2-1
src/network/modify_audible_component_message.h
#ifndef INCLUDED_NETWORK_MODIFY_AUDIBLE_COMPONENT_H #define INCLUDED_NETWORK_MODIFY_AUDIBLE_COMPONENT_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "core/audible_event.h" #include "platform/export.h" namespace network { class Modify...
MrPepperoni/Reaping2-1
src/render/particle.h
<reponame>MrPepperoni/Reaping2-1<filename>src/render/particle.h #ifndef INCLUDED_RENDER_DECAL_H #define INCLUDED_RENDER_DECAL_H #include "platform/i_platform.h" struct Decal { glm::vec2 mCenter; float mHeading; float mRadius; float mAlpha; GLuint mTexId; glm::vec4 mTexCoords; Decal(): mHead...
MrPepperoni/Reaping2-1
src/engine/engine.h
#ifndef INCLUDED_ENGINE_ENGINE_H #define INCLUDED_ENGINE_ENGINE_H #include "engine/system.h" #include <boost/ptr_container/ptr_map.hpp> #include "platform/singleton.h" #include "platform/i_platform.h" #include "system_factory.h" #include "core/opt.h" #include "system_suppressor.h" using namespace ::boost::multi_inde...
MrPepperoni/Reaping2-1
src/network/message_handler_sub_system_factory.h
#ifndef INCLUDED_NETWORK_MESSAGE_HANDLER_SUB_SYSTEM_FACTORY_H #define INCLUDED_NETWORK_MESSAGE_HANDLER_SUB_SYSTEM_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include <memory> #include "message_handler_sub_system.h" namespace network { class MessageHandlerSubSystemFactory : public platform...
MrPepperoni/Reaping2-1
src/core/map/function_declarations.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_MAP_FUNCTION_DECLARATION_H #define INCLUDED_CORE_MAP_FUNCTION_DECLARATION_H #include "boost/function.hpp" namespace map { typedef boost::function<void( int32_t )> int_function_t; } // namespace map #endif//INCLUDED_CORE_MAP_FUNCTION_DECLARATION_H
MrPepperoni/Reaping2-1
src/engine/acceleration_system.h
<gh_stars>1-10 #ifndef INCLUDED_ENGINE_ACCELERATION_SYSTEM_H #define INCLUDED_ENGINE_ACCELERATION_SYSTEM_H #include "core/scene.h" #include "engine/system.h" namespace engine { class AccelerationSystem : public System { public: DEFINE_SYSTEM_BASE( AccelerationSystem ) AccelerationSystem(); virtual void I...
MrPepperoni/Reaping2-1
src/core/gamemode_selected_event.h
#ifndef INCLUDED_CORE_GAMEMODE_SELECTED_EVENT_H #define INCLUDED_CORE_GAMEMODE_SELECTED_EVENT_H #include "platform/event.h" #include "game_modes.h" namespace core { struct GamemodeSelectedEvent : public platform::Event { GameModes::Type mGameMode; GamemodeSelectedEvent() : mGameMode(GameModes::Unkno...
MrPepperoni/Reaping2-1
src/render/decal_engine.h
#ifndef INCLUDED_RENDER_DECAL_ENGINE_H #define INCLUDED_RENDER_DECAL_ENGINE_H #include "platform/i_platform.h" #include "vao_base.h" #include "particle.h" #include "renderable_repo.h" #include "counter.h" #include "core/map_load_event.h" #include "core/map_start_event.h" class DecalEngine : public Singleton<DecalEngin...
MrPepperoni/Reaping2-1
src/platform/program_phases.h
#ifndef INCLUDED_PLATFORM_PROGRAM_PHASES_H #define INCLUDED_PLATFORM_PROGRAM_PHASES_H namespace platform { namespace ProgramPhase { enum Type { Startup, Running, InitiateShutDown, CloseSignal, Shutdown, }; } // namespace ProgramPhase struct PhaseChangedEvent : public Event { const ProgramPhas...
MrPepperoni/Reaping2-1
src/platform/game_clock.h
<reponame>MrPepperoni/Reaping2-1<filename>src/platform/game_clock.h #ifndef INCLUDED_PLATFORM_GAME_CLOCK_H #define INCLUDED_PLATFORM_GAME_CLOCK_H #include "platform/i_platform.h" #include <vector> #include <chrono> #include "engine/system_suppressor.h" namespace platform { class Clock : public platform::Singleton<Clo...
MrPepperoni/Reaping2-1
src/core/i_remove_components_on_death_component.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_I_REMOVE_COMPONENTS_ON_DEATH_COMPONENT_H #define INCLUDED_CORE_I_REMOVE_COMPONENTS_ON_DEATH_COMPONENT_H #include "component.h" #include "platform/export.h" class IRemoveComponentsOnDeathComponent : public Component { public: DEFINE_COMPONENT_BASE( IRemoveComp...
MrPepperoni/Reaping2-1
src/core/remove_components_on_death_component.h
<filename>src/core/remove_components_on_death_component.h #ifndef INCLUDED_CORE_REMOVE_COMPONENTS_ON_DEATH_COMPONENT_H #define INCLUDED_CORE_REMOVE_COMPONENTS_ON_DEATH_COMPONENT_H #include "i_remove_components_on_death_component.h" #include "core/property_loader.h" #include <boost/serialization/vector.hpp> class Remo...
MrPepperoni/Reaping2-1
src/core/audible_event.h
#ifndef INCLUDED_CORE_AUDIBLE_EVENT_H #define INCLUDED_CORE_AUDIBLE_EVENT_H #include "platform/event.h" namespace core { struct AudibleEvent : public Event { int32_t const mActorGUID; int32_t const mId; bool const mIsOneShot; bool const mIsAddition; AudibleEvent( int32_t ActorId, int32_t Id, bool ...
MrPepperoni/Reaping2-1
src/core/map/level_generator/generator_data.h
<filename>src/core/map/level_generator/generator_data.h #ifndef INCLUDED_MAP_GENERATOR_DATA_H #define INCLUDED_MAP_GENERATOR_DATA_H #include "core/actor_factory.h" #include "platform/i_platform.h" #include "i_room.h" #include "room_property.h" #include "possible_rooms.h" namespace map { // a single cell describing t...
MrPepperoni/Reaping2-1
deps/portaudio/winioctl.h
<reponame>MrPepperoni/Reaping2-1 #ifdef DEFINE_GUID #ifndef _WINIOCTL_DEFINED_GUID_ #define _WINIOCTL_DEFINED_GUID_ #include_next <winioctl.h> #endif // _WINIOCTL_DEFINED_GUID_ #else #include_next <winioctl.h> #endif // DEFINE_GUID
MrPepperoni/Reaping2-1
src/core/buffable.h
#ifndef INCLUDED_CORE_BUFFABLE_H #define INCLUDED_CORE_BUFFABLE_H #include <boost/serialization/serialization.hpp> #include "platform/export.h" template<typename T> class Limited { public: T GetMax() const; Limited<T>& SetMax( T max ); T GetMin() const; Limited<T>& SetMin( T min ); T Get() const; ...
MrPepperoni/Reaping2-1
src/core/component_factory.h
#ifndef INCLUDED_COMPONENT_REPO_H #define INCLUDED_COMPONENT_REPO_H #include "platform/factory.h" #include "platform/singleton.h" #include "core/component.h" #include <memory> class ComponentFactory : public platform::Factory<Component>, public platform::Singleton<ComponentFactory> { friend class platform::Singl...
MrPepperoni/Reaping2-1
src/core/map/group_map_element_system.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_MAP_GROUP_MAP_ELEMENT_SYSTEM_H #define INCLUDED_MAP_GROUP_MAP_ELEMENT_SYSTEM_H #include "core/map/map_element_system.h" namespace map { class GroupMapElementSystem : public MapElementSystem { public: DEFINE_SYSTEM_BASE(GroupMapElementSystem) GroupMapElementSy...
MrPepperoni/Reaping2-1
src/platform/export.h
<filename>src/platform/export.h #pragma once #ifndef INCLUDED_EXPORT_H #define INCLUDED_EXPORT_H #include "static_init.h" #include <boost/serialization/export.hpp> #define REAPING2_CLASS_EXPORT_KEY2( k, x, y ) \ BOOST_CLASS_EXPORT_KEY2( x, y ) \ FORCE_STATIC_INIT( k ) \ #define REAPING2_CLASS_EXPORT_IMPLEME...
MrPepperoni/Reaping2-1
src/render/action_renderer_loader_repo.h
#ifndef INCLUDED_RENDER_ACTION_RENDERER_LOADER_REPO_H #define INCLUDED_RENDER_ACTION_RENDERER_LOADER_REPO_H #include "platform/repository.h" #include "platform/singleton.h" #include "platform/i_platform.h" #include "action_renderer.h" #include "core/property_loader.h" namespace render { class ActionRendererLoaderRepo...
MrPepperoni/Reaping2-1
src/render/recognizer_factory.h
#ifndef INCLUDED_RENDER_RECOGNIZER_FACTORY_H #define INCLUDED_RENDER_RECOGNIZER_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include "recognizer.h" namespace render { class RecognizerFactory : public platform::Factory<Recognizer>, public platform::Singleton<RecognizerFactory> { friend c...
MrPepperoni/Reaping2-1
src/network/actor_list_message.h
<reponame>MrPepperoni/Reaping2-1<gh_stars>0 #ifndef INCLUDED_NETWORK_ACTOR_LIST_H #define INCLUDED_NETWORK_ACTOR_LIST_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 ActorListMessage : pub...
MrPepperoni/Reaping2-1
src/engine/local_system.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_LOCAL_SYSTEM_H #define INCLUDED_ENGINE_LOCAL_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "core/program_state.h" #include "soldier_properties_ready_event.h" #include "input/keyboard.h" namespace engine { class LocalSystem : public Syste...
MrPepperoni/Reaping2-1
src/network/client_ready_event.h
#ifndef INCLUDED_ENGINE_CLIENT_READY_EVENT_H #define INCLUDED_ENGINE_CLIENT_READY_EVENT_H #include "platform/event.h" namespace network { struct ClientReadyEvent : public platform::Event { int32_t mClientId; std::string mClientName; ClientReadyEvent() : mClientId( -1 ) {} }; } // namespace engine #endi...
MrPepperoni/Reaping2-1
src/engine/sub_system_factory.h
<filename>src/engine/sub_system_factory.h #ifndef INCLUDED_ENGINE_SUB_SYSTEM_FACTORY_H #define INCLUDED_ENGINE_SUB_SYSTEM_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include <memory> #include "engine/sub_system.h" namespace engine { class SubSystemFactory : public platform::Factory<SubSys...
MrPepperoni/Reaping2-1
src/platform/model_value.h
#ifndef INCLUDED_PLATFORM_MODEL_VALUE_H #define INCLUDED_PLATFORM_MODEL_VALUE_H #include <boost/function.hpp> #include "rstdint.h" #include <string> #include "singleton.h" #include <boost/lambda/bind.hpp> #include <boost/unordered_map.hpp> #include <boost/lambda/lambda.hpp> #include <boost/ref.hpp> #include <vector> ...
MrPepperoni/Reaping2-1
src/core/map/ctf_soldier_spawn_point_map_element_system.h
#ifndef INCLUDED_MAP_CTF_SOLDIER_SPAWN_POINT_MAP_ELEMENT_SYSTEM_H #define INCLUDED_MAP_CTF_SOLDIER_SPAWN_POINT_MAP_ELEMENT_SYSTEM_H #include "core/map/map_element_system.h" #include "core/map_start_event.h" #include "soldier_spawn_point_map_element_system.h" #include "core/ctf_program_state.h" namespace map { namespa...
MrPepperoni/Reaping2-1
src/core/i_acceleration_component.h
#ifndef INCLUDED_CORE_I_ACCELERATION_COMPONENT_H #define INCLUDED_CORE_I_ACCELERATION_COMPONENT_H #include "component.h" #include "platform/export.h" class IAccelerationComponent : public Component { public: DEFINE_COMPONENT_BASE( IAccelerationComponent ) virtual double const& GetAcceleration() const = 0; ...
MrPepperoni/Reaping2-1
src/core/map/editor_layer.h
#ifndef INCLUDED_MAP_EDITOR_LAYER_H #define INCLUDED_MAP_EDITOR_LAYER_H #include "platform/singleton.h" #include "boost/bimap.hpp" namespace map { class EditorLayer : public platform::Singleton<EditorLayer> { protected: friend class platform::Singleton<EditorLayer>; EditorLayer(); public: enum Type {...
MrPepperoni/Reaping2-1
src/engine/armor_system.h
#ifndef INCLUDED_ENGINE_ARMOR_SYSTEM_H #define INCLUDED_ENGINE_ARMOR_SYSTEM_H #include "core/scene.h" #include "engine/system.h" namespace engine { class ArmorSystem : public System { public: DEFINE_SYSTEM_BASE( ArmorSystem ) ArmorSystem(); protected: virtual void Init(); virtual void Update( double ...
MrPepperoni/Reaping2-1
src/render/path_box_renderer.h
<gh_stars>1-10 #ifndef INCLUDED_RENDER_PATH_BOX_RENDERER_H #define INCLUDED_RENDER_PATH_BOX_RENDERER_H #include "core/scene.h" #include "recognizer_repo.h" #include "action_renderer.h" #include "action_renderer_factory.h" #include "renderable_sprite.h" #include "core/actor_event.h" #include "ui_renderer.h" #include "te...
MrPepperoni/Reaping2-1
src/core/blue_grenade_normal_item.h
#ifndef INCLUDED_CORE_BLUE_GRENADE_NORMAL_ITEM_H #define INCLUDED_CORE_BLUE_GRENADE_NORMAL_ITEM_H #include "normal_item.h" #include "core/property_loader.h" #include "platform/export.h" class BlueGrenadeNormalItem : public NormalItem { public: BlueGrenadeNormalItem( int32_t id ); protected: BlueGrenadeNormalI...
MrPepperoni/Reaping2-1
src/core/buffs/accuracy_buff.h
<filename>src/core/buffs/accuracy_buff.h #ifndef INCLUDED_CORE_ACCURACY_BUFF_H #define INCLUDED_CORE_ACCURACY_BUFF_H #include "buff.h" class AccuracyBuff : public Buff { public: DEFINE_BUFF_BASE( AccuracyBuff ) AccuracyBuff(); virtual void SetFlatBonus( int32_t flatBonus ); virtual int32_t GetFlatBonu...
MrPepperoni/Reaping2-1
src/core/i_attachable_component.h
<filename>src/core/i_attachable_component.h #ifndef INCLUDED_CORE_I_ATTACHABLE_COMPONENT_H #define INCLUDED_CORE_I_ATTACHABLE_COMPONENT_H #include "component.h" #include "platform/export.h" namespace ctf { class IAttachableComponent : public Component { public: DEFINE_COMPONENT_BASE( IAttachableComponent ) vi...
MrPepperoni/Reaping2-1
src/core/map/level_generator/jungle_level_generator.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_MAP_JUNGLE_LEVEL_GENERATOR_H #define INCLUDED_MAP_JUNGLE_LEVEL_GENERATOR_H #include "platform/i_platform.h" #include "i_level_generator.h" #include "room_repo.h" #include "room_desc.h" #include "core/opt.h" namespace map { class JungleLevelGenerator: public ILevelGe...
MrPepperoni/Reaping2-1
src/core/flash_normal_item.h
<gh_stars>1-10 #ifndef INCLUDED_CORE_FLASH_NORMAL_ITEM_H #define INCLUDED_CORE_FLASH_NORMAL_ITEM_H #include "normal_item.h" #include "core/property_loader.h" #include "platform/export.h" class FlashNormalItem : public NormalItem { public: FlashNormalItem( int32_t id ); protected: FlashNormalItem(); private: p...
MrPepperoni/Reaping2-1
src/core/i_flag_carrier_component.h
#ifndef INCLUDED_CTF_I_FLAG_CARRIER_COMPONENT_H #define INCLUDED_CTF_I_FLAG_CARRIER_COMPONENT_H #include "component.h" #include "platform/export.h" namespace ctf { class IFlagCarrierComponent : public Component { public: DEFINE_COMPONENT_BASE( IFlagCarrierComponent ) public: friend class ::boost::serializati...
MrPepperoni/Reaping2-1
src/engine/items/inventory_system.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_ITEMS_INVENTORY_SYSTEM_H #define INCLUDED_ENGINE_ITEMS_INVENTORY_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "engine/sub_system_holder.h" namespace engine { class InventorySystem : public System, public SubSystemHolder { public: DE...
MrPepperoni/Reaping2-1
src/core/i_explosion_component.h
#ifndef INCLUDED_CORE_I_EXPLOSION_COMPONENT_H #define INCLUDED_CORE_I_EXPLOSION_COMPONENT_H #include "component.h" #include "platform/export.h" class IExplosionComponent : public Component { public: DEFINE_COMPONENT_BASE( IExplosionComponent ) virtual void SetStartRadius( double startRadius ) = 0; virtual...
MrPepperoni/Reaping2-1
src/network/team_switch_request_event.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_TEAM_SWITCH_REQUEST_EVENT_H #define INCLUDED_ENGINE_TEAM_SWITCH_REQUEST_EVENT_H #include "platform/event.h" namespace network { struct TeamSwitchRequestEvent : public platform::Event { int32_t mClientId; TeamSwitchRequestEvent() : mClientId( -1 ) {} };...
MrPepperoni/Reaping2-1
src/engine/controllers/random_controller_sub_system.h
<reponame>MrPepperoni/Reaping2-1<filename>src/engine/controllers/random_controller_sub_system.h<gh_stars>1-10 #ifndef INCLUDED_ENGINE_CONTROLLERS_RANDOM_CONTROLLER_SUB_SYSTEM_H #define INCLUDED_ENGINE_CONTROLLERS_RANDOM_CONTROLLER_SUB_SYSTEM_H #include "core/scene.h" #include "engine/sub_system.h" #include "core/progr...
MrPepperoni/Reaping2-1
src/input/player_control_device.h
#pragma once #ifndef INCLUDED_PLAYER_CONTROL_DEVICE_H #define INCLUDED_PLAYER_CONTROL_DEVICE_H #include "platform/singleton.h" #include "platform/rstdint.h" #include <map> #include <string> namespace input { class PlayerControlDevice : public platform::Singleton<PlayerControlDevice> { public: enum DeviceType { ...
MrPepperoni/Reaping2-1
src/core/health_component.h
#ifndef INCLUDED_CORE_HEALTH_COMPONENT_H #define INCLUDED_CORE_HEALTH_COMPONENT_H #include "core/i_health_component.h" #include "core/property_loader.h" #include "platform/export.h" class HealthComponent : public IHealthComponent { public: virtual void Update( double Seconds ); virtual int32_t const& GetHP()c...
MrPepperoni/Reaping2-1
src/network/kill_score_message.h
<filename>src/network/kill_score_message.h #ifndef INCLUDED_NETWORK_KILL_SCORE_H #define INCLUDED_NETWORK_KILL_SCORE_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "engine/kill_score_event.h" #include "platform/export.h" namespace net...
MrPepperoni/Reaping2-1
src/core/map/wall_target.h
#ifndef INCLUDED_CORE_MAP_WALL_TARGET_H #define INCLUDED_CORE_MAP_WALL_TARGET_H #include "platform/i_platform.h" #include "i_target.h" #include "../scene.h" #include "spawn_actor_map_element.h" namespace map { class WallTarget: public ITarget { public: WallTarget( int32_t Id ); WallTarget( int32_t Id, int32_...
MrPepperoni/Reaping2-1
src/render/image_uimodel.h
<reponame>MrPepperoni/Reaping2-1<filename>src/render/image_uimodel.h #pragma once #ifndef INCLUDED_IMAGE_UIMODEL_H #define INCLUDED_IMAGE_UIMODEL_H #include "uimodel.h" namespace render { class ImageUiModel : public UiModel { public: virtual void CollectVertices( Widget const& Wdg, UiVertexInserter_t& Inserter )...
MrPepperoni/Reaping2-1
src/core/map/editor_soldier_spawn_system.h
<gh_stars>1-10 #ifndef INCLUDED_MAP_EDITOR_SOLDIER_SPAWN_SYSTEM_H #define INCLUDED_MAP_EDITOR_SOLDIER_SPAWN_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "../map_start_event.h" #include "../actor_factory.h" #include "ctf_soldier_spawn_point_map_element.h" #include "soldier_spawn_point_map_elemen...
MrPepperoni/Reaping2-1
src/engine/controllers/target_player_controller_sub_system.h
#ifndef INCLUDED_ENGINE_CONTROLLERS_TARGET_PLAYER_CONTROLLER_SUB_SYSTEM_H #define INCLUDED_ENGINE_CONTROLLERS_TARGET_PLAYER_CONTROLLER_SUB_SYSTEM_H #include "core/scene.h" #include "engine/sub_system.h" #include "core/program_state.h" #include "core/i_target_holder_component.h" namespace engine { class TargetPlayerC...
MrPepperoni/Reaping2-1
src/core/map/i_input.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_MAP_I_INPUT_H #define INCLUDED_CORE_MAP_I_INPUT_H #include "platform/auto_id.h" #include "core/opt.h" #include "boost/function.hpp" #include "function_declarations.h" namespace map { class IInput { public: virtual ~IInput() {}; virtual int_function_t GetI...
MrPepperoni/Reaping2-1
src/engine/kill_score_system.h
#ifndef INCLUDED_ENGINE_KILL_SCORE_SYSTEM_H #define INCLUDED_ENGINE_KILL_SCORE_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "kill_score_event.h" namespace engine { class KillScoreSystem : public System { public: DEFINE_SYSTEM_BASE( KillScoreSystem ) KillScoreSystem(); protected: v...
MrPepperoni/Reaping2-1
src/core/wall_collision_component.h
<reponame>MrPepperoni/Reaping2-1<gh_stars>1-10 #ifndef INCLUDED_CORE_WALL_COLLISION_COMPONENT_H #define INCLUDED_CORE_WALL_COLLISION_COMPONENT_H #include "core/collision_component.h" #include "core/property_loader.h" #include "platform/export.h" class WallCollisionComponent : public CollisionComponent { protected: ...
MrPepperoni/Reaping2-1
src/network/client_score_message.h
<reponame>MrPepperoni/Reaping2-1<filename>src/network/client_score_message.h #ifndef INCLUDED_NETWORK_CLIENT_SCORE_H #define INCLUDED_NETWORK_CLIENT_SCORE_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "engine/client_score_event.h" #in...
MrPepperoni/Reaping2-1
src/render/leg_move_action_renderer.h
#ifndef INCLUDED_RENDER_LEG_MOVE_ACTION_RENDERER_H #define INCLUDED_RENDER_LEG_MOVE_ACTION_RENDERER_H #include "platform/i_platform.h" #include "core/actor.h" #include "renderable_sprite.h" #include "renderable_repo.h" #include "action_renderer.h" namespace render { class LegMoveActionRenderer: public ActionRenderer ...
MrPepperoni/Reaping2-1
src/platform/singleton.h
#ifndef INCLUDED_PLATFORM_SINGLETON_H #define INCLUDED_PLATFORM_SINGLETON_H #include <boost/assert.hpp> #include <boost/thread/mutex.hpp> #include <cstdlib> namespace platform { // TODO: migrate from singleton to intf/impl template<typename T> class Singleton { public: static T& Get() { static T inst...
MrPepperoni/Reaping2-1
src/engine/connection_event.h
<filename>src/engine/connection_event.h #ifndef INCLUDED_ENGINE_CONNECTION_EVENT_H #define INCLUDED_ENGINE_CONNECTION_EVENT_H #include "platform/event.h" namespace engine { struct ConnectionEvent : public platform::Event { enum State { Connected, Disconnected, Reconnected }; i...
MrPepperoni/Reaping2-1
src/engine/items/flash_event.h
<reponame>MrPepperoni/Reaping2-1<filename>src/engine/items/flash_event.h<gh_stars>1-10 #ifndef INCLUDED_ENGINE_FLASH_EVENT_H #define INCLUDED_ENGINE_FLASH_EVENT_H #include "platform/event.h" namespace engine { struct FlashEvent : public platform::Event { int32_t mActorGUID; double mOriginalX; double mOri...
MrPepperoni/Reaping2-1
src/render/ctf_head_color_action_renderer.h
#ifndef INCLUDED_RENDER_CTF_HEAD_COLOR_ACTION_RENDERER_H #define INCLUDED_RENDER_CTF_HEAD_COLOR_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" namespace render { class CtfHeadColorActionRendere...
MrPepperoni/Reaping2-1
src/core/map/target_repo.h
<gh_stars>0 #ifndef INCLUDED_MAP_TARGET_REPO_H #define INCLUDED_MAP_TARGET_REPO_H #include "platform/repository.h" #include "platform/singleton.h" #include "i_target.h" #include "target_factory.h" namespace map { class DefaultTarget: public ITarget { public: DefaultTarget(int32_t); virtual void Update( doubl...
MrPepperoni/Reaping2-1
src/core/capture_the_flag_game_mode_system.h
<filename>src/core/capture_the_flag_game_mode_system.h #ifndef INCLUDED_CORE_CAPTURE_THE_FLAG_GAME_MODE_SYSTEM_H #define INCLUDED_CORE_CAPTURE_THE_FLAG_GAME_MODE_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "start_game_mode_event.h" #include "core/program_state.h" #include "ctf_program_state.h"...
MrPepperoni/Reaping2-1
src/ui/widget.h
#ifndef INCLUDED_UI_WIDGET_H #define INCLUDED_UI_WIDGET_H #include "platform/i_platform.h" class Widget { protected: class WidgetIterator { private: Widget const* mThis; int32_t mLevel; public: WidgetIterator( Widget const* This = NULL ): mThis( This ), mLevel( 0 ) {} W...
MrPepperoni/Reaping2-1
src/render/head_action_renderer.h
#ifndef INCLUDED_RENDER_HEAD_ACTION_RENDERER_H #define INCLUDED_RENDER_HEAD_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" namespace render { class HeadActionRenderer : public ActionRenderer { ...
MrPepperoni/Reaping2-1
src/core/map/level_generator/property_factory.h
#ifndef INCLUDED_MAP_PROPERTY_FACTORY_H #define INCLUDED_MAP_PROPERTY_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include "i_property.h" namespace map { class PropertyFactory : public platform::Factory<IProperty>, public platform::Singleton<PropertyFactory> { friend class platform::S...
MrPepperoni/Reaping2-1
src/core/i_owner_component.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_I_OWNER_COMPONENT_H #define INCLUDED_CORE_I_OWNER_COMPONENT_H #include "component.h" #include "platform/export.h" class IOwnerComponent : public Component { public: DEFINE_COMPONENT_BASE( IOwnerComponent ) virtual void SetOwnerGUID( int32_t ownerGUID ) = ...
MrPepperoni/Reaping2-1
src/core/rogue_game_mode_system.h
#ifndef INCLUDED_ENGINE_ROGUE_GAME_MODE_SYSTEM_H #define INCLUDED_ENGINE_ROGUE_GAME_MODE_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "core/start_game_mode_event.h" #include "core/level_selected_event.h" #include "map_start_event.h" #include "map_load_event.h" #include "platform/i_platform.h" #...
MrPepperoni/Reaping2-1
src/core/map/level_generator/level_generator_map_element_system.h
#ifndef INCLUDED_MAP_LEVEL_GENERATOR_MAP_ELEMENT_SYSTEM_H #define INCLUDED_MAP_LEVEL_GENERATOR_MAP_ELEMENT_SYSTEM_H #include "core/map/map_element_system.h" namespace map { class LevelGeneratorMapElementSystem : public MapElementSystem { public: DEFINE_SYSTEM_BASE(LevelGeneratorMapElementSystem) LevelGenerat...
MrPepperoni/Reaping2-1
src/core/map/level_generator/simple_room1.h
#ifndef INCLUDED_MAP_SIMPLE_ROOM1_H #define INCLUDED_MAP_SIMPLE_ROOM1_H #include "i_room.h" #include "core/actor_factory.h" namespace map { class SimpleRoom1 : public IRoom { public: SimpleRoom1( int32_t Id ); virtual void Generate( RoomDesc& roomDesc, glm::vec2 pos, bool editor = false ); private: Actor...
MrPepperoni/Reaping2-1
src/network/ctf_client_list_handling_system.h
#ifndef INCLUDED_NETWORK_CTF_CLIENT_LIST_HANDLING_SYSTEM_H #define INCLUDED_NETWORK_CTF_CLIENT_LIST_HANDLING_SYSTEM_H #include "engine/system.h" #include "platform/register.h" namespace network { struct TeamSwitchRequestEvent; struct ClientReadyEvent; using platform::AutoReg; class CtfClientListHandlingSystem : pu...
MrPepperoni/Reaping2-1
src/core/scripted_controller/select_target_act.h
#ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_SELECT_TARGET_ACT_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_SELECT_TARGET_ACT_H #include "i_act.h" #include "platform/frequency_timer.h" #include "selection_type.h" #include "../scene.h" #include "../i_target_holder_component.h" #include "../program_state.h" namespace scrip...
MrPepperoni/Reaping2-1
src/core/i_explode.h
<reponame>MrPepperoni/Reaping2-1<filename>src/core/i_explode.h #ifndef INCLUDED_CORE_I_EXPLODE_H #define INCLUDED_CORE_I_EXPLODE_H #include "explode_distribution_type.h" #include "platform/export.h" #include <boost/serialization/serialization.hpp> #include <boost/ptr_container/serialize_ptr_map.hpp> #include "platform/...
MrPepperoni/Reaping2-1
src/network/soldier_properties_message.h
<filename>src/network/soldier_properties_message.h<gh_stars>1-10 #ifndef INCLUDED_NETWORK_SOLDIER_PROPERTIES_H #define INCLUDED_NETWORK_SOLDIER_PROPERTIES_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "core/actor_event.h" #include "en...
MrPepperoni/Reaping2-1
src/audio/audio_effect.h
<reponame>MrPepperoni/Reaping2-1 #pragma once #ifndef INCLUDED_AUDIOEFFECT_H #define INCLUDED_AUDIOEFFECT_H #include "platform/rstdint.h" #include <boost/filesystem/path.hpp> namespace audio { enum PlayMode { PlayOnce = 0, Repeat, }; enum AudioType { Music = 0, Effect, Speech, NumTypes, }; str...
MrPepperoni/Reaping2-1
src/core/randomize_sprite_system.h
<filename>src/core/randomize_sprite_system.h #ifndef INCLUDED_ENGINE_RANDOMIZE_SPRITE_SYSTEM_H #define INCLUDED_ENGINE_RANDOMIZE_SPRITE_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "actor_event.h" namespace engine { class RandomizeSpriteSystem : public System { public: DEFINE_SYSTEM_BASE(...
MrPepperoni/Reaping2-1
src/core/cloak_normal_item.h
<filename>src/core/cloak_normal_item.h<gh_stars>1-10 #ifndef INCLUDED_CORE_CLOAK_NORMAL_ITEM_H #define INCLUDED_CORE_CLOAK_NORMAL_ITEM_H #include "normal_item.h" #include "core/property_loader.h" #include "platform/export.h" class CloakNormalItem : public NormalItem { public: CloakNormalItem( int32_t id ); protec...
MrPepperoni/Reaping2-1
src/render/uimodel_repo.h
#ifndef INCLUDED_RENDER_UIMODEL_REPO_H #define INCLUDED_RENDER_UIMODEL_REPO_H #include "platform/i_platform.h" #include "ui/i_ui.h" #include "uimodel.h" class UiModelRepo : public Repository<UiModel>, public Singleton<UiModelRepo> { friend class Singleton<UiModelRepo>; UiModelRepo(); UiModel mDefaultUiMode...
MrPepperoni/Reaping2-1
src/render/head_color_action_renderer.h
#ifndef INCLUDED_RENDER_HEAD_COLOR_ACTION_RENDERER_H #define INCLUDED_RENDER_HEAD_COLOR_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" namespace render { class HeadColorActionRenderer : public ...
MrPepperoni/Reaping2-1
src/core/map/target_factory.h
#ifndef INCLUDED_MAP_TARGET_FACTORY_H #define INCLUDED_MAP_TARGET_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include "i_target.h" namespace map { class TargetFactory : public platform::Factory<ITarget>, public platform::Singleton<TargetFactory> { friend class platform::Singleton<Tar...
MrPepperoni/Reaping2-1
src/render/ctf_flag_recognizer.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_RENDER_CTF_FLAG_RECOGNIZER_H #define INCLUDED_RENDER_CTF_FLAG_RECOGNIZER_H #include "platform/i_platform.h" #include "render/recognizer.h" namespace render { namespace ctf { class CtfFlagRecognizer : public Recognizer { public: CtfFlagRecognizer( int32_t Id ); ...
MrPepperoni/Reaping2-1
src/render/idle_action_renderer.h
#ifndef INCLUDED_RENDER_IDLE_ACTION_RENDERER_H #define INCLUDED_RENDER_IDLE_ACTION_RENDERER_H #include "platform/i_platform.h" #include "core/actor.h" #include "renderable_sprite.h" #include "renderable_repo.h" #include "action_renderer.h" namespace render { class IdleActionRenderer: public ActionRenderer { public: ...
MrPepperoni/Reaping2-1
src/core/stop_on_death_component.h
#ifndef INCLUDED_CORE_STOP_ON_DEATH_COMPONENT_H #define INCLUDED_CORE_STOP_ON_DEATH_COMPONENT_H #include "i_stop_on_death_component.h" #include "core/property_loader.h" #include "platform/export.h" class StopOnDeathComponent : public IStopOnDeathComponent { public: StopOnDeathComponent(); virtual void SetStop...
MrPepperoni/Reaping2-1
src/render/bar_model.h
<reponame>MrPepperoni/Reaping2-1<filename>src/render/bar_model.h #ifndef INCLUDED_RENDER_BAR_MODEL_H #define INCLUDED_RENDER_BAR_MODEL_H #include "platform/i_platform.h" #include "ui/i_ui.h" #include "ui_renderer.h" #include "uimodel.h" class BarModel : public UiModel { virtual void CollectVertices( const Widget& ...
MrPepperoni/Reaping2-1
src/core/i_remove_on_death_component.h
#ifndef INCLUDED_CORE_I_REMOVE_ON_DEATH_COMPONENT_H #define INCLUDED_CORE_I_REMOVE_ON_DEATH_COMPONENT_H #include "component.h" #include "platform/export.h" class IRemoveOnDeathComponent : public Component { public: DEFINE_COMPONENT_BASE( IRemoveOnDeathComponent ) protected: friend class ComponentFactory; publi...
MrPepperoni/Reaping2-1
src/core/explode_on_death_component.h
#ifndef INCLUDED_CORE_EXPLODE_ON_DEATH_COMPONENT_H #define INCLUDED_CORE_EXPLODE_ON_DEATH_COMPONENT_H #include "i_explode_on_death_component.h" #include "core/property_loader.h" #include "platform/export.h" class ExplodeOnDeathComponent : public IExplodeOnDeathComponent { public: ExplodeOnDeathComponent(); public...
MrPepperoni/Reaping2-1
src/core/i_accuracy_component.h
#ifndef INCLUDED_CORE_I_ACCURACY_COMPONENT_H #define INCLUDED_CORE_I_ACCURACY_COMPONENT_H #include "component.h" #include "buffable.h" #include "platform/export.h" class IAccuracyComponent : public Component { public: DEFINE_COMPONENT_BASE( IAccuracyComponent ) virtual Buffable<int32_t>& GetAccuracy() = 0; pu...
MrPepperoni/Reaping2-1
src/network/message.h
<reponame>MrPepperoni/Reaping2-1<gh_stars>1-10 #ifndef INCLUDED_NETWORK_MESSAGE_H #define INCLUDED_NETWORK_MESSAGE_H #include "platform/i_platform.h" #include <portable_oarchive.hpp> #include <portable_iarchive.hpp> #include <boost/serialization/vector.hpp> #include <boost/serialization/list.hpp> #include "platform/ex...
MrPepperoni/Reaping2-1
src/engine/kill_score_event.h
<gh_stars>1-10 #ifndef INCLUDED_ENGINE_KILL_SCORE_EVENT_H #define INCLUDED_ENGINE_KILL_SCORE_EVENT_H #include "platform/event.h" namespace engine { struct KillScoreEvent : public platform::Event { int32_t mKillerGUID; int32_t mDeadGUID; KillScoreEvent( int32_t killerGUID, int32_t deadGUID ) : mKi...