Example #1
0
 def __init__(self, args):
     lArgs = []
     posf = 0
     posb = 0
     for x in args:
         posb = posb + 1
         if x == "\n":
             lArgs.append(PorkPy.resolveent(args[posf:posb-1]))
             posf = posb
     self.__defer__(*lArgs)
Example #2
0
 def __init__(self, args):
     lArgs = []
     posf = 0
     posb = 0
     for x in args:
         posb = posb + 1
         if x == "\n":
             lArgs.append(PorkPy.resolveent(args[posf:posb - 1]))
             posf = posb
     self.__defer__(*lArgs)
def PSendEvent(event):
    """Send state event to engine."""
    PorkPy.sendevent(event)
def PAddToInventory(item):
    """Add 1 of 'item' to the inventory."""
    PorkPy.addtoinv(item)
def PRemoveFromMap(item):
    """Remove 1 of 'item' from the current map."""
    PorkPy.removefm(item)
def PChgMap(newmap):
    """Change the current game map to newmap."""
    PorkPy.chgmap(newmap)
def PReplace(item1, item2):
    """Replace item1 with item2."""
    PorkPy.replace(item1, item2)
def PPrint(message):
    """Print a Message to Game Screen."""
    PorkPy.pprint(message)
def PSendEvent(event):
    """Send state event to engine."""
    PorkPy.sendevent(event)
    pass
def PAddToInventory(item):
    """Add 1 of 'item' to the inventory."""
    PorkPy.addtoinv(item)
    pass
def PRemoveFromMap(item):
    """Remove 1 of 'item' from the current map."""
    PorkPy.removefm(item)
    pass
def PChgMap(newmap):
    """Change the current game map to newmap."""
    PorkPy.chgmap(newmap)
    pass
def PReplace(item1, item2):
    """Replace item1 with item2."""
    PorkPy.replace(item1,item2)
    pass
def PPrint(message):
    """Print a Message to Game Screen."""
    PorkPy.pprint(message)
    pass