Example #1
0
        /// <summary>
        /// Constructor for a BasicBehaviour. 
        /// </summary>
        /// <param name="haptiQ"></param>
        /// <param name="type"></param>
        /// <param name="frequency"></param>
        public BasicBehaviour(HaptiQ haptiQ, TYPES type, double frequency)
            : base(haptiQ)
        {
            _type = type;
            TIME = 0;
            _frequency = frequency;
            highPosition = DEFAULT_POS;
            lowPosition = MIN_POSITION;

            if (type == TYPES.flat)
            {
                _actuatorsToActivate = 0;
            }
            else if (type == TYPES.max)
            {
                _actuatorsToActivate = (int) (Math.Pow(2, actuators.Count()) - 1);
            }
            else
            {
                 _actuatorsToActivate = 0;
                Helper.Logger("HaptiQ_API.BasicBehaviour.BasicBehaviour::type " + type + " undefined");
            }
        }
Example #2
0
        }//Code128

        /// <summary>
        /// Encodes data in Code128 format.
        /// </summary>
        /// <param name="input">Data to encode.</param>
        /// <param name="type">Type of encoding to lock to. (Code 128A, Code 128B, Code 128C)</param>
        public Code128(string input, TYPES type)
        {
            this.type = type;
            Raw_Data = input;
        }//Code128
Example #3
0
 public TypedNode(String name, TYPES type, TreeNode parent)
 {
     this.name = name;
     this.type = type;
     this.parent = parent;
 }
Example #4
0
 public MyEventArgs(TYPES type)
 {
     Type = type;
 }
Example #5
0
 public Skill(int _id, string _name, TYPES _type, SUB_TYPES _sub_type, EFFECT_TYPES _effect_type, int _effect_period, int _effect_tick)
 {
     id = _id;
     name = _name;
     type = _type;
     sub_type = _sub_type;
     effect_type = _effect_type;
     switch (effect_type)
     {
         case DamageTracker.EFFECT_TYPES.SPELLATK:
         case DamageTracker.EFFECT_TYPES.BLEED:
         case DamageTracker.EFFECT_TYPES.POISON:
         case DamageTracker.EFFECT_TYPES.HEAL:
             is_overtime_effect = true;
             break;
     }
     effect_period = _effect_period;
     effect_tick = _effect_tick;
     if (effect_tick != 0)
     {
         maximum_ticks = effect_period / effect_tick;
     }
 }
Example #6
0
 public MyEventArgs(TYPES type)
 {
     Type = type;
 }
Example #7
0
 public MyEventArgs()
 {
     Type = TYPES.COMMON;
 }
Example #8
0
 /// <summary>
 /// Constructor for a BasicBehaviour.
 /// </summary>
 /// <param name="haptiQ"></param>
 /// <param name="type"></param>
 public BasicBehaviour(HaptiQ haptiQ, TYPES type)
     : this(haptiQ, type, DEFAULT_FREQUENCY) { }