Vishwanath17 / words-battle

Automatically exported from code.google.com/p/words-battle
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Написать интерфейс для подключения клиента к серверу #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Требуется подключение из android-клиента к 
серверу

Original issue reported on code.google.com by acbel...@gmail.com on 15 May 2012 at 10:42

GoogleCodeExporter commented 8 years ago

Original comment by DanichBl...@gmail.com on 15 May 2012 at 10:43

GoogleCodeExporter commented 8 years ago
Первая версия появилась в r64.
Также смотри комментарий 
http://code.google.com/p/words-battle/issues/detail?id=13#c5

Добавлены файлы WBClient и IWBClientDelegate.
WBClient общается с сервером и вызывает методы 
на делегате который реализует методы 
интерфейса IWBClientDelegate.

Original comment by DanichBl...@gmail.com on 4 Jun 2012 at 8:35

GoogleCodeExporter commented 8 years ago

Original comment by DanichBl...@gmail.com on 4 Jun 2012 at 8:41

GoogleCodeExporter commented 8 years ago
Сделал коммит r71:
Client:
 * WBClient: added pickLetter(Letter) method. Added GAME_STARTED messageType
recognition. Updated UPDATE recognition.
 * IWBClientDelegate: removed method newPool(), added update(). See Javadoc

Original comment by DanichBl...@gmail.com on 6 Jun 2012 at 12:21

GoogleCodeExporter commented 8 years ago
Сделал коммит r81:

Client:
M   AndroidManifest.xml:
        * FIXED: app was not allowed to connect to the network. That's why it failed. So I add permission
        * Added debuggable property to app so could be debugged with a real android device.
M   WordSprite.java:
        * Now the word is stored as a common.domain.Word not just char[]. Fixed code appropriately.
M   LetterSprite.java:
        * Now letter is stored as class common.domain.Letter, not just char.
            So all code fixed appropriately. Also see WordSprite.java changes.
        * Now saying client that the letter is picked when user touches the letter.
M   IWBClientDelegate.java:
        * FIXED: wrong method declaration. Was missing registeredName
M   WordsBattleActivity.java
        * Added public static fields: host, port, WBClient client, testingOpponentName
        * Now all IWBClientDelegate methods implement WordsBattleActivity class, not GameController. 
            I think it's more convenient.
        * The problem with connection was caused by wrong AndroidManifest.xml. See it's changes.
        * Added udateGrid method. See javadoc.
M   GameController.java: I think we don't need it anymore. Now 
WordsBattleActivity changes
M   FieldFiller.java:
        * fixed accordingly to changes in LetterSprite class.

Original comment by DanichBl...@gmail.com on 16 Jun 2012 at 10:14

GoogleCodeExporter commented 8 years ago
Коммитом r81 решил проблему с подключением 
android к серверу. Смотри AndroidManifest.xml.

Original comment by DanichBl...@gmail.com on 16 Jun 2012 at 10:19