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); }
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 }
public Reader(Map battle) { Battle = battle; }