Esempio n. 1
0
 /** [シングルトン]インスタンス。作成。
  */
 public static void CreateInstance()
 {
     if (s_instance == null)
     {
         s_instance = new EventPlate();
     }
 }
Esempio n. 2
0
 /** [シングルトン]インスタンス。削除。
  */
 public static void DeleteInstance()
 {
     if (s_instance != null)
     {
         s_instance.Delete();
         s_instance = null;
     }
 }
Esempio n. 3
0
 public Plate(int numL, int numR, State state)
 {
     this.numL = numL;
     this.numR = numR;
     this.point = new Point();
     this.state = state;
     this.showPlate = null;
 }
Esempio n. 4
0
        public State state; // Статус плашки

        #endregion Fields

        #region Constructors

        public Plate(int numL, int numR)
        {
            this.numL = numL;
            this.numR = numR;
            this.point = new Point();
            this.state = State.Hide;
            this.showPlate = null;
        }
Esempio n. 5
0
        /** [Fee.Deleter.OnDelete_CallBackInterface]削除。
         */
        public void OnDelete()
        {
            Tool.Assert(this.deleted == false);
            this.deleted = true;

            //コールバック解除。
            this.callbackparam_over = null;

            EventPlate.GetInstance().Remove(this, this.eventtype);
        }
Esempio n. 6
0
        /** constructor
         */
        public Item(Fee.Deleter.Deleter a_deleter, EventType a_eventtype, long a_priority)
        {
            //priority
            this.priority = a_priority;

            //eventtype
            this.eventtype = a_eventtype;

            //enable
            this.enable = true;

            //is_onover
            this.is_onover = false;

            //rect
            //this.rect.Set(0,0,0,0);

            //clip_rect
            //this.clip_rect.Set(0,0,0,0);

            //clip
            this.clip = false;

            //callbackparam_over
            this.callbackparam_over = null;

            //deleted
            this.deleted = false;

            //削除管理。
            if (a_deleter != null)
            {
                a_deleter.Regist(this);
            }

            EventPlate.GetInstance().Add(this, this.eventtype);
        }