Example #1
0
/* Recreates the current level */
void flux(int blessing)
{
  mprint("The universe warps around you!");
  if (Current_Environment == E_CITY) {
    mprint("Sensing dangerous high order magic, the Collegium Magii");
    mprint("and the Circle of Sorcerors join forces to negate the spell.");
    mprint("You are zapped by an antimagic ray!!!");
    dispel(-1);
    mprint("The universe unwarps itself....");
  }
  else if (Current_Environment != Current_Dungeon)
    mprint("Odd.... No effect!");
  else {
    mprint("You stagger as the very nature of reality warps!");
    erase_level();
    Level->generated = FALSE;
    mprint("The fabric of spacetime reknits....");
    change_level(Level->depth-1,Level->depth,TRUE);
  }
}
Example #2
0
 inline bool
 Depth<SIZE>::close_order(
     Price price,
     Quantity open_qty,
     bool is_bid
 )
 {
     DepthLevel* level = find_level(price, is_bid, false);
     if (level) {
         // If this is the last order on the level
         if (level->close_order(open_qty)) {
             erase_level(level, is_bid);
             return true;
             // Else, mark the level as changed
         } else {
             level->last_change(++last_change_);
         }
     }
     return false;
 }