public Block () { id = 0; isSolid = false; isSchraege = false; rotation = RotationTypes.None; schraegenType = SchraegenTypes.None; allowedSchraege = true; destroyForce = 0; }
public void setMetaData ( RotationTypes _rot, SchraegenTypes _schraegenType ) { if ( allowedSchraege ) { Rotation = _rot; SchraegenType = _schraegenType; if ( Rotation == RotationTypes.None && SchraegenType == SchraegenTypes.None ) { IsSchraege = false; } else { IsSchraege = true; } } }
public void setSchraegenData ( RotationTypes _rot, SchraegenTypes _schraegenType ) { if ( allowedSchraege ) { rotation = _rot; schraegenType = _schraegenType; if ( rotation == RotationTypes.None && schraegenType == SchraegenTypes.None ) { isSchraege = false; } else { isSchraege = true; } } }
public Block ( Block temp ) { id = temp.id; isSolid = temp.IsSolid; isSchraege = temp.IsSchraege; allowedSchraege = temp.allowedSchraege; rotation = temp.Rotation; schraegenType = temp.SchraegenType; destroyForce = temp.DestroyForce; }