Back to project page pink-ponies.
The source code is released under:
Software License Agreement (BSD License) Copyright (c) 2013, Pink Ponies Team All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted prov...
If you think the Android project pink-ponies listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Copyright (c) 2013 Alexander Konovalov, Andrey Konovalov, Sergey Voronov, Vitaly Malyshev. All * rights reserved. Use of this source code is governed by a BSD-style license that can be found in * the LICENSE file.// w w w . java 2 s. c om */ package ru.pinkponies.protocol; import org.msgpack.annotation.Message; @Message public class PlayerUpdatePacket extends Packet { public long playerId; public String playerName; public Location location; public PlayerUpdatePacket() { super(); this.playerId = -1; this.location = new Location(0, 0, 0); this.playerName = "UNKNOWN"; } public PlayerUpdatePacket(final long playerId, final String playerName, final Location location) { super(); this.playerId = playerId; this.playerName = playerName; this.location = location; } @Override public String toString() { return "LocationUpdate [playerID=" + this.playerId + ", name=" + this.playerName + ", " + this.location + "]"; } }