Eaagles::Network::NtmDisIO Class Reference

Inherits Eaagles::Simulation::Ntm.

Inheritance diagram for Eaagles::Network::NtmDisIO:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Network::NtmDisIO:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NtmDisIO ()
virtual bool isMatchingEntityType (const Simulation::Nib *const nib) const
virtual bool copyEntityType (Simulation::Nib *const targetNib) const
unsigned char getEntityKind () const
unsigned char getEntityDomain () const
unsigned short getEntityCountry () const
unsigned char getEntityCategory () const
unsigned char getEntitySubcategory () const
unsigned char getEntitySpecific () const
unsigned char getEntityExtra () const
virtual bool setEntityType (const unsigned char kind, const unsigned char domain, const unsigned short countryCode, const unsigned char category, const unsigned char subcategory=0, const unsigned char specific=0, const unsigned char extra=0)
virtual bool setSlotDisEntityType (const Basic::LcList *const msg)

Private Attributes

unsigned char disKind
unsigned char disDomain
unsigned short disCountry
unsigned char disCategory
unsigned char disSubcategory
unsigned char disSpecific
unsigned char disExtra

Detailed Description

 DIS I/O Network Type Mapper

    Form name: NtmDisIO
    Slots:
       disEntityType  <vector>   DIS Entity type [ kind domain country category ... ]
    /pre>


Constructor & Destructor Documentation

Eaagles::Network::NtmDisIO::NtmDisIO (  ) 


Member Function Documentation

virtual bool Eaagles::Network::NtmDisIO::isMatchingEntityType ( const Simulation::Nib *const  nib  )  const [virtual]

Returns 'true' if the entity type codes in the testNIB, testNib, matches our entity type code(s). 'Kind' is always check. All other codes are check if non-zero. Examples:

Test NIB codes This NTM's codes [ 1 2 225 1 3 3 1 ] matches [ 1 2 225 1 3 3 1 ] [ 1 2 225 1 3 3 1 ] matches [ 1 2 225 1 3 0 0 ] [ 1 2 225 1 3 3 1 ] matches [ 1 0 0 0 0 0 0 ] [ 1 2 225 1 3 0 0 ] matches [ 1 2 225 1 3 0 0 ] [ 1 2 225 1 3 3 2 ] does not match [ 1 2 225 1 3 3 1 ] [ 1 2 225 1 0 0 0 ] does not match [ 1 2 225 1 3 3 0 ]

Implements Eaagles::Simulation::Ntm.

virtual bool Eaagles::Network::NtmDisIO::copyEntityType ( Simulation::Nib *const   targetNib  )  const [virtual]

This function will copy our DIS type codes to the target NIB, 'targetNib', object.

Implements Eaagles::Simulation::Ntm.

unsigned char Eaagles::Network::NtmDisIO::getEntityKind (  )  const [inline]

DIS kind type code (or 255 if not valid).

unsigned char Eaagles::Network::NtmDisIO::getEntityDomain (  )  const [inline]

DIS domain type code.

unsigned short Eaagles::Network::NtmDisIO::getEntityCountry (  )  const [inline]

DIS country type code.

unsigned char Eaagles::Network::NtmDisIO::getEntityCategory (  )  const [inline]

DIS category type code.

unsigned char Eaagles::Network::NtmDisIO::getEntitySubcategory (  )  const [inline]

DIS subcategory type code.

unsigned char Eaagles::Network::NtmDisIO::getEntitySpecific (  )  const [inline]

DIS specific type code.

unsigned char Eaagles::Network::NtmDisIO::getEntityExtra (  )  const [inline]

DIS extra type code.

virtual bool Eaagles::Network::NtmDisIO::setEntityType ( const unsigned char  kind,
const unsigned char  domain,
const unsigned short  countryCode,
const unsigned char  category,
const unsigned char  subcategory = 0,
const unsigned char  specific = 0,
const unsigned char  extra = 0 
) [virtual]

Sets the player's entity type codes.

virtual bool Eaagles::Network::NtmDisIO::setSlotDisEntityType ( const Basic::LcList *const   msg  )  [virtual]

Slot functions.


Member Data Documentation

unsigned char Eaagles::Network::NtmDisIO::disKind [private]

DIS kind code.

unsigned char Eaagles::Network::NtmDisIO::disDomain [private]

DIS domain code.

unsigned short Eaagles::Network::NtmDisIO::disCountry [private]

DIS country code.

unsigned char Eaagles::Network::NtmDisIO::disCategory [private]

DIS category code.

unsigned char Eaagles::Network::NtmDisIO::disSubcategory [private]

DIS subcategory code.

unsigned char Eaagles::Network::NtmDisIO::disSpecific [private]

DIS specific code.

unsigned char Eaagles::Network::NtmDisIO::disExtra [private]

DIS extra code.


Generated on Tue Dec 19 16:27:35 2006 for Eaagles by  doxygen 1.5.0