File: LuminousActorPool.d

package info (click to toggle)
parsec47 0.2.dfsg1-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 6,352 kB
  • sloc: xml: 2,178; ansic: 47; makefile: 28
file content (28 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * $Id: LuminousActorPool.d,v 1.2 2004/01/01 11:26:42 kenta Exp $
 *
 * Copyright 2003 Kenta Cho. All rights reserved.
 */
module abagames.p47.LuminousActorPool;

private:
import abagames.util.Actor;
import abagames.util.ActorPool;
import abagames.util.ActorInitializer;
import abagames.p47.LuminousActor;

/**
 * Actor pool for the LuminousActor.
 */
public class LuminousActorPool: ActorPool {
  public this(int n, Actor act, ActorInitializer ini) {
    super(n, act, ini);
  }

  public void drawLuminous() {
    for (int i = 0; i < actor.length; i++) {
      if (actor[i].isExist)
	(cast(LuminousActor) actor[i]).drawLuminous();
    }
  }
}