@@ -0,0 +1,1716 @@
+/*******************************************************************************%0A * This file is part of TERMINAL RECALL%0A * Copyright (c) 2015 Chuck Ritola%0A * Part of the jTRFP.org project%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the GNU Public License v3.0%0A * which accompanies this distribution, and is available at%0A * http://www.gnu.org/licenses/gpl.html%0A * %0A * Contributors:%0A *     chuck - initial API and implementation%0A ******************************************************************************/%0A%0Apackage org.jtrfp.trcl.beh;%0A%0Aimport org.jtrfp.trcl.AbstractSubmitter;%0Aimport org.jtrfp.trcl.obj.Player;%0A%0Apublic class DamagedByCollisionWithPlayer extends Behavior implements PlayerCollisionListener %7B%0A    private final int damageAmount;%0A    private final int damageIntervalMillis;%0A    private long nextMinDamageTimeMillis;%0A    %0A    public DamagedByCollisionWithPlayer(int damageAmount, int damageIntervalMillis)%7B%0A%09this.damageAmount        =damageAmount;%0A%09this.damageIntervalMillis=damageIntervalMillis;%0A    %7D%0A%0A    @Override%0A    public void collidedWithPlayer(Player player) %7B%0A%09if(System.currentTimeMillis() %3C nextMinDamageTimeMillis)%0A%09    return;//Not yet%0A%09getParent().probeForBehaviors(damageableSubmitter, DamageableBehavior.class);%0A%09nextMinDamageTimeMillis = System.currentTimeMillis()+damageIntervalMillis;%0A    %7D%0A    %0A    private final AbstractSubmitter%3CDamageableBehavior%3E damageableSubmitter = new AbstractSubmitter%3CDamageableBehavior%3E()%7B%0A%09@Override%0A%09public void submit(DamageableBehavior item) %7B%0A%09    item.proposeDamage(new DamageListener.Event(damageAmount)%7B%7D);%0A%09%7D//end damageableSubmitter%0A    %7D;%0A%0A%7D//end DamagedByCollisionWithPlayer

Add DamagedByCollisionWithPlayer to index.