예제 #1
0
 protected EnableStatus mEnableStatus;       // 该状态可使用的输入方式,按键,外部速度,转向
 public PlayerState(PLAYER_STATE type)
 {
     mType         = type;
     mActive       = true;
     mStateTime    = -1.0f;
     mEnableStatus = new EnableStatus();
     mEnableStatus.enableAll(true);
 }
예제 #2
0
 protected List <SceneMissile> mMissileLockList;     // 锁定玩家的导弹列表
 public CharacterOther(CHARACTER_TYPE type, string name)
     :
     base(type, name)
 {
     mPlayerPack         = new PlayerPack();
     mRibbonTrailStatic  = new RibbonTrailStatic();
     mRibbonTrailDynamic = new RibbonTrailDynamic();
     mStateMachine       = new StateMachine();
     mEnableStatus       = new EnableStatus();
     mSelectAnimation    = new List <string>();
     mMissileLockList    = new List <SceneMissile>();
 }
예제 #3
0
 /// <summary>
 /// 查询后台管理的公告列表
 /// </summary>
 public BulletinInfo_Collection QueryManagementBulletins(string key, EnableStatus status, int priority, int isPutTop, int pageIndex, int pageSize)
 {
     using (var bulletinManager = new BulletinManager())
     {
         int totalCount;
         var list       = bulletinManager.QueryAdminBulletinList(key, status, priority, isPutTop, pageIndex, pageSize, out totalCount);
         var collection = new BulletinInfo_Collection
         {
             TotalCount = totalCount,
         };
         collection.LoadList(list);
         return(collection);
     }
 }
예제 #4
0
 public void UpdateBulletinStatus(long id, EnableStatus status, string updateBy)
 {
     using (var biz = new GameBiz.Business.GameBizBusinessManagement())
     {
         biz.BeginTran();
         using (var bulletinManager = new BulletinManager())
         {
             var entity = bulletinManager.GetBulletinById(id);
             entity.Status   = status;
             entity.UpdateBy = updateBy;
             bulletinManager.UpdateBulletin(entity);
         }
         biz.CommitTran();
     }
 }
예제 #5
0
        public IList QueryAdminBulletinList(string key, EnableStatus status, int priority, int isPutTop, int pageIndex, int pageSize, out int totalCount)
        {
            Session.Clear();
            pageIndex = pageIndex < 0 ? 0 : pageIndex;
            pageSize  = pageSize > BusinessHelper.MaxPageSize ? BusinessHelper.MaxPageSize : pageSize;
            Dictionary <string, object> outputs;
            var list = CreateOutputQuery(Session.GetNamedQuery("P_QueryBulletinList_Admin"))
                       .AddInParameter("Key", key)
                       .AddInParameter("Status", (int)status)
                       .AddInParameter("Priority", priority)
                       .AddInParameter("IsPutTop", isPutTop)
                       .AddInParameter("PageIndex", pageIndex)
                       .AddInParameter("PageSize", pageSize)
                       .AddOutParameter("TotalCount", "Int32")
                       .List(out outputs);

            totalCount = (int)outputs["TotalCount"];
            return(list);
        }
예제 #6
0
 public void ChangeUserStatus(string userId, EnableStatus status)
 {
     if (status == EnableStatus.Unknown)
     {
         throw new ArgumentException("要修改的用户状态不正确,不能为未知状态");
     }
     using (var biz = new GameBizBusinessManagement())
     {
         biz.BeginTran();
         using (var userManager = new UserBalanceManager())
         {
             var user = userManager.GetUserRegister(userId);
             if (user == null)
             {
                 throw new ArgumentException("指定的用户不存在。");
             }
             user.IsEnable = (status == EnableStatus.Enable);
             userManager.UpdateUserRegister(user);
         }
         biz.CommitTran();
     }
 }
예제 #7
0
 public ItemBundle()
 {
     enableStatus = EnableStatus.Enabled;
 }
예제 #8
0
 public void and(EnableStatus that)
 {
     mProcessKey           = mProcessKey && that.mProcessKey;
     mProcessTurn          = mProcessTurn && that.mProcessTurn;
     mProcessExternalSpeed = mProcessExternalSpeed && that.mProcessExternalSpeed;
 }
예제 #9
0
파일: UserDao.cs 프로젝트: zhangbo27/bbsmax
 /// <summary>
 ///设置用户侧边栏状态
 /// </summary>
 /// <param name="status"></param>
 public abstract void SetSidebarStatus(int userID, EnableStatus status);