Scheduled Activities

version 10 by John Clemens

  • Home page
  • Beginning
  • Previous
  • Next



  • Section 6 - Checking activities
    To decide if there is an event scheduled:
        if the number of filled rows in the Table of Scheduled Events is 0, decide no;
        decide yes.
    To decide if there is an event scheduled for (T - object):
        if there is a SA_Target of T in the Table of Scheduled Events, decide yes;
        decide no.
    To decide if there is (E - activity on objects) scheduled for (T - object):
        repeat through the Table of Scheduled Events:
            if there is a SA_Target entry and the SA_Target entry is T and there is an SA_Object_Event entry and the SA_Object_Event entry is E, decide yes;
        decide no.
    To decide if there is (E - activity) scheduled:
        if there is an SA_Event of E in the Table of Scheduled Events, decide yes;
        decide no.
    To decide if there is (E - activity on objects) scheduled:
        if there is an SA_Object_Event of E in the Table of Scheduled Events, decide yes;
        decide no.
    To decide if there is an event scheduled at (M - time):
        if there is a SA_Moment of M in the Table of Scheduled Events, decide yes;
        decide no.
    To decide if there is an event scheduled for (T - object) at (M - time):
        repeat through the Table of Scheduled Events:
            if there is a SA_Target entry and the SA_Target entry is T and there is a SA_Moment entry and the SA_Moment entry is M, decide yes;
        decide no.
    To decide if there is (E - activity) scheduled at (M - time):
        repeat through the Table of Scheduled Events:
            if there is a SA_Moment entry and the SA_Moment entry is M and there is an SA_Event entry and the SA_Event entry is E, decide yes;
        decide no.
    To decide if there is (E - activity on objects) scheduled at (M - time):
        repeat through the Table of Scheduled Events:
            if there is a SA_Moment entry and the SA_Moment entry is M and there is an SA_Object_Event entry and the SA_Object_Event entry is E, decide yes;
        decide no.
    To decide if there is (E - activity on objects) scheduled for (T - object) at (M - time):
        repeat through the Table of Scheduled Events:
            if there is a SA_Target entry and the SA_Target entry is T and there is an SA_Object_Event entry and the SA_Object_Event entry is E and there is a SA_Moment entry and the SA_Moment entry is M, decide yes;
        decide no.
    To decide if there is an event scheduled now:
        repeat through the Table of Scheduled Events:
            if (there is a SA_Moment entry and the SA_Moment entry is time of day) or (there is a SA_Turn entry and the SA_Turn entry is turn count), decide yes;
        decide no.
        
    To decide if there is (E - activity) scheduled now:
        repeat through the Table of Scheduled Events:
            if there is an SA_Event entry and the SA_Event entry is E:
                if (there is a SA_Moment entry and the SA_Moment entry is time of day) or (there is a SA_Turn entry and the SA_Turn entry is turn count), decide yes;
        decide no.
    To decide if there is (E - activity on objects) scheduled now:
        repeat through the Table of Scheduled Events:
            if there is an SA_Object_Event entry and the SA_Object_Event entry is E:
                if (there is a SA_Moment entry and the SA_Moment entry is time of day) or (there is a SA_Turn entry and the SA_Turn entry is turn count), decide yes;
        decide no.
    To decide if there is an event scheduled for (T - object) now:
        repeat through the Table of Scheduled Events:
            if there is a SA_Target entry and the SA_Target entry is T:
                if (there is a SA_Moment entry and the SA_Moment entry is time of day) or (there is a SA_Turn entry and the SA_Turn entry is turn count), decide yes;
        decide no.
        
    To decide if there is (E - activity on objects) scheduled for (T - object) now:
        repeat through the Table of Scheduled Events:
            if there is an SA_Object_Event entry and the SA_Object_Event entry is E and there is a SA_Target entry and the SA_Target entry is T:
                if (there is a SA_Moment entry and the SA_Moment entry is time of day) or (there is a SA_Turn entry and the SA_Turn entry is turn count), decide yes;
        decide no.