public KeyPressEventAction()
 {
     _keyin = new ActualKeyboardInput();
     action = UserAction.showBannerMain;
     ConstructBanners();
     banner = Banner.mainMenu;
 }
Beispiel #2
0
        public Engine(IRenderer renderer, IUserKeyboardInput userInput, IAim aim, GameInitializator gameInitializator)
        {
            this.Renderer          = renderer;
            this.UserInput         = userInput;
            this.Aim               = aim;
            this.GameInitializator = gameInitializator;
            random = new Random();

            this.gameObjects = new HashSet <GameObject>();

            this.farm           = new Farm();
            this.farmManager    = new FarmManager();
            this.market         = new Market();
            this.presentFactory = new PresentFactory();
        }
        public Engine(IRenderer renderer, IUserKeyboardInput userInput, IAim aim, GameInitializator gameInitializator)
        {
            this.Renderer = renderer;
            this.UserInput = userInput;
            this.Aim = aim;
            this.GameInitializator = gameInitializator;
            random = new Random();

            this.gameObjects = new HashSet<GameObject>();

            this.farm = new Farm();
            this.farmManager = new FarmManager();
            this.market = new Market();
            this.presentFactory = new PresentFactory();
        }
 public KeyPressEventAction(IUserKeyboardInput keyin)
 {
     _keyin = keyin;
     action = UserAction.noAction;
     ConstructBanners();
 }
Beispiel #5
0
 public StockManager(IUserKeyboardInput keyboard)
 {
     _keyboard = keyboard;
 }
Beispiel #6
0
 public StockManager()
 {
     _keyboard = new ActualKeyboardInput();
 }