Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
invbat [2014/01/28 13:14] icmu20132 [Service Architecture] |
invbat [2014/01/28 13:51] icmu20132 |
||
---|---|---|---|
Line 16: | Line 16: | ||
The Android Client and the Core SDDL communicate in a simple Request <-> Response paradigm. The clients can send data to the Core whenever they want (Requests), but the Core can only send data upon a previous data request from the client (Responses). That means the Core isn't capable, neither is it's responsibility, | The Android Client and the Core SDDL communicate in a simple Request <-> Response paradigm. The clients can send data to the Core whenever they want (Requests), but the Core can only send data upon a previous data request from the client (Responses). That means the Core isn't capable, neither is it's responsibility, | ||
+ | {{ : | ||
- | ===== Service API (if exists) | + | {{ : |
- | Service API (if exists) | + | ===== Playing the Game ===== |
- | * '' | + | To try and play the game, you'll need a Android device with GPS enabled. |
- | * '' | + | Download the Core Server project and the Android Client project. First you need to start the gateway and Core Server. |
- | ===== Service Usage ===== | + | * '' |
- | How to use the service. | + | |
- | <file java Hello.java> | + | Now you only need to open the InvisibleBattlefieldsSDDLCore project and run the Java Application on Eclipse. |
- | public class Hello { | + | |
- | public | + | * " |
- | | + | |
- | | + | Since the actual Android Client wasn't entirely properly tested, he suggest that you run out Test Client to check the communications with the Server. It uses exactly the same listeners and communication strategy as the Android Client. |
+ | |||
+ | * " | ||
+ | |||
+ | You just need to update you IP address onto the client file: | ||
+ | |||
+ | <file java HelloCoreClient.java> | ||
+ | public class BattleCoreClient implements NodeConnectionListener | ||
+ | private | ||
+ | | ||
} | } | ||
} | } | ||
</ | </ | ||
+ | |||
+ | Finally, if you want to try the Android Client, you need to open the InvisibleBattlefieldsClient project and generate a " | ||
+ | |||
+ | Again, you have to update the IP Address that you'll be using on this specific file: | ||
+ | |||
+ | <file java CommunicationTask.java> | ||
+ | public class CommunicationTask extends AsyncTask< | ||
+ | private String ipAddress = " | ||
+ | //....... | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | And that's it, you should be able to run the game and communicate with the Core Server now. Since it's a work-in-progress, | ||
==== Contact ==== | ==== Contact ==== |