Exemplo n.º 1
0
 public static void Clear()
 {
     CelStack.Clear();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Pops an object from the top of our stack
 /// </summary>
 public static CelesteObject Pop()
 {
     Debug.Assert(CelStack.Count > 0);
     return(CelStack.Pop() as CelesteObject);
 }
Exemplo n.º 3
0
 public static void Push(Reference reference)
 {
     CelStack.Push(new CelesteObject(reference));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Pushes an already created Celeste object onto the stack
 /// </summary>
 /// <param name="celObject"></param>
 public static void Push(CelesteObject celObject)
 {
     CelStack.Push(celObject);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Pushes a generic object onto our stack.
 /// Should not be used for lists/arrays etc.
 /// Use this if you do not care about referencing (e.g. with adding two hardcoded values
 /// </summary>
 /// <param name="celObject"></param>
 public static void Push(object value)
 {
     CelStack.Push(new CelesteObject(value));
 }