import { Entity } from '../../entities/entity.js'; import { EntitySystem } from '../../entities/system.js'; import { GameExports } from '../../index.js'; export declare enum CtfTeam { NOTEAM = 0, RED = 1, BLUE = 2 } export interface ClientWithTeam { ctfTeam: CtfTeam; lastTeamSwitchTime?: number; } export declare function getTeamName(team: CtfTeam): string; export declare function getOtherTeam(team: CtfTeam): CtfTeam; /** * Assigns a player to a team. * If team is NOTEAM, it balances teams. */ export declare function assignTeam(client: ClientWithTeam, desiredTeam: CtfTeam, entities: EntitySystem, game: GameExports): void; export declare function countPlayersOnTeam(team: CtfTeam, entities: EntitySystem): number; export declare function setTeamSkin(entity: Entity, team: CtfTeam): void; /** * Checks if damage should be applied (Friendly Fire logic) * Returns true if damage allowed, false otherwise. */ export declare function onSameTeam(ent1: Entity, ent2: Entity): boolean; export declare function checkFriendlyFire(targ: Entity, attacker: Entity): boolean; //# sourceMappingURL=teams.d.ts.map