Пример #1
0
        public bool penDrag(Vector2 pt)
        {
            JSIPenMark penMark = this.getLastPenMark();

            //if penmark is not null then return true
            return(penMark != null && penMark.addPt(pt));
        }
Пример #2
0
        public bool penDown(Vector2 pt)
        {
            JSIPenMark penMark = new JSIPenMark(pt);

            this.addPenMark(penMark);
            return(true);
        }
        private JSICmdToMoveStandingCard(XApp app) : base(app)
        {
            JSIApp     jsi = (JSIApp)this.mApp;
            JSIPenMark pm  = jsi.getPenMarkMgr().getLastPenMark();

            this.mPrevPt = pm.getRecentPt(1);
            this.mCurPt  = pm.getRecentPt(0);
        }
Пример #4
0
        // private constructor
        private JSICmdToDollyCamera(XApp app) : base(app)
        {
            JSIApp     jsi = (JSIApp)this.mApp;
            JSIPenMark pm  = jsi.getPenMarkMgr().getLastPenMark();

            this.mPrevPt = pm.getRecentPt(1);
            this.mCurPt  = pm.getRecentPt(0);
        }
Пример #5
0
 public void addPenMark(JSIPenMark penMark)
 {
     this.mPenMarks.Add(penMark);
     if (this.mPenMarks.Count > JSIPenMarkMgr.MAX_NUM_PEN_MARKS)
     {
         this.mPenMarks.RemoveAt(0);
         Debug.Assert(this.mPenMarks.Count <= JSIPenMarkMgr.MAX_NUM_PEN_MARKS);
     }
 }