Skip to content

Commit

Permalink
Rename ISE_Shape -> IServerEntityShape.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 8, 2015
1 parent eb9ac7a commit c34b27f
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ bool ESceneObjectTool::ExportClimableObjects(SExportStreams* F)
{
AnsiString entity_ref = "climable_object";
IServerEntity* m_Data = create_entity(entity_ref.c_str()); VERIFY(m_Data);
ISE_Shape* m_Shape = m_Data->shape(); VERIFY(m_Shape);
IServerEntityShape* m_Shape = m_Data->shape(); VERIFY(m_Shape);
// CSE_Visual* m_Visual = m_Data->visual(); VERIFY(m_Visual);
// set params
m_Data->set_name (entity_ref.c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/editors/LevelEditor/Edit/SpawnPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ bool CSpawnPoint::SSpawnData::ExportGame(SExportStreams* F, CSpawnPoint* owner)
m_Data->angle().set (owner->PRotation);

// export cform (if needed)
ISE_Shape* cform = m_Data->shape();
IServerEntityShape* cform = m_Data->shape();
// SHAPE
if (cform&&!(owner->m_AttachedObject&&(owner->m_AttachedObject->ClassID==OBJCLASS_SHAPE))){
ELog.DlgMsg (mtError,"Spawn Point: '%s' must contain attached shape.",owner->Name);
Expand Down
4 changes: 2 additions & 2 deletions src/xrServerEntities/smart_cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@
# undef cast_type_list
# define cast_type_list save_cast_list (CSE_Motion, CSE_Abstract)

DECLARE_SPECIALIZATION (ISE_Shape, CSE_Abstract, shape);
DECLARE_SPECIALIZATION (IServerEntityShape, CSE_Abstract, shape);
# undef cast_type_list
# define cast_type_list save_cast_list (ISE_Shape, CSE_Abstract)
# define cast_type_list save_cast_list (IServerEntityShape, CSE_Abstract)

DECLARE_SPECIALIZATION (CSE_Abstract, CSE_PHSkeleton, cast_abstract);
# undef cast_type_list
Expand Down
2 changes: 1 addition & 1 deletion src/xrServerEntities/xrServer_Object_Base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ CSE_Visual* CSE_Abstract::visual ()
return (0);
}

ISE_Shape* CSE_Abstract::shape ()
IServerEntityShape* CSE_Abstract::shape ()
{
return (0);
}
Expand Down
2 changes: 1 addition & 1 deletion src/xrServerEntities/xrServer_Object_Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class CSE_Abstract :
virtual Fvector& __stdcall angle ();
virtual Flags16& __stdcall flags ();
virtual CSE_Visual* __stdcall visual ();
virtual ISE_Shape* __stdcall shape ();
virtual IServerEntityShape* __stdcall shape ();
virtual CSE_Motion* __stdcall motion ();
virtual bool __stdcall validate ();
//
Expand Down
6 changes: 3 additions & 3 deletions src/xrServerEntities/xrServer_Objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@
#define SPAWN_VERSION u16(128)

class CSE_Shape :
public ISE_Shape,
public IServerEntityShape,
public CShapeData
{
using inherited1 = ISE_Shape;
using inherited1 = IServerEntityShape;
using inherited2 = CShapeData;
public:
void cform_read (NET_Packet& P);
void cform_write (NET_Packet& P);
CSE_Shape ();
virtual ~CSE_Shape ();
virtual ISE_Shape* __stdcall shape () = 0;
virtual IServerEntityShape* __stdcall shape () = 0;
virtual void __stdcall assign_shapes (CShapeData::shape_def* shapes, u32 cnt);
};

Expand Down
4 changes: 2 additions & 2 deletions src/xrServerEntities/xrServer_Objects_ALife.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ bool CSE_ALifeSpaceRestrictor::used_ai_locations () const
return (false);
}

ISE_Shape* CSE_ALifeSpaceRestrictor::shape ()
IServerEntityShape* CSE_ALifeSpaceRestrictor::shape ()
{
return (this);
}
Expand Down Expand Up @@ -1960,7 +1960,7 @@ CSE_ALifeObjectClimable::~CSE_ALifeObjectClimable ()
{
}

ISE_Shape* CSE_ALifeObjectClimable::shape ()
IServerEntityShape* CSE_ALifeObjectClimable::shape ()
{
return (this);
}
Expand Down
4 changes: 2 additions & 2 deletions src/xrServerEntities/xrServer_Objects_ALife.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class CSE_ALifeSpaceRestrictor :

CSE_ALifeSpaceRestrictor (LPCSTR caSection);
virtual ~CSE_ALifeSpaceRestrictor ();
virtual ISE_Shape* __stdcall shape ();
virtual IServerEntityShape* __stdcall shape ();
virtual bool can_switch_offline () const;
virtual bool used_ai_locations () const;
virtual void UPDATE_Read(NET_Packet& P);
Expand Down Expand Up @@ -701,7 +701,7 @@ shared_str material;
virtual ~CSE_ALifeObjectClimable ();
virtual bool used_ai_locations () const;
virtual bool can_switch_offline () const;
virtual ISE_Shape* __stdcall shape ();
virtual IServerEntityShape* __stdcall shape ();

#ifndef XRGAME_EXPORTS
virtual void __stdcall set_additional_info (void* info);
Expand Down
8 changes: 4 additions & 4 deletions src/xrServerEntities/xrServer_Objects_Abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ class CDUInterface;
#pragma warning(push)
#pragma warning(disable:4005)

class ISE_Shape
class IServerEntityShape
{
public:
virtual ~ISE_Shape() = 0;
virtual ~IServerEntityShape() = 0;
virtual void __stdcall assign_shapes (CShapeData::shape_def* shapes, u32 cnt)=0;
};

IC ISE_Shape::~ISE_Shape() {}
IC IServerEntityShape::~IServerEntityShape() {}

class CSE_Visual
{
Expand Down Expand Up @@ -140,7 +140,7 @@ class IServerEntity {
virtual Fvector& __stdcall position () = 0;
virtual Fvector& __stdcall angle () = 0;
virtual Flags16& __stdcall flags () = 0;
virtual ISE_Shape* __stdcall shape () = 0;
virtual IServerEntityShape* __stdcall shape () = 0;
virtual CSE_Visual* __stdcall visual () = 0;
virtual CSE_Motion* __stdcall motion () = 0;
virtual bool __stdcall validate () = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ CSE_SmartCover::~CSE_SmartCover ()
#endif // XRSE_FACTORY_EXPORTS
}

ISE_Shape* CSE_SmartCover::shape()
IServerEntityShape* CSE_SmartCover::shape()
{
return (this);
}
Expand Down
2 changes: 1 addition & 1 deletion src/xrServerEntities/xrServer_Objects_Alife_Smartcovers.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CSE_SmartCover :
public:
CSE_SmartCover (LPCSTR caSection);
virtual ~CSE_SmartCover ();
virtual ISE_Shape* __stdcall shape ();
virtual IServerEntityShape* __stdcall shape ();
virtual bool used_ai_locations () const;
virtual bool can_save () const;
virtual bool can_switch_online () const;
Expand Down

0 comments on commit c34b27f

Please sign in to comment.