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 » Tue Oct 09, 2012 2:43 pm

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 » Sat Oct 13, 2012 2:51 am

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: 4727
Joined: Sat Mar 14, 2009 3:13 pm

Re: Handling Rooms as classes

Post by Vadi » Sat Oct 13, 2012 9:32 am

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: 84
Joined: Fri Feb 19, 2010 2:42 am

Re: Handling Rooms as classes

Post by Daagar » Thu Oct 18, 2012 11:09 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests