Class PhilosopherImage
java.lang.Object
pi.actor.Actor
pi.actor.Image
demos.edu_projects.concurrency.philosophers.PhilosopherImage
- All Implemented Interfaces:
FrameListener,FrameListenerRegistration,KeyStrokeListenerRegistration,MouseClickListenerRegistration,MouseScrollListenerRegistration
Das Bild, das einen Philosophen zeigt.
Um die Klasse Philosopher nicht zu überfrachten mit Engine Pi
spezifischen Code, ist der Code zu Erzeugen eines Bildes nicht in dieser
Klasse beheimatet.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPhilosopherImage(Seat seat, demos.edu_projects.concurrency.philosophers.Philosopher philosopher) -
Method Summary
Modifier and TypeMethodDescriptionvoidonFrame(double pastTime) Diese Methode wird bei jedem Einzelbild eines angemeldeten Objekts erneut aufgerufen.Methods inherited from class pi.actor.Image
aspectRatio, flippedHorizontally, flippedHorizontally, flippedVertically, flippedVertically, height, height, image, image, image, pixelPerMeter, pixelPerMeter, reset, size, toggleFlipHorizontally, toggleFlipVertically, width, widthMethods inherited from class pi.actor.Actor
addCollisionListener, addCollisionListener, addCollisionListener, addMountListener, addUnmountListener, anchor, anchor, anchor, anchorformatted, angularDamping, angularDamping, angularVelocity, angularVelocity, animateColor, animateOpacity, animateParticle, applyForce, applyForce, applyForce, applyImpulse, applyImpulse, applyImpulse, applyRotationImpulse, applyTorque, awake, bodyType, bodyType, center, center, center, centerRelative, collisions, color, color, color, complementaryColor, contains, createDistanceJoint, createPrismaticJoint, createRevoluteJoint, createRopeJoint, createWeldJoint, debug, density, density, fixture, fixtures, fixtures, frameListeners, friction, friction, gravityScale, gravityScale, hide, isGrounded, isMounted, isRotationLocked, isVisible, keyStrokeListeners, label, label, layer, layerPosition, layerPosition, linearDamping, linearDamping, listenerBundle, lockRotation, makeDynamic, makeKinematic, makeParticle, makeSensor, makeStatic, mass, mouseClickListeners, mouseScrollListeners, moveBy, moveBy, opacity, opacity, overlaps, remove, removeMountListener, removeUnmountListener, resetMovement, restitution, restitution, rotateBy, rotation, rotation, rotationLocked, show, sleep, toggleVisible, toStringFormatter, velocity, velocity, velocity, velocityX, velocityX, velocityY, velocityY, visible, x, x, y, yMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface pi.event.FrameListenerRegistration
addFrameListener, defer, delay, removeFrameListener, repeat, repeat, repeat, repeat, repeatMethods inherited from interface pi.event.KeyStrokeListenerRegistration
addKeyStrokeListener, removeKeyStrokeListenerMethods inherited from interface pi.event.MouseClickListenerRegistration
addMouseClickListener, removeMouseClickListenerMethods inherited from interface pi.event.MouseScrollListenerRegistration
addMouseScrollListener, removeMouseScrollListener
-
Constructor Details
-
PhilosopherImage
public PhilosopherImage(Seat seat, demos.edu_projects.concurrency.philosophers.Philosopher philosopher)
-
-
Method Details
-
onFrame
public void onFrame(double pastTime) Description copied from interface:FrameListenerDiese Methode wird bei jedem Einzelbild eines angemeldeten Objekts erneut aufgerufen.- Specified by:
onFramein interfaceFrameListener- Parameters:
pastTime- Die Zeit in Sekunden, die seit der letzten Aktualisierung vergangen ist.
-