Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

Int2Tuple Struct Reference

#include <ATypes.h>

List of all members.


Detailed Description

a tuple of 2 ints. Each number can't be greater than 999

Definition at line 132 of file ATypes.h.

Public Methods

 Int2Tuple ()
 Int2Tuple (int A, int B)
bool operator= (const Int2Tuple &rhs) const
bool operator< (const Int2Tuple &rhs) const

Public Attributes

int a
int b


Constructor & Destructor Documentation

Int2Tuple::Int2Tuple   [inline]
 

Definition at line 134 of file ATypes.h.

00134 { a=b=0; }

Int2Tuple::Int2Tuple int    A,
int    B
[inline]
 

Definition at line 135 of file ATypes.h.

00135 { a=A; b=B; }


Member Function Documentation

bool Int2Tuple::operator< const Int2Tuple &    rhs const [inline]
 

Definition at line 137 of file ATypes.h.

References a, and b.

00137 { return (a*1000+b) < (rhs.a*1000+rhs.b); }

bool Int2Tuple::operator= const Int2Tuple &    rhs const [inline]
 

Definition at line 136 of file ATypes.h.

References a, and b.

00136 { return a==rhs.a && b==rhs.b; }


Member Data Documentation

int Int2Tuple::a
 

Definition at line 138 of file ATypes.h.

Referenced by AI::Player::buildThreatMap(), AI::Player::CityLessThreatened::operator()(), operator<(), and operator=().

int Int2Tuple::b
 

Definition at line 138 of file ATypes.h.

Referenced by AI::Player::buildThreatMap(), AI::Player::CityLessThreatened::operator()(), operator<(), and operator=().


The documentation for this struct was generated from the following file:
Generated on Wed Apr 23 05:52:09 2003 for Modern Warfare by doxygen1.3-rc2