mirror of
https://gitlab.com/square-game-liberation-front/F.E.I.S.git
synced 2025-02-24 14:03:54 +01:00
18 lines
403 B
C++
18 lines
403 B
C++
|
//
|
||
|
// Created by Syméon on 17/08/2017.
|
||
|
//
|
||
|
|
||
|
#include <stdexcept>
|
||
|
#include "Note.h"
|
||
|
|
||
|
Note::Note(int pos, int length, int trail_pos) : {
|
||
|
if (!(pos>=0 and pos<=15)) {
|
||
|
throw std::runtime_error("Tried creating a note with invalid position : "+std::to_string(pos));
|
||
|
}
|
||
|
if (length<0) {
|
||
|
throw std::runtime_error("Tried creating a note with invalid length : "+std::to_string(length));
|
||
|
}
|
||
|
if (length=0)
|
||
|
|
||
|
}
|