org.jcurl.core.api
Interface Collider

Package class diagram package Collider
All Superinterfaces:
Iterable<Map.Entry<CharSequence,Measure>>, PropModel, Strategy
All Known Implementing Classes:
ColliderBase, CollissionSimple, CollissionSpin, CollissionSpinLoss

public interface Collider
extends PropModel, Strategy

Compute rock collissions.

Version:
$Id:Collider.java 682 2007-08-12 21:25:04Z mrohrmoser $
Author:
M. Rohrmoser

Method Summary
 int compute(RockSet<RockType.Pos> pos, RockSet<RockType.Vel> speed, AffineTransform tr)
          Check for and compute all collissions.
 void init(Map<CharSequence,Measure> ice)
           
 
Methods inherited from interface org.jcurl.core.api.PropModel
getProp, iterator
 

Method Detail

compute

int compute(RockSet<RockType.Pos> pos,
            RockSet<RockType.Vel> speed,
            AffineTransform tr)
Check for and compute all collissions.

Does not change pos!

Does not fire RockSet.fireStateChanged()!

Parameters:
pos - the positions (before and after the hit)
speed - (before and after the hit)
tr - Helper reference to avoid internal instanciations. null creates a new instance.
Returns:
bitmask of the changed rocks

init

void init(Map<CharSequence,Measure> ice)
Specified by:
init in interface PropModel


Copyright © 2005-2009 jcurl.org. All Rights Reserved.