Handling Rooms as classes

All and any discussion and development of the Mudlet Mapper.
Post Reply
Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Handling Rooms as classes

Post by Filion »

Can I make every room "contain" different info, like "Room Name", "Room Desc", "Room exits", "doors", "hiddendoors" as classes?

P.S. Chris any ETA on the door,oneway room glyphs? :D

User avatar
chris
Posts: 493
Joined: Fri Jun 17, 2011 5:39 am

Re: Handling Rooms as classes

Post by chris »

If you use my repository, probably sometime soon, though I want to overhaul the mapper so it may take some time. For the general release, I'm not sure.

For the info, use setRoomUserData(id, key, value)

You can make your own mappings in value by using known delimiters such as a pipe or a unique sequence you want to implement.

User avatar
Vadi
Posts: 5048
Joined: Sat Mar 14, 2009 3:13 pm

Re: Handling Rooms as classes

Post by Vadi »

You certainly can if you implement a layer between Mudlets APIs. We officially don't have plans to present our API as a class - we present low-level stuff, and then frameworks build on it as they like (Geyser, Vyzor).

Daagar
Posts: 89
Joined: Fri Feb 19, 2010 2:42 am

Re: Handling Rooms as classes

Post by Daagar »

chris wrote: I want to overhaul the mapper
Your ideas are interesting, and I'd like to subscribe to your newsletter. :)

Post Reply