Skip to main content

MOBPROG

Keywords: MOBPROG, MOBILE-PROGRAMS
Usually mobiles never do anything but wait to be slaughtered, unless someone has added many special procedures called mobile programs. The backbone of the mobile programs is called triggers, essentially they are procedures calls which provide the context for what is going on around the mobile. So if something happens in the mobile's room and a trigger is activated, then a list of commands is sent to the interpreter in the mobile's name, thus making her/it/him do an appropriate something. Since knowing the appropriate response for every mobile to every possible trigger is not easy, this command list shouldn't be a rigid script, but needs to be somehow unique for the mobile and the situation However, in order to know the situation, a mobile needs to know more about the trigger than that it just happened. So we have to include some sort of variables, as well as to set the context appropriately.