cc.Class({ extends: cc.Component, properties: { _gamestate: GameState.STATE_STOP,//当前游戏的运行状态 _touchstate: TouchState.TOUCH_TRUE,//触摸状态 score:0, //分数 level:0, //关数 target:0, //目标 hang:0, //行数 stepnumber:0, //步数 _chessInfo: [],//记录棋盘元素的颜色类型 _lastLevelScore: 0, _selectbox: [], _eliminatePos: [],//消除 _eliminateNum: 0, _clicktipvec: [], _candealwith: true, _limitproptag: -1, _clicktiptime: 0, _selectprop: 0, _propNode: [], _propmotion: [], _proptipsp: [], _firstsavein:false, BANER_HEIGHT: 185,//预留Baner位 _guide:false, _guidenumber:-1, }, getGameState:function () { return this._gamestate; }, setGameState:function (state) { this._gamestate=state; }, getTouchState:function () { return this._touchstate; }, setTouchState:function (state) { this._touchstate=state; }, setScore:function(score){ this.score=score; }, getScore:function () { return this.score; }, setLevel:function(level){ this.level=level; }, getLevel:function () { return this.level; }, setTarget:function (target) { this.target=target; }, getTarget:function () { return this.target; }, setHang:function (hang) { this.hang=hang; }, getHang:function () { return this.hang; }, setStepNumber:function (step) { this.stepnumber=step; }, getStepNumber:function () { return this.stepnumber; }, });