Commit 4cd89f7fc9a3846e9d42b1d401453b8b55a2990f
- Diff rendering mode:
- inline
- side by side
src/being.cpp
(3 / 2)
|   | |||
| 215 | 215 | ||
| 216 | 216 | Position dest = mMap->checkNodeOffsets(getCollisionRadius(), getWalkMask(), | |
| 217 | 217 | dstX, dstY); | |
| 218 | Path thisPath = mMap->findPixelPath(mPos.x, mPos.y, dest.x, dest.y, | ||
| 219 | getCollisionRadius(), getWalkMask()); | ||
| 218 | Path thisPath = mMap->findPixelPath((int) mPos.x, (int) mPos.y, | ||
| 219 | dest.x, dest.y, | ||
| 220 | getCollisionRadius(), getWalkMask()); | ||
| 220 | 221 | ||
| 221 | 222 | if (thisPath.empty()) | |
| 222 | 223 | { |
src/defaults.cpp
(5 / 0)
|   | |||
| 35 | 35 | return new IntData(defData); | |
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | VariableData* createData(double defData) | ||
| 39 | { | ||
| 40 | return new FloatData(defData); | ||
| 41 | } | ||
| 42 | |||
| 38 | 43 | VariableData* createData(float defData) | |
| 39 | 44 | { | |
| 40 | 45 | return new FloatData(defData); |
src/listener.h
(1 / 1)
|   | |||
| 31 | 31 | class Listener | |
| 32 | 32 | { | |
| 33 | 33 | public: | |
| 34 | ~Listener(); | ||
| 34 | virtual ~Listener(); | ||
| 35 | 35 | ||
| 36 | 36 | void listen(const std::string &channel); | |
| 37 | 37 |
src/variabledata.h
(3 / 3)
|   | |||
| 72 | 72 | class FloatData : public VariableData | |
| 73 | 73 | { | |
| 74 | 74 | public: | |
| 75 | FloatData(float value) { mData = value; } | ||
| 75 | FloatData(double value) { mData = value; } | ||
| 76 | 76 | ||
| 77 | float getData() const { return mData; } | ||
| 77 | double getData() const { return mData; } | ||
| 78 | 78 | ||
| 79 | 79 | int getType() const { return DATA_FLOAT; } | |
| 80 | 80 | ||
| 81 | 81 | private: | |
| 82 | float mData; | ||
| 82 | double mData; | ||
| 83 | 83 | }; | |
| 84 | 84 | ||
| 85 | 85 | class BoolData : public VariableData |

