DDraceNetwork Documentation
Loading...
Searching...
No Matches
CEditorMap Class Reference

#include <map.h>

Collaboration diagram for CEditorMap:
[legend]

Classes

class  CMapInfo
class  CQuadKnife

Public Member Functions

 CEditorMap (CEditor *pEditor)
const CEditorEditor () const
CEditorEditor ()
void OnModify ()
void ResetModifiedState ()
void Clean ()
void CreateDefault ()
void CheckIntegrity ()
void ModifyImageIndex (const FIndexModifyFunction &IndexModifyFunction)
void ModifyEnvelopeIndex (const FIndexModifyFunction &IndexModifyFunction)
void ModifySoundIndex (const FIndexModifyFunction &IndexModifyFunction)
bool Save (const char *pFilename, const FErrorHandler &ErrorHandler)
bool PerformPreSaveSanityChecks (const FErrorHandler &ErrorHandler)
bool Load (const char *pFilename, int StorageType, const FErrorHandler &ErrorHandler)
bool Append (const char *pFilename, int StorageType, bool IgnoreHistory, const FErrorHandler &ErrorHandler)
void PerformSanityChecks (const FErrorHandler &ErrorHandler)
bool PerformAutosave (const FErrorHandler &ErrorHandler)
std::shared_ptr< CLayerGroupSelectedGroup () const
std::shared_ptr< CLayerGroupNewGroup ()
int MoveGroup (int IndexFrom, int IndexTo)
void DeleteGroup (int Index)
void MakeGameGroup (std::shared_ptr< CLayerGroup > pGroup)
std::shared_ptr< CLayerSelectedLayer (int Index) const
std::shared_ptr< CLayerSelectedLayerType (int Index, int Type) const
void SelectLayer (int LayerIndex, int GroupIndex=-1)
void AddSelectedLayer (int LayerIndex)
void SelectNextLayer ()
void SelectPreviousLayer ()
void SelectGameLayer ()
void MakeGameLayer (const std::shared_ptr< CLayer > &pLayer)
void MakeTeleLayer (const std::shared_ptr< CLayer > &pLayer)
void MakeSpeedupLayer (const std::shared_ptr< CLayer > &pLayer)
void MakeFrontLayer (const std::shared_ptr< CLayer > &pLayer)
void MakeSwitchLayer (const std::shared_ptr< CLayer > &pLayer)
void MakeTuneLayer (const std::shared_ptr< CLayer > &pLayer)
std::vector< CQuad * > SelectedQuads ()
bool IsQuadSelected (int Index) const
int FindSelectedQuadIndex (int Index) const
void SelectQuad (int Index)
void ToggleSelectQuad (int Index)
void DeselectQuads ()
bool IsQuadCornerSelected (int Index) const
bool IsQuadPointSelected (int QuadIndex, int Index) const
void SelectQuadPoint (int QuadIndex, int Index)
void ToggleSelectQuadPoint (int QuadIndex, int Index)
void DeselectQuadPoints ()
void DeleteSelectedQuads ()
std::shared_ptr< CEnvelopeNewEnvelope (CEnvelope::EType Type)
void InsertEnvelope (int Index, std::shared_ptr< CEnvelope > &pEnvelope)
void UpdateEnvelopeReferences (int Index, std::shared_ptr< CEnvelope > &pEnvelope, std::vector< std::shared_ptr< IEditorEnvelopeReference > > &vpEditorObjectReferences)
std::vector< std::shared_ptr< IEditorEnvelopeReference > > DeleteEnvelope (int Index)
int MoveEnvelope (int IndexFrom, int IndexTo)
template<typename F>
std::vector< std::shared_ptr< IEditorEnvelopeReference > > VisitEnvelopeReferences (F &&Visitor)
bool IsEnvelopeUsed (int EnvelopeIndex) const
void RemoveUnusedEnvelopes ()
int FindEnvPointIndex (int Index, int Channel) const
void SelectEnvPoint (int Index)
void SelectEnvPoint (int Index, int Channel)
void ToggleEnvPoint (int Index, int Channel)
bool IsEnvPointSelected (int Index, int Channel) const
bool IsEnvPointSelected (int Index) const
void DeselectEnvPoints ()
bool IsTangentSelected () const
bool IsTangentOutPointSelected (int Index, int Channel) const
bool IsTangentOutSelected () const
void SelectTangentOutPoint (int Index, int Channel)
bool IsTangentInPointSelected (int Index, int Channel) const
bool IsTangentInSelected () const
void SelectTangentInPoint (int Index, int Channel)
std::pair< CFixedTime, int > SelectedEnvelopeTimeAndValue () const
std::shared_ptr< CEditorImageSelectedImage () const
void SelectImage (const std::shared_ptr< CEditorImage > &pImage)
void SelectNextImage ()
void SelectPreviousImage ()
bool IsImageUsed (int ImageIndex) const
std::vector< int > SortImages ()
std::shared_ptr< CEditorSoundSelectedSound () const
void SelectSound (const std::shared_ptr< CEditorSound > &pSound)
void SelectNextSound ()
void SelectPreviousSound ()
bool IsSoundUsed (int SoundIndex) const
CSoundSourceSelectedSoundSource () const
void PlaceBorderTiles ()

