All pastes #2061603 Raw Edit

Unnamed

public text v1 · immutable
#2061603 ·published 2011-05-16 15:55 UTC
rendered paste body
  var ms = 1000;
            	AddTimer(delegate {
                    
                    worldState.Add(current, Players);
                
                    try
                    {
                        foreach (Player p in worldState[current])
                        {
                            if (p.last != 0 && p.realName != "")
                            {
                                Console.WriteLine(current + "NOW: [ " + p.realName + " is at  X: " + p.X + " Y: " + p.Y + " ] ");
                            }
                        }
                 
                    foreach (Player p in worldState[current-1000])
                        {
                            if (p.last != 0 && p.realName != "")
                            {
                                Console.WriteLine(current - 1000 + "PAST: [ " + p.realName + " is at  X: " + p.X + " Y: " + p.Y + " ] ");
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        //
                        // An exception will be thrown.
                        //
                        Console.WriteLine(ex);
                    }
                    current = current + ms;

                }, ms);