Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
role_bitmask.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

 ROLES
 

Constant Groups

 ROLES
 

Functions

int ROLES::discreteLog (int bitmask)
 
vector< char > & ROLES::getPriority (unsigned char rolerow)
 
vector< vector< char > > & ROLES::getAllRolePriorities ()
 
unsigned int ROLES::maxRoleValue ()
 
unsigned char ROLES::getRole (const std::string &s)
 
const std::string & ROLES::getRole (unsigned char c)
 
unsigned int ROLES::readBitmask (const std::string &ss)
 
unsigned int ROLES::getCapitalRoles ()
 
const std::string & ROLES::getRoleEvents (unsigned char ourrole, unsigned char theirs)
 

Variables

const unsigned int ROLES::FIRE_ONLY_AUTOTRACKERS = (1<<31)
 
const unsigned int ROLES::FIRE_MISSILES = (1<<30)
 
const unsigned int ROLES::FIRE_GUNS = (1<<29)
 
const unsigned int ROLES::EVERYTHING_ELSE = ( ~(FIRE_MISSILES|FIRE_GUNS|FIRE_ONLY_AUTOTRACKERS) )