Public Attributes

char m_aFilename [IO_MAX_PATH_LENGTH]
bool m_ValidSaveFilename
bool m_Modified
bool m_ModifiedAuto
float m_LastModifiedTime
float m_LastSaveTime
std::vector< std::shared_ptr< CLayerGroup > > m_vpGroups
std::vector< std::shared_ptr< CEditorImage > > m_vpImages
std::vector< std::shared_ptr< CEnvelope > > m_vpEnvelopes
std::vector< std::shared_ptr< CEditorSound > > m_vpSounds
std::vector< CEditorMapSettingm_vSettings
std::shared_ptr< CLayerGroupm_pGameGroup
std::shared_ptr< CLayerGamem_pGameLayer
std::shared_ptr< CLayerTelem_pTeleLayer
std::shared_ptr< CLayerSpeedupm_pSpeedupLayer
std::shared_ptr< CLayerFrontm_pFrontLayer
std::shared_ptr< CLayerSwitchm_pSwitchLayer
std::shared_ptr< CLayerTunem_pTuneLayer
CMapInfo m_MapInfo
CMapInfo m_MapInfoTmp
CEditorHistory m_EditorHistory
CEditorHistory m_ServerSettingsHistory
CEditorHistory m_EnvelopeEditorHistory
CQuadEditTracker m_QuadTracker
CEnvelopeEditorOperationTracker m_EnvOpTracker
CLayerGroupPropTracker m_LayerGroupPropTracker
CLayerPropTracker m_LayerPropTracker
CLayerTilesCommonPropTracker m_LayerTilesCommonPropTracker
CLayerTilesPropTracker m_LayerTilesPropTracker
CLayerQuadsPropTracker m_LayerQuadPropTracker
CLayerSoundsPropTracker m_LayerSoundsPropTracker
CSoundSourceOperationTracker m_SoundSourceOperationTracker
CSoundSourcePropTracker m_SoundSourcePropTracker
CSoundSourceRectShapePropTracker m_SoundSourceRectShapePropTracker
CSoundSourceCircleShapePropTracker m_SoundSourceCircleShapePropTracker
int m_SelectedGroup
std::vector< int > m_vSelectedLayers
std::vector< int > m_vSelectedQuads
int m_SelectedQuadPoints
int m_SelectedQuadEnvelope
int m_CurrentQuadIndex
int m_SelectedEnvelope
bool m_UpdateEnvPointInfo
std::vector< std::pair< int, int > > m_vSelectedEnvelopePoints
std::pair< int, int > m_SelectedTangentInPoint
std::pair< int, int > m_SelectedTangentOutPoint
int m_SelectedImage
int m_SelectedSound
int m_SelectedSoundSource
int m_ShiftBy
CQuadKnife m_QuadKnife

