/// <summary> /// This is the default constructor for the arena table. /// </summary> /// <param name="createTile">The tile to start on</param> /// <param name="Content">The content manager for loading</param> public ArenaTable(Tile createTile, ContentManager Content) { _currentTile = createTile; _Position = new Vector3(_currentTile.getModelPos().X, -20, _currentTile.getModelPos().Z); //should start in the middle of the start tile (X, Y, Z); //_Position = Vector3.Zero; _forward = ForwardDir.UP; scale = 2f; modelPosition = new Vector3(_currentTile.getModelPos().X, -40, _currentTile.getModelPos().Z);//models position appears on the start tile. myModel = Content.Load<Model>("Models/table"); myTexture = Content.Load<Texture2D>("Models/UVMap-Table"); }
/// <summary> /// default constructor. /// </summary> public Character() { _StartTile = ArenaScene.instance.getStartTile(); _currentTile = _StartTile; _Position = new Vector3(_StartTile.getModelPos().X, 0, _StartTile.getModelPos().Z); //should start in the middle of the start tile (X, Y, Z); _forward = ForwardDir.UP; rotAngle = MathHelper.ToRadians(180); scale = 0.5f; modelRotation = rotAngle; myModel = null; stepsTaken = 0; }