Advanced Strategic Command
Public Member Functions | List of all members
ResourceMatrix Class Reference

A mathematical matrix for transforming Resources instance (which is mathematically a vector) into a different Resources . More...

#include <typen.h>

Public Member Functions

 ResourceMatrix ()
 
 ResourceMatrix (const float *f)
 
Resources operator* (const Resources &r) const
 
void read (tnstream &stream)
 
void write (tnstream &stream) const
 
void runTextIO (const ASCString &name, PropertyContainer &pc)
 
void runTextIO (const ASCString &name, PropertyContainer &pc, const ResourceMatrix &defaultValue)
 

Detailed Description

A mathematical matrix for transforming Resources instance (which is mathematically a vector) into a different Resources .

Definition at line 158 of file typen.h.

Constructor & Destructor Documentation

ResourceMatrix::ResourceMatrix ( )

Definition at line 108 of file typen.cpp.

References resourceTypeNum.

ResourceMatrix::ResourceMatrix ( const float *  f)

Definition at line 118 of file typen.cpp.

References resourceTypeNum.

Member Function Documentation

Resources ResourceMatrix::operator* ( const Resources r) const

Definition at line 128 of file typen.cpp.

References Resources::resource(), and resourceTypeNum.

void ResourceMatrix::read ( tnstream stream)

Definition at line 138 of file typen.cpp.

References tnstream::readFloat(), tnstream::readInt(), and resourceTypeNum.

Referenced by ContainerBaseType::read().

void ResourceMatrix::runTextIO ( const ASCString name,
PropertyContainer pc 
)
void ResourceMatrix::runTextIO ( const ASCString name,
PropertyContainer pc,
const ResourceMatrix defaultValue 
)
void ResourceMatrix::write ( tnstream stream) const

Definition at line 146 of file typen.cpp.

References resourceTypeNum, tnstream::writeFloat(), and tnstream::writeInt().

Referenced by ContainerBaseType::write().


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