Private Attributes

CEditorm_pEditor

Constructor & Destructor Documentation

◆ CEditorMap()

CEditorMap::CEditorMap ( CEditor * pEditor)
inlineexplicit

Member Function Documentation

◆ AddSelectedLayer()

void CEditorMap::AddSelectedLayer ( int LayerIndex)

◆ Append()

bool CEditorMap::Append ( const char * pFilename,
int StorageType,
bool IgnoreHistory,
const FErrorHandler & ErrorHandler )

◆ CheckIntegrity()

void CEditorMap::CheckIntegrity ( )

◆ Clean()

void CEditorMap::Clean ( )

◆ CreateDefault()

void CEditorMap::CreateDefault ( )

◆ DeleteEnvelope()

std::vector< std::shared_ptr< IEditorEnvelopeReference > > CEditorMap::DeleteEnvelope ( int Index)

◆ DeleteGroup()

void CEditorMap::DeleteGroup ( int Index)

◆ DeleteSelectedQuads()

void CEditorMap::DeleteSelectedQuads ( )

◆ DeselectEnvPoints()

void CEditorMap::DeselectEnvPoints ( )

◆ DeselectQuadPoints()

void CEditorMap::DeselectQuadPoints ( )

◆ DeselectQuads()

void CEditorMap::DeselectQuads ( )

◆ Editor() [1/2]

CEditor * CEditorMap::Editor ( )
inline

◆ Editor() [2/2]

const CEditor * CEditorMap::Editor ( ) const
inline

◆ FindEnvPointIndex()

int CEditorMap::FindEnvPointIndex ( int Index,
int Channel ) const

◆ FindSelectedQuadIndex()

int CEditorMap::FindSelectedQuadIndex ( int Index) const

◆ InsertEnvelope()

void CEditorMap::InsertEnvelope ( int Index,
std::shared_ptr< CEnvelope > & pEnvelope )

◆ IsEnvelopeUsed()

bool CEditorMap::IsEnvelopeUsed ( int EnvelopeIndex) const

◆ IsEnvPointSelected() [1/2]

bool CEditorMap::IsEnvPointSelected ( int Index) const

◆ IsEnvPointSelected() [2/2]

bool CEditorMap::IsEnvPointSelected ( int Index,
int Channel ) const

◆ IsImageUsed()

bool CEditorMap::IsImageUsed ( int ImageIndex) const

◆ IsQuadCornerSelected()

bool CEditorMap::IsQuadCornerSelected ( int Index) const

◆ IsQuadPointSelected()

bool CEditorMap::IsQuadPointSelected ( int QuadIndex,
int Index ) const

◆ IsQuadSelected()

bool CEditorMap::IsQuadSelected ( int Index) const

◆ IsSoundUsed()

bool CEditorMap::IsSoundUsed ( int SoundIndex) const

◆ IsTangentInPointSelected()

bool CEditorMap::IsTangentInPointSelected ( int Index,
int Channel ) const

◆ IsTangentInSelected()

bool CEditorMap::IsTangentInSelected ( ) const

◆ IsTangentOutPointSelected()

bool CEditorMap::IsTangentOutPointSelected ( int Index,
int Channel ) const

◆ IsTangentOutSelected()

bool CEditorMap::IsTangentOutSelected ( ) const

◆ IsTangentSelected()

bool CEditorMap::IsTangentSelected ( ) const

◆ Load()

bool CEditorMap::Load ( const char * pFilename,
int StorageType,
const FErrorHandler & ErrorHandler )

◆ MakeFrontLayer()

void CEditorMap::MakeFrontLayer ( const std::shared_ptr< CLayer > & pLayer)

◆ MakeGameGroup()

void CEditorMap::MakeGameGroup ( std::shared_ptr< CLayerGroup > pGroup)

