June.isStopped C# (CSharp) Method

isStopped() public method

public isStopped ( ) : bool
return bool
    public bool isStopped()
    {
        return is_stopped;
    }

Usage Example

Example #1
0
    // Returns true if the most recently cast spell is running, false if it is not running
    //  Note that other spells may also be running on this object regardless of what is returned here
    public bool isEnchanted()
    {
        ////////////////////////////////
//      if (junes.Count == 0)
//          return false;
//
//      foreach (June j in junes) {
//          if (!j.isStopped())
//              return true;
//      }
//      return false;
        /////////////////////////////////

        if (june == null)
        {
            //return true;
            return(false);
        }

        if (june.isStopped())
        {
            is_enchanted = false;
            enchantmentsRunning.Pop();
            enchantmentsRunning.Push(false);
        }

        return(is_enchanted);
    }