public Field(int fieldWidth, int fieldHeight, int tanksCount, int appleCount, int speedEntities, EventHandler onGameOver, EventHandler <TanksEventArgs> onUpdateImage) { FieldWidth = fieldWidth; FieldHeight = fieldHeight; TanksCount = tanksCount; AppleCount = appleCount; SpeedEntities = speedEntities; OnGameOver += onGameOver; OnUpdateImage += onUpdateImage; _bullets = new List <Bullet>(); _tanks = new List <Tank>(TanksCount); _apples = new List <Subject>(AppleCount); _kolobok = new Kolobok(FieldWidth / 2 - ENTITY_WIDTH, FieldHeight - ENTITY_HEIGHT, ENTITY_WIDTH, ENTITY_HEIGHT, SpeedEntities); InitRotateDictionary(); InitBarriers(FieldWidth, FieldHeight); SpawnTanks(); SpawnAplles(); }
public ReportEventArgs(Kolobok kolobok, List <Tank> tanks, List <Subject> apples) { this.Kolobok = kolobok; this.Tanks = tanks; this.Apples = apples; }