示例#1
0
 /// <summary>
 /// 木のマップチップを通常地形に
 /// </summary>
 public void Felling()
 {
     treeLength         = 0;
     nowMapChipType     = MapChipType.Nomal;
     nowPlayerEnterType = PlayerEnterType.All;
     isCanWoodEnter     = true;
     nowSprite          = MapChipSprite.Nomal;
     ChangeSprite();
 }
示例#2
0
 private void SetRiver(int num)
 {
     nowMapChipType     = MapChipType.River;
     nowPlayerEnterType = PlayerEnterType.AutoOnlyAll;
     isCanWoodEnter     = true;
     nowSprite          = MapChipSprite.River;
     riverDirection     = (Direction.DirectionState)num;
     ChangeSprite();
     RiverLookAtDir(riverDirection);
 }
示例#3
0
 /// <summary>
 /// 指定本数の木のマップチップを作成
 /// </summary>
 /// <param name="length"></param>
 private void SetTree(int length)
 {
     nowMapChipType     = MapChipType.Rock;
     nowPlayerEnterType = PlayerEnterType.None;
     treeLength         = length;
     isCanWoodEnter     = false;
     nowSprite          = MapChipSprite.Tree;
     riverDirection     = Direction.DirectionState.None;
     ChangeTreeSprite(length);
 }
示例#4
0
    /// <summary>
    /// 番号から状態を変化させる
    /// </summary>
    /// <param name="num"></param>
    public void SetMapChipType(int num)
    {
        MapChipSelecterSetting();
        switch (num)
        {
        case 0:    //通常地形
            nowMapChipType     = MapChipType.Nomal;
            nowPlayerEnterType = PlayerEnterType.All;
            isCanWoodEnter     = true;
            nowSprite          = MapChipSprite.Nomal;
            riverDirection     = Direction.DirectionState.None;
            ChangeSprite();
            break;

        case 1:    //壁用
            nowMapChipType     = MapChipType.Rock;
            nowPlayerEnterType = PlayerEnterType.None;
            isCanWoodEnter     = false;
            nowSprite          = MapChipSprite.Rock;
            riverDirection     = Direction.DirectionState.None;
            ChangeSprite();
            break;

        case 3:    //スタート位置
            nowMapChipType     = MapChipType.Nomal;
            nowPlayerEnterType = PlayerEnterType.All;
            isCanWoodEnter     = true;
            nowSprite          = MapChipSprite.Nomal;
            riverDirection     = Direction.DirectionState.None;
            ChangeSprite();
            break;

        case 4:    //穴
            nowMapChipType     = MapChipType.Hole;
            nowPlayerEnterType = PlayerEnterType.AutoOnlyAll;
            isCanWoodEnter     = true;
            nowSprite          = MapChipSprite.Hole;
            riverDirection     = Direction.DirectionState.None;
            ChangeSprite();
            break;

        case 5:    //ゴール
            nowMapChipType     = MapChipType.Nomal;
            nowPlayerEnterType = PlayerEnterType.All;
            isCanWoodEnter     = true;
            nowSprite          = MapChipSprite.Goal;
            riverDirection     = Direction.DirectionState.None;
            ChangeSprite();
            break;

        case 11:    //木1つ分
            SetTree(1);
            break;

        case 12:    //木2つ分
            SetTree(2);
            break;

        case 13:    //木3つ分
            SetTree(3);
            break;

        case 14:    //木4つ分
            SetTree(4);
            break;

        case 15:    //木5つ分
            SetTree(5);
            break;

        case 20:    //上向き川
            SetRiver(0);
            break;

        case 21:    //下向き川
            SetRiver(1);
            break;

        case 22:    //右向き川
            SetRiver(2);
            break;

        case 23:    //左向き川
            SetRiver(3);
            break;

        case 24:    //川の岩
            nowMapChipType     = MapChipType.Rock;
            nowPlayerEnterType = PlayerEnterType.None;
            isCanWoodEnter     = false;
            nowSprite          = MapChipSprite.RiverRock;
            riverDirection     = Direction.DirectionState.None;
            ChangeSprite();
            break;
        }
    }