Esempio n. 1
0
        /**
         * Constructor  for actions that only need one object. This constructor cant't be called to
         * create interactions actions (drag to, use with, give to, custom interaction) due to don't init clickEffects
         *
         * @param type
         *            The type of the action
         * @param conditions
         *            The conditions of the action (must not be null)
         * @param effects
         *            The effects of the action (must not be null)
         * @param notEffects
         *            The effects of the action when the conditions aren't OK (must
         *            not be null)
         */

        public Action(int type, Conditions conditions, Effects effects, Effects notEffects)
            : this(type, null, conditions, effects, notEffects, new Effects())
        {
            // added attribute to the constructor: this co
        }
Esempio n. 2
0
        /**
         * Changes the conditions for this next scene
         *
         * @param conditions
         *            the new conditions
         */

        public void setConditions(Conditions conditions)
        {
            this.conditions = conditions;
        }
Esempio n. 3
0
 protected AbstractEffect()
 {
     identifier = Guid.NewGuid().ToString();
     conditions = new Conditions();
 }