Java 类com.badlogic.gdx.ai.msg.Telegraph 实例源码

项目:nhglib    文件:AssetStateIdle.java   
public AssetStateIdle() {
    MessageManager.getInstance().addListener(new Telegraph() {
        @Override
        public boolean handleMessage(Telegram msg) {
            startGcTask();
            return true;
        }
    }, AssetsStates.ASSETS_GC);
}
项目:gdx-ai    文件:TelegramProviderTest.java   
@Override
public Object provideMessageInfo (int msg, Telegraph receiver) {
    // when a new citizen come to town we tell him that we exists
    return this;
}