OSDN Git Service

02d90812771bca5f118e4e7154691bfa5365a441
[proj16/16.git] / src / eng_comm.cpp
1 #include "src\eng_comm.h"\r
2 #include <iostream>\r
3 \r
4 namespace engine {\r
5 \r
6         engine_message do_communication()\r
7         /*{\r
8                 //communication here\r
9 //====          std::cout << "COMMUNICATION HERE" << std::endl;\r
10                 int msg;\r
11                 std::cout << "Enter 1 for continue." << std::endl;\r
12                 std::cin >> msg;\r
13                 return msg == 1 ? ENGINE_RUN : ENGINE_QUIT;\r
14         }*/\r
15         /*engine_message do_communication(bool *input)\r
16         {\r
17                 //communication here\r
18 //====          std::cout << "COMMUNICATION HERE" << std::endl;\r
19                 return input['e'] == true ? ENGINE_QUIT : ENGINE_RUN;\r
20         }*/\r
21         //engine_message do_communication(byte input)\r
22         {\r
23                 //communication here\r
24 //====          std::cout << "COMMUNICATION HERE" << std::endl;\r
25                 //if(input) printf("%03d\n", input);
26                 return keyp(1) == 1 ? ENGINE_QUIT : ENGINE_RUN;\r
27         }\r
28 \r
29 }