Exemplo n.º 1
0
 public Game1()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     map = new Cell[length,length];
     players = new Player[count];
     battle = new Map(length, count);
     reader = new Reader(battle);
     Connection = new Network_Communication(this,reader);
     tankBattle = new TankBattle(this, battle);
 }
Exemplo n.º 2
0
 public TankBattle(Game game,Map map)
     : base(game)
 {
     Battle  = map;
        // feild = new Rectangle[length, length];
     tanks  = new Texture2D[count, 4];
     length = Battle.getLength();
     w = 600 / length;
        // isPlayerThere = new Boolean[length, length];
     // TODO: Construct any child components here
 }
Exemplo n.º 3
0
 public Reader(Map battle)
 {
     Battle = battle;
 }