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
Go to the documentation of this file.
1 #ifndef _ROLE_BITMASK_H_
2 #define _ROLE_BITMASK_H_
3 #include <string>
4 #include <vector>
5 namespace ROLES
6 {
7 const unsigned int FIRE_ONLY_AUTOTRACKERS = (1<<31);
8 const unsigned int FIRE_MISSILES = (1<<30);
9 const unsigned int FIRE_GUNS = (1<<29);
11 int discreteLog( int bitmask );
12 std::vector< char >& getPriority( unsigned char rolerow );
13 //get the list of all prirotieis 31 is nogo
14 std::vector< std::vector< char > >& getAllRolePriorities();
15 unsigned int maxRoleValue();
16 //getRole returns a number between 0 and 32 that's the discrete log
17 unsigned char getRole( const std::string &role );
18 const std::string& getRole( unsigned char role );
19 
20 //returns the getRoles or'd together
21 unsigned int readBitmask( const std::string &s );
22 unsigned int getCapitalRoles();
23 const std::string& getRoleEvents( unsigned char ourrole, unsigned char theirs ); //get AI ervent associated with this
24 }
25 #endif
26