当前位置: 首页>>代码示例>>Python>>正文


Python Room.roomname方法代码示例

本文整理汇总了Python中room.Room.roomname方法的典型用法代码示例。如果您正苦于以下问题:Python Room.roomname方法的具体用法?Python Room.roomname怎么用?Python Room.roomname使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在room.Room的用法示例。


在下文中一共展示了Room.roomname方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'hallway'
r.exits = {'dorm room': 'dormroom',
 'elevator': 'elevator',
 'room 420': 'room 420',
 'stairs': 'lounge'}
r.roomdesc = """
a somewhat dingy ill lit Hallway with many dorm rooms attached. You dont know any one on this floor except for that crazy anti government guy, Garret, who lives down the hall in room 420. the stairs are down the opposite end of the hall, while the sedate elevator is just a few doors down from your room.


"""
r.looktargets = {'420': 'is that smoke coming from under the door?!?!\n\n',
 'room 420': 'is that smoke coming from under the door?!?!\n\n'}
开发者ID:elstupido,项目名称:rpg,代码行数:16,代码来源:Hallway.room.py

示例2: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'elevator'
r.exits = {'ceiling': 'elevatorroof',
 'floor 1': 'lobby',
 'floor 2': 'lounge',
 'hallway': 'hallway'}
r.hide_looktargets = ['ceiling']
r.hide_exits = ['ceiling']
r.roomdesc = """
A very...very slow elevator with a very dirty carpet sained to the point of which its original color will forever remain a mystery and very sketchy light that flickers constantly and emits a buzzing sound. you notice a ceiling panel is out of place and hanging down a at one corner. there is a note next to the bottom two floors, floor 1 exit, floor 2 lounge 


"""
r.looktargets = {'carpet': 'I dont even want to think how it got that dirty\n\n',
 'ceiling': 'the emergency exit is out of place, wonder how that happened?\n\n',
 'light': 'DONT TOUCH THAT!\n\n'}
开发者ID:elstupido,项目名称:rpg,代码行数:19,代码来源:Elevator1.room.py

示例3: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'lounge'
r.exits = {'elevator': 'elevator', 'stairs': 'hallway'}
r.roomdesc = """
medium sized room with tiled floors and drop ceilings filled with an assortment of chairs couches and tables. a few people sit in groups here and there. A bulletin board stands off in the corner and a rather official looking man sits at a table piled high with pamphlets


"""
r.looktargets = {'bulletin board': 'various posters and pamphlets.\n\n',
 'chairs': 'scattered around the room as groups needed\n\n',
 'couches': 'mostly vacant, with and ocasional napper.\n\n',
 'man': 'looks to be recruiting for somthing. He Motions for you to come over and talk.\n\n',
 'offical man': 'looks to be recruiting for somthing. He Motions for you to come over and talk.\n\n',
 'people': 'groups here and there, either studying or finding various ways to pass the time.\n\n',
 'talktargets': 'man=g_man\n\n'}
开发者ID:elstupido,项目名称:rpg,代码行数:18,代码来源:lounge.room.py

示例4: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'testroom2'
r.exits = {'up': 'testroom'}
r.roomdesc = """
As you look around, you notice there seems to be not much here.
it appears you can go up and get back to where you came from
there is a pile of gold and a large monster looking at you strangely.


"""
r.looktargets = {'gold': 'oooh. Shiny!\n\n',
 'monster': 'HOLY CRAP ITS A MONSTER\n\n',
 'pile': 'oooh. Shiny!\n\n',
 'pile of gold': 'oooh. Shiny!\n\n',
 }
r.talktargets = {'monster': 'test_monster'}
r.characters = ['test_monster']
开发者ID:elstupido,项目名称:rpg,代码行数:20,代码来源:testroom2.room.py

示例5: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'westbrook'
r.exits = {'intersection': 'intersection', 'house 62': 'house62', 'house 56': 'house56'}
r.roomdesc = """
west brook street houses number 62 and 56 are targets

"""
r.looktargets = {'house 62': 'its red\n\n',
                 'house 56': 'its blue\n\n'} 
开发者ID:elstupido,项目名称:rpg,代码行数:12,代码来源:westbrook.room.py

示例6: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'intersection'
r.exits = {'north pine': 'northpine', 'south pine': 'southpine', 'east brook': 'eastbrook', 'west brook': 'westbrook', 'dorm street': 'dormstreet'}
r.roomdesc = """
where pine street and brook street intersect. pine street runs north southnbrook streed runs east west. starting place for op with erad.

"""
r.looktargets = {'erad': 'ROLL DOWN YOUR WINDOW!!!\n\n',}
开发者ID:elstupido,项目名称:rpg,代码行数:11,代码来源:intersection.room.py

示例7: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'lobby'
r.exits = {'elevator': 'elevator', 'exit': 'exit', 'security': 'secroom', 'dorm street': 'dormstreet'}
r.hide_looktargets = ['security center', 'security officer']
r.hide_exits = ['security center']
r.roomdesc = """
a sparsely furnished lobby with a couple of chairs and a worn out couch. a trash can is laying on its side and garbage is strewn across the floor, a janitorial cart is already sitting by the mess but the janitor is noticeably absent. a building security officer is sleeping just outside the building security center.


"""
r.looktargets = {'chair': 'Hard plastic and sticky.\n\n',
 'couch': 'a very dilapidated looking couch\n\n',
 'trash': 'GAG! uuggh whats in there.\n\n',
 'trash can': 'has a dent in the side, apears to have been kicked.\n\n',
 'security officer': 'sleeping on a stool next to the building security center.\n\n',
 'security center': 'a bullet proofed room with bars covering the large one way glass window overlooking the lobby.\n\n'
 } 
开发者ID:elstupido,项目名称:rpg,代码行数:20,代码来源:lobby.room.py

示例8: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'house12'
r.exits = {'east brook': 'eastbrook'}
r.roomdesc = """
a house it is blue

"""
r.looktargets = {'door': 'its closed\n\n'} 
开发者ID:elstupido,项目名称:rpg,代码行数:11,代码来源:eastbrookhouse12.room.py

示例9: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'house42'
r.exits = {'north pine': 'northpine'}
r.roomdesc = """
a house it is purple

"""
r.looktargets = {'door': 'its closed\n\n'} 
开发者ID:elstupido,项目名称:rpg,代码行数:11,代码来源:northpine.house42.room.py

示例10: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'house56'
r.exits = {'west brook': 'westbrook'}
r.roomdesc = """
a house it is orange

"""
r.looktargets = {'door': 'its closed\n\n'} 
开发者ID:elstupido,项目名称:rpg,代码行数:11,代码来源:westbrookshouse56.room.py

示例11: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'house6'
r.exits = {'east brook': 'eastbrook'}
r.roomdesc = """
a house it is red

"""
r.looktargets = {'door': 'its closed\n\n'} 
开发者ID:elstupido,项目名称:rpg,代码行数:11,代码来源:eastbrookhouse6.room.py

示例12: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'dormroom'
r.mobsAllowed = False
r.exits = {'door': 'hallway', 'window': 'window'}
r.hide_exits = ['window']
r.hide_looktargets = ['under bed']
r.roomdesc = """
Your home away from home, its small but familiar. 
Your unmade bed lies askew, one corner pulled slightly 
away from the wall. Your hated alarm clock and favorite
book sit on your night stand by by the foot of your bed. 
across the room is your dresser containing your clothes 
and various knickknacks. the only other objects in the 
room are your trunk containing your school things which 
sits next to the door, and your computer which is 
resting on a flimsy desk, located by a very inviting window.
"""

r.looktargets = {
 'alarm clock': 'its black and noisy \n\n',
 'bed': 'your bed, cover by a black blanket with the white letters spelling  NAPPING ADVOCATE  #1\n\n',
 'behind bed': 'so thats where my pocket knife went! \n\n',
 'book': '1984 phew good thing this will never happen\n\n',
 'computer': 'good times, good times!!\n\n',
 'door': 'gate way to the outside world\n\n',
 'dresser': 'cloths in all the drawers but the top\n\n',
 'favorite book': '1984 phew good thing this will never happen\n\n',
 'night stand': 'a sturdy little table \n\n',
 'top drawer': 'Lock is stuck as usual if only I could find somthing to to jimmy  the lock.\n\n',
 'trunk': 'so many books!\n\n',
开发者ID:elstupido,项目名称:rpg,代码行数:33,代码来源:DormRoom.room.py

示例13: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'southpine'
r.exits = {'intersection': 'intersection', 'house 16': 'house16', 'house 22': 'house22'}
r.roomdesc = """
south pine street houses number 22 and 16 are targets

"""
r.looktargets = {'house 22': 'its red\n\n',
                 'house 16': 'its blue\n\n'} 
开发者ID:elstupido,项目名称:rpg,代码行数:12,代码来源:southpine.room.py

示例14: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'dormstreet'
r.exits = {'intersection': 'intersection', 'lobby': 'lobby'}
r.roomdesc = """
a street outside your dorm

"""
r.looktargets = {'shifty little man': ' weird that shifty little man again'}
开发者ID:elstupido,项目名称:rpg,代码行数:11,代码来源:dormstreet.room.py

示例15: Room

# 需要导入模块: from room import Room [as 别名]
# 或者: from room.Room import roomname [as 别名]
from room import Room
r = Room()
r.roomname = 'secroom'
r.exits = {'lobby': 'lobby'}
r.roomdesc = """
a security room


"""
r.looktargets = {'coffee': 'its hot!.\n\n'}
开发者ID:elstupido,项目名称:rpg,代码行数:12,代码来源:security.room.py


注:本文中的room.Room.roomname方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。