HOG2
shared
HumanUnit.h
Go to the documentation of this file.
1
/*
2
* $Id: humanUnit.h
3
* hog2
4
*
5
* Created by Nathan Sturtevant on 10/4/04.
6
* Modified by Nathan Sturtevant on 02/29/20.
7
*
8
* This file is part of HOG2. See https://github.com/nathansttt/hog2 for licensing information.
9
*
10
*/
11
12
#ifndef HUMANUNIT_H
13
#define HUMANUNIT_H
14
15
#include "
Unit.h
"
16
17
class
humanUnit
:
public
unit {
18
public
:
19
humanUnit
(
int
x,
int
y, unit *target);
20
tDirection
makeMove
(
MapProvider
*mp,
reservationProvider
*rp,
SimulationInfo
*simInfo);
21
//tDirection makeMove(MapProvider *, reservationProvider *, SimulationInfo *simInfo); // this is where the World says you are
22
// double getSpeed() { return .25; }
23
void
setNextDirection
(
tDirection
dir) {
nextDir
= dir; }
24
private
:
25
tDirection
nextDir
;
26
};
27
28
#endif
humanUnit
Definition:
HumanUnit.h:17
SimulationInfo
Definition:
SimulationInfo.h:13
MapProvider
Definition:
MapProvider.h:23
humanUnit::nextDir
tDirection nextDir
Definition:
HumanUnit.h:25
humanUnit::humanUnit
humanUnit(int x, int y, unit *target)
Definition:
HumanUnit.cpp:14
humanUnit::makeMove
tDirection makeMove(MapProvider *mp, reservationProvider *rp, SimulationInfo *simInfo)
Definition:
HumanUnit.cpp:21
tDirection
tDirection
Definition:
Map2DEnvironment.h:77
humanUnit::setNextDirection
void setNextDirection(tDirection dir)
Definition:
HumanUnit.h:23
reservationProvider
Definition:
ReservationProvider.h:33
Unit.h
Generated by
1.8.17