HOG2
Public Member Functions | Private Attributes | List of all members
humanUnit Class Reference

#include <HumanUnit.h>

Inheritance diagram for humanUnit:
Inheritance graph
[legend]
Collaboration diagram for humanUnit:
Collaboration graph
[legend]

Public Member Functions

 humanUnit (int x, int y, unit *target)
 
tDirection makeMove (MapProvider *mp, reservationProvider *rp, SimulationInfo *simInfo)
 
void setNextDirection (tDirection dir)
 

Private Attributes

tDirection nextDir
 

Detailed Description

Definition at line 17 of file HumanUnit.h.

Constructor & Destructor Documentation

◆ humanUnit()

humanUnit::humanUnit ( int  x,
int  y,
unit *  target 
)

Definition at line 14 of file HumanUnit.cpp.

Member Function Documentation

◆ makeMove()

tDirection humanUnit::makeMove ( MapProvider mp,
reservationProvider rp,
SimulationInfo simInfo 
)

Definition at line 21 of file HumanUnit.cpp.

References nextDir.

◆ setNextDirection()

void humanUnit::setNextDirection ( tDirection  dir)
inline

Definition at line 23 of file HumanUnit.h.

References nextDir.

Member Data Documentation

◆ nextDir

tDirection humanUnit::nextDir
private

Definition at line 25 of file HumanUnit.h.

Referenced by makeMove(), and setNextDirection().


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