I'm refactoring a number of classes in an application to use interfaces instead of base classes. Here's the interfaces I created so far:
- ICarryable implemented by all Item objects
- IActable implemented by all Actor objects
- IUseable implemented by some Item sub-classes
- IWieldable implemented by some Item sub-classes
You can see the major base-classes are still Item and Actor. These have a common interface in that they both are located on a Map, so they have a Location property. The Map shouldn't care whether the object is an Actor or an Item, so I want to create an interface for it. Here's what the interface would look like
public interface IUnnameable {
event EventHandler<LocationChangedEventArgs> LocationChanged;
Location Location { get; set; }
}
That's no problem, but I can't think of what to call this interface. IMappable comes to mind by seems a bit lame. Any ideas?