repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
MrPepperoni/Reaping2-1 | src/engine/collisions/shot_collision_sub_system.h | <gh_stars>1-10
#ifndef INCLUDED_ENGINE_SHOT_COLLISION_SUB_SYSTEM_H
#define INCLUDED_ENGINE_SHOT_COLLISION_SUB_SYSTEM_H
#include "core/scene.h"
#include "engine/collisions/collision_sub_system.h"
#include "core/shot_collision_component.h"
namespace engine {
class ShotCollisionSubSystem : public CollisionSubSystem
{
p... |
MrPepperoni/Reaping2-1 | src/core/map/absolute_grid.h | #ifndef INCLUDED_CORE_MAP_ABSOLUTE_GRID_H
#define INCLUDED_CORE_MAP_ABSOLUTE_GRID_H
#include "i_grid.h"
namespace map {
class AbsoluteGrid: public IGrid
{
public:
AbsoluteGrid( int32_t Id );
virtual void Update( double DeltaTime );
virtual void SetMousePosition( double x, double y );
};
} // namespace... |
MrPepperoni/Reaping2-1 | src/engine/rotate_component_system.h | #ifndef INCLUDED_CORE_ROTATE_COMPONENT_SYSTEM_H
#define INCLUDED_CORE_ROTATE_COMPONENT_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
namespace engine {
class RotateComponentSystem : public engine::System
{
public:
DEFINE_SYSTEM_BASE(RotateComponentSystem)
RotateComponentSystem();
protected:
... |
MrPepperoni/Reaping2-1 | src/network/sync_item_message.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_NETWORK_SYNC_ITEM_H
#define INCLUDED_NETWORK_SYNC_ITEM_H
#include "network/message.h"
#include "network/message_handler_sub_system.h"
#include "network/message_sender_system.h"
#include "core/item.h"
#include "engine/item_properties_changed_event.h"
#include "platform/... |
MrPepperoni/Reaping2-1 | src/core/map_load_event.h | #ifndef INCLUDED_CORE_MAP_LOAD_EVENT_H
#define INCLUDED_CORE_MAP_LOAD_EVENT_H
#include "platform/event.h"
namespace core {
struct MapLoadEvent : public platform::Event
{
std::string mMapName;
MapLoadEvent( std::string const& mapName )
: mMapName( mapName ) {}
};
} // namespace core
#endif//INCLUDED... |
MrPepperoni/Reaping2-1 | src/input/keyboard.h | #ifndef INCLUDED_INPUT_KEYBOARD_H
#define INCLUDED_INPUT_KEYBOARD_H
#include "engine/system.h"
struct KeyState
{
enum Type
{
Down,
Up,
Typed
};
};
struct KeyEvent : public Event
{
const int Key;
const int Mods;
const KeyState::Type State;
KeyEvent( int K, int M, Ke... |
MrPepperoni/Reaping2-1 | src/network/set_team_message.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_NETWORK_SET_TEAM_H
#define INCLUDED_NETWORK_SET_TEAM_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 "engine/soldier_created_event.h"
#include "engine... |
MrPepperoni/Reaping2-1 | src/network/waiting_start_system.h | <filename>src/network/waiting_start_system.h
#ifndef INCLUDED_NETWORK_WAITING_START_SYSTEM_H
#define INCLUDED_NETWORK_WAITING_START_SYSTEM_H
#include "engine/system.h"
#include "platform/register.h"
#include "platform/model_value.h"
namespace network {
using platform::AutoReg;
using platform::ModelValue;
struct Loa... |
MrPepperoni/Reaping2-1 | src/core/map/editor_hud_state.h | #ifndef INCLUDED_MAP_EDITOR_HUD_STATE_H
#define INCLUDED_MAP_EDITOR_HUD_STATE_H
#include "platform/singleton.h"
namespace map {
class EditorHudState : public platform::Singleton<EditorHudState>
{
protected:
friend class platform::Singleton<EditorHudState>;
EditorHudState() = default;
bool mHudShown = fal... |
MrPepperoni/Reaping2-1 | src/core/map/ctf_soldier_spawn_target.h | #ifndef INCLUDED_CORE_MAP_CTF_SOLDIER_SPAWN_TARGET_H
#define INCLUDED_CORE_MAP_CTF_SOLDIER_SPAWN_TARGET_H
#include "platform/i_platform.h"
#include "i_target.h"
#include "../scene.h"
#include "../ctf_program_state.h"
namespace map {
class CtfSoldierSpawnTarget: public ITarget
{
public:
CtfSoldierSpawnTarget( int... |
MrPepperoni/Reaping2-1 | src/core/map/level_generator/level_generated_map_element_system.h | #ifndef INCLUDED_MAP_LEVEL_GENERATED_MAP_ELEMENT_SYSTEM_H
#define INCLUDED_MAP_LEVEL_GENERATED_MAP_ELEMENT_SYSTEM_H
#include "core/map/map_element_system.h"
#include "level_generated_event.h"
namespace map {
class LevelGeneratedMapElementSystem : public MapElementSystem
{
public:
DEFINE_SYSTEM_BASE(LevelGenerate... |
MrPepperoni/Reaping2-1 | src/input/mouse_adapter_system.h | <filename>src/input/mouse_adapter_system.h
#ifndef INCLUDED_ENGINE_MOUSE_ADAPTER_SYSTEM_H
#define INCLUDED_ENGINE_MOUSE_ADAPTER_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "mouse.h"
#include "input_system.h"
#include "core/program_state.h"
namespace engine {
class MouseAdapterSystem : public... |
MrPepperoni/Reaping2-1 | src/network/client_list_changed_event.h | #ifndef INCLUDED_NETWORK_CLIENT_LIST_CHANGED_EVENT_H
#define INCLUDED_NETWORK_CLIENT_LIST_CHANGED_EVENT_H
#include "platform/event.h"
#include "core/program_state.h"
namespace network {
struct ClientListChangedEvent : public platform::Event
{
core::ProgramState::ClientDatas_t mClientList;
ClientListChangedEv... |
MrPepperoni/Reaping2-1 | src/core/collision_component.h | #ifndef INCLUDED_CORE_COLLISION_COMPONENT_H
#define INCLUDED_CORE_COLLISION_COMPONENT_H
#include "core/i_collision_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class CollisionComponent : public ICollisionComponent
{
public:
virtual CollisionClass::Type GetCollisionClass()const;
v... |
MrPepperoni/Reaping2-1 | src/core/map/i_output.h | #ifndef INCLUDED_CORE_MAP_I_OUTPUT_H
#define INCLUDED_CORE_MAP_I_OUTPUT_H
#include "platform/auto_id.h"
#include "core/opt.h"
#include "boost/function.hpp"
#include "function_declarations.h"
namespace map {
class IOutput
{
public:
virtual ~IOutput() {};
virtual void PlugInNode( int32_t ordinal, int_function_t... |
MrPepperoni/Reaping2-1 | src/core/soldier_properties.h | <reponame>MrPepperoni/Reaping2-1<filename>src/core/soldier_properties.h<gh_stars>1-10
#ifndef INCLUDED_CORE_SOLDIER_PROPERTIES_H
#define INCLUDED_CORE_SOLDIER_PROPERTIES_H
#include "platform/singleton.h"
#include "platform/i_platform.h"
#include "actor.h"
#include "platform/export.h"
namespace core {
struct SoldierPr... |
MrPepperoni/Reaping2-1 | src/core/map/base_input.h | #ifndef INCLUDED_CORE_MAP_BASE_INPUT_H
#define INCLUDED_CORE_MAP_BASE_INPUT_H
#include "platform/i_platform.h"
#include "i_input.h"
#include <map>
namespace map {
class BaseInput : public IInput
{
public:
~BaseInput();
int_function_t GetInputNode( int32_t ordinal );
int_function_t GetInputNodeId( int32_t... |
MrPepperoni/Reaping2-1 | src/network/heal_taken_message.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_NETWORK_HEAL_TAKEN_H
#define INCLUDED_NETWORK_HEAL_TAKEN_H
#include "network/message.h"
#include "network/message_handler_sub_system.h"
#include "network/message_sender_system.h"
#include "core/heal_taken_event.h"
#include "platform/export.h"
namespace network {
clas... |
MrPepperoni/Reaping2-1 | src/engine/buffs_engine/max_health_buff_sub_system.h | #ifndef INCLUDED_ENGINE_MAX_HEALTH_BUFF_SUB_SYSTEM_H
#define INCLUDED_ENGINE_MAX_HEALTH_BUFF_SUB_SYSTEM_H
#include "core/scene.h"
#include "engine/sub_system.h"
#include "core/program_state.h"
namespace engine {
class MaxHealthBuffSubSystem : public SubSystem
{
public:
DEFINE_SUB_SYSTEM_BASE( MaxHealthBuffSubSys... |
MrPepperoni/Reaping2-1 | src/network/message_factory.h | <gh_stars>1-10
#ifndef INCLUDED_NETWORK_MESSAGE_FACTORY_H
#define INCLUDED_NETWORK_MESSAGE_FACTORY_H
#include "platform/factory.h"
#include "platform/singleton.h"
#include <memory>
#include "message.h"
namespace network {
class MessageFactory : public platform::Factory<Message>, public platform::Singleton<MessageFact... |
MrPepperoni/Reaping2-1 | src/engine/ctf_soldier_spawn_system.h | <filename>src/engine/ctf_soldier_spawn_system.h
#ifndef INCLUDED_ENGINE_CTF_SOLDIER_SPAWN_SYSTEM_H
#define INCLUDED_ENGINE_CTF_SOLDIER_SPAWN_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "core/actor.h"
#include "core/program_state.h"
#include "core/actor_factory.h"
#include "core/ctf_program_sta... |
MrPepperoni/Reaping2-1 | src/core/collision_model.h | #ifndef INCLUDED_CORE_COLLISION_MODEL_H
#define INCLUDED_CORE_COLLISION_MODEL_H
#include "core/actor.h"
class CollisionModel
{
public:
struct Object
{
glm::vec2 position;
glm::vec2 speed;
double radius;
};
static Object ObjectFromActor( Actor const& actor );
virtual bool Are... |
MrPepperoni/Reaping2-1 | src/platform/detail/TextureImpl.h | #ifndef INCLUDED_PLATFORM_DETAIL_TEXTUREIMPL_H
#define INCLUDED_PLATFORM_DETAIL_TEXTUREIMPL_H
#include <vector>
#include <cstddef>
#include "stdint.h"
namespace platform {
namespace detail {
class TextureImpl
{
public:
TextureImpl();
size_t mWidth;
size_t mHeight;
static const size_t mChannels;
st... |
MrPepperoni/Reaping2-1 | src/render/mouse_renderer.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_RENDER_MOUSE_RENDERER_H
#define INCLUDED_RENDER_MOUSE_RENDERER_H
#include "platform/i_platform.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_e... |
MrPepperoni/Reaping2-1 | src/engine/item_properties_changed_event.h | #ifndef INCLUDED_ENGINE_ITEM_PROPERTIES_CHANGED_EVENT_H
#define INCLUDED_ENGINE_ITEM_PROPERTIES_CHANGED_EVENT_H
#include "platform/event.h"
#include "core/item.h"
namespace engine {
struct ItemPropertiesChangedEvent : public platform::Event
{
Item const& mItem;
ItemPropertiesChangedEvent( Item const& item )
... |
MrPepperoni/Reaping2-1 | src/ui/widget_factory.h | <filename>src/ui/widget_factory.h
#ifndef INCLUDED_UI_WIDGET_FACTORY_H
#define INCLUDED_UI_WIDGET_FACTORY_H
class WidgetFactory : protected Factory<Widget>, public Singleton<WidgetFactory>
{
friend class Singleton<WidgetFactory>;
WidgetFactory();
public:
std::auto_ptr<Widget> operator()( std::string const&... |
MrPepperoni/Reaping2-1 | src/core/i_renderable_component.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_I_RENDERABLE_COMPONENT_H
#define INCLUDED_CORE_I_RENDERABLE_COMPONENT_H
#include "core/component.h"
#include "core/renderable_layer.h"
#include "platform/export.h"
class IRenderableComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( IRenderableComponent )
virtual ... |
MrPepperoni/Reaping2-1 | src/render/sprite.h | <reponame>MrPepperoni/Reaping2-1<filename>src/render/sprite.h
#ifndef INCLUDED_RENDER_SPRITE_H
#define INCLUDED_RENDER_SPRITE_H
#include "platform/i_platform.h"
#include "sprite_phase.h"
#include "texture.h"
class SpriteCollection;
// class Texture;
class Sprite : public Repository<SpritePhase>
{
SpritePhase mDef... |
MrPepperoni/Reaping2-1 | src/platform/auto_id.h | #ifndef INCLUDED_CORE_AUTO_ID_H
#define INCLUDED_CORE_AUTO_ID_H
#include <string>
#include "rstdint.h"
namespace platform {
class AutoId
{
public:
AutoId( std::string const& Name );
int32_t GetId()const;
~AutoId();
operator int32_t()const;
protected:
const int32_t mId;
};
} // namespace platform... |
MrPepperoni/Reaping2-1 | src/platform/event.h | <filename>src/platform/event.h
#ifndef INCLUDED_PLATFORM_EVENT_H
#define INCLUDED_PLATFORM_EVENT_H
#include "singleton.h"
#include "register.h"
#include <boost/function.hpp>
#include <boost/static_assert.hpp>
namespace platform {
class Event
{
public:
virtual ~Event() = 0;
Event();
bool IsHandled() cons... |
MrPepperoni/Reaping2-1 | src/render/renderer.h | #ifndef INCLUDED_RENDER_RENDERER_H
#define INCLUDED_RENDER_RENDERER_H
#include "platform/i_platform.h"
#include "render/i_render.h"
#include "name_renderer.h"
#include "text_scene_renderer.h"
#include "player_camera.h"
#include "projection.h"
#include "actor_renderer.h"
#include "decal_engine.h"
#include "shader_manage... |
MrPepperoni/Reaping2-1 | src/network/ping_message.h | <filename>src/network/ping_message.h
#ifndef INCLUDED_NETWORK_PING_MESSAGE_H
#define INCLUDED_NETWORK_PING_MESSAGE_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 PingMessage: public Messag... |
MrPepperoni/Reaping2-1 | src/core/scripted_controller/condition_factory.h | <filename>src/core/scripted_controller/condition_factory.h
#ifndef INCLUDED_SCRIPTEDCONTROLLER_CONDITION_FACTORY_H
#define INCLUDED_SCRIPTEDCONTROLLER_CONDITION_FACTORY_H
#include "platform/factory.h"
#include "platform/singleton.h"
#include "i_condition.h"
namespace scriptedcontroller {
class ConditionFactory : pub... |
MrPepperoni/Reaping2-1 | src/core/i_cell_component.h | <reponame>MrPepperoni/Reaping2-1<filename>src/core/i_cell_component.h
#ifndef INCLUDED_CORE_I_CELL_COMPONENT_H
#define INCLUDED_CORE_I_CELL_COMPONENT_H
#include "component.h"
#include "map/level_generator/room_desc.h"
class ICellComponent : public Component
{
public:
DEFINE_COMPONENT_BASE(ICellComponent)
virt... |
MrPepperoni/Reaping2-1 | src/input/keyboard_adapter_system.h | <filename>src/input/keyboard_adapter_system.h
#ifndef INCLUDED_ENGINE_KEYBOARD_ADAPTER_SYSTEM_H
#define INCLUDED_ENGINE_KEYBOARD_ADAPTER_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "keyboard.h"
#include "core/program_state.h"
#include "input_system.h"
namespace engine {
class KeyboardAdapter... |
MrPepperoni/Reaping2-1 | src/render/world_renderer.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_WORLD_RENDERER_H
#define INCLUDED_WORLD_RENDERER_H
#include "platform/i_platform.h"
#include "vao_base.h"
#include "shader_manager.h"
#include <functional>
namespace render {
class WorldRenderer
{
void Init();
VaoBase mVAO;
size_t mTexIndex;
size_t mPo... |
MrPepperoni/Reaping2-1 | src/engine/sub_system.h | <reponame>MrPepperoni/Reaping2-1<filename>src/engine/sub_system.h
#ifndef INCLUDED_ENGINE_SUB_SYSTEM_H
#define INCLUDED_ENGINE_SUB_SYSTEM_H
#include "core/actor.h"
#define DEFINE_SUB_SYSTEM_BASE( SystemType ) \
static int32_t GetType_static() \
{ \
static int32_t const typ = platform::AutoId( #SystemType ... |
MrPepperoni/Reaping2-1 | src/core/grid.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_GRID_H
#define INCLUDED_CORE_GRID_H
#include "grid_template.h"
#include "collision_traits.h"
typedef GridTemplate<core::CollisionTraits> Grid;
#endif // INCLUDED_CORE_GRID_H
|
MrPepperoni/Reaping2-1 | src/platform/settings.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_SETTINGS_H
#define INCLUDED_CORE_SETTINGS_H
#include "platform/i_platform.h"
#include <vector>
class Settings : public platform::Singleton<Settings>
{
public:
std::string GetStr(std::string const& key, std::string const& Default="") const;
uint32_t GetUInt... |
MrPepperoni/Reaping2-1 | src/engine/system_suppressor.h | <filename>src/engine/system_suppressor.h
#ifndef INCLUDED_ENGINE_SYSTEM_SUPPRESSOR_H
#define INCLUDED_ENGINE_SYSTEM_SUPPRESSOR_H
#include <map>
#include <set>
#include "core/map_load_event.h"
#include "core/map_start_event.h"
#include "platform/i_platform.h"
namespace engine {
class SystemSuppressor : public platfor... |
MrPepperoni/Reaping2-1 | src/render/particle_template_repo.h | #pragma once
#ifndef INCLUDED_PARTICLE_TEMPLATE_REPO_H
#define INCLUDED_PARTICLE_TEMPLATE_REPO_H
#include "platform/i_platform.h"
#include "sprite.h"
#include <json/json.h>
namespace render {
struct ParticleTemplate
{
ParticleTemplate( Json::Value const& json );
Sprite const* Spr;
glm::vec4 Color;
glm... |
MrPepperoni/Reaping2-1 | src/core/armor_component.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_ARMOR_COMPONENT_H
#define INCLUDED_CORE_ARMOR_COMPONENT_H
#include "i_armor_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class ArmorComponent : public IArmorComponent
{
public:
ArmorComponent();
virtual void SetCurrentArmor( int32_t currentAr... |
MrPepperoni/Reaping2-1 | src/ui/fixed_ratio_container.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_UI_FIXED_RATIO_CONTAINER_H
#define INCLUDED_UI_FIXED_RATIO_CONTAINER_H
#include "main/window.h"
struct HorizontalAlignment
{
enum Type
{
Left,
Right,
Center,
};
};
struct VerticalAlignment
{
enum Type
{
Bottom,
... |
MrPepperoni/Reaping2-1 | src/core/item.h | #ifndef INCLUDED_CORE_ITEM_H
#define INCLUDED_CORE_ITEM_H
#include "core/item_factory.h"
#include "platform/log.h"
#include "core/actor.h"
#include "item_type.h"
#include <portable_oarchive.hpp>
#include <portable_iarchive.hpp>
#include <boost/serialization/serialization.hpp>
#include "item_loader.h"
#include "platfor... |
MrPepperoni/Reaping2-1 | src/engine/soldier_created_event.h | <gh_stars>1-10
#ifndef INCLUDED_ENGINE_SOLDIER_CREATED_EVENT_H
#define INCLUDED_ENGINE_SOLDIER_CREATED_EVENT_H
#include "platform/event.h"
#include "core/program_state.h"
#include "core/actor.h"
namespace engine {
struct SoldierCreatedEvent : public platform::Event
{
enum State
{
Raw,
Propert... |
MrPepperoni/Reaping2-1 | src/core/map/i_target.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_MAP_I_TARGET_H
#define INCLUDED_CORE_MAP_I_TARGET_H
#include "platform/i_platform.h"
#include "../actor.h"
#include "../border_type.h"
#include "../i_border_component.h"
namespace map {
class ITarget
{
public:
ITarget( int32_t Id );
virtual ~ITarget();
... |
MrPepperoni/Reaping2-1 | src/render/ctf_hat_recognizer.h | #ifndef INCLUDED_RENDER_CTF_HAT_RECOGNIZER_H
#define INCLUDED_RENDER_CTF_HAT_RECOGNIZER_H
#include "platform/i_platform.h"
#include "render/recognizer.h"
namespace render {
namespace ctf {
class CtfHatRecognizer : public Recognizer
{
public:
CtfHatRecognizer( int32_t Id );
virtual bool Recognize( Actor const... |
MrPepperoni/Reaping2-1 | src/core/remove_on_death_component.h | #ifndef INCLUDED_CORE_REMOVE_ON_DEATH_COMPONENT_H
#define INCLUDED_CORE_REMOVE_ON_DEATH_COMPONENT_H
#include "core/i_remove_on_death_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class RemoveOnDeathComponent : public IRemoveOnDeathComponent
{
double mRemainingTime;
public:
Remove... |
MrPepperoni/Reaping2-1 | src/audio/audio_buffer.h | #ifndef INCLUDED_AUDIO_AUDIO_BUFFER_H
#define INCLUDED_AUDIO_AUDIO_BUFFER_H
class AudioBuffer
{
typedef std::vector<float> Buffer_t;
typedef boost::ptr_vector<Buffer_t> Buffers_t;
Buffers_t mData;
const size_t mChannels;
public:
AudioBuffer( size_t NumChannels );
size_t GetChannels()const;
... |
MrPepperoni/Reaping2-1 | src/network/ffa_client_list_system.h | #ifndef INCLUDED_NETWORK_FFA_CLIENT_LIST_SYSTEM_H
#define INCLUDED_NETWORK_FFA_CLIENT_LIST_SYSTEM_H
#include "engine/system.h"
#include "platform/model_value.h"
#include "platform/register.h"
#include "client_list_changed_event.h"
namespace network {
using platform::ModelValue;
using platform::AutoReg;
class FfaClie... |
MrPepperoni/Reaping2-1 | src/engine/collisions/collision_sub_system.h | #ifndef INCLUDED_ENGINE_COLLISIONS_COLLISION_SUB_SYSTEM_H
#define INCLUDED_ENGINE_COLLISIONS_COLLISION_SUB_SYSTEM_H
#include "core/scene.h"
#include "engine/sub_system.h"
namespace engine {
class CollisionSubSystem : public SubSystem
{
public:
CollisionSubSystem();
virtual void ClipScene( Actor& actor );
... |
MrPepperoni/Reaping2-1 | src/engine/soldier_properties_system.h | #ifndef INCLUDED_ENGINE_SOLDIER_PROPERTIES_SYSTEM_H
#define INCLUDED_ENGINE_SOLDIER_PROPERTIES_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "core/program_state.h"
#include "core/actor_event.h"
#include "soldier_created_event.h"
namespace engine {
class SoldierPropertiesSystem : public System
... |
MrPepperoni/Reaping2-1 | src/platform/rstdint.h | <filename>src/platform/rstdint.h
#include <stdlib.h>
#include <boost/cstdint.hpp>
typedef boost::uint32_t uint32_t;
typedef boost::int32_t int32_t;
typedef boost::uint8_t uint8_t;
typedef boost::uint16_t uint16_t;
typedef boost::int16_t int16_t;
|
MrPepperoni/Reaping2-1 | src/core/i_team_component.h | #ifndef INCLUDED_CORE_I_TEAM_COMPONENT_H
#define INCLUDED_CORE_I_TEAM_COMPONENT_H
#include "component.h"
#include "ctf_program_state.h"
#include "platform/export.h"
class ITeamComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( ITeamComponent )
virtual void SetTeam( Team::Type team ) = 0;
virtua... |
MrPepperoni/Reaping2-1 | src/core/i_notify_parent_on_death_component.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_I_NOTIFY_PARENT_ON_DEATH_COMPONENT_H
#define INCLUDED_CORE_I_NOTIFY_PARENT_ON_DEATH_COMPONENT_H
#include "component.h"
#include "platform/export.h"
class INotifyParentOnDeathComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( INotifyParentOnDeathCom... |
MrPepperoni/Reaping2-1 | src/network/collision_message.h | #ifndef INCLUDED_NETWORK_COLLISION_H
#define INCLUDED_NETWORK_COLLISION_H
#include "network/message.h"
#include "network/message_handler_sub_system.h"
#include "network/message_sender_system.h"
#include "core/collision_class.h"
#include "platform/export.h"
namespace network {
class CollisionMessage : public Message
... |
MrPepperoni/Reaping2-1 | src/ui/i_ui.h | <gh_stars>1-10
#include "platform/i_platform.h"
#include "input/i_input.h"
#include "widget.h"
#include "text_widget.h"
#include "root.h"
#include "fixed_ratio_container.h"
#include "button.h"
#include "bar.h"
#include "image.h"
#include "grid.h"
#include "widget_factory.h"
#include "ui.h"
|
MrPepperoni/Reaping2-1 | src/core/buffs/armor_buff.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_ARMOR_BUFF_H
#define INCLUDED_CORE_ARMOR_BUFF_H
#include "buff.h"
class ArmorBuff : public Buff
{
public:
DEFINE_BUFF_BASE( ArmorBuff )
ArmorBuff();
virtual void SetApplied( bool applied );
virtual bool IsApplied()const;
virtual void SetArmorM... |
MrPepperoni/Reaping2-1 | src/core/activity_component.h | #ifndef INCLUDED_CORE_ACTIVITY_COMPONENT_H
#define INCLUDED_CORE_ACTIVITY_COMPONENT_H
#include "i_activity_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class ActivityComponent : public IActivityComponent
{
public:
ActivityComponent();
virtual void SetRadius( double radius );
... |
MrPepperoni/Reaping2-1 | src/render/idle_recognizer.h | #ifndef INCLUDED_RENDER_IDLE_RECOGNIZER_H
#define INCLUDED_RENDER_IDLE_RECOGNIZER_H
#include "platform/i_platform.h"
#include "render/recognizer.h"
namespace render {
class IdleRecognizer: public Recognizer
{
public:
IdleRecognizer( int32_t Id );
virtual bool Recognize( Actor const& ) const;
};
} // namespace... |
MrPepperoni/Reaping2-1 | src/core/opt.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_OPT_H
#define INCLUDED_CORE_OPT_H
#include <cstdio>
#include <boost/serialization/serialization.hpp>
#include "platform/export.h"
template<typename T>
class Opt
{
public:
Opt( T* Ptr = NULL );
template<typename U>
Opt( const Opt<U>& Other )
{
... |
MrPepperoni/Reaping2-1 | src/core/i_heat_source_component.h | #ifndef INCLUDED_CORE_I_HEAT_SOURCE_COMPONENT_H
#define INCLUDED_CORE_I_HEAT_SOURCE_COMPONENT_H
#include "component.h"
#include "platform/export.h"
class IHeatSourceComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( IHeatSourceComponent )
public:
friend class ::boost::serialization::access;
tem... |
MrPepperoni/Reaping2-1 | src/engine/items/normal_item_sub_system.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_ENGINE_ITEMS_NORMAL_ITEM_SUB_SYSTEM_H
#define INCLUDED_ENGINE_ITEMS_NORMAL_ITEM_SUB_SYSTEM_H
#include "core/scene.h"
#include "engine/sub_system.h"
#include "core/opt.h"
#include "engine/sub_system_holder.h"
namespace engine {
class NormalItemSubSystem : public SubSy... |
MrPepperoni/Reaping2-1 | src/core/i_target_holder_component.h | #ifndef INCLUDED_CORE_I_TARGET_HOLDER_COMPONENT_H
#define INCLUDED_CORE_I_TARGET_HOLDER_COMPONENT_H
#include "component.h"
#include "platform/export.h"
class ITargetHolderComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( ITargetHolderComponent )
virtual void SetTargetGUID( int32_t targetId ) = 0;
... |
MrPepperoni/Reaping2-1 | src/core/perf_timer.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_PERF_TIMER_H
#define INCLUDED_CORE_PERF_TIMER_H
#include <boost/timer.hpp>
#include "platform/i_platform.h"
namespace perf {
class Timer_t
{
boost::timer mMeasurer;
double mPrevMeasurement;
public:
void Log( std::string const& ... |
MrPepperoni/Reaping2-1 | src/core/map/editor_grid_system.h | <filename>src/core/map/editor_grid_system.h
#ifndef INCLUDED_MAP_EDITOR_GRID_SYSTEM_H
#define INCLUDED_MAP_EDITOR_GRID_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "boost/ptr_container/ptr_vector.hpp"
#include "grid_repo.h"
#include "input/mouse.h"
namespace map {
class EditorGridSystem : pub... |
MrPepperoni/Reaping2-1 | src/core/explosion_component.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_EXPLOSION_COMPONENT_H
#define INCLUDED_CORE_EXPLOSION_COMPONENT_H
#include "i_explosion_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class ExplosionComponent : public IExplosionComponent
{
public:
virtual void SetStartRadius( double startRadius )... |
MrPepperoni/Reaping2-1 | src/core/collision_store.h | #ifndef INCLUDED_CORE_COLLISION_STORE_H
#define INCLUDED_CORE_COLLISION_STORE_H
#include "platform/factory.h"
#include "platform/singleton.h"
#include "core/collision_model.h"
#include "i_collision_component.h"
class CollisionStore : public platform::Singleton<CollisionStore>
{
typedef boost::shared_ptr<Collision... |
MrPepperoni/Reaping2-1 | src/core/i_worm_head_component.h | #ifndef INCLUDED_CORE_I_WORM_HEAD_COMPONENT_H
#define INCLUDED_CORE_I_WORM_HEAD_COMPONENT_H
#include "component.h"
#include <vector>
#include "platform/i_platform.h"
#include "platform/serialize_vec4.h"
class IWormHeadComponent : public Component
{
public:
DEFINE_COMPONENT_BASE(IWormHeadComponent)
struct Prev... |
MrPepperoni/Reaping2-1 | src/core/map/editor_select_system.h | #ifndef INCLUDED_MAP_EDITOR_SELECT_SYSTEM_H
#define INCLUDED_MAP_EDITOR_SELECT_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 "group_selected_event.h"
namespace m... |
MrPepperoni/Reaping2-1 | src/core/emitter_component.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_EMITTER_COMPONENT_H
#define INCLUDED_CORE_EMITTER_COMPONENT_H
#include "i_emitter_component.h"
#include "core/property_loader.h"
#include <boost/serialization/vector.hpp>
#include "platform/export.h"
class EmitterComponent : public IEmitterComponent
{
public:
... |
MrPepperoni/Reaping2-1 | src/core/flag_receiver_component.h | #ifndef INCLUDED_CTF_FLAG_RECEIVER_COMPONENT_H
#define INCLUDED_CTF_FLAG_RECEIVER_COMPONENT_H
#include "i_flag_receiver_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
namespace ctf {
class FlagReceiverComponent : public IFlagReceiverComponent
{
public:
FlagReceiverComponent();
protec... |
MrPepperoni/Reaping2-1 | src/core/i_activity_component.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_I_ACTIVITY_COMPONENT_H
#define INCLUDED_CORE_I_ACTIVITY_COMPONENT_H
#include "component.h"
class IActivityComponent : public Component
{
public:
DEFINE_COMPONENT_BASE(IActivityComponent)
virtual void SetRadius(double radius)=0;
virtual double GetRadius()const=0;
public... |
MrPepperoni/Reaping2-1 | src/platform/glm_fix.h | <reponame>MrPepperoni/Reaping2-1<gh_stars>1-10
#ifndef INCLUDED_PLATFORM_GLM_FIX_H
#define INCLUDED_PLATFORM_GLM_FIX_H
#if defined(_MSC_VER) && _MSC_VER <= 1400
// vs2005 sux.
#include <emmintrin.h>
#include <xmmintrin.h>
#define _mm_castsi128_ps(v) (*( reinterpret_cast<__m128*>((void*)&v) ) )
#define _mm_castps_si12... |
MrPepperoni/Reaping2-1 | src/core/scripted_controller/do_nothing_act.h | #ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_DO_NOTHING_ACT_H
#define INCLUDED_CORE_SCRIPTED_CONTROLLER_DO_NOTHING_ACT_H
#include "i_act.h"
namespace scriptedcontroller
{
class DoNothingAct : public IAct
{
public:
DEFINE_ACT_BASE( DoNothingAct );
virtual void Update( Actor& actor, double Seconds );
virtual ... |
MrPepperoni/Reaping2-1 | src/engine/controllers/player_controller_sub_system.h | <filename>src/engine/controllers/player_controller_sub_system.h
#ifndef INCLUDED_ENGINE_CONTROLLERS_PLAYER_CONTROLLER_SUB_SYSTEM_H
#define INCLUDED_ENGINE_CONTROLLERS_PLAYER_CONTROLLER_SUB_SYSTEM_H
#include "core/scene.h"
#include "engine/sub_system.h"
#include "input/i_input.h"
#include "core/opt.h"
#include "core/pl... |
MrPepperoni/Reaping2-1 | src/core/shot_event.h | <filename>src/core/shot_event.h<gh_stars>1-10
#ifndef INCLUDED_CORE_SHOT_EVENT_H
#define INCLUDED_CORE_SHOT_EVENT_H
#include "platform/event.h"
#include "platform/i_platform.h"
namespace core {
struct ShotEvent : public platform::Event
{
int32_t mActorGUID;
glm::vec2 mPosition;
bool mIsAlt;
ShotEvent... |
MrPepperoni/Reaping2-1 | src/core/i_drop_on_death_component.h | #ifndef INCLUDED_CORE_I_DROP_ON_DEATH_COMPONENT_H
#define INCLUDED_CORE_I_DROP_ON_DEATH_COMPONENT_H
#include "component.h"
#include "platform/export.h"
class IDropOnDeathComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( IDropOnDeathComponent )
virtual void Update( double Seconds ) = 0;
virtual ... |
MrPepperoni/Reaping2-1 | src/core/map/level_generator/room_repo.h | #ifndef INCLUDED_MAP_ROOM_REPO_H
#define INCLUDED_MAP_ROOM_REPO_H
#include "platform/repository.h"
#include "platform/singleton.h"
#include "i_room.h"
namespace map {
class DefaultRoom : public IRoom
{
public:
DefaultRoom();
virtual void Generate( RoomDesc& roomDesc, glm::vec2 pos, bool editor = false );
};
... |
MrPepperoni/Reaping2-1 | src/engine/items/blue_grenade_normal_item_sub_system.h | <filename>src/engine/items/blue_grenade_normal_item_sub_system.h
#ifndef INCLUDED_ENGINE_BLUE_GRENADE_NORMAL_ITEM_SUB_SYSTEM_H
#define INCLUDED_ENGINE_BLUE_GRENADE_NORMAL_ITEM_SUB_SYSTEM_H
#include "engine/items/common_sub_system_includes.h"
#include "normal_item_sub_system.h"
namespace engine {
class BlueGrenadeNor... |
MrPepperoni/Reaping2-1 | src/engine/score_event.h | <reponame>MrPepperoni/Reaping2-1<gh_stars>1-10
#ifndef INCLUDED_ENGINE_SCORE_EVENT_H
#define INCLUDED_ENGINE_SCORE_EVENT_H
#include "platform/event.h"
namespace engine {
struct ScoreEvent : public platform::Event
{
int32_t mActorGUID;
ScoreEvent( int32_t actorGUID )
: mActorGUID( actorGUID ) {}
};
}... |
MrPepperoni/Reaping2-1 | src/core/scripted_controller/is_hit_condition.h | #ifndef INCLUDED_CORE_SCRIPTED_CONTROLLER_IS_HIT_CONDITION_H
#define INCLUDED_CORE_SCRIPTED_CONTROLLER_IS_HIT_CONDITION_H
#include "i_condition.h"
namespace scriptedcontroller
{
class IsHitCondition : public ICondition
{
public:
DEFINE_CONDITION_BASE( IsHitCondition )
virtual void Update( Actor& actor, doubl... |
MrPepperoni/Reaping2-1 | src/core/actor.h | #ifndef INCLUDED_CORE_ACTOR_H
#define INCLUDED_CORE_ACTOR_H
#include "platform/i_platform.h"
#include "core/component.h"
#include "platform/export.h"
using namespace ::boost::multi_index;
class ComponentHolder;
class Actor : public ComponentHolder
{
public:
protected:
int32_t mGUID;
int32_t mId;
Actor();... |
MrPepperoni/Reaping2-1 | src/engine/system_factory.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_ENGINE_SYSTEM_FACTORY_H
#define INCLUDED_ENGINE_SYSTEM_FACTORY_H
#include "platform/factory.h"
#include "platform/singleton.h"
#include "platform/id_storage.h"
#include <memory>
#include "engine/system.h"
namespace engine {
class SystemFactory : public platform::Facto... |
MrPepperoni/Reaping2-1 | src/core/move_component.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_CORE_MOVE_COMPONENT_H
#define INCLUDED_CORE_MOVE_COMPONENT_H
#include "i_move_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
class MoveComponent : public IMoveComponent
{
public:
virtual double const& GetHeading() const;
virtual do... |
MrPepperoni/Reaping2-1 | src/core/map/border_brush.h | <filename>src/core/map/border_brush.h
#ifndef INCLUDED_CORE_MAP_BORDER_BRUSH_H
#define INCLUDED_CORE_MAP_BORDER_BRUSH_H
#include "i_brush.h"
#include "neighbors.h"
namespace map {
class BorderBrush: public IBrush
{
public:
BorderBrush( int32_t Id );
virtual void Update( double DeltaTime );
void UpdateBor... |
MrPepperoni/Reaping2-1 | src/core/flag_collision_component.h | #ifndef INCLUDED_CORE_FLAG_COLLISION_COMPONENT_H
#define INCLUDED_CORE_FLAG_COLLISION_COMPONENT_H
#include "collision_component.h"
#include "core/property_loader.h"
#include "platform/export.h"
namespace ctf {
class FlagCollisionComponent : public CollisionComponent
{
public:
FlagCollisionComponent();
protected:... |
MrPepperoni/Reaping2-1 | src/engine/client_score_event.h | #ifndef INCLUDED_ENGINE_CLIENT_SCORE_EVENT_H
#define INCLUDED_ENGINE_CLIENT_SCORE_EVENT_H
#include "platform/event.h"
namespace engine {
struct ClientScoreEvent : public platform::Event
{
int32_t mClientID;
int32_t mScore;
ClientScoreEvent( int32_t clientID, int32_t score )
: mClientID( clientID ... |
MrPepperoni/Reaping2-1 | src/platform/backtrace.h | <reponame>MrPepperoni/Reaping2-1
#pragma once
#ifndef INCLUDED_BACKTRACE_H
#define INCLUDED_BACKTRACE_H
#include "static_init.h"
#include <iosfwd>
namespace platform {
std::ostream& backtrace( std::ostream& stream );
}
FORCE_STATIC_INIT( backtrace )
#endif // INCLUDED_BACKTRACE_H
|
MrPepperoni/Reaping2-1 | src/network/create_actor_message.h | <reponame>MrPepperoni/Reaping2-1
#ifndef INCLUDED_NETWORK_CREATE_ACTOR_MESSAGE_H
#define INCLUDED_NETWORK_CREATE_ACTOR_MESSAGE_H
#include "network/message.h"
#include "core/actor_event.h"
#include "platform/export.h"
namespace network {
class CreateActorMessage: public Message
{
friend class ::boost::serializatio... |
MrPepperoni/Reaping2-1 | src/engine/worm_head_system.h | #ifndef INCLUDED_ENGINE_WORM_HEAD_SYSTEM_H
#define INCLUDED_ENGINE_WORM_HEAD_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "core/actor_factory.h"
class Actor;
class IWormHeadComponent;
class IPositionComponent;
namespace engine {
class WormHeadSystem : public System
{
public:
DEFINE_SYSTEM... |
MrPepperoni/Reaping2-1 | src/core/map/respawn_actor_map_element_system.h | <gh_stars>1-10
#ifndef INCLUDED_MAP_RESPAWN_ACTOR_MAP_ELEMENT_SYSTEM_H
#define INCLUDED_MAP_RESPAWN_ACTOR_MAP_ELEMENT_SYSTEM_H
#include "core/map/map_element_system.h"
#include "core/actor_factory.h"
#include "respawn_actor_map_element.h"
namespace map {
class RespawnActorMapElementSystem : public MapElementSystem
{... |
MrPepperoni/Reaping2-1 | src/engine/leaderboard_system.h | <filename>src/engine/leaderboard_system.h
#ifndef INCLUDED_ENGINE_LEADERBOARD_SYSTEM_H
#define INCLUDED_ENGINE_LEADERBOARD_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "core/map_start_event.h"
#include "client_datas_changed_event.h"
#include "core/ctf_program_state.h"
#include "core/program_sta... |
MrPepperoni/Reaping2-1 | src/core/i_stop_on_death_component.h | <gh_stars>1-10
#ifndef INCLUDED_CORE_I_STOP_ON_DEATH_COMPONENT_H
#define INCLUDED_CORE_I_STOP_ON_DEATH_COMPONENT_H
#include "component.h"
#include "platform/export.h"
class IStopOnDeathComponent : public Component
{
public:
DEFINE_COMPONENT_BASE( IStopOnDeathComponent )
virtual void SetStopped( bool stopped )... |
MrPepperoni/Reaping2-1 | src/platform/filesystem.h | #ifndef INCLUDED_PLATFORM_FILESYSTEM_H
#define INCLUDED_PLATFORM_FILESYSTEM_H
#include "singleton.h"
#include <memory>
#include <boost/filesystem/path.hpp>
#include <vector>
namespace platform {
class File;
class IPackage;
namespace detail {
class FilesysImpl;
} // namespace detail
class Filesys : public Singleton<... |
MrPepperoni/Reaping2-1 | src/render/head_recognizer.h | <gh_stars>1-10
#ifndef INCLUDED_RENDER_HEAD_RECOGNIZER_H
#define INCLUDED_RENDER_HEAD_RECOGNIZER_H
#include "platform/i_platform.h"
#include "render/recognizer.h"
namespace render {
class HeadRecognizer : public Recognizer
{
public:
HeadRecognizer( int32_t Id );
virtual bool Recognize( Actor const& ) const;
... |
MrPepperoni/Reaping2-1 | src/render/shader_repo.h | <filename>src/render/shader_repo.h
#ifndef INCLUDED_RENDER_SHADER_REPO_H
#define INCLUDED_RENDER_SHADER_REPO_H
#include "platform/i_platform.h"
#include "shader.h"
class Shader;
class ShaderRepo : public Repository<Shader>, public Singleton<ShaderRepo>
{
Shader mDefaultShader;
friend class Singleton<ShaderRepo... |
MrPepperoni/Reaping2-1 | src/engine/sub_system_holder.h | #ifndef INCLUDED_ENGINE_SUB_SYSTEM_HOLDER_H
#define INCLUDED_ENGINE_SUB_SYSTEM_HOLDER_H
#include "engine/sub_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 "engine/sub_system_factory.h"
u... |
MrPepperoni/Reaping2-1 | src/render/renderable_sprite.h | #ifndef INCLUDED_RENDER_RENDERABLE_SPRITE_H
#define INCLUDED_RENDER_RENDERABLE_SPRITE_H
#include "platform/i_platform.h"
#include "core/actor.h"
#include "sprite.h"
#include "sprite_phase.h"
#include "core/i_renderable_component.h"
#include "core/i_position_component.h"
#include "core/i_collision_component.h"
namespac... |
MrPepperoni/Reaping2-1 | src/engine/target_holder_system.h | #ifndef INCLUDED_ENGINE_TARGET_HOLDER_SYSTEM_H
#define INCLUDED_ENGINE_TARGET_HOLDER_SYSTEM_H
#include "core/scene.h"
#include "engine/system.h"
#include "core/actor_event.h"
#include "removed_actors_system.h"
namespace engine {
class TargetHolderSystem : public System
{
public:
DEFINE_SYSTEM_BASE( TargetHolderS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.