Advanced Strategic Command
Functions
ai-move1.cpp File Reference
#include <iostream>
#include "ai-move1.h"
#include "../loaders.h"
#include "unittestutil.h"
#include "../turncontrol.h"
#include "../gamemap.h"
Include dependency graph for ai-move1.cpp:

Go to the source code of this file.

Functions

void testAiMovement1 ()
 
void testAiMovement2 ()
 
void testAiMovement3 ()
 
void testAiMovement4 ()
 the AI should disembark all helicopters from the carrier and attack with them. More...
 
void testAiMovement5 ()
 the trooper should conquer the building , but try to evade the view of the player (if he steps into visiblity, the Artillery will attack) More...
 
void testAiMovement6 ()
 the trooper should not conquer this building, because it would immediately be conquered back More...
 
void testAiMovement7 ()
 the trooper should conquer this building, because the contents of tte building are more worth than the lost unit More...
 
void testAiHeliMovement1 ()
 the helicopter should attack from a height where the tank can't retaliate More...
 
void testAiMovement ()
 

Function Documentation

void testAiHeliMovement1 ( )

the helicopter should attack from a height where the tank can't retaliate

Definition at line 156 of file ai-move1.cpp.

References assertOrThrow, ContainerBase::damage, Vehicle::getExperience_offensive(), next_turn(), and startMap().

Referenced by testAiMovement().

void testAiMovement ( )
void testAiMovement1 ( )

Definition at line 18 of file ai-move1.cpp.

References assertOrThrow, ContainerBase::damage, next_turn(), and startMap().

Referenced by testAiMovement().

void testAiMovement2 ( )

Definition at line 33 of file ai-move1.cpp.

References assertOrThrow, ContainerBase::damage, next_turn(), and startMap().

Referenced by testAiMovement().

void testAiMovement3 ( )

Definition at line 52 of file ai-move1.cpp.

References assertOrThrow, ContainerBase::damage, next_turn(), and startMap().

Referenced by testAiMovement().

void testAiMovement4 ( )

the AI should disembark all helicopters from the carrier and attack with them.

The carrier itself is not capable to attack the submarine

Definition at line 74 of file ai-move1.cpp.

References assertOrThrow, ContainerBase::damage, next_turn(), and startMap().

Referenced by testAiMovement().

void testAiMovement5 ( )

the trooper should conquer the building , but try to evade the view of the player (if he steps into visiblity, the Artillery will attack)

Definition at line 92 of file ai-move1.cpp.

References assertOrThrow, MapField::building, ContainerBase::damage, Building::getField(), ContainerBase::getOwner(), next_turn(), and startMap().

Referenced by testAiMovement().

void testAiMovement6 ( )

the trooper should not conquer this building, because it would immediately be conquered back

Definition at line 117 of file ai-move1.cpp.

References assertOrThrow, MapField::building, Building::getField(), ContainerBase::getOwner(), next_turn(), and startMap().

Referenced by testAiMovement().

void testAiMovement7 ( )

the trooper should conquer this building, because the contents of tte building are more worth than the lost unit

Definition at line 138 of file ai-move1.cpp.

References assertOrThrow, MapField::building, Building::getField(), ContainerBase::getOwner(), next_turn(), and startMap().

Referenced by testAiMovement().