/* call-seq: * player.flag_history -> Array * * This method returns the flag history list of a player */ static VALUE playerRecord_getFlagHistory(VALUE self) { bz_PlayerRecord *playerRecord; Data_Get_Struct(self, bz_PlayerRecord, playerRecord); VALUE flagHistory = rb_ary_new(); for (int i = 0; i < playerRecord->flagHistory.size(); i++) rb_ary_push(flagHistory, rb_str_new2(playerRecord->flagHistory[i].c_str())); return flagHistory; }