예제 #1
0
    }                                                  //NPCか否か

    ///////////////////////////////////////////////////////////////////////////
    //  公開関数
    ///////////////////////////////////////////////////////////////////////////
    //データ設定===============================================================
    public void Initialize(PlayerCharStateData aData)
    {
        //モデル変更
        this.ModeChange(Database.obj.GetPlayerModel(aData.modelId));

        //アンカー
        m_AncData       = m_CouresAncs.GetAnc(0);
        m_AncDataGround = m_CouresAncs.GetAnc(0);

        //ステータス
        m_wait     = aData.wait;
        m_Gravity  = new GravityStatus();
        m_Speed    = new SpeedStatus(aData.accel, aData.turn, aData.maxSpeed);
        m_Jump     = new JumpStatus();
        m_Glider   = new GliderStatus();
        m_Heat     = new HeatStatus();
        m_Rack     = RackState.READY;
        m_GoalData = new GoalData();

        //ステート
        m_TrgState = new BoolArray32(false);
        m_NowState = new BoolArray32(false);

        InputStart();   //入力
        CameraStart();  //カメラ

        SpeedStart();   //速度・方向
        StartPhysics(); //重力やレイキャスト
        SpwanStart();   //復帰する処理用
        TurnnStart();   //ターン

        GoalStart();
    }
예제 #2
0
        public GliderParser()
        {
            _log = new List<string>();

            _lastImage = null;

            _loots = new GliderLoots();
            _status = new GliderStatus();
            _image = new GliderImage();
            _image.Parsed += new GliderImage.Event_Parsed(_imageParsed);
            _image.Parsing += new GliderImage.Event_Parsing(_imageParsing);
        }
    ///////////////////////////////////////////////////////////////////////////
    //  公開関数
    ///////////////////////////////////////////////////////////////////////////
    //データ設定===============================================================
    public void Initialize(PlayerCharStateData aData)
    {
        //モデル変更
        this.ModeChange(Database.obj.GetPlayerModel(aData.modelId));

        //アンカー
        m_AncData        = m_CouresAncs.GetAnc(0);
        m_AncDataGround  = m_CouresAncs.GetAnc(0);

        //ステータス
        m_wait  = aData.wait;
        m_Gravity    = new GravityStatus();
        m_Speed      = new SpeedStatus(aData.accel, aData.turn, aData.maxSpeed);
        m_Jump       = new JumpStatus();
        m_Glider     = new GliderStatus();
        m_Heat       = new HeatStatus();
        m_Rack       = RackState.READY;
        m_GoalData   = new GoalData();

        //ステート
        m_TrgState = new BoolArray32(false);
        m_NowState    = new BoolArray32(false);

        InputStart();   //入力
        CameraStart(); //カメラ

        SpeedStart();   //速度・方向
        StartPhysics(); //重力やレイキャスト
        SpwanStart();   //復帰する処理用
        TurnnStart();   //ターン

        GoalStart();
    }