pub fn new(name: &str, glyph: char, color: Color) -> UnitType {
        UnitType {
            name: name.into(),
            glyph: glyph,
            color: color,
            is_blocking: true,
            // Following based on standard human in the data files.
            max_hp: 30,
            defence: 3,
            attack: 5,
        }
    }
// Only used for the player for now.
Only used for the player for now.
Only used for the player for now .
pub fn new(name: &str, glyph: char, color: Color) -> UnitType {
        UnitType {
            name: name.into(),
            glyph: glyph,
            color: color,
            is_blocking: true,
            // Following based on standard human in the data files.
            max_hp: 30,
            defence: 3,
            attack: 5,
        }
    }
pub fn new ( name : & str , glyph : char , color : Color ) -> UnitType { UnitType { name : name . into ( ) , glyph : glyph , color : color , is_blocking : true , // Following based on standard human in the data files. max_hp : 30 , defence : 3 , attack : 5 , } }
Only used for the player for now.
Only used for the player for now .
name
&str
glyph
char
color
Color
name
&str
glyph
char
color
Color