◆ MakeGameLayer()

void CEditorMap::MakeGameLayer ( const std::shared_ptr< CLayer > & pLayer)

◆ MakeSpeedupLayer()

void CEditorMap::MakeSpeedupLayer ( const std::shared_ptr< CLayer > & pLayer)

◆ MakeSwitchLayer()

void CEditorMap::MakeSwitchLayer ( const std::shared_ptr< CLayer > & pLayer)

◆ MakeTeleLayer()

void CEditorMap::MakeTeleLayer ( const std::shared_ptr< CLayer > & pLayer)

◆ MakeTuneLayer()

void CEditorMap::MakeTuneLayer ( const std::shared_ptr< CLayer > & pLayer)

◆ ModifyEnvelopeIndex()

void CEditorMap::ModifyEnvelopeIndex ( const FIndexModifyFunction & IndexModifyFunction)

◆ ModifyImageIndex()

void CEditorMap::ModifyImageIndex ( const FIndexModifyFunction & IndexModifyFunction)

◆ ModifySoundIndex()

void CEditorMap::ModifySoundIndex ( const FIndexModifyFunction & IndexModifyFunction)

◆ MoveEnvelope()

int CEditorMap::MoveEnvelope ( int IndexFrom,
int IndexTo )

◆ MoveGroup()

int CEditorMap::MoveGroup ( int IndexFrom,
int IndexTo )

◆ NewEnvelope()

std::shared_ptr< CEnvelope > CEditorMap::NewEnvelope ( CEnvelope::EType Type)

◆ NewGroup()

std::shared_ptr< CLayerGroup > CEditorMap::NewGroup ( )

◆ OnModify()

void CEditorMap::OnModify ( )

◆ PerformAutosave()

bool CEditorMap::PerformAutosave ( const FErrorHandler & ErrorHandler)

◆ PerformPreSaveSanityChecks()

bool CEditorMap::PerformPreSaveSanityChecks ( const FErrorHandler & ErrorHandler)

◆ PerformSanityChecks()

void CEditorMap::PerformSanityChecks ( const FErrorHandler & ErrorHandler)

◆ PlaceBorderTiles()

void CEditorMap::PlaceBorderTiles ( )

◆ RemoveUnusedEnvelopes()

void CEditorMap::RemoveUnusedEnvelopes ( )

◆ ResetModifiedState()

void CEditorMap::ResetModifiedState ( )

◆ Save()

bool CEditorMap::Save ( const char * pFilename,
const FErrorHandler & ErrorHandler )

◆ SelectedEnvelopeTimeAndValue()

std::pair< CFixedTime, int > CEditorMap::SelectedEnvelopeTimeAndValue ( ) const

◆ SelectedGroup()

std::shared_ptr< CLayerGroup > CEditorMap::SelectedGroup ( ) const

◆ SelectedImage()

std::shared_ptr< CEditorImage > CEditorMap::SelectedImage ( ) const

◆ SelectedLayer()

std::shared_ptr< CLayer > CEditorMap::SelectedLayer ( int Index) const

◆ SelectedLayerType()

std::shared_ptr< CLayer > CEditorMap::SelectedLayerType ( int Index,
int Type ) const

◆ SelectedQuads()

std::vector< CQuad * > CEditorMap::SelectedQuads ( )

◆ SelectedSound()

std::shared_ptr< CEditorSound > CEditorMap::SelectedSound ( ) const

◆ SelectedSoundSource()

CSoundSource * CEditorMap::SelectedSoundSource ( ) const

◆ SelectEnvPoint() [1/2]

void CEditorMap::SelectEnvPoint ( int Index)

◆ SelectEnvPoint() [2/2]

void CEditorMap::SelectEnvPoint ( int Index,
int Channel )

◆ SelectGameLayer()

void CEditorMap::SelectGameLayer ( )

◆ SelectImage()

void CEditorMap::SelectImage ( const std::shared_ptr< CEditorImage > & pImage)

