-
Notifications
You must be signed in to change notification settings - Fork 0
/
services.ice
executable file
·50 lines (41 loc) · 1.36 KB
/
services.ice
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// -*- mode:c++ -*-
#include "drobots.ice"
module Services {
exception AlreadyExists { string key; };
exception NoSuchKey { string key; };
dictionary<string, Object*> ObjectPrxDict;
interface Container {
void link(string key, Object* proxy) throws AlreadyExists;
void linkFactory(string key, Object* proxy) throws AlreadyExists;
void linkController(string key, Object* proxy) throws AlreadyExists;
void unlink(string key) throws NoSuchKey;
ObjectPrxDict list();
ObjectPrxDict listFactory();
ObjectPrxDict listController();
};
interface Factory {
drobots::RobotController* make(drobots::Robot* bot, string index);
drobots::DetectorController* makeDetector(string index);
};
interface AttackerController extends drobots::RobotController{
void setContainer(string proxy);
drobots::Point posicion();
};
interface DefenderController extends drobots::RobotController{
void setContainer(string proxy);
drobots::Point posicion();
int getEnemigoX();
int getEnemigoY();
};
interface CompletoController extends drobots::RobotController{
void setContainer(string proxy);
drobots::Point posicion();
int getEnemigoX();
int getEnemigoY();
};
interface DetectorControllerI extends drobots::DetectorController{
drobots::Point posicion();
int getEnemigoX();
int getEnemigoY();
};
};