#ifndef MESSAGE_H #define MESSAGE_H #include "tile.h" /* message.h - defines the entire messaging system. Basically, instead of calling printl or something similar to what nethack does, messages are transferred by sending a message to some Tile. If the tile is of an appropriate type to receive the message, such as PlayerTile/PLAYER, then calls to interfacePrint() are in order. This is somewhat more similar to a real world, as every object "communicates" with every other object and has to run through their senses. So, basically, the eyes/ears = PlayerTile and the brain = interfacePrint. Kinda. */ /* messages! */ #define MESSAGE_OPEN "You open the %s" #define MESSAGE_CLOSE "You close the %s" void messageTile(struct Tile *sender, struct Tile *recipient, const char *message); void messageTiles(struct Tile *sender, struct Tile **recipients, const char *message); #endif