示例#1
0
		public void setPreceedingMove(BetterList<MoveTreeCompletionDataRow> aAllMoves) {
			_preceedingMove = null;
			for(int i = 0 ; i < aAllMoves.size ; i++) {
				if(_moveTreeItemRef!=null&&_moveTreeItemRef.PreceedingMove!=null&&aAllMoves[i]!=null&&aAllMoves[i].itemRef.ID == _moveTreeItemRef.PreceedingMove.ID) {
					_preceedingMove = aAllMoves[i];
				}
			}
		}
示例#2
0
	//TODO Reenable when multiplayer
	/*
	public SFSObject asSFSObject {
		get {
			SFSObject r = new SFSObject();
			if(_moveSelected!=null) {
				r.PutInt("moveID",_moveSelected.moveData.id);
				r.PutInt("unlockLevel",_moveSelected.currentUnlockLevel);
			}	
			return r;
		}
		set {
			_forcedMove = MovesLib.REF.getMove(value.GetInt("moveID"));
			forcedMoveUnlockLevel = value.GetInt("unlockLevel");
		}
	}
	*/
	public void setMove(EMoveUnlockType aUnlockType,MoveTreeCompletionDataRow aMove) {
		_unlockType = aUnlockType;
		if(aMove==null) {
			Debug.Log ("setMove, aMove is null");
		}
		_moveSelected = aMove;
	}
示例#3
0
	private static int SortByMovePoints(MoveTreeCompletionDataRow a1, MoveTreeCompletionDataRow a2) {
		if(a1.pointsToUnlock<a2.pointsToUnlock) {
			return 1;
		}
		else
			return -1;
	}