Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
b7015db8
Commit
b7015db8
authored
May 22, 2021
by
Anthony Noir
Browse files
transitionrule
parent
2fe101c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
cellulut.pro
View file @
b7015db8
...
...
@@ -5,3 +5,6 @@ CONFIG += ordered
SUBDIRS
+=
\
src
\
tests
HEADERS
+=
\
include
/
transitionrule
.
hpp
include/transitionrule.hpp
0 → 100644
View file @
b7015db8
/**
\file transitionrule.hpp
\brief TransitionRule
Cette classe représente une règle de transition.
**/
#ifndef TRANSITIONRULE_HPP
#define TRANSITIONRULE_HPP
#include
<vector>
#include
"coord.hpp"
#include
"neighborhood.hpp"
struct
NeighborhoodFormat
;
class
TransitionRule
{
private:
public:
TransitionRule
();
virtual
~
TransitionRule
();
//! \brief Vérifie que les formats de voisinage proposés sont compatibles
//! \param Vector des NeighborhoodFormat à vérifier
//! \return vrai si compatible, faux sinon
virtual
bool
acceptFormat
(
const
std
::
vector
<
NeighborhoodFormat
>&
)
const
=
0
;
//! \brief Effectue la transition
//! \param Etat de la cellule courante
//! \param Voisinage de la cellule
//! \return Nouvel état de la cellule
virtual
unsigned
int
getState
(
unsigned
int
,
const
Neighborhood
&
)
const
=
0
;
};
#endif // TRANSITIONRULE_HPP
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment