Advertisement
Guest User

Untitled

a guest
Jan 15th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.70 KB | None | 0 0
  1. with Stringhandling;                 use Stringhandling;
  2. package Herohandling is
  3.    type Hero_Type is private;
  4.    
  5.    
  6.    type eye_Type is(Blue,Green,Brown,Gray,Yellow,Red,Black,Crazy);
  7.    
  8.    -------------------------------------------------------------------
  9.    type Species_Type is(Human,Elf,Orc,Halfling,Ogre,Lizardman);
  10.    
  11.    procedure Get (Hero : out Hero_Type);
  12.    procedure Put (Hero : in Hero_Type);
  13.    function Get_age(Hero : in Hero_Type) return Integer;
  14. private
  15.    
  16.    type Hero_Type is
  17.       record
  18.      Name : String_Type;
  19.      Age  : Integer;
  20.      Gender: Integer;
  21.      Weight : float;
  22.      Hair : String_Type;
  23.      Race : Species_Type;
  24.      Eyes: Eye_Type;
  25.       end record;    
  26. end Herohandling;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement