相关考题
-
单项选择题
如果存在一个服务器端直接通讯函数调用:commandToClient(%client,’TellMessage’,%sender,%msg);那么对应的客户端响应函数的定义可以为。()
A.functionclientCmdTellMessage(%sender,%msgString){}
B.functionclientCmdTellMessage(%client,%sender,%msgString){}
C.functionclientCmdTellMessage(%client,%function,%sender,%msgString){}
D.functionclientCmdTellMessage(%client,%function,%sender,%msgString){}; -
单项选择题
如果要建立多人在线的服务器,以下代码正确的是()
A.createServer("SinglePlayer","control/data/maps/book_ch4.mis");
B.createServer("MultiPlayer","control/data/maps/book_ch4.mis");
C.createServer("MultiPlayer",control/data/maps/book_ch4.mis);
D.createServer("SinglePlayer",control/data/maps/book_ch4.mis); -
单项选择题
若一个对象被命名为MyObject,则下列访问该对象的语句中,错误的是()
A. MyObject.aproperty = 42;
B. "MyObject".aproperty = 42;
C. %objname = MyObject; %objname.aproperty = 42;
D. %objname =42; %objname.aproperty = 42;
