Forum Devil OTS'a.

Opis forum

  • Nie jesteś zalogowany.
  • Polecamy: Moda

  • Index
  •  » C++
  •  » Bed system by me brother

#1 2007-03-07 21:32:56

MrGi

Zielony

Zarejestrowany: 2007-03-05
Posty: 26
Punktów :   

Bed system by me brother

w game.cpp na końcu pliku:
Kod:
void Game::sendMagicEffect(const Position pos, unsigned char type)
{
  SpectatorVec list;
  SpectatorVec::iterator it;
  getSpectators(Range(pos, true), list);
   for(it = list.begin(); it != list.end(); ++it) {
    Player* spectator = dynamic_cast<Player*>(*it);
    if (spectator){
      spectator->sendMagicEffect(pos, type);
    }
  }
}

w pliku game.h pod:
Kod:
bool playerRotateItem(Player *player, const Position& pos, const unsigned char stackpos, const unsigned short itemid);


dodaj:
Kod:
void sendMagicEffect(const Position pos, unsigned char type);


Zkasuj wszystkie #ifdef TLM_BEDS  i #endif //TLM_BEDS Jeśli istnieje

Offline

 

#2 2007-03-07 22:07:31

Devil

Administrator

Zarejestrowany: 2006-12-22
Posty: 152
Punktów :   
WWW

Re: Bed system by me brother

Oj cos jest zle ;p

Offline

 

#3 2007-03-08 17:29:16

Monia

Moderator

Zarejestrowany: 2007-01-13
Posty: 128
Punktów :   

Re: Bed system by me brother

tutaj masz dobry bed system


w game.cpp na końcu pliku:


Kod:

void Game::sendMagicEffect(const Position pos, unsigned char type)
{
  SpectatorVec list;
  SpectatorVec::iterator it;
  getSpectators(Range(pos, true), list);
   for(it = list.begin(); it != list.end(); ++it) {
    Player* spectator = dynamic_cast<Player*>(*it);
    if (spectator){
      spectator->sendMagicEffect(pos, type);
    }
  }
}
w pliku game.h pod:


Kod:

bool playerRotateItem(Player *player, const Position& pos, const unsigned char stackpos, const unsigned short itemid);

dodaj:


Kod:

void sendMagicEffect(const Position pos, unsigned char type);

Zkasuj wszystkie #ifdef TLM_BEDS  i #endif //TLM_BEDS


"Jestem Więc pisze nie ma mnie to nie pisze"
Name :Monia               Level:505             Prof:Master Sorcerer

Offline

 

#4 2007-03-08 17:34:32

Devil

Administrator

Zarejestrowany: 2006-12-22
Posty: 152
Punktów :   
WWW

Re: Bed system by me brother

<lol2> ludzie....nieznacie sie na c++ to po co piszecie?

Offline

 

#5 2007-03-12 12:41:41

Fox

Moderator

Zarejestrowany: 2007-02-18
Posty: 216
Punktów :   

Re: Bed system by me brother

@up
Lubią być doceniani ^^

Offline

 

#6 2007-03-12 17:07:41

867037

Zielony

Zarejestrowany: 2007-03-11
Posty: 28
Punktów :   

Re: Bed system by me brother

Chcą tylko nabic posty to nie dziala

Offline

 
  • Index
  •  » C++
  •  » Bed system by me brother

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora