コード例 #1
0
ファイル: ThingList.cs プロジェクト: sinshu/mafia
 public void AddThingList(ThingList things)
 {
     foreach (Thing thing in things)
     {
         list.Add(thing);
     }
 }
コード例 #2
0
ファイル: ThingList.cs プロジェクト: sinshu/mafia
 public void AddThingList(ThingList things)
 {
     foreach (Thing thing in things)
     {
         list.Add(thing);
     }
 }
コード例 #3
0
ファイル: Thing.cs プロジェクト: sinshu/mafia
 public Thing(GameScene game, Vector position)
 {
     this.Game = game;
     this.Position = position;
     Velocity = Vector.Zero;
     Removed = false;
     Carry = new ThingList();
 }
コード例 #4
0
ファイル: Thing.cs プロジェクト: sinshu/mafia
 public Thing(GameScene game, Vector position)
 {
     this.Game     = game;
     this.Position = position;
     Velocity      = Vector.Zero;
     Removed       = false;
     Carry         = new ThingList();
 }
コード例 #5
0
ファイル: Thing.cs プロジェクト: sinshu/mafia
 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
ファイル: Thing.cs プロジェクト: sinshu/mafia
 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
ファイル: GameScene.cs プロジェクト: sinshu/mafia
 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
ファイル: GameScene.cs プロジェクト: sinshu/mafia
 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;
 }