src/infinity/ecs/messaging/IndexedMessageDispatcher.java
/**
	 * Registers the specified {@link MessageType} witch the specified
	 * {@link IndexedMessageEndpoint}.  
	 * 
	 * @param endpoint The {@link IndexedMessageEndpoint} for which the type should be registered.
	 * @param msgType The {@link MessageType} which should be registered.
	 */
Registers the specified  MessageType witch the specified
IndexedMessageEndpoint.

@param endpoint The  IndexedMessageEndpoint for which the type should be registered.
@param msgType The  MessageType which should be registered.
Registers the specified MessageType witch the specified IndexedMessageEndpoint . @param endpoint The IndexedMessageEndpoint for which the type should be registered . @param msgType The MessageType which should be registered .
void register(IndexedMessageEndpoint endpoint, MessageType msgType) {
		int msgId = msgType.getId();
		List<IndexedMessageEndpoint> epList = _endpointRegister.get(msgId);
		if (epList == null) {
			epList = new ArrayList<IndexedMessageEndpoint>();
			epList.add(endpoint);
			_endpointRegister.set(msgId, epList);
			return;
		}
		if (!epList.contains(endpoint))
			epList.add(endpoint);
	}
void register ( IndexedMessageEndpoint endpoint , MessageType msgType ) { int msgId = msgType . getId ( ) ; List < IndexedMessageEndpoint > epList = _endpointRegister . get ( msgId ) ; if ( epList == null ) { epList = new ArrayList < IndexedMessageEndpoint > ( ) ; epList . add ( endpoint ) ; _endpointRegister . set ( msgId , epList ) ; return ; } if ( ! epList . contains ( endpoint ) ) epList . add ( endpoint ) ; }
Registers the specified {@link MessageType} witch the specified
 {@link IndexedMessageEndpoint}.
Registers the specified { @link MessageType } witch the specified { @link IndexedMessageEndpoint } .
// if there is no entry for the type of the message, a new one needs to be created
 // otherwise the endpoint can be simply added to the list if it is not already part of it
