Example #1
0
        public Ability(string _nameKey, bool _isActive, string _descriptionKey, List <GenreEnum> _availableGenres,
                       GameTimeIntervalEnum _gameTimeInterval, BookResource _bookResource, bool _isUsable)
        {
            this._nameKey         = (_nameKey == null) ? "INVALID_ABILITY" : _nameKey;
            this._isActive        = _isActive;
            this._descriptionKey  = (_descriptionKey == null) ? "INVALID_DESCRIPTION" : _descriptionKey;
            this._availableGenres = (_availableGenres == null || _availableGenres.Count == 0) ?
                                    this._availableGenres = new List <GenreEnum>(PAPIApplication.GetAllGenres()) : _availableGenres;
            this._gameTimeInterval = _gameTimeInterval;
            this._bookResource     = _bookResource;
            this._isUsable         = _isUsable;

            WfLogger.Log(this, LogLevel.DETAILED, "Ability '" + this._nameKey + "' was created");
        }
Example #2
0
 public Modification(int _value, GameTimeIntervalEnum _wearoff)
 {
     this._value = _value;
     this._wearoff = _wearoff;
     WfLogger.Log(this, LogLevel.DEBUG, "Constructed Modification (Value = " + this._value + ", Wearoff = " + this._wearoff);
 }