예제 #1
0
 public FightManager(GameManager gameManager)
     : base(gameManager.world)
 {
     fightState = FightState.idle;
     fightOver += EndFight;
     this.gameManager = gameManager;
 }
예제 #2
0
        public LandManager(GameManager gameManager)
            : base(gameManager.world)
        {
            state = LandManagerState.idle;
            this.gameManager = gameManager;

            background = new DrawableTexture("whiteSquare", this);
            background.size = UserInterfaceManager.getDiagonalOnWorld();
            background.filter = Color.Black;
            background.layer = 1f;
        }
예제 #3
0
        public LandHumanPlayer(Land world, HumanPlayer human, GameManager gameManager)
            : base(world,human)
        {
            this.gameManager = gameManager;
            guy = new DrawableTexture("whiteSquare", this);
            guy.size.X = 10f;
            guy.size.Y = 10f;

            encounterTrigger.encounterHandlers += CreatureEncountered;

            physicalProperties = new LandPhysicalProperties();
            physicalProperties.activelyColliding = true;
            physicalProperties.radius = 10f;
            physicalProperties.collisionType = LandCollisionTypes.Solid;
        }