Minitvs development

From TVS Wiki
Revision as of 05:12, 24 July 2007 by Mukke (talk | contribs) (New page: '''Classes''' Class Ship { public: enum type('engineer','fighter','cloaker','bomber'); string shipname; int level; int health; int pilot; int combat; ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

'''Classes'''

Class Ship {

   public:
   enum type('engineer','fighter','cloaker','bomber');
   string shipname;
   int level;
   int health;
   int pilot;
   int combat;
   int score;
   private:
   Ship()
   {
       this.type=2;
       this.health=2000;
       this.pilot=this.combat=10;
       this.score=0;
       this.shipname="Un-named";
       this.level=1;
   }
   Ship(string name, int t)
   {
       this.type=t;
       this.health=2000;
       this.pilot=this.combat=10;
       this.score=0;
       this.shipname=name";
       this.level=1;
   }

}




'''Definitions'''