◆ SelectLayer()

void CEditorMap::SelectLayer ( int LayerIndex,
int GroupIndex = -1 )

◆ SelectNextImage()

void CEditorMap::SelectNextImage ( )

◆ SelectNextLayer()

void CEditorMap::SelectNextLayer ( )

◆ SelectNextSound()

void CEditorMap::SelectNextSound ( )

◆ SelectPreviousImage()

void CEditorMap::SelectPreviousImage ( )

◆ SelectPreviousLayer()

void CEditorMap::SelectPreviousLayer ( )

◆ SelectPreviousSound()

void CEditorMap::SelectPreviousSound ( )

◆ SelectQuad()

void CEditorMap::SelectQuad ( int Index)

◆ SelectQuadPoint()

void CEditorMap::SelectQuadPoint ( int QuadIndex,
int Index )

◆ SelectSound()

void CEditorMap::SelectSound ( const std::shared_ptr< CEditorSound > & pSound)

◆ SelectTangentInPoint()

void CEditorMap::SelectTangentInPoint ( int Index,
int Channel )

◆ SelectTangentOutPoint()

void CEditorMap::SelectTangentOutPoint ( int Index,
int Channel )

◆ SortImages()

std::vector< int > CEditorMap::SortImages ( )

◆ ToggleEnvPoint()

void CEditorMap::ToggleEnvPoint ( int Index,
int Channel )

◆ ToggleSelectQuad()

void CEditorMap::ToggleSelectQuad ( int Index)

◆ ToggleSelectQuadPoint()

void CEditorMap::ToggleSelectQuadPoint ( int QuadIndex,
int Index )

◆ UpdateEnvelopeReferences()

void CEditorMap::UpdateEnvelopeReferences ( int Index,
std::shared_ptr< CEnvelope > & pEnvelope,
std::vector< std::shared_ptr< IEditorEnvelopeReference > > & vpEditorObjectReferences )

◆ VisitEnvelopeReferences()

template<typename F>
std::vector< std::shared_ptr< IEditorEnvelopeReference > > CEditorMap::VisitEnvelopeReferences ( F && Visitor)

Member Data Documentation

◆ m_aFilename

char CEditorMap::m_aFilename[IO_MAX_PATH_LENGTH]

◆ m_CurrentQuadIndex

int CEditorMap::m_CurrentQuadIndex

◆ m_EditorHistory

CEditorHistory CEditorMap::m_EditorHistory

◆ m_EnvelopeEditorHistory

CEditorHistory CEditorMap::m_EnvelopeEditorHistory

◆ m_EnvOpTracker

CEnvelopeEditorOperationTracker CEditorMap::m_EnvOpTracker

◆ m_LastModifiedTime

float CEditorMap::m_LastModifiedTime

◆ m_LastSaveTime

float CEditorMap::m_LastSaveTime

◆ m_LayerGroupPropTracker

CLayerGroupPropTracker CEditorMap::m_LayerGroupPropTracker

◆ m_LayerPropTracker

CLayerPropTracker CEditorMap::m_LayerPropTracker

◆ m_LayerQuadPropTracker

CLayerQuadsPropTracker CEditorMap::m_LayerQuadPropTracker

◆ m_LayerSoundsPropTracker

CLayerSoundsPropTracker CEditorMap::m_LayerSoundsPropTracker

◆ m_LayerTilesCommonPropTracker

CLayerTilesCommonPropTracker CEditorMap::m_LayerTilesCommonPropTracker

◆ m_LayerTilesPropTracker

CLayerTilesPropTracker CEditorMap::m_LayerTilesPropTracker

◆ m_MapInfo

CMapInfo CEditorMap::m_MapInfo

◆ m_MapInfoTmp

CMapInfo CEditorMap::m_MapInfoTmp

◆ m_Modified

bool CEditorMap::m_Modified

Map has unsaved changes for manual save.

◆ m_ModifiedAuto

