Struct game_features::Faction [−][src]
pub struct Faction { pub users: UserGroup, pub power: f32, pub claims: Vec<(i32, i32, i32)>, pub power_boost: f32, }
Expand description
A team with the ability to claim ownership over terrain. WIP
Fields
users: UserGroup
The group of users that this faction is composed of.
power: f32
The claiming power of this faction. Limits the number of claims it can have and maintain.
claims: Vec<(i32, i32, i32)>
All the claims owned by this faction.
power_boost: f32
A value added to the calculated power value.
Implementations
impl Faction
[src]
impl Faction
[src]pub fn claim_from(
&mut self,
_other: &mut Faction,
_settings: &FactionSettings
) -> FactionResult
[src]
pub fn claim_from(
&mut self,
_other: &mut Faction,
_settings: &FactionSettings
) -> FactionResult
[src]Claim terrain from another faction.