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

em.goof.force

Class EM_GOOF_LOCALIZED_FORCE


Direct ancestors

EM_GOOF_UNARY_FORCE

Known direct descendants

EM_GOOF_LOCALIZED_DIRECTIONAL_FORCE

Features

Invariants

indexing

description

An EM_GOOF_UNARY_FORCE that applies only in a certain EM_GOOF_AREA.

date

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

revision

$Revision: 1.5 $

deferred class

EM_GOOF_LOCALIZED_FORCE

inherit

EM_GOOF_UNARY_FORCE

feature {EM_GOOF_FORCE, EM_GOOF_PHYSICS} -- Processing

is_force_applicable (object: EM_GOOF_PHYSICABLE): BOOLEAN

-- Does the force apply to this object?

-- (From EM_GOOF_UNARY_FORCE)

require
object_not_void: object /= void
process (objects: DS_LINKED_LIST[EM_GOOF_OBJECT])

-- Apply force to all physicables

-- (From EM_GOOF_FORCE)

require
is_objects: objects /= void
process_object (object: EM_GOOF_PHYSICABLE)

-- Apply force to this object

-- (From EM_GOOF_UNARY_FORCE)

require
object_not_void: object /= void

feature {EM_GOOF_FORCE, EM_GOOF_PHYSICS} -- properties

effect_area: EM_GOOF_AREA

-- Area in with this force is effective

invariant

effect_area_not_void: effect_area /= void

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

end