bool CEditorMap::m_ModifiedAuto

Map has unsaved changes for autosave.

◆ m_pEditor

CEditor* CEditorMap::m_pEditor
private

◆ m_pFrontLayer

std::shared_ptr<CLayerFront> CEditorMap::m_pFrontLayer

◆ m_pGameGroup

std::shared_ptr<CLayerGroup> CEditorMap::m_pGameGroup

◆ m_pGameLayer

std::shared_ptr<CLayerGame> CEditorMap::m_pGameLayer

◆ m_pSpeedupLayer

std::shared_ptr<CLayerSpeedup> CEditorMap::m_pSpeedupLayer

◆ m_pSwitchLayer

std::shared_ptr<CLayerSwitch> CEditorMap::m_pSwitchLayer

◆ m_pTeleLayer

std::shared_ptr<CLayerTele> CEditorMap::m_pTeleLayer

◆ m_pTuneLayer

std::shared_ptr<CLayerTune> CEditorMap::m_pTuneLayer

◆ m_QuadKnife

CQuadKnife CEditorMap::m_QuadKnife

◆ m_QuadTracker

CQuadEditTracker CEditorMap::m_QuadTracker

◆ m_SelectedEnvelope

int CEditorMap::m_SelectedEnvelope

◆ m_SelectedGroup

int CEditorMap::m_SelectedGroup

◆ m_SelectedImage

int CEditorMap::m_SelectedImage

◆ m_SelectedQuadEnvelope

int CEditorMap::m_SelectedQuadEnvelope

◆ m_SelectedQuadPoints

int CEditorMap::m_SelectedQuadPoints

◆ m_SelectedSound

int CEditorMap::m_SelectedSound

◆ m_SelectedSoundSource

int CEditorMap::m_SelectedSoundSource

◆ m_SelectedTangentInPoint

std::pair<int, int> CEditorMap::m_SelectedTangentInPoint

◆ m_SelectedTangentOutPoint

std::pair<int, int> CEditorMap::m_SelectedTangentOutPoint

◆ m_ServerSettingsHistory

CEditorHistory CEditorMap::m_ServerSettingsHistory

◆ m_ShiftBy

int CEditorMap::m_ShiftBy

◆ m_SoundSourceCircleShapePropTracker

CSoundSourceCircleShapePropTracker CEditorMap::m_SoundSourceCircleShapePropTracker

◆ m_SoundSourceOperationTracker

CSoundSourceOperationTracker CEditorMap::m_SoundSourceOperationTracker

◆ m_SoundSourcePropTracker

CSoundSourcePropTracker CEditorMap::m_SoundSourcePropTracker

◆ m_SoundSourceRectShapePropTracker

CSoundSourceRectShapePropTracker CEditorMap::m_SoundSourceRectShapePropTracker

◆ m_UpdateEnvPointInfo

bool CEditorMap::m_UpdateEnvPointInfo

◆ m_ValidSaveFilename

bool CEditorMap::m_ValidSaveFilename

◆ m_vpEnvelopes

std::vector<std::shared_ptr<CEnvelope> > CEditorMap::m_vpEnvelopes

◆ m_vpGroups

std::vector<std::shared_ptr<CLayerGroup> > CEditorMap::m_vpGroups

◆ m_vpImages

std::vector<std::shared_ptr<CEditorImage> > CEditorMap::m_vpImages

◆ m_vpSounds

std::vector<std::shared_ptr<CEditorSound> > CEditorMap::m_vpSounds

◆ m_vSelectedEnvelopePoints

std::vector<std::pair<int, int> > CEditorMap::m_vSelectedEnvelopePoints

◆ m_vSelectedLayers

std::vector<int> CEditorMap::m_vSelectedLayers

◆ m_vSelectedQuads

std::vector<int> CEditorMap::m_vSelectedQuads

◆ m_vSettings

std::vector<CEditorMapSetting> CEditorMap::m_vSettings

The documentation for this class was generated from the following files: