~flosoft/s25rttr/trunk

« back to all changes in this revision

Viewing changes to src/noEnvObject.h

  • Committer: FloSoft
  • Date: 2014-04-25 15:35:50 UTC
  • Revision ID: flosoft@siedler25.org-20140425153550-9muu4vodhlqu58m0
committing subversion revision 9357 by FloSoft
astyle

modified:
s25client/trunk/
s25client/trunk/contrib/lua/lin32/include/
s25client/trunk/contrib/lua/lin64/include/
s25client/trunk/contrib/lua/mac/include/
s25client/trunk/contrib/lua/win32/include/
s25client/trunk/contrib/lua/win64/include/
s25client/trunk/driver/audio/SDL/src/
s25client/trunk/driver/src/
s25client/trunk/driver/video/GLFW/src/
s25client/trunk/driver/video/SDL/src/
s25client/trunk/driver/video/WinAPI/src/
s25client/trunk/src/
s25client/trunk/win32/
s25client/trunk/win32/prebuild-mutex/src/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: noEnvObject.h 7521 2011-09-08 20:45:55Z FloSoft $
 
1
// $Id: noEnvObject.h 9357 2014-04-25 15:35:25Z FloSoft $
2
2
//
3
3
// Copyright (c) 2005 - 2011 Settlers Freaks (sf-team at siedler25.org)
4
4
//
25
25
 
26
26
class noEnvObject : public noStaticObject
27
27
{
28
 
public:
29
 
        noEnvObject(unsigned short x, unsigned short y, unsigned short id, unsigned short file = 0xFFFF);
30
 
        noEnvObject(SerializedGameData * sgd, const unsigned obj_id);
31
 
 
32
 
        void Destroy() { Destroy_noEnvObject(); }
33
 
 
34
 
        /// Serialisierungsfunktionen
35
 
        protected:      void Serialize_noEnvObject(SerializedGameData * sgd) const;
36
 
        public:         void Serialize(SerializedGameData *sgd) const { Serialize_noEnvObject(sgd); }
37
 
 
38
 
        GO_Type GetGOT() const { return GOT_ENVOBJECT; }
39
 
 
40
 
        virtual BlockingManner GetBM() const { return BM_NOTBLOCKING; }
41
 
 
42
 
protected:
43
 
        void Destroy_noEnvObject() { Destroy_noStaticObject(); }
 
28
    public:
 
29
        noEnvObject(unsigned short x, unsigned short y, unsigned short id, unsigned short file = 0xFFFF);
 
30
        noEnvObject(SerializedGameData* sgd, const unsigned obj_id);
 
31
 
 
32
        void Destroy() { Destroy_noEnvObject(); }
 
33
 
 
34
        /// Serialisierungsfunktionen
 
35
    protected:  void Serialize_noEnvObject(SerializedGameData* sgd) const;
 
36
    public:     void Serialize(SerializedGameData* sgd) const { Serialize_noEnvObject(sgd); }
 
37
 
 
38
        GO_Type GetGOT() const { return GOT_ENVOBJECT; }
 
39
 
 
40
        virtual BlockingManner GetBM() const { return BM_NOTBLOCKING; }
 
41
 
 
42
    protected:
 
43
        void Destroy_noEnvObject() { Destroy_noStaticObject(); }
44
44
};
45
45
 
46
46
#endif // !NOENVOBJECT_H_INCLUDED