public void tick(int dt) { if (fo != null) { for (Collection<Gob> fol : fo) { for (Gob fo : fol) fo.ctick(dt); } } }
public void ctick() { long now; int dt; now = System.currentTimeMillis(); if (lastctick == 0) dt = 0; else dt = (int) (System.currentTimeMillis() - lastctick); synchronized (this) { for (Gob g : objs.values()) g.ctick(dt); } lastctick = now; }