-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ProjectMoon
committed
Jun 30, 2010
1 parent
497bdb0
commit 3fe0063
Showing
4 changed files
with
59 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,12 @@ | ||
from ring.nrapi.xml import XMLConverter | ||
from ring.mobiles import RaceFactory | ||
from ring.mobiles.npc import NPC | ||
from ring.movement import Room, Location, Portal | ||
|
||
__document__.codebehind = "code/events.py" | ||
|
||
mob = NPC() | ||
mob.ID = "someGuy" | ||
mob.baseModel.name = "Some guy" | ||
mob.baseModel.race = RaceFactory.createHuman() | ||
mob.baseModel.description = "You look at this guy and your mind EXPLODES WITH [RED][B]AWESOME![R]" | ||
|
||
room1 = Room() | ||
room1.ID = "room1" | ||
room1.model.title = "In the Void" | ||
room1.model.description = "You are somewhere in the void of the cosmos..." | ||
room1.addMobile(mob) | ||
|
||
room2 = Room() | ||
room2.ID = "room2" | ||
room2.model.title = "Somewhere else in the void" | ||
room2.model.description = "You are in another place in the void of the cosmos..." | ||
|
||
loc1 = XMLConverter.create(Location) | ||
loc1.ID = "loc1" | ||
loc1.room = room1 | ||
p1 = Portal() | ||
p1.destination = room2 | ||
p1.displayName = "north" | ||
loc1.addExit(p1) | ||
|
||
loc2 = XMLConverter.create(Location) | ||
loc2.ID = "loc2" | ||
loc2.room = room2 | ||
p2 = Portal() | ||
p2.destination = room1 | ||
p2.displayName = "south" | ||
loc2.addExit(p2) | ||
import jynx | ||
from java.lang import Object | ||
from jynx.lib.junit import* | ||
from jynx.jannotations import* | ||
|
||
@JavaClass | ||
class JavaCompilerTest(Object): | ||
@Override | ||
def blah(self): | ||
print "blah" | ||
|
||
JavaCompilerTest() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters