Package pajammin :: Package util :: Module importlevel :: Class Converter
[show private | hide private]
[frames | no frames]

Class Converter


Method Summary
  autoexit(self, x1, y1, x2, y2, dest)
  background(self, opaque, filename)
  bgobject(self, x, y, style)
  bouncyplatform(self, x, y, length, style)
  cloud(self, x, y)
  conditional(self)
  convert(self, filename)
  exitregion(self, x1, y1, x2, y2, dest)
  ground(self, x, y, style)
  label(self, x, y, text)
  labeledregion(self, x1, y1, x2, y2, text, color, x, y)
  messageregion(self, x1, y1, x2, y2, text)
  monster(self, basename, x, y, style)
  movingplatform(self, x, y, x1, y1, x2, y2, length, style, speed)
  pajamapickup(self, x, y, id)
  platform(self, x, y, length, style)
  player(self, x, y)
  solidspace(self, x1, y1, x2, y2)
  teleporter(self, x1, y1, x2, y2, destx, desty)
  viewport_left(self, x)
  viewport_top(self, y)
  wall(self, x, y, length, style)
  _add_shift(self, entity)
Add a (single-body) entity to the level, and shift it so that its upper left corner is where its center used to be (since the old system used upper-left corners as anchors, and the new system uses centers).
  _decoration_style(self, style)
  _ground_style(self, style)
  _pjid(self, pjid)
  _platform_style(self, style)
  _wall_style(self, style)

Class Variable Summary
str COLOR = '(\\(\\d+,\\s*\\d+,\\s*\\d+\\))'
list DISPATCH = [('#.*', None), ('from \\w+ import.*', None),...
str FLOAT = '(-?\\d+(?:.\\d*)?)'
str INT = '(-?\\d+)'
str MONSTER = '(Bird|Turtle|TurtleRider|Farie|Spider)'
str STR = '(\'(?:\'|[^\'])*\'|"(?:"|[^"])*)'

Method Details

autoexit(self, x1, y1, x2, y2, dest)

background(self, opaque, filename)

bgobject(self, x, y, style)

bouncyplatform(self, x, y, length, style)

cloud(self, x, y)

conditional(self)

convert(self, filename)

exitregion(self, x1, y1, x2, y2, dest)

ground(self, x, y, style)

label(self, x, y, text)

labeledregion(self, x1, y1, x2, y2, text, color, x, y)

messageregion(self, x1, y1, x2, y2, text)

monster(self, basename, x, y, style)

movingplatform(self, x, y, x1, y1, x2, y2, length, style, speed)

pajamapickup(self, x, y, id)

platform(self, x, y, length, style)

player(self, x, y)

solidspace(self, x1, y1, x2, y2)

teleporter(self, x1, y1, x2, y2, destx, desty)

viewport_left(self, x)

viewport_top(self, y)

wall(self, x, y, length, style)

_add_shift(self, entity)

Add a (single-body) entity to the level, and shift it so that its upper left corner is where its center used to be (since the old system used upper-left corners as anchors, and the new system uses centers).

_decoration_style(self, style)

_ground_style(self, style)

_pjid(self, pjid)

_platform_style(self, style)

_wall_style(self, style)


Class Variable Details

COLOR

Type:
str
Value:
'(\\(\\d+,\\s*\\d+,\\s*\\d+\\))'                                       

DISPATCH

Type:
list
Value:
[('#.*', None),
 ('from \\w+ import.*', None),
 ('\\s*', None),
 ('self.add\\(GroundSpace\\(.*', None),
 ('self.fixed_viewport = .*', None),
 ('self.add\\(Player\\(x=(-?\\d+), y=(-?\\d+).*', 'player'),
 ('self.add\\(BgObject\\(x=(-?\\d+), y=(-?\\d+), style=(\'(?:\'|[^\'])\
*\'|"(?:"|[^"])*)\\)\\)',
...                                                                    

FLOAT

Type:
str
Value:
'(-?\\d+(?:.\\d*)?)'                                                   

INT

Type:
str
Value:
'(-?\\d+)'                                                             

MONSTER

Type:
str
Value:
'(Bird|Turtle|TurtleRider|Farie|Spider)'                               

STR

Type:
str
Value:
'(\'(?:\'|[^\'])*\'|"(?:"|[^"])*)'