Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## igeo
Interface IDynamics

All Superinterfaces:
  ISubobject

All Known Implementing Classes:
  IAgent, IBoid, IDynamicsBase, IParticle, IParticleAgent, IParticleDirectionLink, IParticleDistanceLink, IParticleOnCurve, IPointAgent, ISpacingEqualizer, IStraightener, ITension, ITensionOnCurve

    public interface IDynamics

extends ISubobject

Interface of a subobject of IObject to control dynamic behavior of IObject.

Version:
  0.7.0.0
Author:
  Satoru Sugihara

Method Summary
`void` | `interact(java.util.ArrayList<IDynamics> dynamics)` behavior definition of interaction with other dynamic objects.
`void` | `postinteract(java.util.ArrayList<IDynamics> dynamics)` executed after interact(ArrayList).
`void` | `postupdate()` executed after update().
`void` | `preinteract(java.util.ArrayList<IDynamics> dynamics)` executed before interact(ArrayList).
`void` | `preupdate()` executed before update().
`IDynamics` | `removeTarget(int i)` remove target object.
`IDynamics` | `removeTarget(IObject obj)` remove target object.
`IObject` | `target(int i)` get target object.
`IDynamics` | `target(IObject targetObj)` add terget object to be updated by this dynamic object.
`int` | `targetNum()` get total target number.
`java.util.ArrayList<IObject>` | `targets()` get all target objects.
`void` | `update()` behavior definition of updating dynamics in each time frame
`void` | `updateTarget()` update all terget objects (should be called when the dynamic object is updated).

Methods inherited from interface igeo.ISubobject
`parent, parent`

Method Detail

### interact

    void interact(java.util.ArrayList<IDynamics> dynamics)

  behavior definition of interaction with other dynamic objects. The server puts all dynamic objects including itself.

### update

    void update()

  behavior definition of updating dynamics in each time frame

### preinteract

    void preinteract(java.util.ArrayList<IDynamics> dynamics)

  executed before interact(ArrayList). behavior can be changed by IConfig.enablePreinteract and IConfig.loopPreinteract.

### postinteract

    void postinteract(java.util.ArrayList<IDynamics> dynamics)

  executed after interact(ArrayList). behavior can be changed by IConfig.enablePostinteract and IConfig.loopPostinteract.

### preupdate

    void preupdate()

  executed before update(). behavior can be changed by IConfig.enablePreupdate and IConfig.loopPreupdate.

### postupdate

    void postupdate()

  executed after update(). behavior can be changed by IConfig.enablePostupdate and IConfig.loopPostupdate.

### target

    IDynamics target(IObject targetObj)

  add terget object to be updated by this dynamic object.

### targetNum

    int targetNum()

  get total target number.

### target

    IObject target(int i)

  get target object.

### targets

    java.util.ArrayList<IObject> targets()

  get all target objects.

### removeTarget

    IDynamics removeTarget(int i)

  remove target object.

### removeTarget

    IDynamics removeTarget(IObject obj)

  remove target object.

### updateTarget

    void updateTarget()

  update all terget objects (should be called when the dynamic object is updated).

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD