summaryrefslogtreecommitdiff
path: root/src/tesseract/objects/remote/TankMenuItem.java
blob: 3cebb3302a4a5c1ae0cc4dc9e2fdef0c902e9265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package tesseract.objects.remote;

import javax.vecmath.Vector3f;

import tesseract.World;
import tesseract.objects.tank.Tank;

public class TankMenuItem extends RemoteObjectMenuItem {
	private final World myWorld;
	
	public TankMenuItem(final RemoteObjectMenu theMenu, World theWorld) {
		super("Tank", theMenu);
		myWorld = theWorld;
	}

	@Override
	protected RemoteObject createRemoteObject() {
		return new Tank(new Vector3f(), 1, myWorld);
	}
}