I have a waypoint class which i use to connect a bunch of other waypoints up.
But i also have a special type called a consumer, this is not technically a waypoint but it needs to act like one in that waypoints need to connect to it.
So i thought about using an interface due to this
has a nature of the consumer so i can have both types listed together like
Waypoint, IWaypoint Consumer, IWaypoint
Consumer is an object that does many things beyond just being a waypoint, but it also connects to the waypoint system to receive agents, so i feel like this means consumer
has a waypoint relationship.
But to me it seems a bit code smell for
Waypoint to have the interface IWaypoint since it feels a bit redundant.
Is this the right way to do it ?