Пример #1
0
 public void AddThingList(ThingList things)
 {
     foreach (Thing thing in things)
     {
         list.Add(thing);
     }
 }
Пример #2
0
 public void AddThingList(ThingList things)
 {
     foreach (Thing thing in things)
     {
         list.Add(thing);
     }
 }
Пример #3
0
 public Thing(GameScene game, Vector position)
 {
     this.Game = game;
     this.Position = position;
     Velocity = Vector.Zero;
     Removed = false;
     Carry = new ThingList();
 }
Пример #4
0
 public Thing(GameScene game, Vector position)
 {
     this.Game     = game;
     this.Position = position;
     Velocity      = Vector.Zero;
     Removed       = false;
     Carry         = new ThingList();
 }
Пример #5
0
 public Thing(GameScene game, int row, int col)
 {
     this.Game = game;
     Position.X = col * Mafia.BLOCK_WIDTH;
     Position.Y = row * Mafia.BLOCK_WIDTH;
     Velocity = Vector.Zero;
     Removed = false;
     Carry = new ThingList();
 }
Пример #6
0
 public Thing(GameScene game, int row, int col)
 {
     this.Game  = game;
     Position.X = col * Mafia.BLOCK_WIDTH;
     Position.Y = row * Mafia.BLOCK_WIDTH;
     Velocity   = Vector.Zero;
     Removed    = false;
     Carry      = new ThingList();
 }
Пример #7
0
 public GameScene(string title, int numRows, int numCols)
 {
     this.title = title;
     map = new Map(numRows, numCols);
     things = new ThingList();
     addThings = new ThingList();
     currentNumCoins = 0;
     gameTimer = 0;
     missTimer = 0;
     clearTimer = 0;
 }
Пример #8
0
 public GameScene(string title, int numRows, int numCols)
 {
     this.title      = title;
     map             = new Map(numRows, numCols);
     things          = new ThingList();
     addThings       = new ThingList();
     currentNumCoins = 0;
     gameTimer       = 0;
     missTimer       = 0;
     clearTimer      = 0;
 }