org.classroomgaming.cgp.SamplePlayerCharacterSpawner Class Reference

Inherits org::classroomgaming::cgp::Spawner.

Collaboration diagram for org.classroomgaming.cgp.SamplePlayerCharacterSpawner:
[legend]

List of all members.

Public Member Functions

 SamplePlayerCharacterSpawner (String down, String up, String left, String right)
Entity create (String name)

Package Attributes

AnimatedSprite anim
PlayerMover pm


Detailed Description

This Object Template spawns the player character for the sample game mode
Author:
Ryan Ruff
Version:
0.0.3

Definition at line 30 of file SamplePlayerCharacterSpawner.java.


Constructor & Destructor Documentation

org.classroomgaming.cgp.SamplePlayerCharacterSpawner.SamplePlayerCharacterSpawner ( String  down,
String  up,
String  left,
String  right 
)

Constructs a non-animated player controlled character

Parameters:
down image for character facing down
up image for character facing up
left image for character facing left
right image for character facing right
Todo:
get rid of hard coded anims

Definition at line 42 of file SamplePlayerCharacterSpawner.java.


Member Function Documentation

Entity org.classroomgaming.cgp.SamplePlayerCharacterSpawner.create ( String  name  ) 

Spawn a new Entity of this type

Parameters:
name new Entity name
Returns:

Todo:
replace with const

Todo:
replace with const

Implements org.classroomgaming.cgp.Spawner.

Definition at line 63 of file SamplePlayerCharacterSpawner.java.


Member Data Documentation

Definition at line 32 of file SamplePlayerCharacterSpawner.java.

Definition at line 33 of file SamplePlayerCharacterSpawner.java.


The documentation for this class was generated from the following file:

Generated on Tue May 5 04:51:57 2009 for CGP by  doxygen 1.5.8