Eiffel Media API
Overview Cluster Class Classes Index      Previous Next      Top Features

em.goof.force

Class EM_GOOF_BINARY_FORCE


Direct ancestors

EM_GOOF_FORCE

Known direct descendants

EM_GOOF_GRAVITY

Features

Invariants

indexing

description

An EM_GOOF_FORCE that applies between every two EM_GOOF_PHYSICABLE.

date

$Date: 2005/10/23 09:39:25 $

revision

$Revision: 1.4 $

deferred class

EM_GOOF_BINARY_FORCE

inherit

EM_GOOF_FORCE

feature {EM_GOOF_FORCE, EM_GOOF_PHYSICS} -- Processing

process (objects: DS_LINKED_LIST[EM_GOOF_OBJECT])

-- Apply force to all physicables
-- Every force is applied to every possible pair of physicable objects

-- (From EM_GOOF_FORCE)

require
is_objects: objects /= void
process_objects (object1,object2: EM_GOOF_PHYSICABLE)

-- apply the force to this object

require
object_1_not_void: object1 /= void
object_2_not_void: object2 /= void

invariant


-- From ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)

end