Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(58)  |  Call(50)  |  Derive(0)  |  Import(8)

src/l/a/Lampost-Mud-HEAD/lampost/env/room.py   Lampost-Mud(Download)
from lampost.comm.broadcast import Broadcast
from lampost.context.resource import m_requires
from lampost.datastore.dbo import RootDBO, DBOField, DBOTField
from lampost.env.movement import Direction
from lampost.gameops.script import Scriptable
class Room(Scriptable):
    dbo_key_type = 'room'
    dbo_parent_type = 'area'
 
    dbo_rev = DBOTField(0)
    desc = DBOTField()
    size = DBOTField(default_room_size)
    exits = DBOTField([], 'exit')

src/l/a/Lampost-Mud-HEAD/lampost/lpflavor/skill.py   Lampost-Mud(Download)
from random import randint
from lampost.context.resource import m_requires
from lampost.datastore.dbo import DBOField, DBOTField
from lampost.datastore.auto import TemplateField
from lampost.gameops.action import ActionError, convert_verbs
class BaseSkill(TemplateInstance):
    template_id = 'skill'
 
    verb = DBOTField()
    desc = DBOTField()
    prep_time = DBOTField(0)
    cool_down = DBOTField(0)

src/l/a/Lampost-Mud-HEAD/lampost/model/article.py   Lampost-Mud(Download)
from lampost.datastore.auto import TemplateField
from lampost.gameops.script import Scriptable
from lampost.model.item import BaseItem, target_keys
from lampost.gameops.action import ActionError
from lampost.datastore.dbo import RootDBO, DBOField, DBOTField
class Article(BaseItem, Scriptable):
    template_id  = 'article'
 
    weight = DBOTField(0)
    value = DBOTField(0)
    divisible = DBOTField(False)
    equip_slot = DBOTField('none')

src/l/a/Lampost-Mud-HEAD/lampost/lpflavor/combat.py   Lampost-Mud(Download)
from __future__ import division
from lampost.context.resource import m_requires
from lampost.datastore.dbo import DBOTField
from lampost.datastore.auto import RootAuto, TemplateField
from lampost.gameops.action import ActionError
    display = COMBAT_DISPLAY
    msg_class = 'attacked'
    damage_type = DBOTField('weapon')
    delivery = DBOTField('melee')
    damage_calc = DBOTField({})
    damage_pool = DBOTField('health')

src/l/a/Lampost-Mud-HEAD/lampost/model/item.py   Lampost-Mud(Download)
import math
import itertools
 
from lampost.context.resource import m_requires
from lampost.datastore.dbo import DBOField, DBOTField
class BaseItem(TemplateInstance):
    __metaclass__ = BaseItemMeta
    class_id = 'base_item'
 
    desc = DBOTField('')
    title = DBOTField('')
    aliases = DBOTField([])
    sex = DBOTField('none')

src/l/a/Lampost-Mud-HEAD/lampost/model/entity.py   Lampost-Mud(Download)
from collections import defaultdict
from lampost.datastore.dbo import DBOField, DBOTField
from lampost.gameops.action import action_handler, add_actions, remove_action, add_action
 
from lampost.comm.broadcast import Broadcast
class Entity(BaseItem):
    size = DBOTField('medium')
    inven = DBOField(InvenContainer(), 'container')
 
    status = 'ok'

src/l/a/Lampost-Mud-HEAD/lampost/lpflavor/mobile.py   Lampost-Mud(Download)
from lampost.context.resource import m_requires
from lampost.datastore.dbo import DBOField, DBOTField
from lampost.datastore.auto import TemplateField
from lampost.lpflavor.archetype import Archetype
from lampost.lpflavor.attributes import fill_pools
class MobileLP(EntityLP):
    template_id = "mobile"
 
    archetype = DBOTField()
    level = DBOTField(1)
    affinity = DBOTField('neutral')

src/l/a/Lampost-Mud-HEAD/lampost/lpflavor/article.py   Lampost-Mud(Download)
from lampost.comm.broadcast import BroadcastMap
from lampost.datastore.dbo import DBOTField
from lampost.datastore.auto import TemplateField
from lampost.model.article import Article, ArticleTemplate
from lampost.mud.action import mud_action
class ArticleLP(Article):
    weapon_type = DBOTField('mace')
    damage_type = DBOTField('blunt')
    delivery = DBOTField('melee')
    equip_msg = TemplateField()