Beispiel #1
0
 public Cell(Map map, int x, int y, int type)
 {
     this.map = map;
     this.x = x;
     this.y = y;
     this.type = type;
     this.soul = new DInt();
     this.updated = false;
 }
Beispiel #2
0
 public Cell(Map map, int x, int y, int type)
 {
     this.map     = map;
     this.x       = x;
     this.y       = y;
     this.type    = type;
     this.soul    = new DInt();
     this.updated = false;
 }
Beispiel #3
0
        public User(string name, GameWorld world)
        {
            this.id        = ++counter;
            this.world     = world;
            this.states    = new StateCollection();
            this.input     = new ConcurrentQueue <UserInput>();
            this.character = new Character(this);
            this.world.AddObject(this.character);
            this.score = new DInt(20);

            this.name    = new DString(name);
            this.latency = new DShort(-1);
        }
Beispiel #4
0
        public User(string name, GameWorld world)
        {
            this.id = ++counter;
            this.world = world;
            this.states = new StateCollection();
            this.input = new ConcurrentQueue<UserInput>();
            this.character = new Character(this);
            this.world.AddObject(this.character);
            this.score = new DInt(20);

            this.name = new DString(name);
            this.latency = new DShort(-1);
        }
Beispiel #5
0
 protected GameObjectMovable()
 {
     this.speed = new DInt();
     this.x     = new DInt();
     this.y     = new DInt();
 }
Beispiel #6
0
 protected GameObjectMovable()
 {
     this.speed = new DInt();
     this.x = new DInt();
     this.y = new DInt();
 }