repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
MrPepperoni/Reaping2-1
src/core/notify_parent_on_death_component.h
<gh_stars>1-10 #ifndef INCLUDED_CORE_NOTIFY_PARENT_ON_DEATH_COMPONENT_H #define INCLUDED_CORE_NOTIFY_PARENT_ON_DEATH_COMPONENT_H #include "i_notify_parent_on_death_component.h" #include "core/property_loader.h" #include "platform/export.h" class NotifyParentOnDeathComponent : public INotifyParentOnDeathComponent { pu...
MrPepperoni/Reaping2-1
src/core/i_pulse_component.h
<filename>src/core/i_pulse_component.h #ifndef INCLUDED_CORE_I_PULSE_COMPONENT_H #define INCLUDED_CORE_I_PULSE_COMPONENT_H #include "component.h" class IPulseComponent : public Component { public: DEFINE_COMPONENT_BASE(IPulseComponent) struct PulseDesc { // maximum duration this pulse goes in sec...
MrPepperoni/Reaping2-1
src/core/i_move_component.h
<filename>src/core/i_move_component.h<gh_stars>1-10 #ifndef INCLUDED_CORE_I_MOVE_COMPONENT_H #define INCLUDED_CORE_I_MOVE_COMPONENT_H #include "component.h" #include "platform/event.h" #include "buffable.h" #include "platform/export.h" struct MoveChangedEvent : public platform::Event { Opt<Actor> mActor; MoveC...
MrPepperoni/Reaping2-1
src/platform/repository.h
#ifndef INCLUDED_CORE_REPOSITORY_H #define INCLUDED_CORE_REPOSITORY_H #include <boost/ptr_container/ptr_map.hpp> namespace platform { template<typename Element_T> class Repository { protected: typedef Repository<Element_T> RepoBase; public: typedef boost::ptr_map<int32_t, Element_T> ElementMap_t; typedef t...
MrPepperoni/Reaping2-1
src/render/name_renderer.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_RENDER_NAME_RENDERER_H #define INCLUDED_RENDER_NAME_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" #i...
MrPepperoni/Reaping2-1
src/ui/root.h
<reponame>MrPepperoni/Reaping2-1<filename>src/ui/root.h #ifndef INCLUDED_UI_ROOT_H #define INCLUDED_UI_ROOT_H class Root : public Widget { public: Root(); protected: virtual void UpdateSelfDimensions() {} }; #endif//INCLUDED_UI_ROOT_H
MrPepperoni/Reaping2-1
src/engine/waypoint_system.h
<gh_stars>0 #ifndef INCLUDED_ENGINE_WAYPOINT_SYSTEM_H #define INCLUDED_ENGINE_WAYPOINT_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "core/program_state.h" namespace engine { class WaypointSystem : public System { public: DEFINE_SYSTEM_BASE(WaypointSystem) WaypointSystem(); protected: ...
MrPepperoni/Reaping2-1
src/engine/controllers/scripted_controller_sub_system.h
#ifndef INCLUDED_ENGINE_SCRIPTED_CONTROLLER_SUB_SYSTEM_H #define INCLUDED_ENGINE_SCRIPTED_CONTROLLER_SUB_SYSTEM_H #include "engine/sub_system.h" #include "core/scene.h" #include "core/program_state.h" using core::ProgramState; namespace engine { class ScriptedControllerSubSystem : public SubSystem { public: DEFI...
MrPepperoni/Reaping2-1
src/core/scripted_controller/transition.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_TRANSITION_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_TRANSITION_H #include "core/controller_component.h" #include "core/property_loader.h" #include "platform/export.h" #include <vector> #include "i_condition.h" #include <boost/serialization/v...
MrPepperoni/Reaping2-1
src/platform/random.h
<gh_stars>1-10 #pragma once #ifndef INCLUDED_PLATFORM_RANDOM_H #define INCLUDED_PLATFORM_RANDOM_H #include "rstdint.h" #include <memory> namespace platform { namespace detail { class RandomGeneratorImpl; } class RandomGenerator { std::unique_ptr<detail::RandomGeneratorImpl> mImpl; public: RandomGenerator(); ...
MrPepperoni/Reaping2-1
src/core/buffs/i_buff_holder_component.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_I_BUFF_HOLDER_COMPONENT_H #define INCLUDED_CORE_I_BUFF_HOLDER_COMPONENT_H #include "core/component.h" #include "platform/i_platform.h" #include "buff.h" using namespace ::boost::multi_index; class BuffHolder { public: struct BuffOrderer { typedef...
MrPepperoni/Reaping2-1
src/network/show_text_message_message.h
#ifndef INCLUDED_NETWORK_SHOW_TEXT_MESSAGE_H #define INCLUDED_NETWORK_SHOW_TEXT_MESSAGE_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "engine/show_text_event.h" #include "platform/export.h" namespace network { class ShowTextMessageM...
MrPepperoni/Reaping2-1
src/core/map/soldier_spawn_point_map_element_system.h
#ifndef INCLUDED_MAP_SOLDIER_SPAWN_POINT_MAP_ELEMENT_SYSTEM_H #define INCLUDED_MAP_SOLDIER_SPAWN_POINT_MAP_ELEMENT_SYSTEM_H #include "core/map/map_element_system.h" #include "core/map_start_event.h" namespace map { struct SpawnPoint { int32_t mX; int32_t mY; SpawnPoint( int32_t x, int32_t y ) : m...
MrPepperoni/Reaping2-1
src/core/i_health_component.h
#ifndef INCLUDED_CORE_I_HEALTH_COMPONENT_H #define INCLUDED_CORE_I_HEALTH_COMPONENT_H #include "component.h" #include "buffable.h" #include "platform/export.h" class IHealthComponent : public Component { public: DEFINE_COMPONENT_BASE( IHealthComponent ) virtual void Update( double Seconds ) = 0; virtual in...
MrPepperoni/Reaping2-1
src/core/actor_event.h
#ifndef INCLUDED_CORE_ACTOR_EVENT_H #define INCLUDED_CORE_ACTOR_EVENT_H #include "actor.h" #include "opt.h" struct ActorEvent : public Event { enum State { Added = 0, Died, Removed }; Opt<Actor> mActor; State mState; ActorEvent( Opt<Actor> actor, State state ): mActor( a...
MrPepperoni/Reaping2-1
src/core/map/room_start_editor_system.h
<filename>src/core/map/room_start_editor_system.h<gh_stars>1-10 #ifndef INCLUDED_MAP_ROOM_START_SYSTEM_H #define INCLUDED_MAP_ROOM_START_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 "inp...
MrPepperoni/Reaping2-1
src/engine/flag_created_event.h
<gh_stars>1-10 #ifndef INCLUDED_ENGINE_FLAG_CREATED_EVENT_H #define INCLUDED_ENGINE_FLAG_CREATED_EVENT_H #include "platform/event.h" namespace engine { struct FlagCreatedEvent : public platform::Event { Opt<Actor> mActor; FlagCreatedEvent( Opt<Actor> actor ) : mActor( actor ) {} }; } // namespace en...
MrPepperoni/Reaping2-1
src/render/recognizer.h
#ifndef INCLUDED_RENDER_RECOGNIZER_H #define INCLUDED_RENDER_RECOGNIZER_H #include "platform/i_platform.h" #include "core/actor.h" namespace render { class Recognizer { public: virtual ~Recognizer(); Recognizer( int32_t Id ); virtual bool Recognize( Actor const& actor ) const; void SetActionRenderer(...
MrPepperoni/Reaping2-1
src/engine/level_end_system.h
<reponame>MrPepperoni/Reaping2-1<gh_stars>1-10 #ifndef INCLUDED_ENGINE_LEVEL_END_SYSTEM_H #define INCLUDED_ENGINE_LEVEL_END_SYSTEM_H #include "core/scene.h" #include "engine/system.h" namespace engine { class LevelEndSystem : public System { public: DEFINE_SYSTEM_BASE(LevelEndSystem) LevelEndSystem(); protec...
MrPepperoni/Reaping2-1
src/ui/bar.h
#ifndef INCLUDED_UI_BAR_H #define INCLUDED_UI_BAR_H class Bar : public Widget { typedef Widget BaseClass; public: Bar( int32_t Id ); void Init( Json::Value& Descriptor ); }; #endif//INCLUDED_UI_BAR_H
MrPepperoni/Reaping2-1
src/core/health_changed_event.h
<filename>src/core/health_changed_event.h #ifndef INCLUDED_ENGINE_HEALTH_CHANGED_EVENT_H #define INCLUDED_ENGINE_HEALTH_CHANGED_EVENT_H #include "platform/event.h" namespace core { struct HealthChangedEvent : public platform::Event { Actor& mActor; HealthChangedEvent( Actor& actor ) : mActor( actor )...
MrPepperoni/Reaping2-1
src/core/map/brush_repo.h
<gh_stars>1-10 #ifndef INCLUDED_MAP_BRUSH_REPO_H #define INCLUDED_MAP_BRUSH_REPO_H #include "platform/repository.h" #include "platform/singleton.h" #include "i_brush.h" namespace map { class DefaultBrush: public IBrush { public: DefaultBrush(); virtual void Update( double DeltaTime ); }; class BrushRepo : p...
MrPepperoni/Reaping2-1
src/network/pickup_message.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_NETWORK_PICKUP_MESSAGE_H #define INCLUDED_NETWORK_PICKUP_MESSAGE_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "core/item.h" #include "engine/collisions/pickup_collision_sub_system.h" ...
MrPepperoni/Reaping2-1
src/core/map/soldier_spawn_target.h
<filename>src/core/map/soldier_spawn_target.h #ifndef INCLUDED_CORE_MAP_SOLDIER_SPAWN_TARGET_H #define INCLUDED_CORE_MAP_SOLDIER_SPAWN_TARGET_H #include "platform/i_platform.h" #include "i_target.h" #include "../scene.h" namespace map { class SoldierSpawnTarget: public ITarget { public: SoldierSpawnTarget( int32...
MrPepperoni/Reaping2-1
src/render/ui_renderer.h
#ifndef INCLUDED_RENDER_UI_RENDERER_H #define INCLUDED_RENDER_UI_RENDERER_H #include "platform/i_platform.h" #include "ui/i_ui.h" #include "core/opt.h" #include "vao_base.h" struct UiVertex { glm::vec2 Pos; glm::vec2 TexCoord; glm::vec4 Color; GLuint TexId; UiVertex( glm::vec2 const& p, glm::vec2 ...
MrPepperoni/Reaping2-1
src/network/my_name_message_handler_sub_system.h
<gh_stars>1-10 #ifndef INCLUDED_NETWORK_MY_NAME_MESSAGE_HANDLER_SUB_SYSTEM_H #define INCLUDED_NETWORK_MY_NAME_MESSAGE_HANDLER_SUB_SYSTEM_H #include "message_handler_sub_system.h" #include "messsage_holder.h" namespace network { class MyNameMessageHandlerSubSystem: public MessageHandlerSubSystem { public: DEFINE_S...
MrPepperoni/Reaping2-1
src/engine/move_system.h
#ifndef INCLUDED_ENGINE_MOVE_SYSTEM_H #define INCLUDED_ENGINE_MOVE_SYSTEM_H #include "core/scene.h" #include "engine/system.h" namespace engine { class MoveSystem : public System { public: DEFINE_SYSTEM_BASE( MoveSystem ) MoveSystem(); virtual void Init(); virtual void Update( double DeltaTime ); pri...
MrPepperoni/Reaping2-1
src/core/buffs/buff.h
#ifndef INCLUDED_CORE_BUFFS_BUFF_H #define INCLUDED_CORE_BUFFS_BUFF_H #include "platform/auto_id.h" #include "core/opt.h" #include "platform/export.h" #include <boost/serialization/serialization.hpp> #include <boost/serialization/base_object.hpp> #define DEFINE_BUFF_BASE( BuffType ) \ static int GetType_static() ...
MrPepperoni/Reaping2-1
src/engine/items/grenade_normal_item_sub_system.h
<reponame>MrPepperoni/Reaping2-1<filename>src/engine/items/grenade_normal_item_sub_system.h #ifndef INCLUDED_ENGINE_ITEMS_GRENADE_NORMAL_ITEM_SUB_SYSTEM_H #define INCLUDED_ENGINE_ITEMS_GRENADE_NORMAL_ITEM_SUB_SYSTEM_H #include "engine/items/common_sub_system_includes.h" #include "normal_item_sub_system.h" namespace e...
MrPepperoni/Reaping2-1
src/core/scripted_controller/i_act.h
<filename>src/core/scripted_controller/i_act.h<gh_stars>1-10 #ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_I_ACT_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_I_ACT_H #include "core/controller_component.h" #include "core/property_loader.h" #include "platform/export.h" #include <vector> #include "core/actor.h" namespace scr...
MrPepperoni/Reaping2-1
src/network/cloak_changed_message.h
<reponame>MrPepperoni/Reaping2-1<filename>src/network/cloak_changed_message.h #ifndef INCLUDED_NETWORK_CLOAK_CHANGED_H #define INCLUDED_NETWORK_CLOAK_CHANGED_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "engine/cloak_changed_event.h"...
MrPepperoni/Reaping2-1
src/network/position_message.h
#ifndef INCLUDED_NETWORK_POSITION_MESSAGE_H #define INCLUDED_NETWORK_POSITION_MESSAGE_H #include "network/message.h" #include "platform/export.h" namespace network { class PositionMessage: public Message { friend class ::boost::serialization::access; public: DEFINE_MESSAGE_BASE( PositionMessage ) int32_t ...
MrPepperoni/Reaping2-1
src/core/map/map_element_factory.h
#ifndef INCLUDED_CORE_MAP_ELEMENT_FACTORY_H #define INCLUDED_CORE_MAP_ELEMENT_FACTORY_H #include "platform/factory.h" #include "platform/singleton.h" #include "map_element.h" namespace map { class MapElementFactory : public platform::Factory<MapElement>, public platform::Singleton<MapElementFactory> { friend cla...
MrPepperoni/Reaping2-1
src/core/aoe_collision_component.h
#ifndef INCLUDED_CORE_AOE_COLLISION_COMPONENT_H #define INCLUDED_CORE_AOE_COLLISION_COMPONENT_H #include "collision_component.h" #include "core/property_loader.h" #include <set> #include <boost/serialization/set.hpp> #include "platform/export.h" class AoeCollisionComponent : public CollisionComponent { public: typ...
MrPepperoni/Reaping2-1
src/core/map/neighbors.h
<gh_stars>1-10 #ifndef INCLUDED_MAP_NEIGHBORS_H #define INCLUDED_MAP_NEIGHBORS_H #include "platform/i_platform.h" #include "../border_type.h" #include "../i_border_component.h" namespace map { struct Neighbor { int32_t mActorGUID; Neighbor( int32_t actorGUID ); }; class Neighbors { public: enum Mapping ...
MrPepperoni/Reaping2-1
src/engine/items/gatling_gun_weapon_sub_system.h
#ifndef INCLUDED_ENGINE_ITEMS_GATLING_GUN_WEAPON_SUB_SYSTEM_H #define INCLUDED_ENGINE_ITEMS_GATLING_GUN_WEAPON_SUB_SYSTEM_H #include "engine/items/common_sub_system_includes.h" namespace engine { class GatlingGunWeaponSubSystem : public SubSystem, public SubSystemHolder { public: DEFINE_SUB_SYSTEM_BASE( GatlingG...
MrPepperoni/Reaping2-1
src/core/empty_collision_model.h
<gh_stars>1-10 #ifndef INCLUDED_CORE_EMPTY_COLLISION_MODEL_H #define INCLUDED_CORE_EMPTY_COLLISION_MODEL_H #include "core/collision_model.h" class EmptyCollisionModel : public CollisionModel { bool AreActorsColliding( Object const& Obj1, Object const& Obj2, double Dt ) const; bool AreActorsColliding( Actor con...
MrPepperoni/Reaping2-1
src/core/bounce_collision_component.h
#ifndef INCLUDED_CORE_BOUNCE_COLLISION_COMPONENT_H #define INCLUDED_CORE_BOUNCE_COLLISION_COMPONENT_H #include "collision_component.h" #include "core/property_loader.h" #include "platform/export.h" #include "shot_collision_component.h" class BounceCollisionComponent : public ShotCollisionComponent { public: Bounc...
MrPepperoni/Reaping2-1
src/engine/items/flash_normal_item_sub_system.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_FLASH_NORMAL_ITEM_SUB_SYSTEM_H #define INCLUDED_ENGINE_FLASH_NORMAL_ITEM_SUB_SYSTEM_H #include "engine/items/common_sub_system_includes.h" #include "normal_item_sub_system.h" namespace engine { class FlashNormalItemSubSystem : public SubSystem { public: DE...
MrPepperoni/Reaping2-1
src/core/scripted_controller/bite_act.h
#ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_BITE_ACT_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_BITE_ACT_H #include "i_act.h" #include "platform/frequency_timer.h" namespace scriptedcontroller { class BiteAct : public IAct { public: DEFINE_ACT_BASE( BiteAct ); virtual void Update( Actor& actor, double Seconds...
MrPepperoni/Reaping2-1
src/core/i_position_component.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_I_POSITION_COMPONENT_H #define INCLUDED_CORE_I_POSITION_COMPONENT_H #include "component.h" #include "platform/event.h" #include "platform/export.h" struct PositionChangedEvent : public platform::Event { Opt<Actor> mActor; PositionChangedEvent( Opt<Actor> a...
MrPepperoni/Reaping2-1
src/network/ctf_client_datas_message.h
#ifndef INCLUDED_NETWORK_CTF_CLIENT_DATAS_H #define INCLUDED_NETWORK_CTF_CLIENT_DATAS_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "core/ctf_program_state.h" #include "network/ctf_client_datas_changed_event.h" #include "platform/expo...
MrPepperoni/Reaping2-1
src/network/message_order.h
<gh_stars>1-10 #ifndef INCLUDED_NETWORK_MESSAGE_ORDER_H #define INCLUDED_NETWORK_MESSAGE_ORDER_H namespace network { bool instantiateMessageOrder(); namespace { volatile bool forceInstantiate = instantiateMessageOrder(); } } #endif//INCLUDED_NETWORK_MESSAGE_ORDER_H
MrPepperoni/Reaping2-1
src/core/target_holder_component.h
<reponame>MrPepperoni/Reaping2-1<gh_stars>1-10 #ifndef INCLUDED_CORE_TARGET_HOLDER_COMPONENT_H #define INCLUDED_CORE_TARGET_HOLDER_COMPONENT_H #include "i_target_holder_component.h" #include "core/property_loader.h" #include "platform/export.h" class TargetHolderComponent : public ITargetHolderComponent { public: ...
MrPepperoni/Reaping2-1
src/engine/secs_to_revive_event.h
<gh_stars>1-10 #ifndef INCLUDED_ENGINE_SECS_TO_REVIVE_EVENT_H #define INCLUDED_ENGINE_SECS_TO_REVIVE_EVENT_H #include "platform/event.h" namespace engine { struct SecsToReviveEvent : public platform::Event { int32_t mClientId; double mSecsToRevive; SecsToReviveEvent( int32_t clientId, double secsToRevive...
MrPepperoni/Reaping2-1
src/engine/system.h
#ifndef INCLUDED_ENGINE_SYSTEM_H #define INCLUDED_ENGINE_SYSTEM_H #include "platform/auto_id.h" #include "platform/init.h" #define DEFINE_SYSTEM_BASE( SystemType ) \ static int32_t GetType_static() \ { \ static int32_t const typ = platform::AutoId( #SystemType ); \ return typ; \ } \ virtual in...
MrPepperoni/Reaping2-1
src/render/border_recognizer.h
#ifndef INCLUDED_RENDER_BORDER_RECOGNIZER_H #define INCLUDED_RENDER_BORDER_RECOGNIZER_H #include "platform/i_platform.h" #include "render/recognizer.h" namespace render { class BorderRecognizer : public Recognizer { public: BorderRecognizer( int32_t Id ); virtual bool Recognize( Actor const& ) const; private...
MrPepperoni/Reaping2-1
src/engine/collisions/bounce_collision_sub_system.h
#ifndef INCLUDED_ENGINE_BOUNCE_COLLISION_SUB_SYSTEM_H #define INCLUDED_ENGINE_BOUNCE_COLLISION_SUB_SYSTEM_H #include "engine/collisions/collision_sub_system.h" #include "shot_collision_sub_system.h" namespace engine { class BounceCollisionSubSystem : public CollisionSubSystem { public: DEFINE_SUB_SYSTEM_BASE( Bo...
MrPepperoni/Reaping2-1
src/core/pulse_component.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_PULSE_COMPONENT_H #define INCLUDED_CORE_PULSE_COMPONENT_H #include "i_pulse_component.h" #include "core/property_loader.h" #include "platform/export.h" #include <boost/serialization/vector.hpp> class PulseComponent : public IPulseComponent { public: PulseComp...
MrPepperoni/Reaping2-1
src/platform/init.h
#pragma once #ifndef INCLUDED_INIT_H #define INCLUDED_INIT_H #include "singleton.h" #include <functional> #include <string> #include <map> namespace platform { typedef std::function<void()> InitFunc_t; class Init : public Singleton<Init> { friend class Singleton<Init>; Init(); // name -> function map, so...
MrPepperoni/Reaping2-1
src/render/cell_action_renderer.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_RENDER_CELL_ACTION_RENDERER_H #define INCLUDED_RENDER_CELL_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 CellActionRe...
MrPepperoni/Reaping2-1
src/core/i_inventory_component.h
#ifndef INCLUDED_CORE_I_INVENTORY_COMPONENT_H #define INCLUDED_CORE_I_INVENTORY_COMPONENT_H #include "component.h" #include "core/item.h" #include "core/opt.h" #include <list> #include "weapon.h" #include "normal_item.h" #include "item_type.h" #include "platform/export.h" class IInventoryComponent : public Component {...
MrPepperoni/Reaping2-1
src/core/map/spawn_soldiers_map_element.h
#ifndef INCLUDED_MAP_SPAWN_SOLDIERS_H #define INCLUDED_MAP_SPAWN_SOLDIERS_H #include "core/map/map_element.h" #include "platform/i_platform.h" #include "base_input.h" namespace map { class SpawnSoldiersMapElement : public MapElement, public BaseInput { public: DEFINE_MAP_ELEMENT_BASE( SpawnSoldiersMapElement ) ...
MrPepperoni/Reaping2-1
src/core/trigger.h
<filename>src/core/trigger.h #ifndef INCLUDED_CORE_CONSUMABLE_H #define INCLUDED_CORE_CONSUMABLE_H #include <boost/serialization/serialization.hpp> class Trigger { public: Trigger(); void Activate(); void Deactivate(); void Handled(); bool GetValue()const; bool IsActive()const; protected: f...
MrPepperoni/Reaping2-1
src/core/i_explode_on_death_component.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_I_EXPLODE_ON_DEATH_COMPONENT_H #define INCLUDED_CORE_I_EXPLODE_ON_DEATH_COMPONENT_H #include "component.h" #include "i_explode.h" #include "platform/export.h" class IExplodeOnDeathComponent : public Component, public IExplode { public: IExplodeOnDeathComponen...
MrPepperoni/Reaping2-1
src/network/border_message.h
#ifndef INCLUDED_NETWORK_BORDER_H #define INCLUDED_NETWORK_BORDER_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "core/i_border_component.h" #include "platform/export.h" namespace network { class BorderMessage : public Message { ...
MrPepperoni/Reaping2-1
src/core/path_controller_component.h
<filename>src/core/path_controller_component.h #ifndef INCLUDED_CORE_PATH_CONTROLLER_COMPONENT_H #define INCLUDED_CORE_PATH_CONTROLLER_COMPONENT_H #include "controller_component.h" #include "core/property_loader.h" #include "platform/export.h" class PathControllerComponent : public ControllerComponent { public: P...
MrPepperoni/Reaping2-1
src/core/shot_collision_component.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_CORE_SHOT_COLLISION_COMPONENT_H #define INCLUDED_CORE_SHOT_COLLISION_COMPONENT_H #include "core/collision_component.h" #include "core/property_loader.h" #include <boost/serialization/set.hpp> #include "platform/export.h" #include <boost/serialization/vector.hpp> class...
MrPepperoni/Reaping2-1
src/engine/notify_parent_on_death_system.h
#ifndef INCLUDED_ENGINE_NOTIFY_PARENT_ON_DEATH_SYSTEM_H #define INCLUDED_ENGINE_NOTIFY_PARENT_ON_DEATH_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "removed_actors_system.h" namespace engine { class NotifyParentOnDeathSystem : public System { public: DEFINE_SYSTEM_BASE( NotifyParentOnDeat...
MrPepperoni/Reaping2-1
src/ui/grid.h
<reponame>MrPepperoni/Reaping2-1<filename>src/ui/grid.h #pragma once #ifndef INCLUDED_GRID_H #define INCLUDED_GRID_H #include "widget.h" namespace Json { class Value; } class GridElem; class GridWidget : public Widget { typedef Widget BaseClass; public: GridWidget( int32_t Id ); virtual void Init( Json::...
MrPepperoni/Reaping2-1
src/core/map/editor_brush_system.h
#ifndef INCLUDED_MAP_EDITOR_BRUSH_SYSTEM_H #define INCLUDED_MAP_EDITOR_BRUSH_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "boost/ptr_container/ptr_vector.hpp" #include "brush_repo.h" namespace map { class EditorBrushSystem : public engine::System { public: DEFINE_SYSTEM_BASE( EditorBrushS...
MrPepperoni/Reaping2-1
src/render/text_scene_renderer.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_RENDER_TEXT_SCENE_RENDERER_H #define INCLUDED_RENDER_TEXT_SCENE_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_re...
MrPepperoni/Reaping2-1
src/network/move_message_handler_sub_system.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_NETWORK_MOVE_MESSAGE_HANDLER_SUB_SYSTEM_H #define INCLUDED_NETWORK_MOVE_MESSAGE_HANDLER_SUB_SYSTEM_H #include "message_handler_sub_system.h" namespace network { class MoveMessageHandlerSubSystem: public MessageHandlerSubSystem { public: DEFINE_SUB_SYSTEM_BASE( Mov...
MrPepperoni/Reaping2-1
src/core/map/link_map_element_system.h
<gh_stars>1-10 #ifndef INCLUDED_MAP_LINK_MAP_ELEMENT_SYSTEM_H #define INCLUDED_MAP_LINK_MAP_ELEMENT_SYSTEM_H #include "core/map_loaded_event.h" #include "map_system.h" #include "map_element_system.h" namespace map { class LinkMapElementSystem : public MapElementSystem { public: DEFINE_SYSTEM_BASE( LinkMapElement...
MrPepperoni/Reaping2-1
src/network/client_system.h
#ifndef INCLUDED_NETWORK_CLIENT_SYSTEM_H #define INCLUDED_NETWORK_CLIENT_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include <enet/enet.h> #include "platform/i_platform.h" #include "messsage_holder.h" #include "core/program_state.h" #include <atomic> #include <thread> using platform::ModelValue; using...
MrPepperoni/Reaping2-1
src/engine/activity_system.h
#ifndef INCLUDED_ENGINE_ACTIVITY_SYSTEM_H #define INCLUDED_ENGINE_ACTIVITY_SYSTEM_H #include "core/activity_grid.h" #include "core/scene.h" #include "engine/system.h" #include "core/perf_timer.h" #include "core/actor_event.h" #include <boost/container/flat_set.hpp> namespace engine { class ActivitySystem : public Sy...
MrPepperoni/Reaping2-1
src/audio/audio_file.h
#ifndef INCLUDED_AUDIO_AUDIO_FILE_H #define INCLUDED_AUDIO_AUDIO_FILE_H #include "platform/i_platform.h" #include "audio/audio_effect.h" #include "vorbis_file_cache.h" // todo: rename class AudioFile { private: int32_t mUID; audio::AudioEffect const& mEffect; static const size_t TargetBufferSize; Vorb...
MrPepperoni/Reaping2-1
src/render/move_recognizer.h
<gh_stars>1-10 #ifndef INCLUDED_RENDER_MOVE_RECOGNIZER_H #define INCLUDED_RENDER_MOVE_RECOGNIZER_H #include "platform/i_platform.h" #include "render/recognizer.h" namespace render { class MoveRecognizer: public Recognizer { public: MoveRecognizer( int32_t Id ); virtual bool Recognize( Actor const& ) const; }; ...
MrPepperoni/Reaping2-1
src/core/i_cloak_component.h
#ifndef INCLUDED_CORE_I_CLOAK_COMPONENT_H #define INCLUDED_CORE_I_CLOAK_COMPONENT_H #include "component.h" class ICloakComponent : public Component { public: DEFINE_COMPONENT_BASE( ICloakComponent ) virtual void SetActive( bool active ) = 0; virtual bool IsActive()const = 0; public: friend class ::boo...
MrPepperoni/Reaping2-1
src/core/accuracy_component.h
#ifndef INCLUDED_CORE_ACCURACY_COMPONENT_H #define INCLUDED_CORE_ACCURACY_COMPONENT_H #include "i_accuracy_component.h" #include "core/property_loader.h" #include "platform/export.h" class AccuracyComponent : public IAccuracyComponent { public: AccuracyComponent(); void SetAccuracyBase( int32_t accuracy ); ...
MrPepperoni/Reaping2-1
src/engine/items/pistol_weapon_sub_system.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_ITEMS_PISTOL_WEAPON_SUB_SYSTEM_H #define INCLUDED_ENGINE_ITEMS_PISTOL_WEAPON_SUB_SYSTEM_H #include "engine/items/common_sub_system_includes.h" namespace engine { class PistolWeaponSubSystem : public SubSystem, public SubSystemHolder { public: DEFINE_SUB_SY...
MrPepperoni/Reaping2-1
src/core/plasma_gun.h
#ifndef INCLUDED_CORE_PLASMA_GUN_H #define INCLUDED_CORE_PLASMA_GUN_H #include "core/weapon.h" #include "item_loader.h" #include "platform/export.h" class PlasmaGun : public Weapon { public: PlasmaGun( int32_t Id ); PlasmaGun(); friend class ::boost::serialization::access; template<class Archive> v...
MrPepperoni/Reaping2-1
src/platform/static_init.h
#pragma once #ifndef INCLUDED_STATIC_INIT_H #define INCLUDED_STATIC_INIT_H #define FORCE_STATIC_INIT( x ) \ namespace ns_ ## x ## _force_init { \ bool forceInit ## x (); \ namespace { \ volatile bool force_init_ ## x = forceInit ## x (); \ } \ } #define FORCE_STATIC_INIT_IM...
MrPepperoni/Reaping2-1
src/core/level_end_component.h
#ifndef INCLUDED_CORE_LEVEL_END_COMPONENT_H #define INCLUDED_CORE_LEVEL_END_COMPONENT_H #include "i_level_end_component.h" #include "core/property_loader.h" #include "platform/export.h" class LevelEndComponent : public ILevelEndComponent { public: LevelEndComponent(); protected: friend class ComponentFactory;...
MrPepperoni/Reaping2-1
src/core/map/room_plain_property_editor_system.h
<filename>src/core/map/room_plain_property_editor_system.h #ifndef INCLUDED_MAP_ROOM_PLAIN_PROPERTY_EDITOR_SYSTEM_H #define INCLUDED_MAP_ROOM_PLAIN_PROPERTY_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...
MrPepperoni/Reaping2-1
src/platform/serialize.h
#ifndef INCLUDED_PLATFORM_SERIALIZE_H #define INCLUDED_PLATFORM_SERIALIZE_H #include <string> #include "rstdint.h" namespace platform { // data filejaink little endianok, mindig namespace conv { inline uint16_t bswap( uint16_t val ) { return ( val << 8 ) | ( val >> 8 ); } inline int16_t bswap( int16_t val ) { ...
MrPepperoni/Reaping2-1
src/core/map/layer_selected_event.h
#ifndef INCLUDED_MAP_LAYER_SELECTED_EVENT_H #define INCLUDED_MAP_LAYER_SELECTED_EVENT_H #include "platform/event.h" namespace map { struct LayerSelectedEvent : public platform::Event { std::string mLayerName; LayerSelectedEvent(std::string const& layerName) :mLayerName(layerName){} }; } // namespace...
MrPepperoni/Reaping2-1
src/core/scripted_controller/i_condition.h
#ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_I_CONDITION_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_I_CONDITION_H #include "core/controller_component.h" #include "core/property_loader.h" #include "platform/export.h" #include <vector> #include "core/actor.h" namespace scriptedcontroller { #define DEFINE_CONDITION_BASE( ...
MrPepperoni/Reaping2-1
src/core/explode_distribution_type.h
#ifndef INCLUDED__EXPLODE_DISTRIBUTION_TYPE_H #define INCLUDED__EXPLODE_DISTRIBUTION_TYPE_H #include "platform/singleton.h" #include "boost/bimap.hpp" class ExplodeDistributionType : public platform::Singleton<ExplodeDistributionType> { protected: friend class platform::Singleton<ExplodeDistributionType>; Exp...
MrPepperoni/Reaping2-1
src/core/map/ctf_spawn_soldiers_map_element_system.h
<gh_stars>1-10 #ifndef INCLUDED_MAP_CTF_SPAWN_SOLDIERS_MAP_ELEMENT_SYSTEM_H #define INCLUDED_MAP_CTF_SPAWN_SOLDIERS_MAP_ELEMENT_SYSTEM_H #include "core/map/map_element_system.h" #include "core/program_state.h" #include "core/ctf_program_state.h" namespace map { namespace ctf { class CtfSpawnSoldiersMapElementSystem ...
MrPepperoni/Reaping2-1
src/network/server_system.h
#ifndef INCLUDED_NETWORK_SERVER_SYSTEM_H #define INCLUDED_NETWORK_SERVER_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include <enet/enet.h> #include <map> #include "messsage_holder.h" #include "engine/frame_counter_system.h" #include "platform/register.h" #include "client_id_changed.h" #include <atomic...
MrPepperoni/Reaping2-1
src/core/free_for_all_game_mode_system.h
#ifndef INCLUDED_CORE_FREE_FOR_ALL_GAME_MODE_SYSTEM_H #define INCLUDED_CORE_FREE_FOR_ALL_GAME_MODE_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "start_game_mode_event.h" #include "level_selected_event.h" #include "program_state.h" #include "map_start_event.h" #include "map_load_event.h" namesp...
MrPepperoni/Reaping2-1
src/core/component.h
#ifndef INCLUDED_CORE_COMPONENT_H #define INCLUDED_CORE_COMPONENT_H #include "platform/auto_id.h" #include <boost/ptr_container/ptr_map.hpp> #include "core/opt.h" #include "json/json.h" #include "property_loader.h" #include <portable_oarchive.hpp> #include <portable_iarchive.hpp> #include "platform/export.h" #include ...
MrPepperoni/Reaping2-1
src/core/item_type.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED__ITEM_TYPE_H #define INCLUDED__ITEM_TYPE_H #include "platform/i_platform.h" #include "boost/bimap.hpp" class ItemColorRepo : public platform::Repository<glm::vec4>, public platform::Singleton<ItemColorRepo> { friend class Singleton<ItemColorRepo>; static glm::...
MrPepperoni/Reaping2-1
src/engine/listen_child_death_system.h
<reponame>MrPepperoni/Reaping2-1 #ifndef INCLUDED_ENGINE_LISTEN_CHILD_DEATH_SYSTEM_H #define INCLUDED_ENGINE_LISTEN_CHILD_DEATH_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "removed_actors_system.h" namespace engine { class ListenChildDeathSystem : public System { public: DEFINE_SYSTEM_BA...
MrPepperoni/Reaping2-1
src/core/revive_event.h
#ifndef INCLUDED_CORE_REVIVE_EVENT_H #define INCLUDED_CORE_REVIVE_EVENT_H #include "platform/event.h" namespace core { struct ReviveEvent : public platform::Event { Opt<ClientData> mClientData; ReviveEvent( Opt<ClientData> clientData ) : mClientData( clientData ) {} }; } // namespace core #endif//I...
MrPepperoni/Reaping2-1
src/network/message_handler_sub_system.h
<filename>src/network/message_handler_sub_system.h #ifndef INCLUDED_NETWORK_MESSAGE_HANDLER_SUB_SYSTEM_H #define INCLUDED_NETWORK_MESSAGE_HANDLER_SUB_SYSTEM_H #include "message.h" #include "engine/sub_system.h" #include "messsage_holder.h" #include "core/scene.h" #include "core/program_state.h" #include "boost/ptr_con...
MrPepperoni/Reaping2-1
src/engine/attachable_system.h
<gh_stars>1-10 #ifndef INCLUDED_ENGINE_ATTACHABLE_SYSTEM_H #define INCLUDED_ENGINE_ATTACHABLE_SYSTEM_H #include "core/scene.h" #include "engine/system.h" namespace engine { namespace ctf { class AttachableSystem : public System { public: DEFINE_SYSTEM_BASE( AttachableSystem ) AttachableSystem(); protected: ...
MrPepperoni/Reaping2-1
src/network/gamemode_selected_message.h
#ifndef INCLUDED_NETWORK_GAMEMODE_SELECTED_MESSAGE_H #define INCLUDED_NETWORK_GAMEMODE_SELECTED_MESSAGE_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "core/gamemode_selected_event.h" #include "platform/export.h" namespace network { ...
MrPepperoni/Reaping2-1
src/core/target_player_controller_component.h
<gh_stars>1-10 #ifndef INCLUDED_CORE_TARGET_PLAYER_CONTROLLER_H #define INCLUDED_CORE_TARGET_PLAYER_CONTROLLER_H #include "core/controller_component.h" #include "core/actor.h" #include "core/property_loader.h" #include "platform/export.h" class TargetPlayerControllerComponent : public ControllerComponent { public: ...
MrPepperoni/Reaping2-1
src/render/grid_uimodel.h
#pragma once #ifndef INCLUDED_GRID_UIMODEL_H #define INCLUDED_GRID_UIMODEL_H #include "uimodel.h" namespace render { class GridUiModel : public UiModel { public: virtual void CollectVertices( Widget const& Wdg, UiVertexInserter_t& Inserter ) const; }; class GridElemUiModel : public UiModel { public: virtual...
MrPepperoni/Reaping2-1
src/engine/worm_body_system.h
#ifndef INCLUDED_ENGINE_WORM_BODY_SYSTEM_H #define INCLUDED_ENGINE_WORM_BODY_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "core/actor_factory.h" #include "core/i_worm_head_component.h" namespace engine { class WormBodySystem : public System { public: DEFINE_SYSTEM_BASE(WormBodySystem) ...
MrPepperoni/Reaping2-1
src/core/ion_gun.h
#ifndef INCLUDED_CORE_ION_GUN_H #define INCLUDED_CORE_ION_GUN_H #include "core/weapon.h" #include "platform/export.h" class IonGun : public Weapon { public: IonGun( int32_t Id ); IonGun(); friend class ::boost::serialization::access; template<class Archive> void serialize( Archive& ar, const unsign...
MrPepperoni/Reaping2-1
src/core/map/room_editor_system.h
<gh_stars>1-10 #ifndef INCLUDED_MAP_ROOM_EDITOR_SYSTEM_H #define INCLUDED_MAP_ROOM_EDITOR_SYSTEM_H #include "core/scene.h" #include "engine/system.h" #include "boost/ptr_container/ptr_vector.hpp" #include "input/keyboard.h" #include "input/mouse.h" #include "platform/register.h" #include "main/window.h" #include "rend...
MrPepperoni/Reaping2-1
src/network/ctf_score_message.h
<reponame>MrPepperoni/Reaping2-1<filename>src/network/ctf_score_message.h #ifndef INCLUDED_NETWORK_CTF_SCORE_H #define INCLUDED_NETWORK_CTF_SCORE_H #include "network/message.h" #include "network/message_handler_sub_system.h" #include "network/message_sender_system.h" #include "core/ctf_program_state.h" #include "platf...
MrPepperoni/Reaping2-1
src/core/scripted_controller/is_not_hit_condition.h
#ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_IS_NOT_HIT_CONDITION_H #define INCLUDED_CORE_SCRIPTED_CONTROLLER_IS_NOT_HIT_CONDITION_H #include "i_condition.h" namespace scriptedcontroller { class IsNotHitCondition : public ICondition { public: DEFINE_CONDITION_BASE( IsNotHitCondition ) virtual void Update( Actor...
MrPepperoni/Reaping2-1
src/core/rusty_reaper.h
<filename>src/core/rusty_reaper.h #ifndef INCLUDED__RUSTY_REAPER_H #define INCLUDED__RUSTY_REAPER_H #include "core/weapon.h" #include "platform/export.h" class RustyReaper : public Weapon { public: RustyReaper( int32_t Id ); RustyReaper(); void SetSawGUID( int32_t sawGUID ); int32_t GetSawGUID()const;...
MrPepperoni/Reaping2-1
src/core/light_component.h
#ifndef INCLUDED_CORE_LIGHT_COMPONENT_H #define INCLUDED_CORE_LIGHT_COMPONENT_H #include "i_light_component.h" #include "core/property_loader.h" #include "platform/export.h" class LightComponent : public ILightComponent { public: LightComponent(); virtual void SetRadius( double radius ); virtual double Ge...
MrPepperoni/Reaping2-1
src/render/health_bar_renderer.h
#ifndef INCLUDED_RENDER_HEALTH_BAR_RENDERER_H #define INCLUDED_RENDER_HEALTH_BAR_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 "text.h" #incl...
MrPepperoni/Reaping2-1
src/core/activity_traits.h
#ifndef INCLUDED_CORE_ACTIVITY_TRAITS_H #define INCLUDED_CORE_ACTIVITY_TRAITS_H #include "core/actor.h" #include <functional> namespace core { struct ActivityTraits { enum Types { Active = 0, Passive, NumTypes }; static size_t constexpr NumClasses = NumTypes; static bool AreCor...