home *** CD-ROM | disk | FTP | other *** search
/ GameStar Special 2004 August / GSSH0804.iso / Action / TumikiFighters / tf0_2.exe / tf / src / abagames / util / actor.d next >
Text File  |  2004-05-15  |  668b  |  34 lines

  1. /*
  2.  * $Id: actor.d,v 1.2 2004/05/14 14:35:38 kenta Exp $
  3.  *
  4.  * Copyright 2003 Kenta Cho. All rights reserved.
  5.  */
  6. module abagames.util.actor;
  7.  
  8. /**
  9.  * Actor in the game that has the interface to move and draw.
  10.  */
  11. public class Actor {
  12.  private:
  13.   bool isExistOrNot;
  14.  
  15.   public bool isExist() {
  16.     return isExistOrNot;
  17.   }
  18.  
  19.   public bool isExist(bool value) {
  20.     return isExistOrNot = value;
  21.   }
  22.  
  23.   public abstract Actor newActor();
  24.   public abstract void init(ActorInitializer ini);
  25.   public abstract void move();
  26.   public abstract void draw();
  27. }
  28.  
  29. /**
  30.  * Pass initial parameters to the actor.
  31.  */
  32. public interface ActorInitializer {
  33. }
  34.