pl/mbogusz3/invaders/model/InvadersModel.java
/**
	 * Recalculate new game state, based on passed time.
	 * @param frameTime frame time, in seconds
	 * @param forceUpdate whether to force update to observers
	 */
Recalculate new game state, based on passed time.
@param frameTime frame time, in seconds
@param forceUpdate whether to force update to observers
Recalculate new game state based on passed time . @param frameTime frame time in seconds @param forceUpdate whether to force update to observers
public void recalculate(double frameTime, boolean forceUpdate) {
		this.hasChanged = false;
		this.recalculatePlayerActions(frameTime);
		this.recalculateEnemyActions(frameTime);
		this.collisionDetectionPlayerProjectile();
		this.collisionDetectionEnemyProjectile();
		if(this.hasChanged || forceUpdate) {
			this.setChanged();
			this.notifyView();
		}
	}
public void recalculate ( double frameTime , boolean forceUpdate ) { this . hasChanged = false ; this . recalculatePlayerActions ( frameTime ) ; this . recalculateEnemyActions ( frameTime ) ; this . collisionDetectionPlayerProjectile ( ) ; this . collisionDetectionEnemyProjectile ( ) ; if ( this . hasChanged || forceUpdate ) { this . setChanged ( ) ; this . notifyView ( ) ; } }
Recalculate new game state, based on passed time.
Recalculate new game state based on passed time .
// Player and enemy actions (movement and shooting) // Collision detection