Resource Standard Metrics for C, C++ and Java
Visual Metrics Version 6.01
License Type: Shareware Evaluation License
Licensed To : Shareware End User - Distribute Freely
License No. : SW1380 License Date: Sat Dec 05 12:31:28 1998
(C) 2001 M Squared Technologies Run Date: Fri Jun 22 19:31:56 2001
________________________________________________________________________
~~ Function Metrics ~~
~~ Template Identification ~~
~~ Comment Documentation ~~
~~ Comment Extraction Mode ~~
File: cell.h
Date: Mon Jun 11 20:04:08 2001 File Size: 829 Bytes
________________________________________________________________________
1: // cell.h
2: //
3: // Specification for type cell
4: // A cell is a piece of an ocean
5: //
Namespace Begin: Seahunt
------------------------------------------------------------------------
18: // constructor
19: // destructor
29: // copy constructor
30: // true if the cell is hit
31: // assigned to the cell
34: // depth of the ocean
Namespace End: Seahunt
------------------------------------------------------------------------
37: // namepsace Seahunt
39: // CELL_H
________________________________________________________________________
End of File: cell.h
File: game.h
Date: Mon Jun 11 20:04:08 2001 File Size: 400 Bytes
________________________________________________________________________
1: // game.h
Namespace Begin: Seahunt
------------------------------------------------------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
________________________________________________________________________
End of File: game.h
File: ocean.h
Date: Mon Jun 11 20:04:08 2001 File Size: 825 Bytes
________________________________________________________________________
1: // ocean.h
2: //
3: // Specification for type ocean
4: //
Namespace Begin: Seahunt
------------------------------------------------------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
45: // OCEAN_H
________________________________________________________________________
End of File: ocean.h
File: player.h
Date: Mon Jun 11 20:04:08 2001 File Size: 666 Bytes
________________________________________________________________________
1: // player.h
Namespace Begin: Seahunt
------------------------------------------------------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
________________________________________________________________________
End of File: player.h
File: sub.h
Date: Mon Jun 11 20:04:08 2001 File Size: 456 Bytes
________________________________________________________________________
1: // sub.h
Namespace Begin: Seahunt
------------------------------------------------------------------------
Inline Function: Seahunt::Sub::Abstract
------------------------------------------------------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
27: // namespace Seahunt
________________________________________________________________________
End of File: sub.h
File: target.h
Date: Mon Jun 11 20:04:08 2001 File Size: 1474 Bytes
________________________________________________________________________
1: // target.h
2: // specification for the target base class
3: //
4: // R. Mudge
5: // 09/10/1998
7: // Notes: Turn on symbol TARGET_UNIT_TEST to test the component
Namespace Begin: Seahunt
------------------------------------------------------------------------
27: // base class
39: // Method interface for derived objects
43: // return the status of the targer
Inline Function: Seahunt::Target::Get_armor
------------------------------------------------------------------------
50: // pure virtual method creates abstract class for
51: // deployed application, cannot create an instance
52: // of this class outside the test driver.
67: // cannot pass target by value from a private
68: // copy constructor
Inline Function: Seahunt::Target::Target
------------------------------------------------------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
73: // namespace Seahunt
75: // TARGET_H
77: // eof target.h
________________________________________________________________________
End of File: target.h
File: utility.h
Date: Mon Jun 11 20:04:08 2001 File Size: 566 Bytes
________________________________________________________________________
1: // Utility Class
Namespace Begin: Seahunt
------------------------------------------------------------------------
17: // convert int to ascii
19: // convert float to ascii
Namespace End: Seahunt
------------------------------------------------------------------------
________________________________________________________________________
End of File: utility.h
File: cell.cpp
Date: Mon Jun 11 20:04:08 2001 File Size: 2636 Bytes
________________________________________________________________________
1: // cell.cpp
2: //
3: // Implementation for type cell where cell is a piece of an ocean.
4: // Cell contains a pointer to the base class Target. Through
5: // the based class pointer Cell polymorphically calls Hit of the
6: // derived target object/
Namespace Begin: Seahunt
------------------------------------------------------------------------
Function: Seahunt::Cell::Cell
------------------------------------------------------------------------
Function: Seahunt::Cell::Cell
------------------------------------------------------------------------
33: // do not cleanup the target
Function: Seahunt::Cell::~Cell
------------------------------------------------------------------------
Function: Seahunt::Cell::Set_xyz
------------------------------------------------------------------------
Inline Function: Seahunt::Cell::Get_x
------------------------------------------------------------------------
Inline Function: Seahunt::Cell::Get_y
------------------------------------------------------------------------
Inline Function: Seahunt::Cell::Get_z
------------------------------------------------------------------------
Function: Seahunt::Cell::Set_target
------------------------------------------------------------------------
Function: Seahunt::Cell::Get_target
------------------------------------------------------------------------
Function: Seahunt::Cell::Hit
------------------------------------------------------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
111: // namespace Seahunt
141: // fails for already popluated
150: // miss
153: // hits
158: // multiple common hit
Function: main
------------------------------------------------------------------------
166: // eof cell.cpp
________________________________________________________________________
End of File: cell.cpp
File: game.cpp
Date: Mon Jun 11 20:04:08 2001 File Size: 1604 Bytes
________________________________________________________________________
1: // game.cpp
Namespace Begin: Seahunt
------------------------------------------------------------------------
Function: Seahunt::Game::Game
------------------------------------------------------------------------
Function: Seahunt::Game::~Game
------------------------------------------------------------------------
45: /* Place the sub in the ocean */
94: // fall through
Function: Seahunt::Game::Play
------------------------------------------------------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
107: // namespace
________________________________________________________________________
End of File: game.cpp
File: ocean.cpp
Date: Mon Jun 11 20:04:08 2001 File Size: 5088 Bytes
________________________________________________________________________
1: // ocean.h
2: //
3: // implementation for ocean
4: //
Namespace Begin: Anonymous - File Scope
------------------------------------------------------------------------
Namespace End: Anonymous - File Scope
------------------------------------------------------------------------
Namespace Begin: Seahunt
------------------------------------------------------------------------
Function: Seahunt::Ocean::Ocean
------------------------------------------------------------------------
43: // Go through the target list and delete the objects
Function: Seahunt::Ocean::Init
------------------------------------------------------------------------
62: // Go through the target list and delete the objects
Function: Seahunt::Ocean::~Ocean
------------------------------------------------------------------------
Function: Seahunt::Ocean::PlaceTarget
------------------------------------------------------------------------
Function: Seahunt::Ocean::TargetPlacement
------------------------------------------------------------------------
Function: Seahunt::Ocean::Hit
------------------------------------------------------------------------
Function: Seahunt::Ocean::Show
------------------------------------------------------------------------
Function: Seahunt::Ocean::ShowTargets
------------------------------------------------------------------------
Function: Seahunt::Ocean::Get_target_count
------------------------------------------------------------------------
Function: Seahunt::Ocean::Get_active_targets
------------------------------------------------------------------------
Function: Seahunt::Ocean::Get_destroyed_targets
------------------------------------------------------------------------
Namespace End: Seahunt
------------------------------------------------------------------------
225: // namespace Seahunt
Function: main
------------------------------------------------------------------------
________________________________________________________________________
End of File: ocean.cpp
Shareware evaluation licenses process only files.
Paid licenses enable wild cards and file/project totals.
________________________________________________________________________