|
From: Geisschaes <gei...@us...> - 2005-05-30 16:15:47
|
Update of /cvsroot/macattrick/macattrick In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8535 Added Files: PlayerState.h PlayerState.m Log Message: PlayerState added --- NEW FILE: PlayerState.m --- //---- license ---------------------------------------------------------------// // // // Macattrick: a Manager Assistant Tool for the online Game Hattrick.org // // Copyright (C) 2004 Roman Bertolami // // // // this file is part of Macattrick application // // http://sourceforge.net/macattrick // // // // Macattrick is free software; you can redistribute it and/or // // modify it under the terms of the GNU General Public License // // as published by the Free Software Foundation; either version 2 // // of the License, or (at your option) any later version. // // // // Macattrick is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place - Suite 330, // // Boston, MA 02111-1307, USA. // // // // Macattrick, Copyright (C) 2004 Roman Bertolami // // Macattrick comes with ABSOLUTELY NO WARRANTY! // // // //---- eo licence ------------------------------------------------------------// #import "PlayerState.h" @implementation PlayerState - (int) tsi { return tsi; } - (void) setTsi: (int) newTsi { tsi = newTsi; } - (int) salary { return salary; } - (void) setSalary: (int) newSalary { salary = newSalary; } - (int) age { return age; } - (void) setAge: (int) newAge { age = newAge; } - (int) injuryLevel { return injuryLevel; } - (void) setInjuryLevel: (int) newInjuryLevel { injuryLevel = newInjuryLevel; } - (int) cards { return cards; } - (void) setCards: (int) newCards { cards = newCards; } - (int) experience { return experience; } - (void) setExperience: (int) newExperience { experience = newExperience; } - (int) playerForm { return playerForm; } - (void) setPlayerForm: (int) newPlayerForm { playerForm = newPlayerForm; } - (int) staminaSkill { return staminaSkill; } - (void) setStaminaSkill: (int) newStaminaSkill { staminaSkill = newStaminaSkill; } - (int) keeperSkill { return keeperSkill; } - (void) setKeeperSkill: (int) newKeeperSkill { keeperSkill = newKeeperSkill; } - (int) playmakerSkill { return playmakerSkill; } - (void) setPlaymakerSkill: (int) newPlaymakerSkill { playmakerSkill = newPlaymakerSkill; } - (int) scorerSkill { return scorerSkill; } - (void) setScorerSkill: (int) newScorerSkill { scorerSkill = newScorerSkill; } - (int) passingSkill { return passingSkill; } - (void) setPassingSkill: (int) newPassingSkill { passingSkill = newPassingSkill; } - (int) wingerSkill { return wingerSkill; } - (void) setWingerSkill: (int) newWingerSkill { wingerSkill = newWingerSkill; } - (int) defenderSkill { return defenderSkill; } - (void) setDefenderSkill: (int) newDefenderSkill { defenderSkill = newDefenderSkill; } - (int) setPiecesSkill { return setPiecesSkill; } - (void) setSetPiecesSkill: (int) newSetPiecesSkill { setPiecesSkill = newSetPiecesSkill; } @end --- NEW FILE: PlayerState.h --- //---- license ---------------------------------------------------------------// // // // Macattrick: a Manager Assistant Tool for the online Game Hattrick.org // // Copyright (C) 2004 Roman Bertolami // // // // this file is part of Macattrick application // // http://sourceforge.net/macattrick // // // // Macattrick is free software; you can redistribute it and/or // // modify it under the terms of the GNU General Public License // // as published by the Free Software Foundation; either version 2 // // of the License, or (at your option) any later version. // // // // Macattrick is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY; without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // // GNU General Public License for more details. // // // // You should have received a copy of the GNU General Public License // // along with this program; if not, write to the Free Software // // Foundation, Inc., 59 Temple Place - Suite 330, // // Boston, MA 02111-1307, USA. // // // // Macattrick, Copyright (C) 2004 Roman Bertolami // // Macattrick comes with ABSOLUTELY NO WARRANTY! // // // //---- eo licence ------------------------------------------------------------// #import <Cocoa/Cocoa.h> /*! @class PlayerState @superclass NSObject @abstract contains all changeable properties of a player */ @interface PlayerState : NSObject { // general int tsi; int salary; int age; int injuryLevel; int cards; // skills int experience; int playerForm; int staminaSkill; int keeperSkill; int playmakerSkill; int scorerSkill; int passingSkill; int wingerSkill; int defenderSkill; int setPiecesSkill; } - (int) tsi; - (void) setTsi: (int) newTsi; - (int) salary; - (void) setSalary: (int) newSalary; - (int) age; - (void) setAge: (int) newAge; - (int) injuryLevel; - (void) setInjuryLevel: (int) newInjuryLevel; - (int) cards; - (void) setCards: (int) newCards; - (int) experience; - (void) setExperience: (int) newExperience; - (int) playerForm; - (void) setPlayerForm: (int) newPlayerForm; - (int) staminaSkill; - (void) setStaminaSkill: (int) newStaminaSkill; - (int) keeperSkill; - (void) setKeeperSkill: (int) newKeeperSkill; - (int) playmakerSkill; - (void) setPlaymakerSkill: (int) newPlaymakerSkill; - (int) scorerSkill; - (void) setScorerSkill: (int) newScorerSkill; - (int) passingSkill; - (void) setPassingSkill: (int) newPassingSkill; - (int) wingerSkill; - (void) setWingerSkill: (int) newWingerSkill; - (int) defenderSkill; - (void) setDefenderSkill: (int) newDefenderSkill; - (int) setPiecesSkill; - (void) setSetPiecesSkill: (int) newSetPiecesSkill; @end |