From 06bce68860696f67f0a0ac1e9682635081918801 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 2 Sep 2010 17:11:45 +0000 Subject: SWORD25: Comply to the code conventions for several classes svn-id: r53310 --- engines/sword25/gfx/animationdescription.cpp | 34 ++++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'engines/sword25/gfx/animationdescription.cpp') diff --git a/engines/sword25/gfx/animationdescription.cpp b/engines/sword25/gfx/animationdescription.cpp index 82fa03240c..a2a8c9bcf0 100644 --- a/engines/sword25/gfx/animationdescription.cpp +++ b/engines/sword25/gfx/animationdescription.cpp @@ -46,30 +46,30 @@ namespace Sword25 { // Persistenz // ----------------------------------------------------------------------------- -bool AnimationDescription::Persist(OutputPersistenceBlock &Writer) { - Writer.Write(static_cast(m_AnimationType)); - Writer.Write(m_FPS); - Writer.Write(m_MillisPerFrame); - Writer.Write(m_ScalingAllowed); - Writer.Write(m_AlphaAllowed); - Writer.Write(m_ColorModulationAllowed); +bool AnimationDescription::persist(OutputPersistenceBlock &writer) { + writer.write(static_cast(_animationType)); + writer.write(_FPS); + writer.write(_millisPerFrame); + writer.write(_scalingAllowed); + writer.write(_alphaAllowed); + writer.write(_colorModulationAllowed); return true; } // ----------------------------------------------------------------------------- -bool AnimationDescription::Unpersist(InputPersistenceBlock &Reader) { - uint AnimationType; - Reader.Read(AnimationType); - m_AnimationType = static_cast(AnimationType); - Reader.Read(m_FPS); - Reader.Read(m_MillisPerFrame); - Reader.Read(m_ScalingAllowed); - Reader.Read(m_AlphaAllowed); - Reader.Read(m_ColorModulationAllowed); +bool AnimationDescription::unpersist(InputPersistenceBlock &reader) { + uint animationType; + reader.read(animationType); + _animationType = static_cast(animationType); + reader.read(_FPS); + reader.read(_millisPerFrame); + reader.read(_scalingAllowed); + reader.read(_alphaAllowed); + reader.read(_colorModulationAllowed); - return Reader.IsGood(); + return reader.isGood(); } } // End of namespace Sword25 -- cgit v1.2.3