Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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);
10
const
unsigned
int
EVERYTHING_ELSE
= ( ~(
FIRE_MISSILES
|
FIRE_GUNS
|
FIRE_ONLY_AUTOTRACKERS
) );
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
src
cmd
role_bitmask.h
Generated on Fri May 29 2015 23:07:15 for Vegastrike 0.5.1 rc1 by
1.8.4