Back to project page hackfmi-ragdoll-physics.
The source code is released under:
GNU General Public License
If you think the Android project hackfmi-ragdoll-physics listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.midtownmadness.bubblecombat.multiplay; /*from ww w. j ava2s . c o m*/ import android.bluetooth.BluetoothSocket; public class MultiplayerGame { // TODO synchronization!!! // XXX // change this to list! private BluetoothSocket otherPlayer; private long syncTimestamp; public MultiplayerGame(BluetoothSocket clientSocket) { this.otherPlayer = clientSocket; } public String getName() { return otherPlayer.getRemoteDevice().getName(); } @Override public String toString() { return otherPlayer.getRemoteDevice().getAddress(); } public void setSyncTimestamp(long syncTimestamp) { this.syncTimestamp = syncTimestamp; } public long getSyncTimestamp() { return syncTimestamp; } public BluetoothSocket getPlayerSocket() { return otherPlayer; } }