project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/Signal.java
author Medo <smaxein@googlemail.com>
Sat, 21 Jul 2012 14:56:52 +0200
changeset 7349 12fdfd2038d4
parent 7332 3f2e130f9715
permissions -rw-r--r--
Hedgeroid: More work on the lobby activity

package org.hedgewars.hedgeroid.netplay;

import java.util.List;

public class Signal<CallbackType> {
	private List<CallbackType> observers; 
	
	public void addListener(CallbackType cb) {
		observers.add(cb);
	}
	
	public void removeListener(CallbackType cb) {
		observers.remove(cb);
	}
}