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

em.network.multiplayer

Class EM_NET_EVENT_PROCESSOR


Known direct descendants

EM_NET_GROUP, EM_NET_BASE, EM_NET_CONNECTION

Creation

Features

Invariants

indexing

description

Event subscription pattern for object types.

An event processor let clients subscribe to events.
If an event occurs later, all subscribed clients will be notified.

date

$Date: 2005/10/23 10:04:13 $

revision

$Revision: 1.12 $

class

EM_NET_EVENT_PROCESSOR

create {EM_NET_BASE}

make

-- Create a new event processor.

ensure
events_created: events /= Void

feature -- Element change

subscribe_by_event (an_event: EM_NET_EVENT_OBJECT; a_procedure: PROCEDURE [ANY, TUPLE])

-- Subscribe a_procedure to an_event.

subscribe_by_type_id (an_event_type_id: INTEGER; a_procedure: PROCEDURE [ANY, TUPLE])

-- Subscribe a_procedure to an event with an_event_type_id.

unsubscribe_by_event (an_event: EM_NET_OBJECT; a_procedure: PROCEDURE [ANY, TUPLE])

-- Unsubscribe a_procedure from an_event.

unsubscribe_by_type_id (an_event_type_id: INTEGER; a_procedure: PROCEDURE [ANY, TUPLE])

-- Unsubscribe a_procedure from an event with an_event_type_id.

feature -- Publishing

publish (an_event: EM_NET_EVENT_OBJECT)

-- Publish an_event to the event queue.

invariant


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

end