~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/being/being.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
        /**
232
232
         * Sets the tile x and y coord
233
233
         */
234
 
        void setTileCoords(const int x, const int y)
235
 
        { mX = x; mY = y; }
 
234
        void setTileCoords(const int x, const int y);
236
235
 
237
236
        /**
238
237
         * Puts a "speech balloon" above this being for the specified amount
413
412
         * Draws the emotion picture above the being.
414
413
         */
415
414
        void drawEmotion(Graphics *const graphics, const int offsetX,
416
 
                         const int offsetY);
 
415
                         const int offsetY) const;
417
416
 
418
417
        uint16_t getSubType() const
419
418
        { return mSubType; }
879
878
        { mOwner = owner; }
880
879
 
881
880
        void playSfx(const SoundInfo &sound, Being *const being,
882
 
                     const bool main, const int x, const int y);
 
881
                     const bool main, const int x, const int y) const;
883
882
 
884
 
        int getLook()
 
883
        int getLook() const
885
884
        { return mLook; }
886
885
 
887
886
        void setLook(const int look);
897
896
         */
898
897
        void setPath(const Path &path);
899
898
 
 
899
        int getSortPixelY() const A_WARN_UNUSED
 
900
        { return static_cast<int>(mPos.y) - mYDiff - mSortOffsetY; }
 
901
 
 
902
        void setMap(Map *const map);
 
903
 
900
904
    protected:
901
905
        /**
902
906
         * Updates name's location.
1001
1005
        Being *mOwner;
1002
1006
        Particle *mSpecialParticle;
1003
1007
 
1004
 
        int mX, mY;   /**< Position in tile */
 
1008
        int mX;            // position in tiles
 
1009
        int mY;            // position in tiles
 
1010
        int mSortOffsetY;  // caculated offset in pixels based on mOffsetY
 
1011
        int mOffsetY;      // fixed tile height offset in pixels
 
1012
        uint8_t mOldHeight;
1005
1013
 
1006
1014
        int mDamageTaken;
1007
1015
        int mHP;