Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
BuildingType::LocalCoordinate Class Reference

A local coordinate referencing a single field that a building covers. More...

#include <buildingtype.h>

Public Member Functions

 LocalCoordinate (int _x, int _y)
 
 LocalCoordinate ()
 
 LocalCoordinate (const ASCString &s)
 
bool valid () const
 
ASCString toString () const
 
bool operator< (const LocalCoordinate &a) const
 

Public Attributes

int x
 
int y
 

Detailed Description

A local coordinate referencing a single field that a building covers.

Definition at line 57 of file buildingtype.h.

Constructor & Destructor Documentation

BuildingType::LocalCoordinate::LocalCoordinate ( int  _x,
int  _y 
)
inline

Definition at line 60 of file buildingtype.h.

BuildingType::LocalCoordinate::LocalCoordinate ( )
inline

Definition at line 61 of file buildingtype.h.

BuildingType::LocalCoordinate::LocalCoordinate ( const ASCString s)

Definition at line 515 of file buildingtype.cpp.

References ASCString::toUpper().

Member Function Documentation

bool BuildingType::LocalCoordinate::operator< ( const LocalCoordinate a) const
inline

Definition at line 65 of file buildingtype.h.

References x, and y.

ASCString BuildingType::LocalCoordinate::toString ( ) const

Definition at line 505 of file buildingtype.cpp.

References x, and y.

Referenced by BuildingType::runTextIO().

bool BuildingType::LocalCoordinate::valid ( ) const
inline

Definition at line 63 of file buildingtype.h.

References x, and y.

Member Data Documentation

int BuildingType::LocalCoordinate::x
int BuildingType::LocalCoordinate::y

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