This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 - сервер клиенту шлет все матрицы игроков. | |
2 - клиент серверу шлет свою матрицу | |
3 - сообщение о выигрыше или проигрыше | |
4 – команда от сервера игроку «Start Game» | |
5 – команда от сервера игроку о посылке ему массива игроков | |
6 – команда от сервера игроку о посылке ему кол-ва игроков | |
7 – команда от игрока серверу о посылке ему массива всех игрока(возможно исключим) | |
8 – команда от сервера игроку о том, что список игроков полон(6). | |
9 – команда от сервера игроку о начале игры. | |
10 – посылка серверу от игрока себя( после чего в массиве, относящемуся к игрокам(IsReady) ставится тру и если все тру, то можно начинать игру серверу) (используется только при создании игры). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*#include "stdafx.h" | |
#include "Server.h" | |
#include <conio.h> | |
#include <iostream> | |
using namespace std; | |
Server* s; | |
class Listener : public ServerListener { | |
public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include "Server.h" | |
#include <conio.h> | |
#include <iostream> | |
using namespace std; | |
Server* s; | |
class Listener : public ServerListener { | |
public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <pthread.h> | |
#include "Client.h" | |
#include <iostream> | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "stdafx.h" | |
#include "Discovery.h" | |
Discovery::Discovery(char* addr, int port, DiscoveryListener* l) { | |
listener = l; | |
int n; | |
unsigned int length; | |
struct sockaddr_in server, from; | |
struct hostent *hp; | |
char buffer[256]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Классы для самой игры: | |
1)Осноной класс GameObject | |
А)Поле IsAllive | |
2)Класс составной части корабля ShipPart | |
А)Наследование от GameObject | |
Б)Наследование от DrawableObject | |
В)Клетка поля, на которой стоит данная часть корабля | |
3)Класс корабля Ship | |
А)Коллекция составных частей корабля | |
Б)Кол-во составных частей |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;07) Шар и сопряженную пирамиду с треугольником в основании. | |
.model small | |
.stack 1000h | |
.data | |
saveMode db ? | |
color db 30 | |
x dw ? | |
y dw ? | |
x1 dw ? | |
x2 dw ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. возраст | |
2. получаю 1 высшее | 2+ высшее | |
3. холост | есть семья | |
4. не работаю | работаю 1/2 ставки | полный раб. день | |
if работаю { | |
5. колво часов работы в день | |
6. зарплата | |
< 3M | 3M - 6M | 6M - 10M | 10M+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace Lab_3_inisp | |
{ | |
class ListItem<T> | |
{ | |
public ListItem<T> Next |