The game/gamesrc/objects/examples defaulted to class names that did not match the tutorials.
This commit is contained in:
parent
261e463505
commit
916813376e
5 changed files with 10 additions and 10 deletions
|
|
@ -16,9 +16,9 @@ this change, you have to convert them manually e.g. with the
|
||||||
@typeclass command.
|
@typeclass command.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from ev import Character
|
from ev import Character as DefaultCharacter
|
||||||
|
|
||||||
class ExampleCharacter(Character):
|
class Character(DefaultCharacter):
|
||||||
"""
|
"""
|
||||||
The Character is like any normal Object (see example/object.py for
|
The Character is like any normal Object (see example/object.py for
|
||||||
a list of properties and methods), except it actually implements
|
a list of properties and methods), except it actually implements
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ this change, you have to convert them manually e.g. with the
|
||||||
@typeclass command.
|
@typeclass command.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from ev import Exit
|
from ev import Exit as DefaultExit
|
||||||
|
|
||||||
class ExampleExit(Exit):
|
class Exit(DefaultExit):
|
||||||
"""
|
"""
|
||||||
Exits are connectors between rooms. Exits are normal Objects except
|
Exits are connectors between rooms. Exits are normal Objects except
|
||||||
they defines the 'destination' property. It also does work in the
|
they defines the 'destination' property. It also does work in the
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ this change, you have to convert them manually e.g. with the
|
||||||
@typeclass command.
|
@typeclass command.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from ev import Object
|
from ev import Object as DefaultObject
|
||||||
|
|
||||||
class ExampleObject(Object):
|
class Object(DefaultObject):
|
||||||
"""
|
"""
|
||||||
This is the root typeclass object, implementing an in-game Evennia
|
This is the root typeclass object, implementing an in-game Evennia
|
||||||
game object, such as having a location, being able to be
|
game object, such as having a location, being able to be
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,9 @@ this change, you have to convert them manually e.g. with the
|
||||||
@typeclass command.
|
@typeclass command.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from ev import Player
|
from ev import Player as DefaultPlayer
|
||||||
|
|
||||||
class ExamplePlayer(Player):
|
class Player(DefaultPlayer):
|
||||||
"""
|
"""
|
||||||
This class describes the actual OOC player (i.e. the user connecting
|
This class describes the actual OOC player (i.e. the user connecting
|
||||||
to the MUD). It does NOT have visual appearance in the game world (that
|
to the MUD). It does NOT have visual appearance in the game world (that
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ this change, you have to convert them manually e.g. with the
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ev import Room
|
from ev import Room as DefaultRoom
|
||||||
|
|
||||||
class ExampleRoom(Room):
|
class Room(DefaultRoom):
|
||||||
"""
|
"""
|
||||||
Rooms are like any Object, except their location is None
|
Rooms are like any Object, except their location is None
|
||||||
(which is default). They also use basetype_setup() to
|
(which is default). They also use basetype_setup() to
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue