During my mathematical musings I encountered the following functional equation : denote by $L$ the set of all functions ${\mathbb Z}^2 \to {\mathbb C}$ satisfying
$$ \begin{array}{cl} &f(x+a,y+b)+f(x+b,y+c)+f(x+c,y+a) \\ =& f(x+a,y+c)+f(x+b,y+a)+f(x+c,y+b) \end{array}\tag{1} $$
for any $x,y,a,b,c\in{\mathbb Z}$. The following three classes of functions are clearly solutions :
$$ f(x,y)=g(x), \ f(x,y)=h(y), \ f(x,y)=i(x+y) \tag{2} $$
where $g,h,i$ are arbitrary functions ${\mathbb Z}\to {\mathbb C}$. Are there other solutions besides linear combinations of those ?