/[enigma]/enigma/data/levels/ant.lua
ViewVC logotype

Diff of /enigma/data/levels/ant.lua

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by ant_39, Sat Jan 18 00:28:52 2003 UTC revision 1.5 by ant_39, Sat Jan 25 15:16:49 2003 UTC
# Line 262  function add_multiitem(args, x, y) Line 262  function add_multiitem(args, x, y)
262     group[bc] = obj     group[bc] = obj
263  end  end
264    
265    function add_multiactor(args, x, y)
266       local face, group, opts = args[1], args[2], args[3]
267       local bc = getn(group)+1
268       local bn = face..bc
269    
270       opts = opts or {}
271       opts["name"] = bn
272    
273       set_actor(face, x+0.5, y+0.5, opts)
274       local obj = enigma.GetNamedObject(bn)
275       group[bc] = obj
276    end
277    
278    function add_rubber_bands(gr1, gr2, length)
279       for _,obj1 in gr1 do
280          for _,obj2 in gr2 do
281             AddRubberBand(obj1, obj2, length, 0)
282          end
283       end
284    end
285    
286  function send_group_message(group, message, third)  function send_group_message(group, message, third)
287     for _,item in group do     for _,item in group do
288        enigma.SendMessage(item, message, third)        enigma.SendMessage(item, message, third)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26