public Alien(Vector3 _position, Vector3 _velocity, Character_Types Alien_Type, Model _myModel) : base(Alien_Type, _position, _myModel) { // Set attributes that are required for creation Velocity = _velocity; Points = ((int)Alien_Type + 1) * 10; }
public Space_Invader_Char(Character_Types _character_Type, Vector3 _position, Model _myModel) { // Set attributes that are required for object creation Character_Type = _character_Type; myModel = _myModel; Position = _position; myBoundingSphere = myModel.Meshes[0].BoundingSphere; if (_character_Type == Character_Types.Bunker_Block) myBoundingSphere.Radius = myBoundingSphere.Radius * 0.5f; myBoundingSphere.Center.X = Position.X + myBoundingSphere.Radius; myBoundingSphere.Center.Y = Position.Y + myBoundingSphere.Radius; if (Character_Type == Character_Types.Cannon) myBoundingSphere.Center.Z += Position.Z; else myBoundingSphere.Center.Z += Position.Z; }