Beispiel #1
0
 public void AddThingList(ThingList things)
 {
     foreach (Thing thing in things)
     {
         list.Add(thing);
     }
 }
Beispiel #2
0
 public void AddThingList(ThingList things)
 {
     foreach (Thing thing in things)
     {
         list.Add(thing);
     }
 }
Beispiel #3
0
 public Thing(GameScene game, Vector position)
 {
     this.Game = game;
     this.Position = position;
     Velocity = Vector.Zero;
     Removed = false;
     Carry = new ThingList();
 }
Beispiel #4
0
 public Thing(GameScene game, Vector position)
 {
     this.Game     = game;
     this.Position = position;
     Velocity      = Vector.Zero;
     Removed       = false;
     Carry         = new ThingList();
 }
Beispiel #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();
 }
Beispiel #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();
 }
Beispiel #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;
 }
Beispiel #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;
 }