-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTarget.java
51 lines (47 loc) · 1.81 KB
/
Target.java
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import greenfoot.*;
/**
* <p><b>File name: </b> Target.java
* @version 1.0
* @since 10.05.2018
* <p><b>Last modification date: </b> 11.07.2018
* @author Alexandru F. Dascalu
* <p><b>Copyright (C)</b> 2018 Alexandru F. Dascalu
*
* <p>Target.java is part of Panzer Batallion.
* Panzer Batallion is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* <p>This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* <p>You should have received a copy of the GNU General Public License v3
* along with this program. If not, see <a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a> .
*
* <p>A summary of the license can be found here:
* <a href="https://choosealicense.com/licenses/gpl-3.0/">https://choosealicense.com/licenses/gpl-3.0/</a> .
*
* <p><b>Purpose: </b>
* <p> This class models a player target for a Greenfoot recreation of the Wii
* Play Tanks game for the Nintendo Wii. It is a target that is moved with the
* mouse (code for that is in the PlayerTurret class) to help the player aim.
*
* <p><b>Version History</b>
* <p> -1.0 - Created the class.
*/
public class Target extends Actor
{
/**
* Act - do whatever the Target wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
* The target is just there to be moved by the player's turret, so by itself
* it does nothing.
*/
@Override
public void act()
{
}
}