Artifact 312fff209510ebecbe4ad886fec016d060e46dab046b79fb11485f352dfb0693:
- File
src/Player.m
— part of check-in
[75e920ae30]
at
2025-03-29 14:25:43
on branch trunk
— Switch from clang-format to manual formatting
clang-format does too many weird things. (user: js, size: 553) [annotate] [blame] [check-ins using]
#import "Player.h" static Player *player1; @implementation Player + (void)initialize { if (self == Player.class) player1 = [[Player alloc] init]; } + (instancetype)player { return [[self alloc] init]; } + (void)setPlayer1: (Player *)player1_ { player1 = player1_; } + (Player *)player1 { return player1; } - (instancetype)init { self = [super init]; _team = @""; return self; } - (id)copy { Player *copy = [super copy]; copy->_lifeSequence = _lifeSequence; copy->_frags = _frags; copy->_team = [_team copy]; return copy; } @end