src/authoring/entities/InteractableEntity.java
private boolean contains(Component c) {
		for (Component existing : this.components) {
			if (existing.getKey().equals(c.getKey())) {
				return true;
			}
		}
		return false;
	}
/**
	 * Checks (by name) if the current entity already contains a given component.
	 * @param c the component to check
	 * @return true iff the component already belongs to this entity
	 */
Checks (by name) if the current entity already contains a given component.
@param c the component to check
@return true iff the component already belongs to this entity
Checks ( by name ) if the current entity already contains a given component . @param c the component to check @return true iff the component already belongs to this entity
private boolean contains(Component c) {
		for (Component existing : this.components) {
			if (existing.getKey().equals(c.getKey())) {
				return true;
			}
		}
		return false;
	}
private boolean contains ( Component c ) { for ( Component existing : this . components ) { if ( existing . getKey ( ) . equals ( c . getKey ( ) ) ) { return true ; } } return false ; }
Checks (by name) if the current entity already contains a given component.
Checks ( by name ) if the current entity already contains a given component .