public MainSceneController() { this.configs = new Configs(); this.materials = new Materials(configs); this.characters = new Characters(configs); new BankRenderer(this.configs.LeftBankPos, this.materials, this.configs); new BankRenderer(this.configs.RightBankPos, this.materials, this.configs); this.boatMove = new LinearMove2D(this.configs.BoatMoveSpeed); this.boat = new BoatRenderer(this.configs.RightBoatPos, this.materials, this.boatMove.Clone(), this, this.configs); this.priests = new PriestRenderer[this.configs.PeopleNum]; this.evils = new EvilRenderer[this.configs.PeopleNum]; this.charMove = new ParabolicMove2D(this.configs.CharMoveSummit, this.configs.CharMoveSpeed); for (int i = 0; i < this.configs.PeopleNum; i++) { this.priests[i] = new PriestRenderer(i, this.configs.RightCharPos[i + 2], materials, this.charMove.Clone(), this, this.configs); } for (int i = 0; i < this.configs.PeopleNum; i++) { this.evils[i] = new EvilRenderer(i, this.configs.RightCharPos[i + 2 + this.configs.PeopleNum], materials, this.charMove.Clone(), this, this.configs); } this.result = new ResultRenderer(this.configs.ResultPlanePos, this.configs.ResultPlaneRotation, this.configs.ResultPlaneScale, this.materials); }
public void Inject(BoatRenderer boatRenderer, MainSceneController globalController) { this.boatRenderer = boatRenderer; this.globalController = globalController; }