程序包 xworker.gswt

类 SimpleGame

  • 所有已实现的接口:
    Runnable, EventListener, org.eclipse.swt.events.DisposeListener, org.eclipse.swt.events.PaintListener, org.eclipse.swt.internal.SWTEventListener

    public class SimpleGame
    extends Object
    implements org.eclipse.swt.events.PaintListener, Runnable, org.eclipse.swt.events.DisposeListener
    • 字段详细资料

      • thing

        public org.xmeta.Thing thing
      • actionContext

        public org.xmeta.ActionContext actionContext
      • canvas

        public org.eclipse.swt.widgets.Canvas canvas
      • delta

        public long delta
    • 构造器详细资料

      • SimpleGame

        public SimpleGame​(org.xmeta.Thing thing,
                          org.xmeta.ActionContext actionContext)
    • 方法详细资料

      • addActor

        public void addActor​(Actor actor)
      • removeActor

        public boolean removeActor​(Actor actor)
      • create

        public void create()
      • start

        public void start()
      • stop

        public void stop()
      • run

        public void run()
        指定者:
        run 在接口中 Runnable
      • paintControl

        public void paintControl​(org.eclipse.swt.events.PaintEvent event)
        指定者:
        paintControl 在接口中 org.eclipse.swt.events.PaintListener
      • widgetDisposed

        public void widgetDisposed​(org.eclipse.swt.events.DisposeEvent event)
        指定者:
        widgetDisposed 在接口中 org.eclipse.swt.events.DisposeListener
      • create

        public static Object create​(org.xmeta.ActionContext actionContext)