diff options
| author | manuel <manuel@mausz.at> | 2011-04-12 20:23:33 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-12 20:23:33 +0200 |
| commit | 6af8e7795da1e86745364af1538fa76d4e0fc07e (patch) | |
| tree | 815ea747b9249a3a7ee10040c31da45c9af48fb1 /pacman-c++/util.h | |
| parent | ea20d11fdaf383eab6269d5aae2558fd15c5c29e (diff) | |
| download | foop-6af8e7795da1e86745364af1538fa76d4e0fc07e.tar.gz foop-6af8e7795da1e86745364af1538fa76d4e0fc07e.tar.bz2 foop-6af8e7795da1e86745364af1538fa76d4e0fc07e.zip | |
minor improvments: better debug messages + no tabs :D
Diffstat (limited to 'pacman-c++/util.h')
| -rw-r--r-- | pacman-c++/util.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pacman-c++/util.h b/pacman-c++/util.h index f68af67..9f7f784 100644 --- a/pacman-c++/util.h +++ b/pacman-c++/util.h | |||
| @@ -9,9 +9,9 @@ class QTcpSocket; | |||
| 9 | 9 | ||
| 10 | namespace Util | 10 | namespace Util |
| 11 | { | 11 | { |
| 12 | Transmission::map_t createUninitialisedMap(); | 12 | Transmission::map_t createUninitialisedMap(); |
| 13 | Transmission::map_t createDemoMap(); | 13 | Transmission::map_t createDemoMap(); |
| 14 | Transmission::map_t createEmptyMap(); | 14 | Transmission::map_t createEmptyMap(); |
| 15 | 15 | ||
| 16 | // default is to assert false with -1 | 16 | // default is to assert false with -1 |
| 17 | Transmission::field_t actorMovementToTransmission(Actor::Movement mov, | 17 | Transmission::field_t actorMovementToTransmission(Actor::Movement mov, |
| @@ -19,10 +19,10 @@ namespace Util | |||
| 19 | Actor::Movement transmissionMovementToActor(Transmission::field_t field, | 19 | Actor::Movement transmissionMovementToActor(Transmission::field_t field, |
| 20 | Actor::Movement def = Actor::None); | 20 | Actor::Movement def = Actor::None); |
| 21 | 21 | ||
| 22 | void QByteArrayToStdString(const QByteArray& arr, std::string& str); | 22 | void QByteArrayToStdString(const QByteArray& arr, std::string& str); |
| 23 | 23 | ||
| 24 | // send packet with error check and flush | 24 | // send packet with error check and flush |
| 25 | void sendPacket(const ::google::protobuf::Message& packet, QTcpSocket *socket); | 25 | void sendPacket(const ::google::protobuf::Message& packet, QTcpSocket *socket); |
| 26 | void sendPacket(const char *data, unsigned int length, QTcpSocket *socket); | 26 | void sendPacket(const char *data, unsigned int length, QTcpSocket *socket); |
| 27 | } | 27 | } |
| 28 | #endif // UTIL_H | 28 | #endif // UTIL_H |
