MobileFactory.java

codebase/src/net/sourceforge/pain/logic/fn/factory/MobileFactory.java · 393 B

From the archive pain_0_44.tgz

Download the archive   « Back to the archive contents

package net.sourceforge.pain.logic.fn.factory;

import net.sourceforge.pain.data.prototype.*;
import net.sourceforge.pain.data.type.*;

/**
 * User: fmike  Date: Sep 13, 2003   Time: 8:38:14 PM
 */
public class MobileFactory {

	public static void init(MobilePrototype proto, Mobile obj) {
		int moves = proto.getMovePointsDice().roll();
		obj.setMaxMoves(moves);
		obj.setMoves(moves);
	}

}

Site Stats

Snippets: 1791
Codebases: 571